zss 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +22 -19
- data/README.md +1 -11
- data/lib/zss.rb +2 -0
- data/lib/zss/client.rb +8 -1
- data/lib/zss/configuration.rb +2 -2
- data/lib/zss/message/message_address.rb +15 -3
- data/lib/zss/message/message_type.rb +3 -11
- data/lib/zss/service.rb +20 -10
- data/lib/zss/socket.rb +19 -1
- data/lib/zss/version.rb +1 -1
- data/spec/unit/message_address_spec.rb +9 -1
- data/spec/unit/message_spec.rb +1 -1
- data/zss.gemspec +19 -13
- metadata +69 -52
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3b8da3123f3885cb835b2c0800da180274aa68c
|
4
|
+
data.tar.gz: d41d309e3e9f883d7bd51a0786e690cef388efcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19d8756d422e2b31e299c8afd6971d381af12788623997f789bea25d32b654ced753a3968195e7e38f76cb3d45766842931d1325dae926345c67f6ef29ea8fae
|
7
|
+
data.tar.gz: 1ab9c2291366feec26837e91b34fd7ef07a2283331327200ad71cf01a379ad1430c7970ad020e823339603aa2b8a75b1a740f879d85a12757f49559265ac694b
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
zss (0.0
|
5
|
-
activesupport
|
6
|
-
daemons
|
7
|
-
em-zeromq
|
8
|
-
ffi-rzmq
|
9
|
-
hashie
|
10
|
-
|
4
|
+
zss (0.1.0)
|
5
|
+
activesupport (~> 4.1)
|
6
|
+
daemons (~> 1.1)
|
7
|
+
em-zeromq (~> 0.5)
|
8
|
+
ffi-rzmq (~> 2.0)
|
9
|
+
hashie (~> 3.2)
|
10
|
+
logger_facade (~> 0.1)
|
11
|
+
msgpack (~> 0.5)
|
11
12
|
|
12
13
|
GEM
|
13
14
|
remote: https://rubygems.org/
|
@@ -38,6 +39,8 @@ GEM
|
|
38
39
|
hashie (3.2.0)
|
39
40
|
i18n (0.6.11)
|
40
41
|
json (1.8.1)
|
42
|
+
logger_facade (0.1.0)
|
43
|
+
hashie (~> 3.2)
|
41
44
|
method_source (0.8.2)
|
42
45
|
minitest (5.4.0)
|
43
46
|
msgpack (0.5.8)
|
@@ -51,20 +54,20 @@ GEM
|
|
51
54
|
rspec-core (~> 3.0.0)
|
52
55
|
rspec-expectations (~> 3.0.0)
|
53
56
|
rspec-mocks (~> 3.0.0)
|
54
|
-
rspec-core (3.0.
|
57
|
+
rspec-core (3.0.3)
|
55
58
|
rspec-support (~> 3.0.0)
|
56
|
-
rspec-expectations (3.0.
|
59
|
+
rspec-expectations (3.0.3)
|
57
60
|
diff-lcs (>= 1.2.0, < 2.0)
|
58
61
|
rspec-support (~> 3.0.0)
|
59
|
-
rspec-mocks (3.0.
|
62
|
+
rspec-mocks (3.0.3)
|
60
63
|
rspec-support (~> 3.0.0)
|
61
|
-
rspec-support (3.0.
|
62
|
-
simplecov (0.
|
64
|
+
rspec-support (3.0.3)
|
65
|
+
simplecov (0.9.0)
|
63
66
|
docile (~> 1.1.0)
|
64
67
|
multi_json
|
65
68
|
simplecov-html (~> 0.8.0)
|
66
69
|
simplecov-html (0.8.0)
|
67
|
-
slop (3.
|
70
|
+
slop (3.6.0)
|
68
71
|
thread_safe (0.3.4)
|
69
72
|
tzinfo (1.2.1)
|
70
73
|
thread_safe (~> 0.1)
|
@@ -73,11 +76,11 @@ PLATFORMS
|
|
73
76
|
ruby
|
74
77
|
|
75
78
|
DEPENDENCIES
|
76
|
-
bump
|
79
|
+
bump (~> 0.5)
|
77
80
|
bundler (~> 1.6)
|
78
|
-
codeclimate-test-reporter
|
79
|
-
pry
|
80
|
-
rake
|
81
|
-
rspec
|
82
|
-
simplecov
|
81
|
+
codeclimate-test-reporter (~> 0.3)
|
82
|
+
pry (~> 0.10)
|
83
|
+
rake (~> 10.3)
|
84
|
+
rspec (~> 3.0)
|
85
|
+
simplecov (~> 0.9)
|
83
86
|
zss!
|
data/README.md
CHANGED
@@ -6,8 +6,7 @@
|
|
6
6
|
|
7
7
|
# ZMQ SOA Suite - Ruby Client & Service
|
8
8
|
|
9
|
-
|
10
|
-
https://github.com/pjanuario/zmq-service-suite
|
9
|
+
This project is a ruby client&service implementation for [ZMQ Service Suite](http://pjanuario.github.io/zmq-service-suite-specs/).
|
11
10
|
|
12
11
|
## Installation
|
13
12
|
|
@@ -76,15 +75,6 @@ PongClient.call("ping/pong", "payload")
|
|
76
75
|
4. Push to the branch (`git push origin my-new-feature`)
|
77
76
|
5. Create new Pull Request
|
78
77
|
|
79
|
-
## Deployment
|
80
|
-
|
81
|
-
Continuous Integration build on master branch is configured to:
|
82
|
-
1. bump gem patch version
|
83
|
-
2. tag version
|
84
|
-
3. deploy to ruby gems
|
85
|
-
|
86
|
-
Major and Minor version are controlled manually, check next chapter.
|
87
|
-
|
88
78
|
## Bump versioning
|
89
79
|
|
90
80
|
We use [bump gem](https://github.com/gregorym/bump) to control gem versioning.
|
data/lib/zss.rb
CHANGED
@@ -3,6 +3,8 @@ require 'active_support/string_inquirer'
|
|
3
3
|
require 'active_support/core_ext/object'
|
4
4
|
require 'active_support/core_ext/hash/indifferent_access'
|
5
5
|
|
6
|
+
require 'logger_facade'
|
7
|
+
|
6
8
|
require_relative 'zss/version'
|
7
9
|
require_relative 'zss/environment'
|
8
10
|
require_relative 'zss/configuration'
|
data/lib/zss/client.rb
CHANGED
@@ -3,6 +3,8 @@ require_relative 'socket'
|
|
3
3
|
module ZSS
|
4
4
|
class Client
|
5
5
|
|
6
|
+
include LoggerFacade::Loggable
|
7
|
+
|
6
8
|
attr_reader :sid, :frontend, :identity, :timeout
|
7
9
|
|
8
10
|
def initialize sid, config = {}
|
@@ -21,7 +23,12 @@ module ZSS
|
|
21
23
|
headers: headers,
|
22
24
|
payload: payload)
|
23
25
|
|
26
|
+
log.info("Request #{request.rid} sent to #{request.address} with #{timeout}s timeout")
|
27
|
+
|
24
28
|
response = socket.call(request, timeout)
|
29
|
+
|
30
|
+
log.info("Received response to #{request.rid} with status #{response.status}")
|
31
|
+
|
25
32
|
fail ZSS::Error.new(response.status, response.payload) if response.is_error?
|
26
33
|
|
27
34
|
response.payload
|
@@ -32,7 +39,7 @@ module ZSS
|
|
32
39
|
def method_missing method, *args
|
33
40
|
# since we cannot use / on method names we replace _ with /
|
34
41
|
verb = method.to_s.gsub('_', '/')
|
35
|
-
payload = args[0]
|
42
|
+
payload = args[0]
|
36
43
|
options = args[1] || {}
|
37
44
|
call verb, payload, options
|
38
45
|
end
|
data/lib/zss/configuration.rb
CHANGED
@@ -2,9 +2,21 @@ module ZSS
|
|
2
2
|
|
3
3
|
class Message
|
4
4
|
|
5
|
-
class
|
6
|
-
|
7
|
-
|
5
|
+
class Address
|
6
|
+
attr_accessor :sid,
|
7
|
+
:sversion,
|
8
|
+
:verb
|
9
|
+
|
10
|
+
def initialize args = {}
|
11
|
+
@sid = args[:sid].try(:upcase)
|
12
|
+
@verb = args[:verb].try(:upcase)
|
13
|
+
@sversion = args[:sversion].try(:upcase) || '*'
|
14
|
+
end
|
15
|
+
|
16
|
+
def to_s
|
17
|
+
"#{sid}:#{sversion}##{verb}"
|
18
|
+
end
|
19
|
+
|
8
20
|
end
|
9
21
|
|
10
22
|
end
|
@@ -2,17 +2,9 @@ module ZSS
|
|
2
2
|
|
3
3
|
class Message
|
4
4
|
|
5
|
-
class
|
6
|
-
|
7
|
-
|
8
|
-
:verb
|
9
|
-
|
10
|
-
def initialize args = {}
|
11
|
-
@sid = args[:sid].try(:upcase)
|
12
|
-
@verb = args[:verb].try(:upcase)
|
13
|
-
@sversion = args[:sversion] || '*'
|
14
|
-
end
|
15
|
-
|
5
|
+
class Type
|
6
|
+
REQ = "REQ"
|
7
|
+
REP = "REP"
|
16
8
|
end
|
17
9
|
|
18
10
|
end
|
data/lib/zss/service.rb
CHANGED
@@ -5,6 +5,8 @@ require_relative 'message/smi'
|
|
5
5
|
module ZSS
|
6
6
|
class Service
|
7
7
|
|
8
|
+
include LoggerFacade::Loggable
|
9
|
+
|
8
10
|
attr_reader :sid, :heartbeat, :backend, :identity
|
9
11
|
|
10
12
|
def initialize(sid, config = {})
|
@@ -24,9 +26,7 @@ module ZSS
|
|
24
26
|
context = EM::ZeroMQ::Context.new(1)
|
25
27
|
fail RuntimeError, 'failed to create create_context' unless context
|
26
28
|
|
27
|
-
|
28
|
-
# puts "Env: #{ZSS::Environment.env}"
|
29
|
-
# puts "Broker: #{backend}"
|
29
|
+
log.info("Starting SID: '#{sid}' ID: '#{identity}' Env: '#{ZSS::Environment.env}' Broker: '#{backend}'")
|
30
30
|
|
31
31
|
EM.run do
|
32
32
|
# handle interrupts
|
@@ -49,8 +49,10 @@ module ZSS
|
|
49
49
|
def stop
|
50
50
|
timer.cancel if timer
|
51
51
|
|
52
|
-
# puts "Stoping SID: '#{sid}' ID: '#{socket.identity}'"
|
53
52
|
EM.add_timer do
|
53
|
+
|
54
|
+
log.info("Stoping SID: '#{sid}' ID: '#{socket.identity}'")
|
55
|
+
|
54
56
|
send Message::SMI.down(sid)
|
55
57
|
socket.disconnect backend
|
56
58
|
EM::stop
|
@@ -93,18 +95,21 @@ module ZSS
|
|
93
95
|
def handle(message)
|
94
96
|
if message.req?
|
95
97
|
handle_request(message)
|
96
|
-
|
97
|
-
|
98
|
+
else
|
99
|
+
log.trace("SMI response received: \n #{message}") if log.is_debug
|
98
100
|
end
|
99
101
|
rescue ZSS::Error => error
|
100
|
-
|
102
|
+
log.error("ZSS::Error raised while processing request: #{error}")
|
101
103
|
reply_error error, message
|
102
104
|
rescue => e
|
103
|
-
|
105
|
+
log.error("Unexpected error occurred while processing request: #{e}")
|
104
106
|
reply_error Error[500], message
|
105
107
|
end
|
106
108
|
|
107
109
|
def handle_request(message)
|
110
|
+
log.info("Handle request for #{message.address}")
|
111
|
+
log.debug("Request message:\n #{message}") if log.is_debug
|
112
|
+
|
108
113
|
if message.address.sid != sid
|
109
114
|
error = Error[404]
|
110
115
|
error.developer_message = "Invalid SID: #{message.address.sid}!"
|
@@ -129,18 +134,23 @@ module ZSS
|
|
129
134
|
end
|
130
135
|
|
131
136
|
def reply(message)
|
132
|
-
#puts "reply #{message}"
|
133
137
|
message.status = 200
|
134
138
|
message.type = Message::Type::REP
|
139
|
+
|
140
|
+
log.info("Reply with status: #{message.status}")
|
141
|
+
log.debug("Reply with message:\n #{message}") if log.is_debug
|
142
|
+
|
135
143
|
send message
|
136
144
|
end
|
137
145
|
|
138
146
|
def send(msg)
|
147
|
+
log.trace("sending: \n #{msg}") if log.is_debug
|
148
|
+
|
139
149
|
frames = msg.to_frames
|
140
150
|
#remove identity frame on request
|
141
151
|
frames.shift if msg.req?
|
142
152
|
success = socket.send_msg(*frames)
|
143
|
-
|
153
|
+
log.error("An Error ocurred while sending message") unless success
|
144
154
|
end
|
145
155
|
|
146
156
|
end
|
data/lib/zss/socket.rb
CHANGED
@@ -4,6 +4,8 @@ require 'timeout'
|
|
4
4
|
module ZSS
|
5
5
|
class Socket
|
6
6
|
|
7
|
+
include LoggerFacade::Loggable
|
8
|
+
|
7
9
|
class Error < StandardError; end
|
8
10
|
class TimeoutError < Socket::Error; end
|
9
11
|
|
@@ -25,10 +27,16 @@ module ZSS
|
|
25
27
|
socket ctx do |sock|
|
26
28
|
begin
|
27
29
|
::Timeout.timeout t do
|
30
|
+
|
31
|
+
log.debug("Request #{request.rid} sent to #{request.address} with #{t}s timeout")
|
28
32
|
send_message sock, request
|
33
|
+
|
34
|
+
log.debug("Waiting for #{request.rid}")
|
29
35
|
response = receive_message(sock)
|
36
|
+
|
30
37
|
end
|
31
38
|
rescue ::Timeout::Error
|
39
|
+
log.debug("Request #{request.rid} exit with timeout after #{t}s")
|
32
40
|
raise ZSS::Socket::TimeoutError, "call timeout after #{t}s"
|
33
41
|
end
|
34
42
|
end
|
@@ -53,12 +61,18 @@ module ZSS
|
|
53
61
|
socket.identity = "#{identity}##{SecureRandom.uuid}"
|
54
62
|
socket.setsockopt(ZMQ::LINGER, 0)
|
55
63
|
socket.connect(socket_address)
|
64
|
+
|
65
|
+
log.debug("#{socket.identity} connected to #{socket_address}")
|
66
|
+
|
56
67
|
yield socket
|
57
68
|
ensure
|
58
69
|
check!(socket.close) if socket
|
59
70
|
end
|
60
71
|
|
61
72
|
def send_message socket, message
|
73
|
+
|
74
|
+
log.debug("Sending:\n #{message}") if log.is_debug
|
75
|
+
|
62
76
|
frames = message.to_frames
|
63
77
|
|
64
78
|
# if it's a reply should send identity
|
@@ -70,7 +84,11 @@ module ZSS
|
|
70
84
|
|
71
85
|
def receive_message socket
|
72
86
|
check! socket.recv_strings(frames = [])
|
73
|
-
Message.parse frames
|
87
|
+
message = Message.parse frames
|
88
|
+
|
89
|
+
log.debug("Receiving: \n #{message}") if log.is_debug
|
90
|
+
|
91
|
+
message
|
74
92
|
end
|
75
93
|
|
76
94
|
def check! result_code
|
data/lib/zss/version.rb
CHANGED
@@ -15,9 +15,17 @@ describe ZSS::Message::Address do
|
|
15
15
|
actual = described_class.new sid: "service", verb: "verb", sversion: 'v.1'
|
16
16
|
expect(actual.sid).to eq("SERVICE")
|
17
17
|
expect(actual.verb).to eq("VERB")
|
18
|
-
expect(actual.sversion).to eq("
|
18
|
+
expect(actual.sversion).to eq("V.1")
|
19
19
|
end
|
20
20
|
|
21
21
|
end
|
22
22
|
|
23
|
+
describe("#to_s") do
|
24
|
+
|
25
|
+
it('returns a address in string format') do
|
26
|
+
actual = described_class.new sid: "service", verb: "verb", sversion: 'v.1'
|
27
|
+
expect(actual.to_s).to eq("SERVICE:V.1#VERB")
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
23
31
|
end
|
data/spec/unit/message_spec.rb
CHANGED
data/zss.gemspec
CHANGED
@@ -8,8 +8,13 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.authors = ["Pedro Januário"]
|
9
9
|
spec.email = ["prnjanuario@gmail.com"]
|
10
10
|
spec.description = %q{ZeroMQ SOA Suite}
|
11
|
-
spec.summary = %q{
|
11
|
+
spec.summary = %q{This project is a ruby client&service implementation for ZMQ Service Suite,
|
12
|
+
check http://pjanuario.github.io/zmq-service-suite-specs/ for more info.}
|
12
13
|
spec.homepage = "https://github.com/pjanuario/zmq-service-suite-ruby"
|
14
|
+
spec.metadata = {
|
15
|
+
"source_code" => "https://github.com/pjanuario/zmq-service-suite-ruby",
|
16
|
+
"issue_tracker" => "https://github.com/pjanuario/zmq-service-suite-ruby/issues"
|
17
|
+
}
|
13
18
|
spec.license = "MIT"
|
14
19
|
|
15
20
|
spec.files = `git ls-files`.split($/)
|
@@ -18,17 +23,18 @@ Gem::Specification.new do |spec|
|
|
18
23
|
spec.require_paths = ["lib"]
|
19
24
|
|
20
25
|
spec.add_development_dependency 'bundler', '~> 1.6'
|
21
|
-
spec.add_development_dependency 'rake'
|
22
|
-
spec.add_development_dependency 'rspec'
|
23
|
-
spec.add_development_dependency 'pry'
|
24
|
-
spec.add_development_dependency 'simplecov'
|
25
|
-
spec.add_development_dependency 'codeclimate-test-reporter'
|
26
|
-
spec.add_development_dependency 'bump'
|
26
|
+
spec.add_development_dependency 'rake', '~> 10.3'
|
27
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
28
|
+
spec.add_development_dependency 'pry', '~> 0.10'
|
29
|
+
spec.add_development_dependency 'simplecov', '~> 0.9'
|
30
|
+
spec.add_development_dependency 'codeclimate-test-reporter', '~> 0.3'
|
31
|
+
spec.add_development_dependency 'bump', '~> 0.5'
|
27
32
|
|
28
|
-
spec.add_dependency 'msgpack'
|
29
|
-
spec.add_dependency 'ffi-rzmq'
|
30
|
-
spec.add_dependency 'activesupport'
|
31
|
-
spec.add_dependency 'hashie'
|
32
|
-
spec.add_dependency 'daemons'
|
33
|
-
spec.add_dependency 'em-zeromq'
|
33
|
+
spec.add_dependency 'msgpack', '~> 0.5'
|
34
|
+
spec.add_dependency 'ffi-rzmq', '~> 2.0'
|
35
|
+
spec.add_dependency 'activesupport', '~> 4.1'
|
36
|
+
spec.add_dependency 'hashie', '~> 3.2'
|
37
|
+
spec.add_dependency 'daemons', '~> 1.1'
|
38
|
+
spec.add_dependency 'em-zeromq', '~> 0.5'
|
39
|
+
spec.add_dependency 'logger_facade', '~> 0.1'
|
34
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pedro Januário
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -28,170 +28,184 @@ dependencies:
|
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '10.3'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '10.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
47
|
+
version: '3.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
54
|
+
version: '3.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: pry
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
61
|
+
version: '0.10'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
68
|
+
version: '0.10'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: simplecov
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
75
|
+
version: '0.9'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
82
|
+
version: '0.9'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: codeclimate-test-reporter
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
89
|
+
version: '0.3'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
96
|
+
version: '0.3'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: bump
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
103
|
+
version: '0.5'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
110
|
+
version: '0.5'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: msgpack
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
117
|
+
version: '0.5'
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
124
|
+
version: '0.5'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: ffi-rzmq
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
131
|
+
version: '2.0'
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
138
|
+
version: '2.0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: activesupport
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - "
|
143
|
+
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
145
|
+
version: '4.1'
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - "
|
150
|
+
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
152
|
+
version: '4.1'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: hashie
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - "
|
157
|
+
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
159
|
+
version: '3.2'
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- - "
|
164
|
+
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: '
|
166
|
+
version: '3.2'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: daemons
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- - "
|
171
|
+
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: '
|
173
|
+
version: '1.1'
|
174
174
|
type: :runtime
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- - "
|
178
|
+
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: '
|
180
|
+
version: '1.1'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: em-zeromq
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- - "
|
185
|
+
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: '0'
|
187
|
+
version: '0.5'
|
188
188
|
type: :runtime
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- - "
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0.5'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: logger_facade
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "~>"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0.1'
|
202
|
+
type: :runtime
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "~>"
|
193
207
|
- !ruby/object:Gem::Version
|
194
|
-
version: '0'
|
208
|
+
version: '0.1'
|
195
209
|
description: ZeroMQ SOA Suite
|
196
210
|
email:
|
197
211
|
- prnjanuario@gmail.com
|
@@ -240,7 +254,9 @@ files:
|
|
240
254
|
homepage: https://github.com/pjanuario/zmq-service-suite-ruby
|
241
255
|
licenses:
|
242
256
|
- MIT
|
243
|
-
metadata:
|
257
|
+
metadata:
|
258
|
+
source_code: https://github.com/pjanuario/zmq-service-suite-ruby
|
259
|
+
issue_tracker: https://github.com/pjanuario/zmq-service-suite-ruby/issues
|
244
260
|
post_install_message:
|
245
261
|
rdoc_options: []
|
246
262
|
require_paths:
|
@@ -260,7 +276,8 @@ rubyforge_project:
|
|
260
276
|
rubygems_version: 2.2.2
|
261
277
|
signing_key:
|
262
278
|
specification_version: 4
|
263
|
-
summary:
|
279
|
+
summary: This project is a ruby client&service implementation for ZMQ Service Suite,
|
280
|
+
check http://pjanuario.github.io/zmq-service-suite-specs/ for more info.
|
264
281
|
test_files:
|
265
282
|
- spec/integration/client_spec.rb
|
266
283
|
- spec/integration/service_spec.rb
|