active_projection 0.5.0.rc4 → 0.5.0.rc5

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: b9efdd612a791bf02b6a1f3f809ffffca7c7841b
4
- data.tar.gz: 8596080a556b2d9639534923c00589cb55cc9235
3
+ metadata.gz: 51dfbbf02862a9291b6f5b62e33d5ab31e6fd535
4
+ data.tar.gz: 2aed950ec6c990a874b6993e92ea0daa8c2c4f1c
5
5
  SHA512:
6
- metadata.gz: 11fe3536a9b6318bbd5a34970cf2a949c5c0c9ab13f5c0e2436c03d19e1183289737567de9b4c96dcbddd026c0b69710a2ff9321e126eb3ac4ba64c5c9954629
7
- data.tar.gz: f32df5da5a87329fe6e5c47a9027788460bf28c56b78245eb0bd9fc7843ac26c86d3dbcdaeb474dbba7807b036f98cc23a88c391660ed0d3a0c7b743cd64569e
6
+ metadata.gz: d780749ac6eb26892aaff66a017cd1b5ffa08d293a9bea25f3ced95445ff032879ca3870f7c39fb4328fe681ee57c870dcdef3ad37a461663d4868814c48234c
7
+ data.tar.gz: c87f20cb1cd2564251786bfc4951ae469dee49bad44a1bdb726b498afe3cd8a4113ece853a55cba49be477af3cb2cb7b6f74095755318f1c512fe28d775a18a5
@@ -93,7 +93,7 @@ module ActiveProjection
93
93
 
94
94
  def send_projection_notification(event_id, projection, error = nil)
95
95
  message = {event: event_id, projection: projection.class.name}
96
- message.merge error: error.message, backtrace: error.backtrace if error
96
+ message.merge! error: "#{error.class.name}: #{error.message}", backtrace: error.backtrace if error
97
97
  server_side_events_exchange.publish message.to_json
98
98
  end
99
99
 
@@ -1,7 +1,7 @@
1
1
  module ActiveProjection
2
2
  # Returns the version of the currently loaded ActiveProjection as a Gem::Version
3
3
  def self.version
4
- Gem::Version.new '0.5.0.rc4'
4
+ Gem::Version.new '0.5.0.rc5'
5
5
  end
6
6
 
7
7
  module VERSION #:nodoc:
@@ -13,16 +13,7 @@ describe ActiveProjection::ProjectionTypeRegistry do
13
13
  ActiveProjection::ProjectionTypeRegistry.instance.should be
14
14
  end
15
15
 
16
- it 'invokes event handlers' do
17
- headers = {}
18
- event = TestEvent.new
19
- expect_any_instance_of(TestProjection).to receive(:evaluate).with(headers).and_return(true)
20
- expect_any_instance_of(TestProjection).to receive(:invoke).with(event, headers)
21
- ActiveProjection::ProjectionTypeRegistry.process(headers, event)
22
- end
23
-
24
- it 'synchronizes the known projections with the db' do
25
- expect(ActiveProjection::ProjectionRepository).to receive(:ensure_exists).with('TestProjection')
26
- ActiveProjection::ProjectionTypeRegistry.sync_projections
16
+ it 'report projections' do
17
+ ActiveProjection::ProjectionTypeRegistry.projections.count.should eq 1
27
18
  end
28
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_projection
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0.rc4
4
+ version: 0.5.0.rc5
5
5
  platform: ruby
6
6
  authors:
7
7
  - HicknHack Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-22 00:00:00.000000000 Z
11
+ date: 2014-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_event
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.5.0.rc4
19
+ version: 0.5.0.rc5
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
- version: 0.5.0.rc4
26
+ version: 0.5.0.rc5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activerecord
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -159,10 +159,13 @@ executables: []
159
159
  extensions: []
160
160
  extra_rdoc_files: []
161
161
  files:
162
+ - MIT-LICENSE
163
+ - README.md
162
164
  - app/models/active_projection/cached_projection_repository.rb
163
165
  - app/models/active_projection/projection.rb
164
166
  - app/models/active_projection/projection_repository.rb
165
167
  - db/migrate/01_create_projections.rb
168
+ - lib/active_projection.rb
166
169
  - lib/active_projection/autoload.rb
167
170
  - lib/active_projection/event_client.rb
168
171
  - lib/active_projection/projection_type.rb
@@ -170,9 +173,6 @@ files:
170
173
  - lib/active_projection/railtie.rb
171
174
  - lib/active_projection/server.rb
172
175
  - lib/active_projection/version.rb
173
- - lib/active_projection.rb
174
- - README.md
175
- - MIT-LICENSE
176
176
  - spec/factories/event_factory.rb
177
177
  - spec/lib/projection_type_registry_spec.rb
178
178
  - spec/lib/projecton_type_spec.rb
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
199
  version: 1.3.1
200
200
  requirements: []
201
201
  rubyforge_project:
202
- rubygems_version: 2.1.11
202
+ rubygems_version: 2.2.2
203
203
  signing_key:
204
204
  specification_version: 4
205
205
  summary: Projections for Rails Disco