lacerda 2.1.1.beta1 → 2.1.1.beta2

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: f5b6bfc6390bc90c789349c93e96894aa53d61e8
4
- data.tar.gz: b57071e7d0f1db5bdead05bf6e0c12476615e046
3
+ metadata.gz: 39a347bdb5101a94360ff2a4f892bee4ceb851ea
4
+ data.tar.gz: c2a16cdd6c01dcd0999906fe85ab99c4526f1ea6
5
5
  SHA512:
6
- metadata.gz: 302db6dec1512bce5de10bf72c8015b242569629a6ec00cc7020d58247d20c9e0d1212267ffa56cc00da377c6706386306d1cc52996be0bceb93b9ef40c34fef
7
- data.tar.gz: 2b9123df1a9a4b22031251d3ba1abc4add607040c7835847c56fa17a4d7c01aefbaf5be3792481fde18dc86188fb8acbd55d45fc9844d4bff331aa5aeaf424eb
6
+ metadata.gz: cecf11b701f9f4c66dc9695d19402226fd9d486605dcfecad79c389f8e6c28df1a78699ef01a67180129dbc65ea0c424ec4ebbe31eab507776157eff89609c58
7
+ data.tar.gz: 5baf2687130904f0207702dabf9e1657b4b0f857c735fe9263009eb639fd0943fb75e916b7e8569d6c264efd2d69fe48853f42099313a749b389248bb6b31caa
@@ -38,12 +38,12 @@ module Lacerda
38
38
  reporter.try(:check_consumer, consumer)
39
39
  consumer.consumed_objects.each do |object|
40
40
  if object.publisher
41
- reporter.try(:object_publisher_existing, object, true)
41
+ reporter.try(:object_publisher_existing, object.name, object.publisher.name, true)
42
42
  next
43
43
  else
44
- reporter.try(:object_publisher_existing, object, false)
45
44
  missing_publishers[object.publisher_name.camelize] ||= []
46
45
  missing_publishers[object.publisher_name.camelize] << consumer.name.camelize
46
+ reporter.try(:object_publisher_existing, object.name, object.publisher_name.camelize, false)
47
47
  end
48
48
  end
49
49
  end
@@ -29,7 +29,7 @@ module Lacerda
29
29
  # Called before all consumed objects are iterated
30
30
  end
31
31
 
32
- def object_publisher_existing(consumed_object, is_published)
32
+ def object_publisher_existing(consumed_object_name, publisher_name, is_published)
33
33
  # Called after a consumed object was inspected (does a publish specification
34
34
  # for this object exist?)
35
35
  end
@@ -45,8 +45,8 @@ module Lacerda
45
45
  @current_consumer = @consume_group.describe("#{service.try(:name)} consuming")
46
46
  end
47
47
 
48
- def object_publisher_existing(object, valid)
49
- @current_consumer.it "#{object.name} from #{object.try(:publisher).try(:name)}" do
48
+ def object_publisher_existing(object_name, publisher_name, valid)
49
+ @current_consumer.it "#{object_name} from #{publisher_name}" do
50
50
  expect(valid).to be true
51
51
  end
52
52
  end
@@ -43,7 +43,7 @@ module Lacerda
43
43
  @io.print "\nObjects consumed by #{consuming_service.name.camelize}: "
44
44
  end
45
45
 
46
- def object_publisher_existing(consumed_object, is_published)
46
+ def object_publisher_existing(consumed_object_name, publisher_name, is_published)
47
47
  return unless @verbose
48
48
  if is_published
49
49
  @io.print ".".green
@@ -1,3 +1,3 @@
1
1
  module Lacerda
2
- VERSION = '2.1.1.beta1'
2
+ VERSION = '2.1.1.beta2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lacerda
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1.beta1
4
+ version: 2.1.1.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jannis Hermanns