batsir 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aac6353a29dcec93634b97450bf731b01a6a081c
4
- data.tar.gz: a20726b6fffaf409f04fc0882ecd74538e0e3ddb
3
+ metadata.gz: e0c638dee8bcd20527c6b7d36c97a3eb6f056694
4
+ data.tar.gz: b8d5a064fdbc0fced5c3e7d11ad7fa2c2eeec1c1
5
5
  SHA512:
6
- metadata.gz: 4800a37b000ee355229ebcf4c898e53fda8930edcf4fde588e58d51f593e94f9d6eb54787f19a770593c187effe353dab39dedcf60163ddc099cccbc0afd96a7
7
- data.tar.gz: f26e3943c0819bccaa16ce68e5397bd34b845ed6ca62eb146d992dbf04cfca6fa7a61d22aae8b31caf7e0ce7a39addad35bcb98d114c611c9ea06f99f229f4c2
6
+ metadata.gz: 6a5852788281f4be33448ab8f0c07f73dbbcf70f664a134944747719f1cdc5cf8a84482b9ebe32fee83151d2feb3324b9c260349c25fd5581a9ce748996391c3
7
+ data.tar.gz: 747056a0764d0a60f817fb8cd115cb1075e28caa9d2c87b5c243f0010187fda178bca586712fb1879ea81f2740024989923fee6ce68bc7b28e45c3b5fc99fa43
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.4.1
2
+ -----------
3
+ - Now requires bunny >= 1.0.0.
4
+ - Changed bunny queue usage to reflect changes in bunny gem.
5
+
1
6
  0.4.0
2
7
  -----------
3
8
  - Removes support for MRI 1.9.3
@@ -12,10 +12,8 @@ module Batsir
12
12
  def initialize(options={})
13
13
  super
14
14
  @bunny = Bunny.new(bunny_options).start
15
- @channel = @bunny.channel
16
- @q = @bunny.queue( queue, :durable => durable )
17
- @x = @bunny.exchange( exchange )
18
- @q.bind( @x, :routing_key => queue)
15
+ @channel = @bunny.create_channel
16
+ @q = @channel.queue( queue, :durable => durable )
19
17
 
20
18
  @consumer = consumer_source.call(self, @channel, @q)
21
19
  @consumer.on_delivery() do |delivery_info, metadata, payload|
@@ -11,11 +11,12 @@ module Batsir
11
11
  super(options)
12
12
  @error_strategy = error_strategy.new(self)
13
13
  @bunny = Bunny.new(bunny_options).start
14
- @x = @bunny.exchange( exchange )
14
+ @channel = @bunny.create_channel
15
+ @queue = @channel.queue(queue, durable: durable)
15
16
  end
16
17
 
17
18
  def execute(message)
18
- @x.publish(message, :routing_key => queue)
19
+ @queue.publish(message, :routing_key => queue)
19
20
  end
20
21
 
21
22
  def handle_error(message, error)
@@ -2,7 +2,7 @@ module Batsir
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 4
5
- PATCH = 0
5
+ PATCH = 1
6
6
  BUILD = nil
7
7
  end
8
8
 
metadata CHANGED
@@ -1,143 +1,143 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: batsir
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - J.W. Koelewijn
8
8
  - Bram de Vries
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
  date: 2014-10-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: blockenspiel
16
- version_requirements: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - '>='
19
- - !ruby/object:Gem::Version
20
- version: 0.4.3
21
16
  requirement: !ruby/object:Gem::Requirement
22
17
  requirements:
23
- - - '>='
18
+ - - ">="
24
19
  - !ruby/object:Gem::Version
25
20
  version: 0.4.3
26
- prerelease: false
27
21
  type: :runtime
28
- - !ruby/object:Gem::Dependency
29
- name: celluloid
22
+ prerelease: false
30
23
  version_requirements: !ruby/object:Gem::Requirement
31
24
  requirements:
32
- - - <
25
+ - - ">="
33
26
  - !ruby/object:Gem::Version
34
- version: 0.16.0
27
+ version: 0.4.3
28
+ - !ruby/object:Gem::Dependency
29
+ name: celluloid
35
30
  requirement: !ruby/object:Gem::Requirement
