customerio 0.3.1 → 0.4.0

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
- customerio (0.3.0)
4
+ customerio (0.3.1)
5
5
  httparty (>= 0.5, < 1.0)
6
6
 
7
7
  GEM
@@ -36,6 +36,10 @@ module Customerio
36
36
  create_or_update(attributes)
37
37
  end
38
38
 
39
+ def delete(customer_id)
40
+ verify_response(self.class.delete(customer_path(customer_id)))
41
+ end
42
+
39
43
  def track(*args)
40
44
  attributes = extract_attributes(args)
41
45
 
@@ -1,3 +1,3 @@
1
1
  module Customerio
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.0"
3
3
  end
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.3.1
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-01-15 00:00:00.000000000 Z
12
+ date: 2013-02-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty