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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cpi-event-connector (0.0.2)
4
+ cpi-event-connector (0.0.3)
5
5
  activesupport (~> 3.1.1)
6
6
  bunny
7
7
  uuidtools (~> 2.1.2)
@@ -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, "tenant_uid" => tenant_uid, "root_path" => root_path, "uid" => uid}
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)
@@ -1,3 +1,3 @@
1
1
  module Cpi
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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", "tenant_uid" => "stuff", "root_path" => root_path, "uid" => :_x}})
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
@@ -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"]["tenant_uid"].should == tenant_uid
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
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-02 00:00:00 Z
18
+ date: 2012-03-05 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rspec