thieve 0.3.0 → 0.3.1

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/thieve +4 -4
  3. data/lib/thieve.rb +2 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c60bd1bbcf6c73e7494c032d3b770810bc0b3344
4
- data.tar.gz: a8a1f1d9b24c06b3500b7334e0e9de77475c3e4e
3
+ metadata.gz: c5f1876558b50f3cb01afeaff6afcd6e9b1e5314
4
+ data.tar.gz: ace13405a765e5c3c1a2c064225c8a62a8198d15
5
5
  SHA512:
6
- metadata.gz: bb088f7cc57316042955e1d4c58f4b1e515e668c82939f5cf7830b77ce5eda90eeca1a2bbfc725f5ea7008d4133741c9b7a4cefa15fbebb8a8d5156a95b40cef
7
- data.tar.gz: e4a33545425fc352078a1f11adab1b604420e9a018d9bc49b8fc64da9536d1645fc53210e31c2f3c8f895141e57aa46042ab528b1ece840429f14f02e92e1c4c
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=REGEX",
67
- "Ignore dirs/files matching REGEX"
68
- ) do |regex|
69
- options["ignore"].push(regex)
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 \"*#{ignore}*\"")
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.match(%r{#{ignore}})
213
+ File.fnmatch(ignore, file.to_s)
214
214
  end
215
215
  next if (skip)
216
216
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thieve
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Whittaker