ebay_enterprise_affiliate_network 1.0.2 → 1.0.3

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: 58d531f00e611e15ceb3c03a7c752b45d76527ad
4
- data.tar.gz: 7f645d6d7a77957cc9c1a5c92584118d475953a1
3
+ metadata.gz: 4c03768826f38c7cf156af4f52427e75d0e7e0b3
4
+ data.tar.gz: bfb3897be2225572be3b364c9f07d9b0fbae0696
5
5
  SHA512:
6
- metadata.gz: bc4988f2a460c64b1c6dd254530a98b0ab762d13b79abcab3a8aa303df1777b6cbab2849c10ec3edf1535b272e58cf1fca902078bf30f21f6e8edb1303d18f34
7
- data.tar.gz: 317c8737f2e48003a1eb2fbf063b66dd41a95e218a75cea2a1ec2a5f736aade07f9e494653093c830f59fe9c71df829828010633beab508334781f7866d3aacc
6
+ metadata.gz: 83113a73a2e360b2ac849e24643eb48287f673bde6b462b166f99b3089db9c9a94067d2dbcf9116586a313d71d6306330aa873bc412f67b2846091d0dd714398
7
+ data.tar.gz: d4d798b934cdf425850a6e8aed908f48c33cdf00d8487be84b08ac826d49b69d36d34979c70f778874306ef376f69cf1dae06190a85c16143f53c563572d95bc
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - 1.9.3
4
+ - 2.1.1
5
+ - 2.0.0
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  s.add_dependency "htmlentities", "~> 4.3", ">= 4.3.2"
24
24
  s.add_dependency "httparty", "~> 0.13"
25
25
  s.add_dependency "json", "~> 1.8", ">= 1.8.1"
26
- s.add_dependency "recursive-open-struct", "~> 0.5", ">= 0.5.0"
26
+ s.add_dependency "recursive-open-struct", "~> 1.0"
27
27
 
28
28
  s.add_development_dependency "bundler", "~> 1.3"
29
29
  s.add_development_dependency "rake"
@@ -1,3 +1,3 @@
1
1
  module EBayEnterpriseAffiliateNetwork
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -76,7 +76,7 @@ class EBayEnterpriseAffiliateNetworkTest < Test::Unit::TestCase
76
76
  stub_request(
77
77
  :get,
78
78
  "http://api.pepperjamnetwork.com/20120402/publisher/advertiser?apiKey=#{EBayEnterpriseAffiliateNetwork.api_key}&format=json&status=foo").
