Re: Patch for Rails 4.2.7.1 Update

2016-09-22 Thread Steve Wills
Hi Torsten,

On 09/20/2016 04:31, Torsten Zuehlsdorff wrote:
> Hello,
> 
> i'm currently working on an update to Rails 4.2.7.1 (which of course is
> needed by GitLab :D). Since its a security update it would be fine to
> get it into the ports-tree.
> 

Indeed, thanks for working on this.

> My first attempt was to update all rails-* ports but swills pointed me
> to a simple test, by running "rails new foo" on a clean installation.
> This reveals 16 needed updates. 15 of them are included in the attached
> diff, just the new port turbolinks-source is missing. I did not find any
> time for it.
> 

There's a script floating around for generating new gem ports if you
want I can try to find where I put my copy (I didn't write it).

> Most of the updates are fairly easy and safe to commit, but since there
> are so many i found some more testers out there. Please check the
> updates by yourself and give feedback. Feel also free to commit them by
> yourself if you want.
> 

Looks fine, I would build test all the things that depend on nokogiri at
least.

> Also: can anybody point me to the location were the needed dependencies
> were defined? I want to adjust the Makefiles but i can't figure out
> where they come from. I even make a clean install on a fresh ports-tree
> and did a "grep -RH" about all work-dirs, but did not find any clue. Any
> help would be great.
> 

This is generated by railties, see the generator stuff under:

/usr/local/lib/ruby/gems/2.2/gems/railties-*/lib/rails/generators

In particular, there's a template at:

/usr/local/lib/ruby/gems/2.2/gems/railties-*/lib/rails/generators/rails/plugin/templates/Gemfile

but there's also some stuff added in the code, such as in:

/usr/local/lib/ruby/gems/2.2/gems/railties-*/lib/rails/generators/app_base.rb

Steve



signature.asc
Description: OpenPGP digital signature


Patch for Rails 4.2.7.1 Update

2016-09-20 Thread Torsten Zuehlsdorff

Hello,

i'm currently working on an update to Rails 4.2.7.1 (which of course is 
needed by GitLab :D). Since its a security update it would be fine to 
get it into the ports-tree.


My first attempt was to update all rails-* ports but swills pointed me 
to a simple test, by running "rails new foo" on a clean installation. 
This reveals 16 needed updates. 15 of them are included in the attached 
diff, just the new port turbolinks-source is missing. I did not find any 
time for it.


Most of the updates are fairly easy and safe to commit, but since there 
are so many i found some more testers out there. Please check the 
updates by yourself and give feedback. Feel also free to commit them by 
yourself if you want.


Also: can anybody point me to the location were the needed dependencies 
were defined? I want to adjust the Makefiles but i can't figure out 
where they come from. I even make a clean install on a fresh ports-tree 
and did a "grep -RH" about all work-dirs, but did not find any clue. Any 
help would be great.


Greetings,
Torsten
Index: databases/rubygem-activemodel4/Makefile
===
--- databases/rubygem-activemodel4/Makefile	(Revision 422485)
+++ databases/rubygem-activemodel4/Makefile	(Arbeitskopie)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	activemodel
-PORTVERSION=	4.2.6
+PORTVERSION=	4.2.7.1
 CATEGORIES=	databases rubygems
 MASTER_SITES=	RG
 PKGNAMESUFFIX=	4
