eyecare 0.0.1 → 0.0.2

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: 85d920f2c46d050c6ba3b29fba3ffc550acb12e2
4
- data.tar.gz: 33d3b57878150831a4cf21ab6fae141ebfa92c20
3
+ metadata.gz: 55b305b029d0e5f457a4f2038edfe8b46c828492
4
+ data.tar.gz: 26da6af224ac7e03d6b4f9fdb01010fc2fb3071c
5
5
  SHA512:
6
- metadata.gz: 355fe3521265956c8346cb45e97ada8ae5fd2d3939516a1c9b76704623843d03615178d01fa1f28f4ac7a92a9f792d8e2f222456cb02f6ca4ef89582a1ca8437
7
- data.tar.gz: f28106bc7f99d3b073fdd058a11dd44b25f5b22a3a7b3457db312d128ddbbf1a78ee0ee69b8fe0707df42184eb863a858515916b92e095f4262b4d62144559a3
6
+ metadata.gz: f7157b76deb6ff0afe1fa3c4d1cc20667e270e8c678eab2299086d2d9f25a9c03200460eb0cee53c99cd0ff5ee8bcd86e75a91821001d02912b08c8f0b31f590
7
+ data.tar.gz: 0a7edbd62afd773c072614c63292d42878998f9442f1e7d02e70a84eaa1b97803eaa03165377c894a3a25da1c9e93dc4f0bde33aca0ed3417370353b183922cd
@@ -1,3 +1,3 @@
1
1
  module Eyecare
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/eyecare.rb CHANGED
@@ -31,7 +31,9 @@ module Eyecare
31
31
  def config
32
32
  return @config if @config
33
33
  config_file = File.expand_path('~/.eyecare')
34
- @config = Config.load_from_file(config_file)
34
+ if File.file?(config_file)
35
+ @config = Config.load_from_file(config_file)
36
+ end
35
37
  end
36
38
  end
37
39
 
data/test/alert_test.rb CHANGED
@@ -7,14 +7,14 @@ describe Eyecare::Alert do
7
7
  end
8
8
 
9
9
  it 'is defaulted is when no config' do
10
- alert = Eyecare::Alert.instance
10
+ alert = Eyecare::Alert.send(:new)
11
11
  alert.message.wont_be_empty
12
12
  alert.message.must_equal Eyecare::Alert::DEFAULT_MESSAGE
13
13
  alert.timeout.must_equal Eyecare::Alert::DEFAULT_TIMEOUT
14
14
  end
15
15
 
16
16
  it 'is correctly initialized from config hash' do
17
- alert = Eyecare::Alert.instance.init(config)
17
+ alert = Eyecare::Alert.send(:new).init(config)
18
18
 
19
19
  alert.message.wont_be_empty
20
20
  alert.message.must_equal config[:message]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eyecare
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Viorel Craescu