blockspring 0.0.7 → 0.0.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: 16396dd34ebe0a2627c9364cd791dd3a427a8410
4
- data.tar.gz: e984081b1e0b8eeadd683dc604fea5d1a22df809
3
+ metadata.gz: 34f953f0985abacfe0267dd28ea491c749659b92
4
+ data.tar.gz: a9e79c12e18a67c0854727b6476e477635f83245
5
5
  SHA512:
6
- metadata.gz: 496d10e09a6ec32857c0f5ac207cc0192418f4c6ff88b2b49ab2c26a8334af18ad4b2a663604c89a3f7b41c2a29ae53841702909a71910a0900e5fe4d57ba287
7
- data.tar.gz: 851bfa10d9f389fd07f77ce155910e738972a3b8b0d1bd2d4a97a89ab8e26070d2798d245ba862a40197f0fd5d55f031dd64fca6af905eb04eaabc215124dc81
6
+ metadata.gz: 5fe7599db551fa8bcf7425284f4b22f8e6bb44a34046744145607f46df73e86ebd0cb4a4b5fbe2d5c8b8f86141916f0f71bab06c45927e84403f9660e477cf16
7
+ data.tar.gz: 6648b684bce51dcf8369338a6b2530f07372a3850eb9081019b6204c15c41c548a2bf7d248fa2e8e3e6562f43b776e63be3c047e13852726951454a587ada914
data/README.md CHANGED
@@ -16,13 +16,13 @@ Save the following script to an example.rb file:
16
16
  ```ruby
17
17
  require 'blockspring'
18
18
 
19
- myBlock <- function(request, response){
20
- sum <- request.params["num1"].to_f + request.params["num2"].to_f
19
+ myBlock = lambda do |request, response|
20
+ sum = request.params["num1"].to_f + request.params["num2"].to_f
21
21
 
22
22
  response.addOutput("sum", sum)
23
23
 
24
24
  response.end()
25
- }
25
+ end
26
26
 
27
27
  Blockspring.define(myBlock)
28
28
  ```
@@ -17,5 +17,5 @@ Gem::Specification.new do |spec|
17
17
 
18
18
  spec.add_development_dependency "bundler", "~> 1.6"
19
19
 
20
- spec.add_dependency "rest-client", "= 1.6.7"
20
+ spec.add_dependency "rest-client", "> 1.6.7"
21
21
  end
@@ -59,12 +59,12 @@ module Blockspring
59
59
  end
60
60
  end
61
61
  elsif (
62
- params[var_name].is_a?(Hash) and
63
- params[var_name].has_key?("filename") and
64
- params[var_name]["filename"] and
62
+ params[var_name].is_a?(Hash) and
63
+ params[var_name].has_key?("filename") and
64
+ params[var_name]["filename"] and
65
65
  # either data or url must exist and not be empty
66
66
  (
67
- (params[var_name].has_key?("data") and params[var_name]["data"]) or
67
+ (params[var_name].has_key?("data") and params[var_name]["data"]) or
68
68
  (params[var_name].has_key?("url") and params[var_name]["url"]))
69
69
  )
70
70
  suffix = "-%s" % params[var_name]["filename"]
@@ -176,4 +176,4 @@ module Blockspring
176
176
  puts @result.to_json
177
177
  end
178
178
  end
179
- end
179
+ end
@@ -1,3 +1,3 @@
1
1
  module Blockspring
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blockspring
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Don Pinkus
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-10-29 00:00:00.000000000 Z
13
+ date: 2014-10-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  name: rest-client
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - '='
33
+ - - ">"
34
34
  - !ruby/object:Gem::Version
35
35
  version: 1.6.7
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - '='
40
+ - - ">"
41
41
  - !ruby/object:Gem::Version
42
42
  version: 1.6.7
43
43
  description: Gem for defining Blockspring functions locally.