lense 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lense.rb +2 -2
- 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: b8f1863ab74f7fcaeddc9890d6c7e239a1055b42
|
4
|
+
data.tar.gz: c45ad95e65b72e5ff7fece8327638aa5c4bff1ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4aa59aeb9e7e1398489f38838b12710bb788f5035674dbc13de9cb20411d03c1fdff4123d28916065d3ee8228212ee84f189ec7d831efce2cbbc7c215c2da09
|
7
|
+
data.tar.gz: 5ad9eb118b7f70071683a2d5dbb8451d58843a37975ea9687c4b3d9726b32232f9ab8a76c6bbb9c14593fa04f6742258acc4c1e6710260cb35a7dcb79cbf9900
|
data/lib/lense.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
class LENSE
|
2
2
|
attr_reader :config
|
3
3
|
|
4
|
-
VERSION = '0.1.
|
4
|
+
VERSION = '0.1.9'
|
5
5
|
LENSE_DIR = File.join(ENV['HOME'],'.lense')
|
6
6
|
|
7
7
|
def initialize()
|
8
8
|
Dir.mkdir(LENSE_DIR) unless File.directory?(LENSE_DIR)
|
9
9
|
config_file = File.join(LENSE_DIR,'config')
|
10
10
|
config_str = File.file?(config_file) ? File.read(config_file) : ''
|
11
|
-
@config = Psych.load(config_str)
|
11
|
+
@config = Psych.load(config_str) || {}
|
12
12
|
end
|
13
13
|
|
14
14
|
end
|