dotsmack 0.2 → 0.3

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/lib/dotsmack.rb +6 -6
  3. data/lib/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e263deb6fb148aafc0d1636033ae942d4d632c52
4
- data.tar.gz: 68a420a6cf107c964849f8948bca215f0432d6ea
3
+ metadata.gz: f049c03c692cc03fc463edb26c718913ed1af25d
4
+ data.tar.gz: f08fecc49eacd6cfae8083a41eeee0f527322010
5
5
  SHA512:
6
- metadata.gz: 1759ca7590e2c7fabac77bb5a3fde7684f052ff686549e1420cbccacb2de1db67eb5d998e2eeeb92525be764c29555b46aacfd4533c645471691f466d92ab28e
7
- data.tar.gz: 817b3ab244e5de51622ba53aced87d20e298d23b47d4233e42e24046b3e307a8bde3436580be26a5aaee721edb04c40842ab19d523c04cc726b89bb72f650688
6
+ metadata.gz: 4fc99e960fd9f6d988010dd45de67c0ef787df09bda34ec18d62996900a167858604abc8b8dae3614d65b29a8c229fe0851622f567355d5df5039fc1d401e7b6
7
+ data.tar.gz: 6ab9132d2756aa3000d99f39a4a028bb09692b08b3c088e9a35686616910e28ec574f1bfcd46a205be4cfb7047d642904d7c8dfb35560f518cb28b0b073ca79b
@@ -33,15 +33,15 @@ module Dotsmack
33
33
  true
34
34
  # Consider path as directory
35
35
  else
36
- path =
37
- if path.end_with?(File::SEPARATOR)
38
- path
36
+ pattern =
37
+ if pattern.end_with?(File::SEPARATOR)
38
+ "#{pattern}*"
39
39
  else
40
- "#{path}#{File::SEPARATOR}"
40
+ "#{pattern}#{File::SEPARATOR}*"
41
41
  end
42
42
 
43
- File.fnmatch("#{pattern}*", path, FNMATCH_FLAGS) ||
44
- File.fnmatch("**#{File::SEPARATOR}#{pattern}*", path, FNMATCH_FLAGS)
43
+ File.fnmatch(pattern, path, FNMATCH_FLAGS) ||
44
+ File.fnmatch("**#{File::SEPARATOR}#{pattern}", path, FNMATCH_FLAGS)
45
45
  end
46
46
  end
47
47
 
@@ -2,5 +2,5 @@
2
2
  # Dotsmack
3
3
  #
4
4
  module Dotsmack
5
- VERSION = '0.2'
5
+ VERSION = '0.3'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dotsmack
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: '0.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Pennebaker