blockspring 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/blockspring.gemspec +1 -1
- data/lib/blockspring.rb +5 -5
- data/lib/blockspring/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34f953f0985abacfe0267dd28ea491c749659b92
|
4
|
+
data.tar.gz: a9e79c12e18a67c0854727b6476e477635f83245
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
20
|
-
sum
|
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
|
```
|
data/blockspring.gemspec
CHANGED
data/lib/blockspring.rb
CHANGED
@@ -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
|
data/lib/blockspring/version.rb
CHANGED
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.
|
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-
|
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.
|