asin 2.0.0 → 2.0.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: 00b2605291551bb77e09ebf2bf7f60fa0d7ec6c3
4
- data.tar.gz: 63d7a88fffc477049a4e1419e3d761133f35cc5f
3
+ metadata.gz: b5afa79d2292ab370f7b23c23c77478aec60e774
4
+ data.tar.gz: 6ec3e8c4d1f0655f352306e588b820a9311d5703
5
5
  SHA512:
6
- metadata.gz: 0250269c613eca2fc754638bedeb58b5b05719d954e2e57534e76fb16863972bff9bce3e3604808060ad9108b2039b66d7d447d76b4c4ac2d6c18c3f9743084a
7
- data.tar.gz: 4bcb447e52f21214adb88c0e3b19d96399e3305fa02a1b95352f98a0eab394b55fc974d164c5d536d54f1e5a149301ce54a6b2d752f9298e29c1c6481b9db657
6
+ metadata.gz: 56af1187bc103b98ae66f46eb45cc8b369b10f423fc0967e8136b961ac48cbbc6dbbfc3d88d91acf6167cfbaf894bcccb03e52d594a1c1e3593e7519ebe44eb4
7
+ data.tar.gz: 6e187cd6425784758c75169e8c0e147f5e048d4698eca5f2e56a94930f801296c34e64a0da5c01cc4564365256b2ca6f6821f5aa1c5081e156cf2182ac55725c
@@ -1,4 +1,4 @@
1
- script: "bundle exec rake"
1
+ script: "CODECLIMATE_REPO_TOKEN=eb04e2a7fa1767ae9055bcb6d74aee731b3ada7eff6dad170cedadca3d649fb7 bundle exec rake"
2
2
  rvm:
3
3
  - 2.0.0
4
4
  - 2.1.0
@@ -1,3 +1,7 @@
1
+ ## 2.0.1
2
+
3
+ * get rid of OpenSSL deprecation (davelacy) https://github.com/phoet/asin/pull/36
4
+
1
5
  ## 2.0.0
2
6
 
3
7
  * configurable items are no longer supported, in favor of Hashie::Rash, see upgrading instructions
data/Gemfile CHANGED
@@ -1,9 +1,11 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- # Specify your gem's dependencies in asin.gemspec
4
3
  gemspec
5
4
 
6
5
  group :development do
7
6
  gem 'pry-plus', platforms: :ruby
8
- gem 'coveralls'
7
+ end
8
+
9
+ group :test do
10
+ gem "codeclimate-test-reporter", require: false
9
11
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- asin (1.2.0)
4
+ asin (2.0.0)
5
5
  confiture (>= 0.1)
6
6
  crack (>= 0.3)
7
7
  hashie (>= 1.1)
@@ -15,16 +15,11 @@ GEM
15
15
  binding_of_caller (0.7.2)
16
16
  debug_inspector (>= 0.0.1)
17
17
  bond (0.5.1)
18
+ codeclimate-test-reporter (0.3.0)
19
+ simplecov (>= 0.7.1, < 1.0.0)
18
20
  coderay (1.1.0)
19
- colorize (0.5.8)
20
21
  columnize (0.3.6)
21
22
  confiture (0.1.4)
22
- coveralls (0.6.7)
23
- colorize
24
- multi_json (~> 1.3)
25
- rest-client
26
- simplecov (>= 0.7)
27
- thor
28
23
  crack (0.3.1)
29
24
  debug_inspector (0.0.2)
30
25
  debugger (1.6.6)
@@ -33,7 +28,8 @@ GEM
33
28
  debugger-ruby_core_source (~> 1.3.2)
34
29
  debugger-linecache (1.2.0)
35
30
  debugger-ruby_core_source (1.3.2)
36
- diff-lcs (1.1.3)
31
+ diff-lcs (1.2.5)
32
+ docile (1.1.3)
37
33
  hashie (2.0.5)
