logbrarian 0.1.5 → 0.1.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd2d4bc4110c6529d47f0d5944f4206ca5680419
4
- data.tar.gz: 02a0bf4eaebfe078e366c2b0acbc8b30c5d7d2c5
3
+ metadata.gz: de9faa2330674e94800f210515feb0d0c79e38bd
4
+ data.tar.gz: 401fb7c1462c40171cc7e11d4ff572fbcb4ec934
5
5
  SHA512:
6
- metadata.gz: 3119822dd6842157ea75e0b6bbd310fb82ec7b70c2f2fd7e8c18ea969b260b790231efee4f28bc26062b6e4eec9bbaa66c495f36403c43a90df669d7180ced14
7
- data.tar.gz: 0f34a942c15b3e9a04c9a828225864f80341abe29b0cb7a4a4c2cd3fa77769f1c9a3773e77778d55df8e12ba75443d61f4288258845eeae23b57f5e302884d2c
6
+ metadata.gz: b924068fe2555dc90c13d631cd353abec5cb2e53fe51c87369d0d922925652a2ca273c708061fca6b73b6c6bc13eff6aecbc8ec7f57c8e18e5b7a3418afcd186
7
+ data.tar.gz: 8dd054c53c149e1b06abb1f89fa6c7330441ff2726b8c1a420c8eb7be03e1967e15b501967db11790e0e67fa4d61aa896e480e0bb8ccf799dbb435aed16926a6
data/bin/logbrarian CHANGED
@@ -55,7 +55,8 @@ rescue NotImplementedError
55
55
  store_path = File.expand_path("~/.logbrarian.yml")
56
56
  FileUtils.touch store_path
57
57
  store = YAML.load_file(store_path) || Hash.new
58
- birthtime = store[current_path] || Time.now
58
+ birth_string = store[current_path].to_s || Time.now.to_s
59
+ birthtime = DateTime.parse(birth_string).to_time
59
60
  unless store.key?(current_path)
60
61
  store[current_path] = birthtime
61
62
  File.open(store_path, 'w') {|f| YAML.dump(store,f) }
@@ -1,3 +1,3 @@
1
1
  module Logbrarian
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logbrarian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Clink