dotsmack 0.3 → 0.4

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 +7 -0
  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: f049c03c692cc03fc463edb26c718913ed1af25d
4
- data.tar.gz: f08fecc49eacd6cfae8083a41eeee0f527322010
3
+ metadata.gz: f45fa84b886c17669eb302fdc14cbb79f364c317
4
+ data.tar.gz: b91bf065676b2cc95c84d825c2989f9457444926
5
5
  SHA512:
6
- metadata.gz: 4fc99e960fd9f6d988010dd45de67c0ef787df09bda34ec18d62996900a167858604abc8b8dae3614d65b29a8c229fe0851622f567355d5df5039fc1d401e7b6
7
- data.tar.gz: 6ab9132d2756aa3000d99f39a4a028bb09692b08b3c088e9a35686616910e28ec574f1bfcd46a205be4cfb7047d642904d7c8dfb35560f518cb28b0b073ca79b
6
+ metadata.gz: ef280a051cf192725c25cf596bd29af5e03b0abc94339379e5940285901390634b0dbc5842b5a9e0dd92f4abfd184d7a8d2086144c5323119db8a17492f822c3
7
+ data.tar.gz: 3c19ba0f082c3139ec2b8e3fcb41016819427738c7403ad126b5a45b08b76bdabe3391ee5361df69bd87af750176ee48a783796f45db1a3980becd527ccbc83b
@@ -33,6 +33,13 @@ 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
39
+ else
40
+ "#{path}#{File::SEPARATOR}"
41
+ end
42
+
36
43
  pattern =
37
44
  if pattern.end_with?(File::SEPARATOR)
38
45
  "#{pattern}*"
@@ -2,5 +2,5 @@
2
2
  # Dotsmack
3
3
  #
4
4
  module Dotsmack
5
- VERSION = '0.3'
5
+ VERSION = '0.4'
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.3'
4
+ version: '0.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Pennebaker