lense 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lense.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8ff208904ee8710807453d0b7bb1036a3a29152
4
- data.tar.gz: adde9f7b469edbe14758e4ca76fdbca2c7534528
3
+ metadata.gz: b8f1863ab74f7fcaeddc9890d6c7e239a1055b42
4
+ data.tar.gz: c45ad95e65b72e5ff7fece8327638aa5c4bff1ce
5
5
  SHA512:
6
- metadata.gz: 5c3287edbbb74e9667fbe352ede4783a85f04a3728542546967cf30fa3d65925ed2c551ad54a27a652b36aca7267593fa6cdc5bf5ddff55d374783263a289511
7
- data.tar.gz: 5282014601f53c1024faafac2ad8bec6b49f01c290934b0cdc2f47ca8093a04805e40acae1ecd2ee3408b268d2bdb66cf971b673ceeb5afeacf79702a68c1867
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.8'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lense
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta