logbrarian 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/logbrarian +1 -2
- 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: bd2d4bc4110c6529d47f0d5944f4206ca5680419
|
4
|
+
data.tar.gz: 02a0bf4eaebfe078e366c2b0acbc8b30c5d7d2c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3119822dd6842157ea75e0b6bbd310fb82ec7b70c2f2fd7e8c18ea969b260b790231efee4f28bc26062b6e4eec9bbaa66c495f36403c43a90df669d7180ced14
|
7
|
+
data.tar.gz: 0f34a942c15b3e9a04c9a828225864f80341abe29b0cb7a4a4c2cd3fa77769f1c9a3773e77778d55df8e12ba75443d61f4288258845eeae23b57f5e302884d2c
|
data/bin/logbrarian
CHANGED
@@ -55,8 +55,7 @@ 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
|
-
|
59
|
-
birthtime = DateTime.parse(birth_string).to_time
|
58
|
+
birthtime = store[current_path] || Time.now
|
60
59
|
unless store.key?(current_path)
|
61
60
|
store[current_path] = birthtime
|
62
61
|
File.open(store_path, 'w') {|f| YAML.dump(store,f) }
|
data/lib/logbrarian/version.rb
CHANGED