vfs 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,8 @@ module Vfs
8
8
  if path =~ /.+[\/]$/
9
9
  path = path.sub /\/$/, ''
10
10
  dir path
11
+ elsif path =~ /\*/
12
+ entries path
11
13
  else
12
14
  entry path
13
15
  end
data/spec/dir_spec.rb CHANGED
@@ -138,6 +138,10 @@ describe 'Dir' do
138
138
  @path.empty?.should be_false
139
139
  @path.dir('empty_dir').create.empty?.should be_true
140
140
  end
141
+
142
+ it "should threat ['**/*.rb'] as glob" do
143
+ @path['**/*nother*'].first.name.should == 'another_dir'
144
+ end
141
145
  end
142
146
 
143
147
  describe 'copying' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vfs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-09 00:00:00.000000000Z
12
+ date: 2011-09-10 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: