nrename 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -119,7 +119,11 @@ module Nrename
119
119
 
120
120
  if options.recursive
121
121
  dirs.dup.each do |dir|
122
- Dir.glob(File.join dir.shellescape, '**/') do |subdir|
122
+ # Workaround: every other engine except jruby does not
123
+ # work with unescaped path:
124
+ dir = dir.shellescape unless RUBY_ENGINE == 'jruby'
125
+
126
+ Dir.glob(File.join dir, '**/') do |subdir|
123
127
  dirs << subdir.chomp('/')
124
128
  end
125
129
  end
@@ -1,3 +1,3 @@
1
1
  module Nrename
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -109,7 +109,7 @@ describe Nrename::Options do
109
109
 
110
110
  describe 'directory arguments' do
111
111
  let(:test_dir) { File.expand_path 'test ][ directory' }
112
- let(:subdirs) { ['aa', 'bb', 'cc' 'foo bar [baz] (quux)'] }
112
+ let(:subdirs) { ['aa', 'bb', 'cc', 'foo bar [baz] (quux)'] }
113
113
 
114
114
  before :all do
115
115
  inside test_dir do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nrename
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -131,7 +131,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
131
  version: '0'
132
132
  segments:
133
133
  - 0
134
- hash: 3302606396241923876
134
+ hash: 494939334764380261
135
135
  required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  none: false
137
137
  requirements: