customerio 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/lib/customerio/client.rb +4 -0
- data/lib/customerio/version.rb +1 -1
- data/spec/client_spec.rb +7 -0
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/lib/customerio/client.rb
CHANGED
data/lib/customerio/version.rb
CHANGED
data/spec/client_spec.rb
CHANGED
@@ -136,6 +136,13 @@ describe Customerio::Client do
|
|
136
136
|
end
|
137
137
|
end
|
138
138
|
|
139
|
+
describe "#delete" do
|
140
|
+
it "sends a DELETE request to the customer.io's event API" do
|
141
|
+
Customerio::Client.should_receive(:delete).with("/api/v1/customers/5").and_return(response)
|
142
|
+
client.delete(5)
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
139
146
|
describe "#track" do
|
140
147
|
it "sends a POST request to the customer.io's event API" do
|
141
148
|
Customerio::Client.should_receive(:post).with("/api/v1/customers/5/events", anything()).and_return(response)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: customerio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-02-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|