dot_hash 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7018ca020ba869170194582fc6d71ec4cddbc187
4
- data.tar.gz: e864953ad473baac57823386d63892028a24db4e
3
+ metadata.gz: efb3b2993362ead2de92d08c09bc2be1c16fa363
4
+ data.tar.gz: 45a3d494e3b60d2cf2bc69963f891d36ea1a1e04
5
5
  SHA512:
6
- metadata.gz: 288f017493329d2e3fba220f8eeaefba7720f36e1aa9087055a0a939c712d4660fde84c9b2ab9e712c842d4e5dbd330a5a3a1a7dae21e834697989601f29a328
7
- data.tar.gz: 1a1f2c30f1ab511ffd5b08408c1f6c61812cb26f21a897d888ee396c03dfc1edc0223d960fde56f63dc93b4b8889ccc2ebb5cca9a3f55361ea7c9ed1939481bd
6
+ metadata.gz: ab1ae26881dcb2bbf6e085d0b822135507c32baff2f1ea3c5715498ae7b5d5380e98e7667509f639255adb54c2cff8794caf3cb8cfdbdf6db7f1b44725c64b6f
7
+ data.tar.gz: bcd109a1e99911734e3d29a901ab7f06e2ca73622ef3a593894999bbde3f7de141370439749b9a57ed756677886df8b900daa081e3c877df25e55bbc8c063c7c
@@ -33,10 +33,10 @@ module DotHash
33
33
  def get_hash_from arg
34
34
  if arg.is_a? Hash
35
35
  arg
36
- elsif File.file? arg.to_s
37
- get_hash_from_file arg
38
36
  elsif File.directory? arg
39
37
  get_hash_from_directory arg
38
+ else
39
+ get_hash_from_file arg.to_s
40
40
  end
41
41
  end
42
42
 
@@ -1,3 +1,3 @@
1
1
  module DotHash
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dot_hash
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcelo Eden