stormy-cloud 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/transport.rb +4 -3
- metadata +11 -12
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2741cae7564107346360796f197e638e27fdc985
|
4
|
+
data.tar.gz: d9220b661098ab91a051754c9975b4e0bb36def6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 925c8d977214ab6782d592da5393cb9ffc7b47e654661e8f296f31282eb16eccf6f43c49e2023fb0b9e009696103aa0bb4e95090d375b9fcd5c3ebf0f6236662
|
7
|
+
data.tar.gz: 36a169548431dc5c3b0ad1cdffd4dfd7c700c8e9172b16197e7c931522a05a4d55c33f7c9fe41a860557ec19e0221aff784d1c6e510c483dc6d1146b60c58356
|
data/lib/transport.rb
CHANGED
@@ -2,6 +2,7 @@ require 'digest'
|
|
2
2
|
require 'securerandom'
|
3
3
|
require 'set'
|
4
4
|
require 'thread'
|
5
|
+
require 'json'
|
5
6
|
|
6
7
|
# Define the basic outline of a transport, and provide serialization and stuff
|
7
8
|
# so that code doesn't have to be duplicated in every transport definition.
|
@@ -178,7 +179,7 @@ class StormyCloudTransport
|
|
178
179
|
put_task(task, result)
|
179
180
|
return serialize("OKAY")
|
180
181
|
end
|
181
|
-
|
182
|
+
|
182
183
|
end
|
183
184
|
end
|
184
185
|
|
@@ -212,13 +213,13 @@ class StormyCloudTransport
|
|
212
213
|
# This can be overridden by the specific transport if the protocol used is
|
213
214
|
# such that this mode of serialization is disadvantageous.
|
214
215
|
def serialize(object)
|
215
|
-
|
216
|
+
object.to_json
|
216
217
|
end
|
217
218
|
|
218
219
|
# Unserialize an object which has been serialized using the `serialize`
|
219
220
|
# method.
|
220
221
|
def unserialize(string)
|
221
|
-
|
222
|
+
JSON.load(string)
|
222
223
|
end
|
223
224
|
|
224
225
|
# Return all variables relevant to the job status.
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stormy-cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Vikhyat Korrapati
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-03-26 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: StormyCloud makes writing distributed applications in Ruby a piece of
|
15
14
|
cake.
|
@@ -18,9 +17,6 @@ executables: []
|
|
18
17
|
extensions: []
|
19
18
|
extra_rdoc_files: []
|
20
19
|
files:
|
21
|
-
- lib/stormy-cloud.rb
|
22
|
-
- lib/transport.rb
|
23
|
-
- lib/transports/tcp.rb
|
24
20
|
- dashboard/dash.rb
|
25
21
|
- dashboard/public/images/apple-touch-icon-114x114.png
|
26
22
|
- dashboard/public/images/apple-touch-icon-72x72.png
|
@@ -31,28 +27,31 @@ files:
|
|
31
27
|
- dashboard/public/stylesheets/base.css
|
32
28
|
- dashboard/public/stylesheets/layout.css
|
33
29
|
- dashboard/public/stylesheets/skeleton.css
|
30
|
+
- lib/stormy-cloud.rb
|
31
|
+
- lib/transport.rb
|
32
|
+
- lib/transports/tcp.rb
|
34
33
|
homepage: https://github.com/vikhyat/StormyCloud
|
35
34
|
licenses: []
|
35
|
+
metadata: {}
|
36
36
|
post_install_message:
|
37
37
|
rdoc_options: []
|
38
38
|
require_paths:
|
39
39
|
- lib
|
40
40
|
required_ruby_version: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
41
|
requirements:
|
43
|
-
- -
|
42
|
+
- - ">="
|
44
43
|
- !ruby/object:Gem::Version
|
45
44
|
version: '0'
|
46
45
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
47
|
-
none: false
|
48
46
|
requirements:
|
49
|
-
- -
|
47
|
+
- - ">="
|
50
48
|
- !ruby/object:Gem::Version
|
51
49
|
version: '0'
|
52
50
|
requirements: []
|
53
51
|
rubyforge_project:
|
54
|
-
rubygems_version:
|
52
|
+
rubygems_version: 2.2.0.rc.1
|
55
53
|
signing_key:
|
56
|
-
specification_version:
|
54
|
+
specification_version: 4
|
57
55
|
summary: Ridiculously simple distributed applications.
|
58
56
|
test_files: []
|
57
|
+
has_rdoc:
|