oflow 1.0.0 → 1.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a972ca61c61251a79b699cce7cab0bd3a3810e9
4
- data.tar.gz: 8a995d9f63fcd512f802520cf5097491d6edfbff
3
+ metadata.gz: 04a87a3113ae8267766287e777820b585e3dbab4
4
+ data.tar.gz: 089d1332b1e3dbe1028834c02d3021e9386b99be
5
5
  SHA512:
6
- metadata.gz: 5a31cb845ae3322e83fdcb51e8dead9f12991d6f4b4fdf3daa6f9c60ae04618fde0e220339c4a047370c482a2026d23c4901986ce5c0b4fffc3908c019655245
7
- data.tar.gz: e8bca27d81e86ed6c390146fcc80a2071451f7fb2b0a73269d3a9443267910b382050aad46595560c7b1092684e769a5355d72ccef6b64f8334d559dfdd62cc3
6
+ metadata.gz: f454da9d58703e4bbcffb6ead676ebc374e95eb1ebe93e9b407ca0b15a135958974114450de4d63369520001e0004d68b74237510e0064eabb0ae7ff9daf831d
7
+ data.tar.gz: 52f7450b9edc06c6f275bd1a3510080220de6904a787cb0ee5b30a0220697e622571bf47b2d2b7b06c3a3657cd8a5e81bd3f648a6978b099577cf4a9045ef151
data/README.md CHANGED
@@ -25,7 +25,13 @@ Follow [@peterohler on Twitter](http://twitter.com/#!/peterohler) for announceme
25
25
 
26
26
  ## Release Notes
27
27
 
28
- ### Current Release 1.0
28
+ ### Current Release 1.0.1
29
+
30
+ - Fixed the set option command line feature.
31
+
32
+ - Changed the URL on the GemChart example since RubyGems starting using https.
33
+
34
+ ### Release 1.0
29
35
 
30
36
  - Add an Actors/Task that starts a application and exchanges data using stdout
31
37
  and stdin.
@@ -43,6 +43,7 @@ module OFlow
43
43
  end
44
44
 
45
45
  def set_option(key, value)
46
+ set_options({ key.to_sym => value })
46
47
  end
47
48
 
48
49
  # Return any options that should be displayed as part of a Task.describe().
@@ -133,8 +133,12 @@ module OFlow
133
133
 
134
134
  def set_start(v)
135
135
  if v.is_a?(String)
136
- v = DateTime.parse(v).to_time
137
- v = v - v.gmtoff
136
+ begin
137
+ v = DateTime.parse(v).to_time
138
+ v = v - v.gmtoff
139
+ rescue Exception
140
+ v = Time.now() + v.to_i
141
+ end
138
142
  elsif v.is_a?(Numeric)
139
143
  v = Time.now() + v
140
144
  elsif v.nil?
@@ -143,6 +147,7 @@ module OFlow
143
147
  raise ConfigError.new("Expected start to be a Time or Numeric, not a #{v.class}.")
144
148
  end
145
149
  @start = v
150
+ @pending = @start
146
151
  end
147
152
 
148
153
  def set_stop(v)
@@ -1,5 +1,5 @@
1
1
 
2
2
  module OFlow
3
3
  # Current version of the module.
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Ohler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-08 00:00:00.000000000 Z
11
+ date: 2015-10-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Operations Workflow in Ruby. This implements a workflow/process flow
14
14
  using multiple task nodes that each have their own queues and execution thread.