38
34
  httpclient (2.3.0.1)
39
35
  httpi (2.1.0)
@@ -44,8 +40,7 @@ GEM
44
40
  json
45
41
  json (1.8.1)
46
42
  method_source (0.8.2)
47
- mime-types (1.23)
48
- multi_json (1.7.6)
43
+ multi_json (1.10.0)
49
44
  pry (0.9.12.6)
50
45
  coderay (~> 1.0)
51
46
  method_source (~> 0.8)
@@ -77,23 +72,21 @@ GEM
77
72
  rake (0.9.2.2)
78
73
  rash (0.4.0)
79
74
  hashie (~> 2.0.0)
80
- rest-client (1.6.7)
81
- mime-types (>= 1.16)
82
- rspec (2.11.0)
83
- rspec-core (~> 2.11.0)
84
- rspec-expectations (~> 2.11.0)
85
- rspec-mocks (~> 2.11.0)
86
- rspec-core (2.11.1)
87
- rspec-expectations (2.11.3)
88
- diff-lcs (~> 1.1.3)
89
- rspec-mocks (2.11.3)
75
+ rspec (2.14.1)
76
+ rspec-core (~> 2.14.0)
77
+ rspec-expectations (~> 2.14.0)
78
+ rspec-mocks (~> 2.14.0)
79
+ rspec-core (2.14.8)
80
+ rspec-expectations (2.14.5)
81
+ diff-lcs (>= 1.1.3, < 2.0)
82
+ rspec-mocks (2.14.6)
90
83
  rubyntlm (0.3.4)
91
- simplecov (0.7.1)
92
- multi_json (~> 1.0)
93
- simplecov-html (~> 0.7.1)
94
- simplecov-html (0.7.1)
84
+ simplecov (0.8.2)
85
+ docile (~> 1.1.0)
86
+ multi_json
87
+ simplecov-html (~> 0.8.0)
88
+ simplecov-html (0.8.0)
95
89
  slop (3.5.0)
96
- thor (0.18.1)
97
90
  vcr (2.2.5)
98
91
  webmock (1.8.11)
99
92
  addressable (>= 2.2.7)
@@ -106,10 +99,10 @@ PLATFORMS
106
99
 
107
100
  DEPENDENCIES
108
101
  asin!
109
- coveralls
102
+ codeclimate-test-reporter
110
103
  httpclient (>= 2.2.3)
111
104
  pry-plus
