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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 35b83a3eae5de8dca7a8c1b9e7626ea9c5f5456e
4
- data.tar.gz: 119475dc07aae343ad5a1c3113cd8b2f8e991589
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NWJiZmZjMzI0NDA5NDRlMjNkMzVhMDA5ODMyZDViMTk2YjVmZmRjZA==
5
+ data.tar.gz: !binary |-
6
+ N2QwNzZmZWM1MjkwNTQwM2ViMTA1NTc4OWE1NTc3MWM4MmQzMzFhZQ==
5
7
  SHA512:
6
- metadata.gz: f89093d9c2f71a29a02552c5fd574b6b66b9fe5b18eb5b6d1b0beb613c731305bf58c697ee7de1cc582f11a31cbe97a32205843eefbbe7c4506fbd38b8cc3d04
7
- data.tar.gz: abe64c861050180a6cfef2b58d9aa473623a855be3ec8a352b4afa8585ddeccd06dd03076667716b9c3ad95ae329ab0838dc0508e27865c7e4f2bcf918b8c0c7
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 |handler_klass|
13
- @server.add_handler handler_klass.to_s, handler_klass.new
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
 
@@ -1,5 +1,5 @@
1
1
  module Barrister
2
2
  module IntraProcess
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
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.2.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-02-26 00:00:00.000000000 Z
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
- - ".gitignore"
64
- - ".rspec"
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.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.