logbrarian 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/logbrarian +2 -1
- data/lib/logbrarian/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de9faa2330674e94800f210515feb0d0c79e38bd
|
4
|
+
data.tar.gz: 401fb7c1462c40171cc7e11d4ff572fbcb4ec934
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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) }
|
data/lib/logbrarian/version.rb
CHANGED