79
- with(headers: {}).
79
+ with(headers: { "Accept" => "*/*", "Accept-Encoding" => /.*/, "User-Agent" => /.*/ }).
80
80
  to_return(
81
81
  status: [400, "foo is not a valid program status option."],
82
82
  body: json_response,
@@ -103,7 +103,7 @@ class EBayEnterpriseAffiliateNetworkTest < Test::Unit::TestCase
103
103
  stub_request(
104
104
  :get,
105
105
  "http://api.pepperjamnetwork.com/20120402/publisher/advertiser/category?apiKey=#{EBayEnterpriseAffiliateNetwork.api_key}&format=json").
106
- with(headers: {}).
106
+ with(headers: { "Accept" => "*/*", "Accept-Encoding" => /.*/, "User-Agent" => /.*/ }).
107
107
  to_return(
108
108
  status: [500, "Internal Server Error"],
109
109
  body: json_response,
@@ -132,7 +132,7 @@ class EBayEnterpriseAffiliateNetworkTest < Test::Unit::TestCase
132
132
  stub_request(
133
133
  :get,
134
134
  "http://api.pepperjamnetwork.com/20120402/publisher/advertiser/category?apiKey=#{EBayEnterpriseAffiliateNetwork.api_key}&format=json").
135
- with(headers: {}).
135
+ with(headers: { "Accept" => "*/*", "Accept-Encoding" => /.*/, "User-Agent" => /.*/ }).
136
136
  to_return(
137
137
  status: [401, "Authentication error."],
138
138
  body: json_response,
@@ -165,7 +165,7 @@ class EBayEnterpriseAffiliateNetworkTest < Test::Unit::TestCase
165
165
  stub_request(
166
166
  :get,
167
167
  "http://api.pepperjamnetwork.com/20120402/publisher/advertiser/category?apiKey=#{EBayEnterpriseAffiliateNetwork.api_key}&format=json").
168
- with(headers: {}).
168
+ with(headers: { "Accept" => "*/*", "Accept-Encoding" => /.*/, "User-Agent" => /.*/ }).
169
169
  to_return(status: 200, body: json_response, headers: {})
170
170
 
171
171
  response = publisher.get("advertiser/category")
@@ -260,19 +260,19 @@ class EBayEnterpriseAffiliateNetworkTest < Test::Unit::TestCase
260
260
  stub_request(
261
261
  :get,
262
262
  "http://api.pepperjamnetwork.com/20120402/publisher/advertiser/category?apiKey=#{EBayEnterpriseAffiliateNetwork.api_key}&format=json").
263
- with(headers: {}).
263
+ with(headers: { "Accept" => "*/*", "Accept-Encoding" => /.*/, "User-Agent" => /.*/ }).
264
264
  to_return(status: 200, body: response_page_1, headers: {})
265
265
 
266
266
  response = publisher.get("advertiser/category")
267
267
  stub_request(
268
268
  :get,
269
269
  "http://api.pepperjamnetwork.com/20120402/publisher/advertiser/category?apiKey=#{EBayEnterpriseAffiliateNetwork.api_key}&format=json&page=2").
270
- with(headers: {}).
270
+ with(headers: { "Accept" => "*/*", "Accept-Encoding" => /.*/, "User-Agent" => /.*/ }).
271
271
  to_return(status: 200, body: response_page_2, headers: {})
272
272
  stub_request(
273
273
  :get,
274
274
  "http://api.pepperjamnetwork.com/20120402/publisher/advertiser/category?apiKey=#{EBayEnterpriseAffiliateNetwork.api_key}&format=json&page=3").
275
- with(headers: {}).
275
+ with(headers: { "Accept" => "*/*", "Accept-Encoding" => /.*/, "User-Agent" => /.*/ }).
276
276
  to_return(status: 200, body: response_page_3, headers: {})
277
277
  all_categories = response.all
278
278
  check_results(response)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ebay_enterprise_affiliate_network
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Razvan Marescu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-05 00:00:00.000000000 Z
11
+ date: 2016-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -90,20 +90,14 @@ dependencies:
90
90
  requirements:
91
91
  - - "~>"
92
92
  - !ruby/object:Gem::Version
93
- version: '0.5'
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: 0.5.0
93
+ version: '1.0'
97
94
  type: :runtime
98
95
  prerelease: false
99
96
  version_requirements: !ruby/object:Gem::Requirement
100
97
  requirements:
101
98
  - - "~>"
102
99
  - !ruby/object:Gem::Version
103
- version: '0.5'
104
- - - ">="
105
- - !ruby/object:Gem::Version
106
- version: 0.5.0
100
+ version: '1.0'
107
101
  - !ruby/object:Gem::Dependency
108
102
  name: bundler
109
103
  requirement: !ruby/object:Gem::Requirement
@@ -221,10 +215,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
215
  version: '0'
222
216
  requirements: []
223
217
  rubyforge_project:
224
- rubygems_version: 2.2.2
218
+ rubygems_version: 2.4.5
225
219
  signing_key:
226
220
  specification_version: 4
227
221
  summary: eBay Enterprise Affiliate Network API
228
222
  test_files:
229
223
  - test/ebay_enterprise_affiliate_network_test.rb
230
224
  - test/test_helper.rb
225
+ has_rdoc: