zenhob-hcl 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION.yml +1 -1
  2. data/hcl.gemspec +1 -1
  3. data/lib/hcl/task.rb +5 -1
  4. metadata +1 -1
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 0
2
+ :patch: 1
3
3
  :major: 0
4
4
  :minor: 2
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{hcl}
5
- s.version = "0.2.0"
5
+ s.version = "0.2.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Zack Hobson"]
@@ -46,7 +46,11 @@ class HCl
46
46
 
47
47
  def start opts
48
48
  day = add opts
49
- DayEntry.from_xml(Task.get("daily/timer/#{day.id}")).first
49
+ if day.running?
50
+ day
51
+ else
52
+ DayEntry.from_xml(Task.get("daily/timer/#{day.id}")).first
53
+ end
50
54
  end
51
55
 
52
56
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zenhob-hcl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zack Hobson