Index: databases/rubygem-activemodel4/distinfo
===
--- databases/rubygem-activemodel4/distinfo	(Revision 422485)
+++ databases/rubygem-activemodel4/distinfo	(Arbeitskopie)
@@ -1,2 +1,3 @@
-SHA256 (rubygem/activemodel-4.2.6.gem) = 4230930ea7ba04b6af940f9a393a821601e99cce387d964eea8d1215f8417145
-SIZE (rubygem/activemodel-4.2.6.gem) = 45568
+TIMESTAMP = 1471421091
+SHA256 (rubygem/activemodel-4.2.7.1.gem) = 65a7631d487b9642c6877dd404667991e36cdd75e588406c4d4c435557059f29
+SIZE (rubygem/activemodel-4.2.7.1.gem) = 45568
Index: databases/rubygem-activerecord4/Makefile
===
--- databases/rubygem-activerecord4/Makefile	(Revision 422485)
+++ databases/rubygem-activerecord4/Makefile	(Arbeitskopie)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	activerecord
-PORTVERSION=	4.2.6
+PORTVERSION=	4.2.7.1
 CATEGORIES=	databases rubygems
 MASTER_SITES=	RG
 PKGNAMESUFFIX=	4
Index: databases/rubygem-activerecord4/distinfo
===
--- databases/rubygem-activerecord4/distinfo	(Revision 422485)
+++ databases/rubygem-activerecord4/distinfo	(Arbeitskopie)
@@ -1,2 +1,3 @@
-SHA256 (rubygem/activerecord-4.2.6.gem) = bfcf285ddf5ba4ce8f45c3472a8d827a2c35ab5ba0e4186af13db35c4f7653ae
-SIZE (rubygem/activerecord-4.2.6.gem) = 330752
+TIMESTAMP = 1471420281
+SHA256 (rubygem/activerecord-4.2.7.1.gem) = 923a64e2ebb9c4529761bf65ed37601a7000af2f3b18f12ea00e9f9ba2a168d2
+SIZE (rubygem/activerecord-4.2.7.1.gem) = 331776
Index: databases/rubygem-globalid/Makefile
===
--- databases/rubygem-globalid/Makefile	(Revision 422485)
+++ databases/rubygem-globalid/Makefile	(Arbeitskopie)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	globalid
-PORTVERSION=	0.3.6
+PORTVERSION=	0.3.7
 CATEGORIES=	databases rubygems
 MASTER_SITES=	RG
 
Index: databases/rubygem-globalid/distinfo
===
--- databases/rubygem-globalid/distinfo	(Revision 422485)
+++ databases/rubygem-globalid/distinfo	(Arbeitskopie)
@@ -1,2 +1,3 @@
-SHA256 (rubygem/globalid-0.3.6.gem) = 2189faa079709772a0f64ac8df61dbcd84c5112a0a9b3c86971887eef4cdbd90
-SIZE (rubygem/globalid-0.3.6.gem) = 10752
+TIMESTAMP = 1473687260
+SHA256 (rubygem/globalid-0.3.7.gem) = 53414b2d226b722409167098acab75e47bfeee7e3130a6852733f141fd9bf486
+SIZE (rubygem/globalid-0.3.7.gem) = 12288
Index: devel/rubygem-actionview/Makefile
===
--- devel/rubygem-actionview/Makefile	(Revision 422485)
+++ devel/rubygem-actionview/Makefile	(Arbeitskopie)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	actionview
-PORTVERSION=	4.2.6
+PORTVERSION=	4.2.7.1
 CATEGORIES=	devel rubygems
 MASTER_SITES=	RG
 
@@ -16,7 +16,7 @@
 		rubygem-builder32>=3.2:devel/rubygem-builder32 \
 		rubygem-erubis>=2.7.0:www/rubygem-erubis \
 		rubygem-rails-dom-testing>=1.0.5:textproc/rubygem-rails-dom-testing \
-		rubygem-rails-html-sanitizer>=1.0.1:textproc/rubygem-rails-html-sanitizer
+		rubygem-rails-html-sanitizer>=1.0.2:textproc/rubygem-rails-html-sanitizer
 
 NO_ARCH=	yes
 USE_RUBY=	yes
Index: devel/rubygem-actionview/distinfo
===
--- devel/rubygem-actionview/distinfo	(Revision 422485)
+++ devel/rubygem-actionview/distinfo	(Arbeitskopie)
@@ -1,2 +1,3 @@
-SHA256 (rubygem/actionview-4.2.6.gem) =