diff --git a/customerio.gemspec b/customerio.gemspec index 8d7e517..f992cad 100644 --- a/customerio.gemspec +++ b/customerio.gemspec @@ -5,8 +5,8 @@ require_relative "lib/customerio/version" Gem::Specification.new do |gem| gem.authors = ["John Allison"] gem.email = ["john@customer.io"] - gem.description = "A ruby client for the Customer.io event API." - gem.summary = "A ruby client for the Customer.io event API." + gem.description = "A ruby client for the Customer.io Journeys Track API and Transactional API." + gem.summary = "A ruby client for the Customer.io Journeys Track API and Transactional API." gem.homepage = "https://customer.io" gem.license = "MIT" diff --git a/lib/customerio/requests/send_push_request.rb b/lib/customerio/requests/send_push_request.rb index 013451d..a779464 100644 --- a/lib/customerio/requests/send_push_request.rb +++ b/lib/customerio/requests/send_push_request.rb @@ -18,7 +18,6 @@ class SendPushRequest link sound custom_data - device custom_device ].freeze diff --git a/spec/client_spec.rb b/spec/client_spec.rb index 3dbccbe..256be4e 100644 --- a/spec/client_spec.rb +++ b/spec/client_spec.rb @@ -115,7 +115,7 @@ def json(data) end it "sends a PUT request to customer.io's customer API using json headers" do - client = Customerio::Client.new("SITE_ID", "API_KEY", json: true) + client = Customerio::Client.new("SITE_ID", "API_KEY") body = { id: 5, name: "Bob" } stub_request(:put, api_uri('/api/v1/customers/5')). @@ -390,7 +390,7 @@ def json(data) end it "sends a POST request as json using json headers" do - client = Customerio::Client.new("SITE_ID", "API_KEY", json: true) + client = Customerio::Client.new("SITE_ID", "API_KEY") data = { type: "socks", price: "13.99" } body = { name: "purchase", data: data } @@ -682,7 +682,7 @@ def json(data) attr_accessor :client, :attributes before(:each) do - @client = Customerio::Client.new("SITE_ID", "API_KEY", :json => true) + @client = Customerio::Client.new("SITE_ID", "API_KEY") @attributes = { :delivery_id => 'foo', :device_id => 'bar', @@ -761,7 +761,7 @@ def json(data) attr_accessor :client, :attributes before(:each) do - @client = Customerio::Client.new("SITE_ID", "API_KEY", :json => true) + @client = Customerio::Client.new("SITE_ID", "API_KEY") @attributes = { :delivery_id => "abc123" } @@ -923,7 +923,7 @@ def json(data) describe "#merge_customers" do before(:each) do - @client = Customerio::Client.new("SITE_ID", "API_KEY", :json => true) + @client = Customerio::Client.new("SITE_ID", "API_KEY") end it "should raise validation errors on merge params" do