omf_common 6.1.14.pre.2 → 6.2.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzU3NTYwYjM0OTY2YmZhMjEwMTgwNzQ2NmIzZjZhMDUyMWM1NmEyMw==
4
+ YmYzMTkzNjI2NTdjYmU1YTUwMWNkMGEzNmUyNTY2YTM3OTM1N2U1OQ==
5
5
  data.tar.gz: !binary |-
6
- NmI4NDdhOTFlZWEzODE1ZWZhODY3OWFjZWE1NDUzNDc0YjYyODFkOA==
6
+ YTdiNGY4MTc3NjU5Y2ViYWVhZmNmY2EyZTRhYzY0YWY4NjcxMGQyYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTBkZDI4OWY0ODY4Mjg3ZTkwMTczOTE5YzQzMTk3ZTIxZDlhZjY4YTllNTkz
10
- NzFkY2YxMzEwM2MxMmE2Mzg1Y2QwNTAxM2JmZmJmOWNlYjA4MDUwNjgyOGI3
11
- NDQzM2Y2NjViMjNlNTM3OTk3MDMwYTkwOWJiNTA2ZGZmZjRiNDI=
9
+ NjI5YjliODM3ZWQwM2ZjNTMwNjAxZGU0YTMwMWNmZjcwZjk4OGExNDdhZWU5
10
+ MDlkYWI0Mzg0ZjNiNDY2YjA1MjQzZTcwYzczZDg4YzFlNzI5MjM5YmE2NmJl
11
+ YzI5NzEzMzI5YjUwOWM3NjhiOGJlMjAxMzM2MWNjYjA0YzBiMzU=
12
12
  data.tar.gz: !binary |-
13
- ZWU4MDUxNjZiMzhmNjRkOGFmOWIzZTY2NWViZDk2NjNhZGVmOWM4OWEwNmEx
14
- YzQ1NWNiMWFmNjZiMjhiOTU0NTUzOWEwMzFiNTcyMzk3YWZmZWMzMmQ3YTZl
15
- YjVhYzg3ZGE3YjI0NWIxMGI5ZmY4NWFiYjY1YWM1ZTkxNDcyOTk=
13
+ OWFjYWI5NzE0OTIzM2U2YjBjYzhjYjg3MjVhMWM0MDY1ZGQyN2RkMGY0MWJk
14
+ YjU2NDViNmMxZDU3MTU1NTA0ODRlN2YyMDk0NWU5YjdjZGQ3NDFiMjRjNzMy
15
+ YjY4ZTZmOGZhNzM1ZWU1MTYwZWNhZWQzMjA1ZGNiMWE5ZTNlZGE=
@@ -5,7 +5,18 @@
5
5
 
6
6
  require 'amqp'
7
7
  require 'omf_common/comm/amqp/amqp_topic'
8
- #require 'omf_common/comm/monkey_patches'
8
+
9
+ module AMQP
10
+ class Channel
11
+ def queues
12
+ @queues
13
+ end
14
+
15
+ def exchanges
16
+ @exchanges
17
+ end
18
+ end
19
+ end
9
20
 
10
21
  module OmfCommon
11
22
  class Comm
@@ -135,8 +146,7 @@ module OmfCommon
135
146
  end
136
147
  _reconnect(conn)
137
148
  end
138
- @channel = ::AMQP::Channel.new(connection)
139
- @channel.auto_recovery = true
149
+ @channel = ::AMQP::Channel.new(connection, auto_recovery: true, prefetch: 10)
140
150
 
141
151
  @on_connected_procs.each do |proc|
142
152
  proc.arity == 1 ? proc.call(self) : proc.call
data/omf_common.gemspec CHANGED
@@ -28,11 +28,13 @@ Gem::Specification.new do |s|
28
28
  s.add_development_dependency "mocha"
29
29
 
30
30
  s.add_runtime_dependency "eventmachine"
31
- s.add_runtime_dependency "logging"
31
+ s.add_runtime_dependency "logging", "~> 1.8.2"
32
32
  s.add_runtime_dependency "hashie"
33
33
  s.add_runtime_dependency "oml4r", "~> 2.10.1"
34
- s.add_runtime_dependency "json"
35
- s.add_runtime_dependency "json-jwt"
36
34
  s.add_runtime_dependency "amqp"
37
35
  s.add_runtime_dependency "uuidtools"
36
+
37
+ s.add_runtime_dependency "oj"
38
+ s.add_runtime_dependency "oj_mimic_json"
39
+ s.add_runtime_dependency "json-jwt"
38
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omf_common
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.14.pre.2
4
+ version: 6.2.0.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - NICTA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-20 00:00:00.000000000 Z
11
+ date: 2015-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -98,16 +98,16 @@ dependencies:
98
98
  name: logging
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ! '>='
101
+ - - ~>
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: 1.8.2
104
104
  type: :runtime
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: 1.8.2
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: hashie
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -137,7 +137,7 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: 2.10.1
139
139
  - !ruby/object:Gem::Dependency
140
- name: json
140
+ name: amqp
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ! '>='
@@ -151,7 +151,7 @@ dependencies:
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
- name: json-jwt
154
+ name: uuidtools
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ! '>='
@@ -165,7 +165,7 @@ dependencies:
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
- name: amqp
168
+ name: oj
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - ! '>='
@@ -179,7 +179,21 @@ dependencies:
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
- name: uuidtools
182
+ name: oj_mimic_json
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ! '>='
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ! '>='
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: json-jwt
183
197
  requirement: !ruby/object:Gem::Requirement
184
198
  requirements:
185
199
  - - ! '>='