Hello community,

here is the log from the commit of package ruby-common for openSUSE:Factory 
checked in at 2013-03-22 12:07:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ruby-common (Old)
 and      /work/SRC/openSUSE:Factory/.ruby-common.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ruby-common", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/ruby-common/ruby-common.changes  2013-01-22 
17:52:09.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.ruby-common.new/ruby-common.changes     
2013-03-22 12:07:47.000000000 +0100
@@ -1,0 +2,12 @@
+Fri Mar  8 16:22:44 UTC 2013 - [email protected]
+
+- Some enhancements to rubygemsdeps.rb:
+  - Add --file-match option to rubygemsdeps.rb to allow
+    specifying and alternate regex to match the input files
+    against. This is useful to generate dependencies from gemspec
+    files which do not endup being installed in the default
+    locations
+  - Default rubyabi to a non-nil value (basically the version of
+    of the ruby interpreter that runs the script)
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygemsdeps.rb ++++++
--- /var/tmp/diff_new_pack.kv8s8N/_old  2013-03-22 12:07:48.000000000 +0100
+++ /var/tmp/diff_new_pack.kv8s8N/_new  2013-03-22 12:07:48.000000000 +0100
@@ -36,6 +36,12 @@
 opts.on("-R", "--requires", "Output the requires of the package") do |val|
   requires=true
 end
+file_match=".*/gems/[^/]*/specifications/.*\.gemspec$"
+opts.on("-m", "--file-match REGEX", String,
+       "Override the regex against which the input file names",
+        "matched with the supplied regex") do |val|
+  file_match=val
+end
 in_file=nil
 opts.on("-g", "--gemspec FILE", String,
         "Take gemspec from FILE, not filename in STDIN",
@@ -73,7 +79,7 @@
 
 def rubyabi_from_path(path)
   m = path.match(%r{.*/gems/([^/]*)/.*})
-  return m ? m[1] : nil
+  return m ? m[1] : RbConfig::CONFIG["ruby_version"]
 end
 
 gemspecs = Array.new
@@ -87,7 +93,7 @@
 else
   $stdin.each_line do |line|
     line.chomp!
-    m = line.match(%r{.*/gems/[^/]*/specifications/.*\.gemspec$})
+    m = line.match(%r{#{file_match}$})
     if m
       register_gemspec_from_file(gemspecs, rubyabi_from_path(line), line)
     end

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to