Skip to content

Commit f9653b3

Browse files
Housekeeping: fix gemspec description, push request device dupe, dead test option (#147)
- Update gemspec description/summary to mention both Track and Transactional APIs - Remove `device` from SendPushRequest OPTIONAL_FIELDS (already mapped to custom_device) - Remove no-op `json: true` option from test Client initializations
1 parent 1341dfa commit f9653b3

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

customerio.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ require_relative "lib/customerio/version"
55
Gem::Specification.new do |gem|
66
gem.authors = ["John Allison"]
77
gem.email = ["john@customer.io"]
8-
gem.description = "A ruby client for the Customer.io event API."
9-
gem.summary = "A ruby client for the Customer.io event API."
8+
gem.description = "A ruby client for the Customer.io Journeys Track API and Transactional API."
9+
gem.summary = "A ruby client for the Customer.io Journeys Track API and Transactional API."
1010
gem.homepage = "https://customer.io"
1111
gem.license = "MIT"
1212

lib/customerio/requests/send_push_request.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class SendPushRequest
1818
link
1919
sound
2020
custom_data
21-
device
2221
custom_device
2322
].freeze
2423

spec/client_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def json(data)
115115
end
116116

117117
it "sends a PUT request to customer.io's customer API using json headers" do
118-
client = Customerio::Client.new("SITE_ID", "API_KEY", json: true)
118+
client = Customerio::Client.new("SITE_ID", "API_KEY")
119119
body = { id: 5, name: "Bob" }
120120

121121
stub_request(:put, api_uri('/api/v1/customers/5')).
@@ -390,7 +390,7 @@ def json(data)
390390
end
391391

392392
it "sends a POST request as json using json headers" do
393-
client = Customerio::Client.new("SITE_ID", "API_KEY", json: true)
393+
client = Customerio::Client.new("SITE_ID", "API_KEY")
394394
data = { type: "socks", price: "13.99" }
395395
body = { name: "purchase", data: data }
396396

@@ -682,7 +682,7 @@ def json(data)
682682
attr_accessor :client, :attributes
683683

684684
before(:each) do
685-
@client = Customerio::Client.new("SITE_ID", "API_KEY", :json => true)
685+
@client = Customerio::Client.new("SITE_ID", "API_KEY")
686686
@attributes = {
687687
:delivery_id => 'foo',
688688
:device_id => 'bar',
@@ -761,7 +761,7 @@ def json(data)
761761
attr_accessor :client, :attributes
762762

763763
before(:each) do
764-
@client = Customerio::Client.new("SITE_ID", "API_KEY", :json => true)
764+
@client = Customerio::Client.new("SITE_ID", "API_KEY")
765765
@attributes = {
766766
:delivery_id => "abc123"
767767
}
@@ -923,7 +923,7 @@ def json(data)
923923

924924
describe "#merge_customers" do
925925
before(:each) do
926-
@client = Customerio::Client.new("SITE_ID", "API_KEY", :json => true)
926+
@client = Customerio::Client.new("SITE_ID", "API_KEY")
927927
end
928928

929929
it "should raise validation errors on merge params" do

0 commit comments

Comments
 (0)