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 +4 -4
- data/lib/lacerda/infrastructure.rb +2 -2
- data/lib/lacerda/reporter.rb +1 -1
- data/lib/lacerda/reporters/rspec.rb +2 -2
- data/lib/lacerda/reporters/stdout.rb +1 -1
- data/lib/lacerda/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39a347bdb5101a94360ff2a4f892bee4ceb851ea
|
4
|
+
data.tar.gz: c2a16cdd6c01dcd0999906fe85ab99c4526f1ea6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/lacerda/reporter.rb
CHANGED
@@ -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(
|
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(
|
49
|
-
@current_consumer.it "#{
|
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(
|
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
|
data/lib/lacerda/version.rb
CHANGED