glider 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f2a899edd3e1a88bce597b043d470104e344731
4
- data.tar.gz: 549117f10db46848320c655774eb331fc3ddc158
3
+ metadata.gz: 7623e04641cd44f819d3dba574c6acb76df1366b
4
+ data.tar.gz: 43aa08d14b103b2803f1837189a4246bd1f264a2
5
5
  SHA512:
6
- metadata.gz: d90c0037c1c3c1d054457239950b0c8b11d2dba873341138984b4d1a62d28c0c4d4afd171b7af95519531d78158ddef4833b9ab2a8f531719e3c8f6c939cd84d
7
- data.tar.gz: 33b206da9c3c8af71250a6ffb456377cfba1d213660dda6e63053cfed1fa45eb19c473f33acc9ce473f748b3744b678d360d6deeb2a5d35077e7e931771f7a76
6
+ metadata.gz: 7e2715a4d6312a9e19a344ba366dbfc81f7c1740d1bb97b7f676193d06b6ce78f75b24c23851010359d1034e8618e257a342b59b80f69a4db749cd3a5fa92e57
7
+ data.tar.gz: 7c38e18337f33379f572ec35e31f92acf792b4e576acddeb67486624a7d47da6e1debf9baad01a2215cfe895e1693ddc22301495ed560c3f0e8da03854e4c563
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -3,4 +3,4 @@ source 'https://rubygems.org'
3
3
  gem 'pry'
4
4
  gem 'aws-sdk'
5
5
  gem 'colorize'
6
- gem 'glider', '0.1.2'#, path: '../pkg/'
6
+ gem 'glider', '0.1.4'#, path: '../pkg/'
@@ -14,9 +14,10 @@ GEM
14
14
  uuidtools (~> 2.1)
15
15
  coderay (1.1.0)
16
16
  colorize (0.6.0)
17
- glider (0.1.2)
17
+ glider (0.1.4)
18
18
  activesupport (>= 4.0.0)
19
- aws-sdk (>= 1.0.0)
19
+ aws-sdk
20
+ json
20
21
  i18n (0.6.5)
21
22
  json (1.8.1)
22
23
  method_source (0.8.2)
@@ -39,5 +40,5 @@ PLATFORMS
39
40
  DEPENDENCIES
40
41
  aws-sdk
41
42
  colorize
42
- glider (= 0.1.2)
43
+ glider (= 0.1.4)
43
44
  pry
@@ -10,9 +10,7 @@ class MySWF < Glider::Component
10
10
  def say_hi(event_name, event, data)
11
11
  case event_name
12
12
  when :workflow_execution_started, :hello_world_activity_timed_out
13
- binding.pry
14
- act = {name: 'hello_world', version: '1.5'}
15
- task.schedule_activity_task act
13
+ task.schedule_activity_task activity(:hello_world, 1.5)
16
14
  when :test_signal
17
15
  # do what?
18
16
  when :hello_world_activity_completed
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: glider 0.1.3 ruby lib
5
+ # stub: glider 0.1.4 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "glider"
9
- s.version = "0.1.3"
9
+ s.version = "0.1.4"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["David Pelaez"]
@@ -9,10 +9,6 @@ module Glider
9
9
  @activities ||= []
10
10
  end
11
11
 
12
- def activity(name, version)
13
- {name: name.to_s, version: version.to_s}
14
- end
15
-
16
12
  def register_activity(name, version, options={})
17
13
  default_options = {
18
14
  :default_task_list => name.to_s,
@@ -11,6 +11,10 @@ module Glider
11
11
  @event = event
12
12
  end
13
13
 
14
+ def activity(name, version)
15
+ {name: name.to_s, version: version.to_s}
16
+ end
17
+
14
18
 
15
19
  class << self
16
20
 
@@ -79,8 +79,10 @@ module Glider
79
79
  nil
80
80
  end
81
81
  end
82
+ return data if data.nil?
82
83
  # try to parse as JSON
83
84
  begin
85
+
84
86
  JSON.parse data
85
87
  rescue JSON::ParserError
86
88
  data
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glider
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Pelaez