36
31
  requirements:
37
- - - <
32
+ - - "<"
38
33
  - !ruby/object:Gem::Version
39
34
  version: 0.16.0
40
- prerelease: false
41
35
  type: :runtime
42
- - !ruby/object:Gem::Dependency
43
- name: sidekiq
36
+ prerelease: false
44
37
  version_requirements: !ruby/object:Gem::Requirement
45
38
  requirements:
46
- - - '>='
39
+ - - "<"
47
40
  - !ruby/object:Gem::Version
48
- version: '0'
41
+ version: 0.16.0
42
+ - !ruby/object:Gem::Dependency
43
+ name: sidekiq
49
44
  requirement: !ruby/object:Gem::Requirement
50
45
  requirements:
51
- - - '>='
46
+ - - ">="
52
47
  - !ruby/object:Gem::Version
53
48
  version: '0'
54
- prerelease: false
55
49
  type: :runtime
56
- - !ruby/object:Gem::Dependency
57
- name: bunny
50
+ prerelease: false
58
51
  version_requirements: !ruby/object:Gem::Requirement
59
52
  requirements:
60
- - - '>='
53
+ - - ">="
61
54
  - !ruby/object:Gem::Version
62
55
  version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: bunny
63
58
  requirement: !ruby/object:Gem::Requirement
64
59
  requirements:
65
- - - '>='
60
+ - - ">="
66
61
  - !ruby/object:Gem::Version
67
- version: '0'
68
- prerelease: false
62
+ version: 1.0.0
69
63
  type: :runtime
70
- - !ruby/object:Gem::Dependency
71
- name: json
64
+ prerelease: false
72
65
  version_requirements: !ruby/object:Gem::Requirement
73
66
  requirements:
74
- - - '>='
67
+ - - ">="
75
68
  - !ruby/object:Gem::Version
76
- version: '0'
69
+ version: 1.0.0
70
+ - !ruby/object:Gem::Dependency
71
+ name: json
77
72
  requirement: !ruby/object:Gem::Requirement
78
73
  requirements:
79
- - - '>='
74
+ - - ">="
80
75
  - !ruby/object:Gem::Version
81
76
  version: '0'
82
- prerelease: false
83
77
  type: :runtime
84
- - !ruby/object:Gem::Dependency
85
- name: log4r
78
+ prerelease: false
86
79
  version_requirements: !ruby/object:Gem::Requirement
87
80
  requirements:
88
- - - '>='
81
+ - - ">="
89
82
  - !ruby/object:Gem::Version
90
83
  version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: log4r
91
86
  requirement: !ruby/object:Gem::Requirement
92
87
  requirements:
93
- - - '>='
88
+ - - ">="
94
89
  - !ruby/object:Gem::Version
95
90
  version: '0'
96
- prerelease: false
97
91
  type: :runtime
98
- - !ruby/object:Gem::Dependency
99
- name: bundler
92
+ prerelease: false
100
93
  version_requirements: !ruby/object:Gem::Requirement
101
94
  requirements:
102
- - - ~>
95
+ - - ">="
103
96
  - !ruby/object:Gem::Version
104
- version: '1.7'
97
+ version: '0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: bundler
105
100
  requirement: !ruby/object:Gem::Requirement
106
101
  requirements:
107
- - - ~>
102
+ - - "~>"
108
103
  - !ruby/object:Gem::Version
109
104
  version: '1.7'
110
- prerelease: false
111
105
  type: :development
112
- - !ruby/object:Gem::Dependency
113
- name: rake
106
+ prerelease: false
114
107
  version_requirements: !ruby/object:Gem::Requirement
115
108
  requirements:
116
- - - ~>
109
+ - - "~>"
117
110
  - !ruby/object:Gem::Version
118
- version: '10.0'
111
+ version: '1.7'
112
+ - !ruby/object:Gem::Dependency
113
+ name: rake
119
114
  requirement: !ruby/object:Gem::Requirement
120
115
  requirements:
121
- - - ~>
116
+ - - "~>"
122
117
  - !ruby/object:Gem::Version
123
118
  version: '10.0'
124
- prerelease: false
125
119
  type: :development
