zenhob-hcl 0.2.0 → 0.2.1

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.
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