aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2013-02-25 01:40:22 +0800
committerswills <swills@FreeBSD.org>2013-02-25 01:40:22 +0800
commit211378e30d7b1fb01ed6acb4eb7b3d36877618b7 (patch)
treee203e4563a481ad39ea9f07ca8d4cc3a68307bb6 /devel
parent203d65aea142ca28afab84ba050f2e5ddc677c31 (diff)
downloadfreebsd-ports-gnome-211378e30d7b1fb01ed6acb4eb7b3d36877618b7.tar.gz
freebsd-ports-gnome-211378e30d7b1fb01ed6acb4eb7b3d36877618b7.tar.zst
freebsd-ports-gnome-211378e30d7b1fb01ed6acb4eb7b3d36877618b7.zip
- Update to 3.1.1
- Add patch for security issue Obtained from: http://seclists.org/oss-sec/2013/q1/393 Security: forthcoming
Diffstat (limited to 'devel')
-rw-r--r--devel/rubygem-ruby_parser/Makefile2
-rw-r--r--devel/rubygem-ruby_parser/distinfo4
-rw-r--r--devel/rubygem-ruby_parser/files/patch-tmpusage31
3 files changed, 34 insertions, 3 deletions
diff --git a/devel/rubygem-ruby_parser/Makefile b/devel/rubygem-ruby_parser/Makefile
index 41ec043af7ab..33ca2b1bb10b 100644
--- a/devel/rubygem-ruby_parser/Makefile
+++ b/devel/rubygem-ruby_parser/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= ruby_parser
-PORTVERSION= 3.0.4
+PORTVERSION= 3.1.1
CATEGORIES= devel rubygems
MASTER_SITES= RG
diff --git a/devel/rubygem-ruby_parser/distinfo b/devel/rubygem-ruby_parser/distinfo
index 6fb8b9f806d8..da1b193ef41f 100644
--- a/devel/rubygem-ruby_parser/distinfo
+++ b/devel/rubygem-ruby_parser/distinfo
@@ -1,2 +1,2 @@
-SHA256 (rubygem/ruby_parser-3.0.4.gem) = f5ba8c07f8495d77b63c87d575ca5727ce46b375661c6aaac3567398ee9ac7be
-SIZE (rubygem/ruby_parser-3.0.4.gem) = 140800
+SHA256 (rubygem/ruby_parser-3.1.1.gem) = dd036aa67f973404a3264364831119c8a67867676ccabb47ff4356908993ac4a
+SIZE (rubygem/ruby_parser-3.1.1.gem) = 141824
diff --git a/devel/rubygem-ruby_parser/files/patch-tmpusage b/devel/rubygem-ruby_parser/files/patch-tmpusage
new file mode 100644
index 000000000000..31b8e64381ef
--- /dev/null
+++ b/devel/rubygem-ruby_parser/files/patch-tmpusage
@@ -0,0 +1,31 @@
+--- lib/gauntlet_rubyparser.rb.orig 2013-02-24 17:26:38.158253105 +0000
++++ lib/gauntlet_rubyparser.rb 2013-02-24 17:27:26.653251094 +0000
+@@ -35,18 +35,19 @@
+ def diff_pp o1, o2
+ require 'pp'
+
+- File.open("/tmp/a.#{$$}", "w") do |f|
+- PP.pp o1, f
+- end
++ file_a = Tempfile.new('ruby_parser_a')
++ PP.pp o1, file_a
++ file_a.close
++
++ file_b = Tempfile.new('ruby_parser_b')
++ PP.pp o2, file_b
++ file_b.close
+
+- File.open("/tmp/b.#{$$}", "w") do |f|
+- PP.pp o2, f
+- end
+
+- `diff -u /tmp/a.#{$$} /tmp/b.#{$$}`
++ `diff -u #{file_a.path} #{file_b.path}`
+ ensure
+- File.unlink "/tmp/a.#{$$}" rescue nil
+- File.unlink "/tmp/b.#{$$}" rescue nil
++ file_a.unlink
++ file_b.unlink
+ end
+
+ def broke name, file, msg