blinkenstein 0.2.2 → 0.2.3

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.
@@ -21,6 +21,7 @@ module Blinkenstein
21
21
 
22
22
  def update_blink
23
23
  case
24
+ when hours_left == nil then raise "wut"
24
25
  when hours_left < 0 then failure
25
26
  when hours_left < 8 && hours_left >= 0 then panic
26
27
  when hours_left > 8 && hours_left <= 24 then nervous
@@ -1,3 +1,3 @@
1
1
  module Blinkenstein
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -29,9 +29,9 @@ class Eve::SkillQueue < Eve::Base
29
29
  info "Couldn't fetch updates: API is blocked."
30
30
  return -1
31
31
  end
32
- -2
32
+
33
33
  rescue => e
34
- error "Couldn't fetch updates: #{e}'"
34
+ error "Couldn't fetch updates: #{e}"
35
35
  -1
36
36
  end
37
37
 
@@ -33,9 +33,9 @@ module Blinkenstein
33
33
 
34
34
  describe ".hours_left" do
35
35
  it "is showing a failure if something is wrong while calling the API" do
36
- Eve::SkillQueue.any_instance.stub(:hours_left).and_raise("whatever")
36
+ Eve::SkillQueue.any_instance.stub(:refresh).and_raise(RuntimeError)
37
37
  monitor.should_receive(:failure)
38
- monitor.hours_left
38
+ monitor.refresh
39
39
  end
40
40
  end
41
41
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: blinkenstein
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.2
5
+ version: 0.2.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Michael Schmidt
@@ -142,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
142
142
  - !ruby/object:Gem::Version
143
143
  segments:
144
144
  - 0
145
- hash: 308792023685699077
145
+ hash: 878358355829812085
146
146
  version: '0'
147
147
  required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  none: false
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  - !ruby/object:Gem::Version
152
152
  segments:
153
153
  - 0
154
- hash: 308792023685699077
154
+ hash: 878358355829812085
155
155
  version: '0'
156
156
  requirements: []
157
157
  rubyforge_project: