cpi-event-connector 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/cpi_event_connector/generator.rb +1 -1
- data/lib/cpi_event_connector/version.rb +1 -1
- data/spec/event_spec.rb +1 -1
- data/spec/generator_spec.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
@@ -8,7 +8,7 @@ module Cpi
|
|
8
8
|
uid = UUIDTools::UUID.timestamp_create().to_s
|
9
9
|
|
10
10
|
hash = {"outbound_event" =>
|
11
|
-
{"event_type" => event_type, "
|
11
|
+
{"event_type" => event_type, "tenant" => tenant_uid, "root_path" => root_path, "uid" => uid}
|
12
12
|
}
|
13
13
|
|
14
14
|
json = ActiveSupport::JSON.encode(hash)
|
data/spec/event_spec.rb
CHANGED
@@ -54,7 +54,7 @@ enabled: false"
|
|
54
54
|
h = ActiveSupport::JSON.decode(message[:payload])
|
55
55
|
b.stop
|
56
56
|
|
57
|
-
h.should unify({"outbound_event" => {"event_type" => "shipment_shipped", "
|
57
|
+
h.should unify({"outbound_event" => {"event_type" => "shipment_shipped", "tenant" => "stuff", "root_path" => root_path, "uid" => :_x}})
|
58
58
|
end
|
59
59
|
|
60
60
|
it "does not transmit when it is not enabled" do
|
data/spec/generator_spec.rb
CHANGED
@@ -16,7 +16,7 @@ describe Cpi::Generator do
|
|
16
16
|
result = ActiveSupport::JSON.decode(event)
|
17
17
|
|
18
18
|
result["outbound_event"]["event_type"].should == event_type
|
19
|
-
result["outbound_event"]["
|
19
|
+
result["outbound_event"]["tenant"].should == tenant_uid
|
20
20
|
result["outbound_event"]["root_path"].should == root_path
|
21
21
|
result["outbound_event"]["uid"].should_not be_nil
|
22
22
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cpi-event-connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nulogy
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-03-
|
18
|
+
date: 2012-03-05 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rspec
|