fakefs 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87b3bd124e2a20133aeb85f866acb52262fc9bde
4
- data.tar.gz: 0501ebaf21ebf9cc90464388507a5de3b9bfddc4
3
+ metadata.gz: 5dc2593e0eff91e5df327b9e0e6009d629cfcb42
4
+ data.tar.gz: 2f28f7c3fe6f1a0b5c1e6a3268a4b49b6e343543
5
5
  SHA512:
6
- metadata.gz: 9c91bbfbdd6c805e7916089a10e0dad958524dc498275fc36b577196bc0cc0eedf956d1f6d1bcfd091b3ea0c0651dc345fb348b62934499a6b96316fe333d49e
7
- data.tar.gz: ace7f7771019525affa0e05d256fdf4f4b783ca5f551464070149350ce2c6c13273453218fa481a8a36a1e26402e1c22612e238a461d05335ab7bd2cc9a1ebb4
6
+ metadata.gz: c3610a7311b20ef411ae1d9b486b30efad8d68fa7e5d5b4c0e4cad43537d57f6f9f6bd843683d2826111a2bb2884e8d354dc0174a12b8356dbc67abb8ed1ac11
7
+ data.tar.gz: 35fad1a65e7b3972d465f64dee7c54fd0c4f28c2b8043c28bcefe63a5ca891e038e5cd7eb83cc2aea118a90939c71518821424acdc899ca87641d6b6b72cddec
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
1
  source 'https://rubygems.org/'
2
2
 
3
3
  gemspec
4
+
5
+ gem 'pry-byebug'
@@ -133,7 +133,7 @@ module FakeFS
133
133
  directories_under(dir)
134
134
  end
135
135
  else
136
- dir.matches /\A#{pattern.gsub('.', '\.').gsub('?','.').gsub('*', '.*').gsub('[', '\[').gsub(']', '\]').gsub('(', '\(').gsub(')', '\)').gsub(/\{(.*?)\}/) { "(#{$1.gsub(',', '|')})" }}\Z/
136
+ dir.matches(/\A#{pattern.gsub('.', '\.').gsub('?','.').gsub('*', '.*').gsub('(', '\(').gsub(')', '\)').gsub(/\{(.*?)\}/) { "(#{$1.gsub(',', '|')})" }}\Z/)
137
137
  end
138
138
 
139
139
  if parts.empty? # we're done recursing
@@ -1,6 +1,6 @@
1
1
  module FakeFS
2
2
  module Version
3
- VERSION = "0.5.3"
3
+ VERSION = "0.5.4"
4
4
 
5
5
  def self.to_s
6
6
  VERSION
@@ -1099,6 +1099,12 @@ class FakeFSTest < Test::Unit::TestCase
1099
1099
  assert_equal ['/one/five.rb', '/one/two'], Dir['/one/**']
1100
1100
  end
1101
1101
 
1102
+ def test_dir_glob_ending_in_group_and_wildcard
1103
+ FileUtils.mkdir_p "/tmp/python-3.4.1"
1104
+ FileUtils.mkdir_p "/tmp/python-2.7.8"
1105
+ assert_equal ['/tmp/python-2.7.8', '/tmp/python-3.4.1'], Dir.glob("/tmp/python-[0-9]*")
1106
+ end
1107
+
1102
1108
  def test_dir_glob_with_block
1103
1109
  FileUtils.touch('foo')
1104
1110
  FileUtils.touch('bar')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fakefs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Wanstrath
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-08-25 00:00:00.000000000 Z
15
+ date: 2014-09-30 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bundler