barrister-intraprocess 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/lib/barrister-intraprocess.rb +6 -2
- data/lib/barrister-intraprocess/version.rb +1 -1
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NWJiZmZjMzI0NDA5NDRlMjNkMzVhMDA5ODMyZDViMTk2YjVmZmRjZA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
N2QwNzZmZWM1MjkwNTQwM2ViMTA1NTc4OWE1NTc3MWM4MmQzMzFhZQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZjEyOWUwNTA5ZTUxN2QyMzM1NDJjMTE0NzA3MmQ2ZDA1MTI2NDkwNDFmNWZk
|
10
|
+
YzFkYjk4YWU0NzFiOTJjZjhhNDBkNzFmYTUwYTczYTgzNDNkN2EyOTdlNDFh
|
11
|
+
NTVhNjM2OWI0YjM4OWNmMTIxMDhhZGNlOTMzYzA2MWJiNWFhMzU=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YTJkZTIzZGM2MDJmYjQ5YTdlZjRkYTBlYmFmYjllYjkxNjRlZjA2NGQ1NmQ5
|
14
|
+
Y2E5NmU2ODFmMjM3ODNhZjNhOTM0NGE3MGZhZWI2MTY5NzZjNWYwNDVmMWMw
|
15
|
+
NzdmNTJlNWU3MjNmNjdhODA3MDVlYzE1YjQ3OWFlNTIzOWQ4OGI=
|
@@ -8,9 +8,13 @@ module Barrister
|
|
8
8
|
contract = Barrister::contract_from_file(json_path)
|
9
9
|
@server = Barrister::Server.new(contract)
|
10
10
|
|
11
|
+
# in case we are passed a single handler
|
12
|
+
handlers = handlers.kind_of?(Array) ? handlers : [handlers]
|
13
|
+
|
11
14
|
# register each provided handler
|
12
|
-
handlers.each do |
|
13
|
-
|
15
|
+
handlers.each do |handler|
|
16
|
+
iface_name = handler.class.to_s.split('::').last
|
17
|
+
@server.add_handler iface_name, handler
|
14
18
|
end
|
15
19
|
end
|
16
20
|
|
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: barrister-intraprocess
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erin Swenson-Healey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: barrister
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
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
40
|
version: '0'
|
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
47
|
version: '2.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
54
|
version: '2.0'
|
55
55
|
description: Use Barrister RPC to enforce call semantics between client and server
|
@@ -60,8 +60,8 @@ executables: []
|
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
|
-
-
|
64
|
-
-
|
63
|
+
- .gitignore
|
64
|
+
- .rspec
|
65
65
|
- Gemfile
|
66
66
|
- LICENSE.txt
|
67
67
|
- README.md
|
@@ -81,17 +81,17 @@ require_paths:
|
|
81
81
|
- lib
|
82
82
|
required_ruby_version: !ruby/object:Gem::Requirement
|
83
83
|
requirements:
|
84
|
-
- -
|
84
|
+
- - ! '>='
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: '0'
|
87
87
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
|
-
- -
|
89
|
+
- - ! '>='
|
90
90
|
- !ruby/object:Gem::Version
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.2.
|
94
|
+
rubygems_version: 2.2.1
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: An intra-process transport and server-container for Barrister RPC.
|