reactionlab 0.0.8 → 0.0.9

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: 5b9284e7ca2d6b6a78bf296497ae8215dd29fa08
4
- data.tar.gz: f272f924789669e2a7733c3b1ba6babe7f80b63f
3
+ metadata.gz: e5eb7684027c043ec9e40ae4ce16e55db8c7d471
4
+ data.tar.gz: f74933df949f13eba7a314c3970c8220cbe09a3c
5
5
  SHA512:
6
- metadata.gz: 5e425860db3d6c915b7af264c329f5af1f44b53a990d75661f72ce1502a6b4c850b3236be1f5c4366600340f837d915e76f3c4ef1816f66536c1e0cab5658452
7
- data.tar.gz: d972778328bae039b98a35e12effdb70c19c97532025cd3f6f500d34d1a337e98655bb16c927ee0b19e42c0c148101d8d48cf4cbc8765499a8b728ab19379ed7
6
+ metadata.gz: 11e926fcc14ed7b65c68130a54947984224929f86a091c2857fa8b098cf59ad3faf65441fccbdcd1af626662b80ff77f6b2812d998af8618f78673c5768ef0c8
7
+ data.tar.gz: 486d181bca7fdd0ee4f762ad47ecc8e46372dc048d1100c16b5517ce958d2c73a0812b3dc9fe0fd4248d2b8baec76f07f0a02ecccf61cbecd68538976a19eb92
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
@@ -8,7 +8,18 @@ class ReactionLab::Client < Sinatra::Base
8
8
  post '/' do
9
9
  data = JSON.parse(request.body.read)
10
10
  content_type :json
11
- JSON.dump(handle(JSON.parse(data['InternalArgs']), JSON.parse(data['ExternalArgs'])))
11
+
12
+ internal_args = {}
13
+ if data['InternalArgs']
14
+ internal_args = JSON.parse(data['InternalArgs'])
15
+ end
16
+
17
+ external_args = {}
18
+ if data['ExternalArgs']
19
+ external_args = JSON.parse(data['ExternalArgs'])
20
+ end
21
+
22
+ JSON.dump(handle(internal_args, external_args))
12
23
  end
13
24
 
14
25
  end
data/reactionlab.gemspec CHANGED
@@ -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: reactionlab 0.0.8 ruby lib
5
+ # stub: reactionlab 0.0.9 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "reactionlab"
9
- s.version = "0.0.8"
9
+ s.version = "0.0.9"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reactionlab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Huie