glider 0.1.7 → 0.1.8

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: 4c292fcb2cd2e9d5c19fadb681c6d251fe323f63
4
- data.tar.gz: 11d350b7239ef1f60fa75d81212bf4faa32ec06f
3
+ metadata.gz: 348c37e55b17b355e700f896173206ede9e8557f
4
+ data.tar.gz: dba1082d1f350f29412e3e210393e5cd5fa1bacd
5
5
  SHA512:
6
- metadata.gz: d3b7d5739559fd0982c66ac41e01a4cbf023623768ba4ad6a40ef210bc5e6e52a6f1e2e26f44dd6ca7d3cbdc646db98374ec9c0683707431d1e0e0b4ece49a59
7
- data.tar.gz: df0d2bd7ee79b7a62f1062c63d8e70500e3bce764e824cf638448338ce8924c9c9a01549f96523137cf77dddcee70120e68c0dc5e9e09bf2431f1fd381815f3c
6
+ metadata.gz: d6f9a14a2070192f19d4ee8dba45aa8de3014453d1fa71046e9c06bb7bf0a1ea871b39bd792a2b01753e30bf9e01bf3ebad384f1134807e3285495ca2a26f7fb
7
+ data.tar.gz: d45cd3aa011a23e26fe373ae8c0f3249d6c96b771d915b711d135c22d28a23c6021b1da89bdfbe8b9d2cb567e115e3fe422375a88f7cbc9e2477006aa51f3e1c
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gem 'aws-sdk'
4
- gem 'activesupport', '>= 4.0.0', require: 'active_support/inflector'
4
+ gem 'activesupport', '>= 4.0.0'
5
5
  gem 'json'
6
6
  # Add dependencies to develop your gem here.
7
7
  # Include everything needed to run rake, tests, features, etc.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.1.8
@@ -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.6'#, path: '../pkg/'
6
+ gem 'glider', '0.1.8'#, path: '../pkg/'
@@ -14,7 +14,7 @@ GEM
14
14
  uuidtools (~> 2.1)
15
15
  coderay (1.1.0)
16
16
  colorize (0.6.0)
17
- glider (0.1.6)
17
+ glider (0.1.8)
18
18
  activesupport (>= 4.0.0)
19
19
  aws-sdk
20
20
  json
@@ -40,5 +40,5 @@ PLATFORMS
40
40
  DEPENDENCIES
41
41
  aws-sdk
42
42
  colorize
43
- glider (= 0.1.6)
43
+ glider (= 0.1.8)
44
44
  pry
@@ -8,6 +8,8 @@ class MySWF < Glider::Component
8
8
  register_activity :hello_world, '1.5'
9
9
 
10
10
  def hello_world(input)
11
+ binding.pry
12
+ $logger.warn input[:message]
11
13
  task.fail! reason: "BECAUSE!" and task.fail! and return
12
14
  $logger.warn "Executing hello_world."
13
15
  sleep 2
@@ -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.7 ruby lib
5
+ # stub: glider 0.1.8 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "glider"
9
- s.version = "0.1.7"
9
+ s.version = "0.1.8"
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"]
@@ -4,7 +4,9 @@
4
4
  require 'json'
5
5
  require 'aws-sdk'
6
6
  require 'active_support/inflector'
7
- #require 'act'
7
+ # For hash with indifferent access
8
+ require 'active_support/core_ext/hash'
9
+
8
10
 
9
11
  require 'glider/utils'
10
12
 
@@ -38,7 +38,7 @@ module Glider
38
38
  else
39
39
  # try to parse input as json
40
40
  begin
41
- input = JSON.parse input
41
+ input = ActiveSupport::HashWithIndifferentAccess.new JSON.parse(input)
42
42
  rescue JSON::ParserError
43
43
  input
44
44
  end
@@ -83,7 +83,7 @@ module Glider
83
83
  # try to parse as JSON
84
84
  begin
85
85
 
86
- JSON.parse data
86
+ ActiveSupport::HashWithIndifferentAccess.new JSON.parse(data)
87
87
  rescue JSON::ParserError
88
88
  data
89
89
  end
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Pelaez