112
- rake (~> 0.9.2.2)
113
- rspec (~> 2.11.0)
114
- vcr (~> 2.2.5)
115
- webmock (~> 1.8.7)
105
+ rake (~> 0.9.2)
106
+ rspec (~> 2.11)
107
+ vcr (~> 2.2)
108
+ webmock (~> 1.8)
data/README.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  [![Build Status](https://img.shields.io/travis/phoet/asin/master.svg)](https://travis-ci.org/phoet/asin)
4
4
  [![Code Climate](https://img.shields.io/codeclimate/github/phoet/asin.svg)](https://codeclimate.com/github/phoet/asin)
5
- [![Coverage Status](https://img.shields.io/coveralls/phoet/asin/master.svg)](https://coveralls.io/r/phoet/asin?branch=master)
5
+ [![Coverage Status](http://img.shields.io/codeclimate/coverage/github/phoet/asin.svg)](https://codeclimate.com/github/phoet/asin)
6
+
6
7
 
7
8
  ASIN is a simple, extensible wrapper for parts of the REST-API of Amazon Product Advertising API (aka Associates Web Service aka Amazon E-Commerce Service).
8
9
 
@@ -10,35 +11,35 @@ For more information on the REST calls, have a look at the whole [Amazon E-Comme
10
11
 
11
12
  Have a look at the [RDOC](http://rdoc.info/projects/phoet/asin) for this project, if you like browsing some docs.
12
13
 
13
- The gem runs smoothly with Rails 3 and is tested against multiple rubies. See *.travis.yml* for details.
14
+ The gem runs smoothly with Rails and is tested against multiple rubies. See *.travis.yml* for details.
14
15
 
15
16
 
16
17
  ## Upgrading from Version 1.x
17
18
 
18
- Version 2 removes all the SimpleXXX classes in favor of Hashie::Rash.
19
+ Version 2 removes all the SimpleXXX classes in favor of [Hashie::Rash](https://github.com/tcocca/rash).
19
20
 
20
- The old api is available if you require the ASIN::Adapter
21
+ The old API is available if you require `ASIN::Adapter`:
21
22
 
22
23
  require 'asin'
23
24
  require 'asin/adapter'
24
25
 
25
- It's also a good starting point for looking into writing your own API adapter.
26
+ It's also a good starting point for looking into writing your own asin-adapter.
26
27
 
27
28
 
28
29
  ## Installation
29
30
 
30
31
  gem install asin
31
- gem install httpclient # optional, see HTTPI
32
+ gem install curb # optional, see HTTPI
32
33
 
33
34
  or in your Gemfile:
34
35
 
35
36
  gem 'asin'
36
- gem 'httpclient' # optional, see HTTPI
37
+ gem 'curb' # optional, see HTTPI
37
38
 
38
39
 
39
40
  ## Configuration
40
41
 
41
- Rails style initializer (config/initializers/asin.rb):
42
+ Rails style initializer (`config/initializers/asin.rb`):
42
43
 
43
44
  ASIN::Configuration.configure do |config|
44
45
  config.secret = 'your-secret'
@@ -46,7 +47,7 @@ Rails style initializer (config/initializers/asin.rb):
46
47
  config.associate_tag = 'your-tag'
47
48
  end
48
49
 
49
- Have a look at ASIN::Configuration class for all the details.
50
+ Have a look at `ASIN::Configuration` class for all the details.
50
51
 
51
52
 
52
53
  ## Usage
@@ -139,7 +140,7 @@ See the Confiture documentation for different configuration styles.
139
140
 
140
141
  ## License
141
142
 
142
- "THE BEER-WARE LICENSE" (Revision 42):
143
- [ps@nofail.de](mailto:ps@nofail.de) wrote this file. As long as you retain this notice you
144
- can do whatever you want with this stuff. If we meet some day, and you think
145
- this stuff is worth it, you can buy me a beer in return Peter Schröder
143
+ "THE (extended) BEER-WARE LICENSE" (Revision 42.0815): [phoet](mailto:ps@nofail.de) contributed to this project.
144
+
145
+ As long as you retain this notice you can do whatever you want with this stuff.
146
+ If we meet some day, and you think this stuff is worth it, you can buy me some beers in return.
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  $:.push File.expand_path("../lib", __FILE__)
3
2
  require "asin/version"
4
3
 
@@ -28,8 +27,8 @@ Gem::Specification.new do |s|
28
27
 
29
28
  s.add_development_dependency('httpclient', '>= 2.2.3')
30
29
 
31
- s.add_development_dependency('rake', '~> 0.9.2.2')
32
- s.add_development_dependency('vcr', '~> 2.2.5')
33
- s.add_development_dependency('webmock', '~> 1.8.7')
34
- s.add_development_dependency('rspec', '~> 2.11.0')
30
+ s.add_development_dependency('rake', '~> 0.9.2')
31
+ s.add_development_dependency('vcr', '~> 2.2')
32
+ s.add_development_dependency('webmock', '~> 1.8')
33
+ s.add_development_dependency('rspec', '~> 2.11')
35
34
  end
@@ -8,7 +8,7 @@ require 'rash'
8
8
  module ASIN
9
9
  module Client
10
10
 
11
- DIGEST = OpenSSL::Digest::Digest.new('sha256')
11
+ DIGEST = OpenSSL::Digest.new('sha256')
12
12
  PATH = '/onca/xml'
13
13
 
14
14
  # Convenience method to create an ASIN client.
@@ -1,3 +1,3 @@
1
1
  module ASIN
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
@@ -1,3 +1,9 @@
1
+ # coverage is supposed to be the first thing in the file!
2
+ if ENV['CODECLIMATE_REPO_TOKEN']
3
+ require 'codeclimate-test-reporter'
4
+ CodeClimate::TestReporter.start
5
+ end
6
+
1
7
  # WORKAROUND (ps) for http://travis-ci.org/#!/phoet/asin/jobs/1794039
2
8
  require "net/http"
3
9
  unless Net.const_defined? :HTTPSession
@@ -5,9 +11,6 @@ unless Net.const_defined? :HTTPSession
5
11
  class Net::HTTPSession < Net::HTTP::HTTPSession; end
6
12
  end
7
13
 
8
- require 'coveralls'
9
- Coveralls.wear!
10
-
11
14
  require 'pry' unless defined? JRUBY_VERSION
12
15
  require 'rspec'
13
16
  require 'asin'
@@ -17,9 +20,11 @@ require 'httpclient'
17
20
  require 'vcr'
18
21
  require 'httpi'
19
22
 
20
- VCR.configure do |c|
21
- c.cassette_library_dir = 'spec/cassettes'
22
- c.hook_into :webmock
23
+
24
+ VCR.configure do |config|
25
+ config.cassette_library_dir = 'spec/cassettes'
26
+ config.hook_into :webmock
27
+ config.ignore_hosts 'codeclimate.com'
23
28
  end
24
29
 
25
30
  ANY_ASIN = '1430218150'
metadata CHANGED
@@ -1,155 +1,155 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Schröder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-18 00:00:00.000000000 Z
11
+ date: 2014-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: crack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: hashie
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rash
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0.4'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0.4'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: httpi
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0.9'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.9'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: confiture
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0.1'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.1'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: httpclient
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: 2.2.3
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: 2.2.3
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.9.2.2
103
+ version: 0.9.2
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.9.2.2
110
+ version: 0.9.2
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: vcr
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 2.2.5
117
+ version: '2.2'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 2.2.5
124
+ version: '2.2'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: webmock
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ~>
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.8.7
131
+ version: '1.8'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ~>
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 1.8.7
138
+ version: '1.8'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rspec
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ~>
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 2.11.0
145
+ version: '2.11'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ~>
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 2.11.0
152
+ version: '2.11'
153
153
  description: Amazon Simple INterface - Support for ItemLookup, SimilarityLookup, Search,
154
154
  BrowseNode and Cart Operations.
155
155
  email:
@@ -158,11 +158,11 @@ executables: []
158
158
  extensions: []
159
159
  extra_rdoc_files: []
160
160
  files:
161
- - .document
162
- - .gitignore
163
- - .irbrc
164
- - .rspec
165
- - .travis.yml
161
+ - ".document"
162
+ - ".gitignore"
163
+ - ".irbrc"
164
+ - ".rspec"
165
+ - ".travis.yml"
166
166
  - CHANGELOG.md
167
167
  - Gemfile
168
168
  - Gemfile.lock
@@ -210,17 +210,17 @@ require_paths:
210
210
  - lib
211
211
  required_ruby_version: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - '>='
213
+ - - ">="
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  required_rubygems_version: !ruby/object:Gem::Requirement
217
217
  requirements:
218
- - - '>='
218
+ - - ">="
219
219
  - !ruby/object:Gem::Version
220
220
  version: '0'
221
221
  requirements: []
222
222
  rubyforge_project: asin
223
- rubygems_version: 2.0.3
223
+ rubygems_version: 2.2.2
224
224
  signing_key:
225
225
  specification_version: 4
226
226
  summary: Amazon Simple INterface - Support for ItemLookup, SimilarityLookup, Search,