126
- - !ruby/object:Gem::Dependency
127
- name: rspec
120
+ prerelease: false
128
121
  version_requirements: !ruby/object:Gem::Requirement
129
122
  requirements:
130
- - - '>='
123
+ - - "~>"
131
124
  - !ruby/object:Gem::Version
132
- version: '0'
125
+ version: '10.0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: rspec
133
128
  requirement: !ruby/object:Gem::Requirement
134
129
  requirements:
135
- - - '>='
130
+ - - ">="
136
131
  - !ruby/object:Gem::Version
137
132
  version: '0'
138
- prerelease: false
139
133
  type: :development
140
- description:
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ description:
141
141
  email: jwkoelewijn@gmail.com
142
142
  executables: []
143
143
  extensions: []
@@ -146,60 +146,60 @@ extra_rdoc_files:
146
146
  - LICENSE.txt
147
147
  - README.md
148
148
  files:
149
- - README.md
150
149
  - CHANGES.md
151
150
  - LICENSE.txt
151
+ - README.md
152
152
  - lib/batsir.rb
153
+ - lib/batsir/acceptors/acceptor.rb
154
+ - lib/batsir/acceptors/amqp_acceptor.rb
153
155
  - lib/batsir/amqp.rb
154
156
  - lib/batsir/amqp_consumer.rb
155
157
  - lib/batsir/chain.rb
158
+ - lib/batsir/compiler/stage_worker_compiler.rb
156
159
  - lib/batsir/config.rb
160
+ - lib/batsir/dsl/conditional_notifier_declaration.rb
161
+ - lib/batsir/dsl/dsl_mappings.rb
157
162
  - lib/batsir/errors.rb
158
163
  - lib/batsir/filter.rb
159
164
  - lib/batsir/filter_queue.rb
160
165
  - lib/batsir/log.rb
161
166
  - lib/batsir/logger.rb
162
167
  - lib/batsir/logo.rb
163
- - lib/batsir/registry.rb
164
- - lib/batsir/stage.rb
165
- - lib/batsir/stage_worker.rb
166
- - lib/batsir/version.rb
167
- - lib/batsir/acceptors/acceptor.rb
168
- - lib/batsir/acceptors/amqp_acceptor.rb
169
- - lib/batsir/compiler/stage_worker_compiler.rb
170
- - lib/batsir/dsl/conditional_notifier_declaration.rb
171
- - lib/batsir/dsl/dsl_mappings.rb
172
168
  - lib/batsir/notifiers/amqp_notifier.rb
173
169
  - lib/batsir/notifiers/conditional_notifier.rb
174
170
  - lib/batsir/notifiers/notifier.rb
171
+ - lib/batsir/registry.rb
172
+ - lib/batsir/stage.rb
173
+ - lib/batsir/stage_worker.rb
175
174
  - lib/batsir/strategies/retry_strategy.rb
176
175
  - lib/batsir/strategies/strategy.rb
177
176
  - lib/batsir/transformers/field_transformer.rb
178
177
  - lib/batsir/transformers/json_input_transformer.rb
179
178
  - lib/batsir/transformers/json_output_transformer.rb
180
179
  - lib/batsir/transformers/transformer.rb
180
+ - lib/batsir/version.rb
181
181
  homepage: http://github.com/jwkoelewijn/batsir
182
182
  licenses:
183
183
  - MIT
184
184
  metadata: {}
185
- post_install_message:
185
+ post_install_message:
186
186
  rdoc_options: []
187
187
  require_paths:
188
188
  - lib
189
189
  required_ruby_version: !ruby/object:Gem::Requirement
190
190
  requirements:
191
- - - '>='
191
+ - - ">="
192
192
  - !ruby/object:Gem::Version
193
193
  version: '0'
194
194
  required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  requirements:
196
- - - '>='
196
+ - - ">="
197
197
  - !ruby/object:Gem::Version
198
198
  version: '0'
199
199
  requirements: []
200
- rubyforge_project:
201
- rubygems_version: 2.1.9
202
- signing_key:
200
+ rubyforge_project:
201
+ rubygems_version: 2.2.2
202
+ signing_key:
203
203
  specification_version: 4
204
204
  summary: Batsir is a platform for stage based operation queue execution
205
205
  test_files: []