Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Feb 2013 17:40:22 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r312884 - in head/devel/rubygem-ruby_parser: . files
Message-ID:  <201302241740.r1OHeMw8023286@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Sun Feb 24 17:40:22 2013
New Revision: 312884
URL: http://svnweb.freebsd.org/changeset/ports/312884

Log:
  - Update to 3.1.1
  - Add patch for security issue
  
  Obtained from:	http://seclists.org/oss-sec/2013/q1/393
  Security:	forthcoming

Added:
  head/devel/rubygem-ruby_parser/files/
  head/devel/rubygem-ruby_parser/files/patch-tmpusage   (contents, props changed)
Modified:
  head/devel/rubygem-ruby_parser/Makefile
  head/devel/rubygem-ruby_parser/distinfo

Modified: head/devel/rubygem-ruby_parser/Makefile
==============================================================================
--- head/devel/rubygem-ruby_parser/Makefile	Sun Feb 24 17:37:01 2013	(r312883)
+++ head/devel/rubygem-ruby_parser/Makefile	Sun Feb 24 17:40:22 2013	(r312884)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	ruby_parser
-PORTVERSION=	3.0.4
+PORTVERSION=	3.1.1
 CATEGORIES=	devel rubygems
 MASTER_SITES=	RG
 

Modified: head/devel/rubygem-ruby_parser/distinfo
==============================================================================
--- head/devel/rubygem-ruby_parser/distinfo	Sun Feb 24 17:37:01 2013	(r312883)
+++ head/devel/rubygem-ruby_parser/distinfo	Sun Feb 24 17:40:22 2013	(r312884)
@@ -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

Added: head/devel/rubygem-ruby_parser/files/patch-tmpusage
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-ruby_parser/files/patch-tmpusage	Sun Feb 24 17:40:22 2013	(r312884)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302241740.r1OHeMw8023286>