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 +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG.md +13 -0
- data/README.md +1 -1
- data/lib/delighted/version.rb +1 -1
- data/test/delighted_test.rb +5 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ddd7eb8a0999c9c75a454b813ac6a75b63e628a
|
4
|
+
data.tar.gz: 650f815da8210674fdafe33f92887b887d7cc795
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ee26e62ce829b63a28537131c720d7d70c039be0dd76741be1592b087daeb4dde456af832ffe3e822b052768d08f1f41aaf6d81ea8bf58ec51727f4164ccff2
|
7
|
+
data.tar.gz: 96bd70d5e234234c63413dee5737bb9d7ec0fa3348e20af6c4fbb3562510a3daca9d4bb6dc647b4ed63d28a2dcc110e1895c4ff0737f25eecbf78b4d4d86fa15
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -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://
|
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
|
|
data/lib/delighted/version.rb
CHANGED
data/test/delighted_test.rb
CHANGED
@@ -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' =>
|
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' =>
|
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' =>
|
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' =>
|
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' =>
|
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.
|
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-
|
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.
|
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
|