omnistore 0.0.13 → 0.0.14

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.
@@ -26,13 +26,13 @@ module OmniStore
26
26
  FileUtils.rm(expand(path))
27
27
  end
28
28
 
29
- def delete_if(dir = nil, &block)
29
+ def delete_if(dir = '', &block)
30
30
  Dir.glob("#{expand(dir)}/**/*").each do |path|
31
31
  if yield(path)
32
32
  if File.directory?(path)
33
- FileUtils.rm(path)
34
- else
35
33
  FileUtils.rmdir(path)
34
+ else
35
+ FileUtils.rm(path)
36
36
  end
37
37
  end
38
38
  end
@@ -1,3 +1,3 @@
1
1
  module OmniStore
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnistore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -123,7 +123,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  segments:
125
125
  - 0
126
- hash: 599403473
126
+ hash: 980512627
127
127
  required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  version: '0'
133
133
  segments:
134
134
  - 0
135
- hash: 599403473
135
+ hash: 980512627
136
136
  requirements: []
137
137
  rubyforge_project:
138
138
  rubygems_version: 1.8.24