delighted 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a61c272d2e9b5614ae8b289ac046686b89a537dc
4
- data.tar.gz: b4511534ddea1075ff4e82892044eae1d39b6f45
3
+ metadata.gz: 1ddd7eb8a0999c9c75a454b813ac6a75b63e628a
4
+ data.tar.gz: 650f815da8210674fdafe33f92887b887d7cc795
5
5
  SHA512:
6
- metadata.gz: 2da76b95cfa9f4e3f0afb9516683b7d2d0ecd8036e92a8acab663f09d9cf1f1578e1095840919273b16945a8b9ae6088a019a742039548fcddabafa6517c5462
7
- data.tar.gz: eff243c3c5b21dc77fe6985bd4aef5dff12a24f9796343a17ac000e71740b047cb2438c65ca60f5517b6db5bb69ede087d865523ef398aaf5326bfefa34b49ec
6
+ metadata.gz: 9ee26e62ce829b63a28537131c720d7d70c039be0dd76741be1592b087daeb4dde456af832ffe3e822b052768d08f1f41aaf6d81ea8bf58ec51727f4164ccff2
7
+ data.tar.gz: 96bd70d5e234234c63413dee5737bb9d7ec0fa3348e20af6c4fbb3562510a3daca9d4bb6dc647b4ed63d28a2dcc110e1895c4ff0737f25eecbf78b4d4d86fa15
@@ -1,4 +1,6 @@
1
1
  language: ruby
2
+ install:
3
+ - bundle install --retry=3
2
4
  rvm:
3
5
  - 2.0.0
4
6
  - 1.9.3
@@ -1,3 +1,16 @@
1
+ ## 1.5.1 (2015-10-06)
2
+
3
+ Fixes:
4
+
5
+ - Fixed tests that were failing in Ruby 1.8.7 (no changes to library code itself)
6
+
7
+ ## 1.5.0 (2015-09-29)
8
+
9
+ Features:
10
+
11
+ - Add support for listing People who have unsubscribed
12
+ - Add support for listing People whose emails bounced
13
+
1
14
  ## 1.4.0 (Unreleased)
2
15
 
3
16
  Features:
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://img.shields.io/travis/delighted/delighted-ruby.svg)](https://travis-ci.org/delighted/delighted-ruby)
1
+ [![Build Status](https://travis-ci.org/delighted/delighted-ruby.svg?branch=master)](https://travis-ci.org/delighted/delighted-ruby)
2
2
 
3
3
  # Delighted API Ruby Client
4
4
 
@@ -1,3 +1,3 @@
1
1
  module Delighted
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.1"
3
3
  end
@@ -85,7 +85,7 @@ class Delighted::SurveyResponseTest < Delighted::TestCase
85
85
 
86
86
  def test_retrieving_a_survey_response
87
87
  uri = URI.parse("https://api.delightedapp.com/v1/survey_responses/456")
88
- headers = { 'Authorization' => "Basic #{["123abc:"].pack('m0')}", "Accept" => "application/json", 'User-Agent' => "Delighted RubyGem #{Delighted::VERSION}" }
88
+ headers = { 'Authorization' => @auth_header, "Accept" => "application/json", 'User-Agent' => "Delighted RubyGem #{Delighted::VERSION}" }
89
89
  response = Delighted::HTTPResponse.new(200, {}, Delighted::JSON.dump({ :id => '456', :person => '123', :score => 10 }))
90
90
  mock_http_adapter.expects(:request).with(:get, uri, headers).once.returns(response)
91
91
 
@@ -99,7 +99,7 @@ class Delighted::SurveyResponseTest < Delighted::TestCase
99
99
 
100
100
  def test_retrieving_a_survey_response_expand_person
101
101
  uri = URI.parse("https://api.delightedapp.com/v1/survey_responses/456?expand%5B%5D=person")
102
- headers = { 'Authorization' => "Basic #{["123abc:"].pack('m0')}", "Accept" => "application/json", 'User-Agent' => "Delighted RubyGem #{Delighted::VERSION}" }
102
+ headers = { 'Authorization' => @auth_header, "Accept" => "application/json", 'User-Agent' => "Delighted RubyGem #{Delighted::VERSION}" }
103
103
  response = Delighted::HTTPResponse.new(200, {}, Delighted::JSON.dump({ :id => '456', :person => { :id => '123', :email => 'foo@bar.com' }, :score => 10 }))
104
104
  mock_http_adapter.expects(:request).with(:get, uri, headers).once.returns(response)
105
105
 
@@ -115,7 +115,7 @@ class Delighted::SurveyResponseTest < Delighted::TestCase
115
115
 
116
116
  def test_updating_a_survey_response
117
117
  uri = URI.parse("https://api.delightedapp.com/v1/survey_responses/456")
118
- headers = { 'Authorization' => "Basic #{["123abc:"].pack('m0')}", "Accept" => "application/json", 'Content-Type' => 'application/json', 'User-Agent' => "Delighted RubyGem #{Delighted::VERSION}" }
118
+ headers = { 'Authorization' => @auth_header, "Accept" => "application/json", 'Content-Type' => 'application/json', 'User-Agent' => "Delighted RubyGem #{Delighted::VERSION}" }
119
119
  data = Delighted::JSON.dump({ :person => '123', :score => 10 })
120
120
  response = Delighted::HTTPResponse.new(200, {}, Delighted::JSON.dump({ :id => '456', :person => '123', :score => 10 }))
121
121
  mock_http_adapter.expects(:request).with(:put, uri, headers, data).once.returns(response)
@@ -174,7 +174,7 @@ end
174
174
  class Delighted::UnsubscribesTest < Delighted::TestCase
175
175
  def test_listing_unsubscribes
176
176
  uri = URI.parse("https://api.delightedapp.com/v1/unsubscribes")
177
- headers = { 'Authorization' => "Basic #{["123abc:"].pack('m0')}", "Accept" => "application/json", 'User-Agent' => "Delighted RubyGem #{Delighted::VERSION}" }
177
+ headers = { 'Authorization' => @auth_header, "Accept" => "application/json", 'User-Agent' => "Delighted RubyGem #{Delighted::VERSION}" }
178
178
  example_unsub = {:person_id => '4945', :email => 'foo@example.com', :name => nil, :unsubscribed_at => 1440621400}
179
179
  response = Delighted::HTTPResponse.new(200, {}, Delighted::JSON.dump([example_unsub]))
180
180
  mock_http_adapter.expects(:request).with(:get, uri, headers).once.returns(response)
@@ -192,7 +192,7 @@ end
192
192
  class Delighted::BouncesTest < Delighted::TestCase
193
193
  def test_listing_bounces
194
194
  uri = URI.parse("https://api.delightedapp.com/v1/bounces")
195
- headers = { 'Authorization' => "Basic #{["123abc:"].pack('m0')}", "Accept" => "application/json", 'User-Agent' => "Delighted RubyGem #{Delighted::VERSION}" }
195
+ headers = { 'Authorization' => @auth_header, "Accept" => "application/json", 'User-Agent' => "Delighted RubyGem #{Delighted::VERSION}" }
196
196
  example_bounce = {:person_id => '4945', :email => 'foo@example.com', :name => nil, :bounced_at => 1440621400}
197
197
  response = Delighted::HTTPResponse.new(200, {}, Delighted::JSON.dump([example_bounce]))
198
198
  mock_http_adapter.expects(:request).with(:get, uri, headers).once.returns(response)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delighted
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Dodwell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-29 00:00:00.000000000 Z
11
+ date: 2015-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.4.8
126
+ rubygems_version: 2.0.14
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Delighted is the fastest and easiest way to gather actionable feedback from