unpack 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/unpack.rb +1 -2
- data/unpack.gemspec +1 -1
- metadata +3 -3
data/lib/unpack.rb
CHANGED
@@ -64,7 +64,6 @@ class Unpack
|
|
64
64
|
end
|
65
65
|
|
66
66
|
def prepare!
|
67
|
-
@directory.gsub!(/\s+/, '\ ')
|
68
67
|
@files = []
|
69
68
|
|
70
69
|
['zip', 'rar'].each do |type|
|
@@ -164,6 +163,6 @@ class Unpack
|
|
164
163
|
end
|
165
164
|
|
166
165
|
def find_file_type(file_type)
|
167
|
-
%x{cd '#{@directory}' && find '#{@directory}' -type f -maxdepth '#{(@options[:depth])}' -name
|
166
|
+
%x{cd '#{@directory}' && find '#{@directory}' -type f -maxdepth '#{(@options[:depth])}' -name '*.#{file_type}'}.split(/\n/)
|
168
167
|
end
|
169
168
|
end
|
data/unpack.gemspec
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 8
|
9
|
+
version: 0.1.8
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Linus Oleander
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-
|
17
|
+
date: 2011-02-03 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|