thieve 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/thieve +4 -4
- data/lib/thieve.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5f1876558b50f3cb01afeaff6afcd6e9b1e5314
|
4
|
+
data.tar.gz: ace13405a765e5c3c1a2c064225c8a62a8198d15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc3e880a297319bed806b5a955b87cf049b269847df31bd25d663bbc0ff9e06fe1998d5410289e94bda960fe0345df391edcec431eddc631846471bf901451a8
|
7
|
+
data.tar.gz: 91b653378906cd29443f977672753798c52817331785fde163d0a11901cd55cb55469560ed378ff9665127434fadb45978d99c752e9937ea2e71f4f45c718710
|
data/bin/thieve
CHANGED
@@ -63,10 +63,10 @@ def parse(args)
|
|
63
63
|
|
64
64
|
opts.on(
|
65
65
|
"-i",
|
66
|
-
"--ignore=
|
67
|
-
"Ignore dirs/files matching
|
68
|
-
) do |
|
69
|
-
options["ignore"].push(
|
66
|
+
"--ignore=GLOB",
|
67
|
+
"Ignore dirs/files matching GLOB"
|
68
|
+
) do |glob|
|
69
|
+
options["ignore"].push(glob)
|
70
70
|
end
|
71
71
|
|
72
72
|
opts.on("--nocolor", "Disable colorized output") do
|
data/lib/thieve.rb
CHANGED
@@ -200,7 +200,7 @@ class Thieve
|
|
200
200
|
|
201
201
|
ignores.each do |ignore|
|
202
202
|
cmd.push("--exclude-dir \"#{ignore}\"")
|
203
|
-
cmd.push("--exclude \"
|
203
|
+
cmd.push("--exclude \"#{ignore}\"")
|
204
204
|
end
|
205
205
|
|
206
206
|
cmd.push("-I") if (!binaries)
|
@@ -210,7 +210,7 @@ class Thieve
|
|
210
210
|
file = Pathname.new(f.strip).expand_path
|
211
211
|
|
212
212
|
skip = ignores.any? do |ignore|
|
213
|
-
file.to_s
|
213
|
+
File.fnmatch(ignore, file.to_s)
|
214
214
|
end
|
215
215
|
next if (skip)
|
216
216
|
|