Hello community,

here is the log from the commit of package rubygem-path_expander for 
openSUSE:Factory checked in at 2018-07-18 22:50:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-path_expander (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-path_expander.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-path_expander"

Wed Jul 18 22:50:39 2018 rev:4 rq:621020 version:1.0.3

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-path_expander/rubygem-path_expander.changes  
    2017-06-08 15:01:38.682526112 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-path_expander.new/rubygem-path_expander.changes
 2018-07-18 22:50:41.259607950 +0200
@@ -1,0 +2,12 @@
+Tue Mar 20 10:13:36 UTC 2018 - factory-a...@kulow.org
+
+- updated to version 1.0.3
+ see installed History.rdoc
+
+  === 1.0.3 / 2018-03-16
+  
+  * 1 bug fix:
+  
+    * Don't process files if path expands to root directory. Prevents -n /./ 
from hanging.
+
+-------------------------------------------------------------------

Old:
----
  path_expander-1.0.2.gem

New:
----
  path_expander-1.0.3.gem

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

Other differences:
------------------
++++++ rubygem-path_expander.spec ++++++
--- /var/tmp/diff_new_pack.UAdP0k/_old  2018-07-18 22:50:43.939599065 +0200
+++ /var/tmp/diff_new_pack.UAdP0k/_new  2018-07-18 22:50:43.939599065 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-path_expander
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-path_expander
-Version:        1.0.2
+Version:        1.0.3
 Release:        0
 %define mod_name path_expander
 %define mod_full_name %{mod_name}-%{version}
@@ -34,7 +34,7 @@
 BuildRequires:  %{ruby}
 BuildRequires:  ruby-macros >= 5
 Url:            https://github.com/seattlerb/path_expander
-Source:         http://rubygems.org/gems/%{mod_full_name}.gem
+Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
 Summary:        PathExpander helps pre-process command-line arguments expanding
 License:        MIT

++++++ path_expander-1.0.2.gem -> path_expander-1.0.3.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/History.rdoc new/History.rdoc
--- old/History.rdoc    2017-05-10 00:35:13.000000000 +0200
+++ new/History.rdoc    2018-03-16 23:57:16.000000000 +0100
@@ -1,3 +1,9 @@
+=== 1.0.3 / 2018-03-16
+
+* 1 bug fix:
+
+  * Don't process files if path expands to root directory. Prevents -n /./ 
from hanging.
+
 === 1.0.2 / 2017-05-09
 
 * 1 bug fix:
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
Binary files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ
Binary files old/data.tar.gz.sig and new/data.tar.gz.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/path_expander.rb new/lib/path_expander.rb
--- old/lib/path_expander.rb    2017-05-10 00:35:13.000000000 +0200
+++ new/lib/path_expander.rb    2018-03-16 23:57:16.000000000 +0100
@@ -13,7 +13,7 @@
 # PathExpander.
 
 class PathExpander
-  VERSION = "1.0.2" # :nodoc:
+  VERSION = "1.0.3" # :nodoc:
 
   ##
   # The args array to process.
@@ -88,7 +88,8 @@
           flags << arg
         end
       else
-        if File.exist? arg then
+        root_path = File.expand_path(arg) == "/" # eg: -n /./
+        if File.exist? arg and not root_path then
           pos_files += expand_dirs_to_files(arg)
         else
           flags << arg
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2017-05-10 00:35:13.000000000 +0200
+++ new/metadata        2018-03-16 23:57:16.000000000 +0100
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: path_expander
 version: !ruby/object:Gem::Version
-  version: 1.0.2
+  version: 1.0.3
 platform: ruby
 authors:
 - Ryan Davis
@@ -10,9 +10,9 @@
 cert_chain:
 - |
   -----BEGIN CERTIFICATE-----
-  MIIDijCCAnKgAwIBAgIBATANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
+  MIIDPjCCAiagAwIBAgIBAjANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
   ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
-  GRYDY29tMB4XDTE2MDkyNjAxNTczNVoXDTE3MDkyNjAxNTczNVowRTETMBEGA1UE
+  GRYDY29tMB4XDTE3MTEyMTIxMTExMFoXDTE4MTEyMTIxMTExMFowRTETMBEGA1UE
   AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
   JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
   b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
@@ -20,17 +20,16 @@
   oOvjtt5P8+GSK9zLzxQP0gVLS/D0FmoE44XuDr3iQkVS2ujU5zZL84mMNqNB1znh
   GiadM9GHRaDiaxuX0cIUBj19T01mVE2iymf9I6bEsiayK/n6QujtyCbTWsAS9Rqt
   qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
-  gBEfoTEGr7Zii72cx+sCAwEAAaOBhDCBgTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIE
-  sDAdBgNVHQ4EFgQUR8V72Z3+v+2P9abCnL4wjx32T+EwIwYDVR0RBBwwGoEYcnlh
-  bmQtcnVieUB6ZW5zcGlkZXIuY29tMCMGA1UdEgQcMBqBGHJ5YW5kLXJ1YnlAemVu
-  c3BpZGVyLmNvbTANBgkqhkiG9w0BAQUFAAOCAQEAIGzgp0aZ2W9+v96ujmBcQHoC
-  buy0iU68MVj2VlxMyfr1KPZIh1OyhU4UO4zrkREcH8ML70v9cYHNvOd9oynRHnvC
-  l2tj/fD3YJ0AEkJxGrYwRWQmvMfC4bJ02bC1+rVOUIXXKp3+cUmiN4sTniof8VFo
-  bo/YYP4c7erpERa+9hrqygg6WQbJlk2YRlH3JXPFjmu869i2dcbR5ZLOAeEy+axH
-  E4oJcnPkJAr0rw504JGtlZtONZQblwmRJOIdXzolaE3NRGUzGVOUSptZppAKiavY
-  fO6tdKQc/5RfA8oQEkg8hrxA5PQSz4TOFJGLpFvIapEk6tMruQ0bHgkhr9auXg==
+  gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
+  HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
+  AQAfAXSQpsW7YSxd1csRtA/M4Zt0AMXFMd76GJ8Lgtg8G0+VFbdChRyDuDb0kPlW
+  h9QQX/YABfCW8vxmssbMGrP+VGBAn7BbdTcfTlgCWrvMX1uL5aRL74nA4urKXqdW
+  a0nP70K4958P3GffBdtE3KGkU5xstFnXGajxuBRnL66E15KU0BNehVxdG258bdPu
+  EKN6MqBPftFiev3tuwqDV11r2GquDpniYcT+Mi8/PgeAgVT/afBeVgbB3KaZeTRR
+  AhXhF6Wi2GTMezlj5jlI5XV7WsJUSwTp/YiVvcmT74ZaCRvexm6EnNhkrvJJ1Xeu
+  V+HB+LYYhXWitInO/eXxDrFB
   -----END CERTIFICATE-----
-date: 2017-05-09 00:00:00.000000000 Z
+date: 2018-03-16 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rdoc
@@ -113,7 +112,7 @@
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.6.8
+rubygems_version: 2.7.3
 signing_key: 
 specification_version: 4
 summary: PathExpander helps pre-process command-line arguments expanding 
directories
Binary files old/metadata.gz.sig and new/metadata.gz.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/test_path_expander.rb 
new/test/test_path_expander.rb
--- old/test/test_path_expander.rb      2017-05-10 00:35:13.000000000 +0200
+++ new/test/test_path_expander.rb      2018-03-16 23:57:16.000000000 +0100
@@ -142,6 +142,13 @@
                         "42")
   end
 
+  def test_process_args_root
+    assert_process_args(%w[],
+                        %w[-n /./],
+                        "-n",
+                        "/./")
+  end
+
   def test_process_flags
     exp = %w[a b c]
     act = expander.process_flags %w[a b c]


Reply via email to