amazon-ecs 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +8 -8
  2. data/CHANGELOG +4 -0
  3. data/Readme.rdoc +9 -21
  4. data/lib/amazon/ecs.rb +4 -2
  5. metadata +3 -3
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmFlM2Q2N2Q3NWMzMDhmMzI2ZjZlYjIyOTM0ZWU1MmRmNjc1ZTg5NQ==
4
+ OTI5MTdjZGRmZTVlOTkwNTg4MDY5MmEzMTY1MTg4NzgwNTYwNDNiNQ==
5
5
  data.tar.gz: !binary |-
6
- OGQwYzFiNTUyMzkxNTUyNzNmOTliNTVmNWM1NjZjNjE3ZGE2ZTE0ZA==
6
+ NTZlZjZkZmY0NDA3ZmQxOTFiZDUwMDRlNmY0MGFlNDg3ODU5MTA4MQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDA2YjEyOGE4ZDE5NGZkYTY0NWU2ZWRhZmUzODJiYTAyODM2YmVhYzY4NWM1
10
- ODc2ZDc0NjMyYmZlMjJkMjZmOTEzYmE1MzQ5NWRmODY1YTVlYzFlMzU4ZWJk
11
- NWFiMmRiOWNmZTVmYzYwNWM2MjFlZGNiNzAwZjQyODNhMGYyZWM=
9
+ MTJiODllZDhlNGM4M2JhNDlmZWNiNGYwYTAzYWUzZjhmMWMwZWJjZDM1MGU0
10
+ MjFiZDc4Yzg0YTkwOTY3YzkzY2M3YWQ5ODEwYjE4NWVjNTUwYTI1ZmI2ZmNk
11
+ MDI2YjQwMDkxYTA0NDdjNWYwMjU4ZDkzNTgzZTE4YjFiOGRmOGM=
12
12
  data.tar.gz: !binary |-
13
- OWFlZjc0YWVlZWYyMmMzMThkNzAwNjUxN2U4MDM3ZDY0Y2E5MmYxY2VkMjc3
14
- NzRiNDBlYzFkMDBmZTVhYjQyNTYxYjYxOTlkN2RmZmJkYWQ4MDEwNzU0OGQ1
15
- ODIzOWEzZDQxZjZkNTJjYTY3NTBkZTkyZTlkYTU4ZDFjMDZiOGE=
13
+ ZjVlMDVjZmU4NmQ5Y2RiOWE3MDEzNGY3ZThmY2NmOTJlNjEzOWZlMTY5MWQ4
14
+ MjIwMzcwYzJmOTBmOTNlYTFiNmM5NWIzYWJhM2UwZTRjNGU2ZmVmOTZmYzBl
15
+ NTJjMDI0YzRhZmU5ZDllNDRkZTA1Y2QxYzgxY2Y0Njk4Mzc1OTM=
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 2.3.1 2015-04-01
2
+ ----------------
3
+ * Add support for Amazon IN and BR
4
+
1
5
  2.3.0 2014-12-05
2
6
  ----------------
3
7
  * Replace deprecated URI::escape with CGI::escape
@@ -1,17 +1,13 @@
1
1
  == amazon-ecs
2
2
 
3
- Generic Product Advertising Ruby API using Nokogiri. Uses Response and
4
- Element wrapper classes for easy access to the REST API XML output.
3
+ Amazon ECS is a generic Ruby wrapper to access Amazon Product Advertising API.
5
4
 
6
- It is generic, so you can easily extend <tt>Amazon::Ecs</tt> to support
7
- other not implemented REST operations; and it is also generic because it just wraps around
8
- Nokogiri element object, instead of providing one-to-one object/attributes to XML elements map.
5
+ You can easily extend the library to support any of the operations supported by the API.
9
6
 
10
- The idea is as the API evolves, there is a change in REST XML output structure,
11
- no updates will be required on <tt>amazon-ecs</tt> gem,
12
- instead you just need to update the element path.
13
-
14
- For HPricot dependency implementation, please install 1.2.x version or checkout v1.2 branch.
7
+ The library wraps around Nokogiri element object. It provides an easy access to the XML response
8
+ structure through an XML path instead of an object attribute. The idea is the API evolves,
9
+ there will be changes to the XML schema. With Amazon ECS, your code will still work, only
10
+ the XML path needs to be updated.
15
11
 
16
12
  == INSTALLATION
17
13
 
@@ -118,25 +114,17 @@ For HPricot dependency implementation, please install 1.2.x version or checkout
118
114
 
119
115
  Amazon::Ecs.other_operation('[item_id]', :param1 => 'abc', :param2 => 'xyz')
120
116
 
121
- Refer to Amazon Product Advertising API documentation for more information
122
- on other valid operations, request parameters and the XML response output:
117
+ Refer to the Amazon Product Advertising API documentation for more information:
123
118
  https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html
124
119
 
125
- To get a sample of Amazon REST XML response output, use AWSZone.com scratch pad:
126
- http://www.awszone.com/scratchpads/aws/ecs.us/index.aws
127
-
128
120
  == SOURCE CODES
129
121
 
130
122
  * http://github.com/jugend/amazon-ecs
131
123
 
132
124
  == CREDITS
133
125
 
134
- Thanks to Dan Milne (http://da.nmilne.com/) for the signed request patch.
135
-
136
- Thanks to Bryan Housel (https://github.com/bhousel/amazon-ecs) for the initial Nokogiri patch
126
+ Thanks to Dan Milne and Bryan Housel for the pull requests.
137
127
 
138
128
  == LICENSE
139
129
 
140
- (The MIT License)
141
-
142
- Copyright (c) 2011 Herryanto Siatono, http://www.siatono.com
130
+ [The MIT License]
@@ -32,7 +32,7 @@ module Amazon
32
32
  class RequestError < StandardError; end
33
33
 
34
34
  class Ecs
35
- VERSION = '2.3.0'
35
+ VERSION = '2.3.1'
36
36
 
37
37
  SERVICE_URLS = {
38
38
  :us => 'http://ecs.amazonaws.com/onca/xml',
@@ -43,7 +43,9 @@ module Amazon
43
43
  :fr => 'http://ecs.amazonaws.fr/onca/xml',
44
44
  :it => 'http://webservices.amazon.it/onca/xml',
45
45
  :cn => 'http://webservices.amazon.cn/onca/xml',
46
- :es => 'http://webservices.amazon.es/onca/xml'
46
+ :es => 'http://webservices.amazon.es/onca/xml',
47
+ :in => 'http://webservices.amazon.in/onca/xml',
48
+ :br => 'http://webservices.amazon.com.br/onca/xml'
47
49
  }
48
50
 
49
51
  OPENSSL_DIGEST_SUPPORT = OpenSSL::Digest.constants.include?( 'SHA256' ) ||
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amazon-ecs
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Herryanto Siatono
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-05 00:00:00.000000000 Z
11
+ date: 2015-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  version: '0'
73
73
  requirements: []
74
74
  rubyforge_project:
75
- rubygems_version: 2.4.5
75
+ rubygems_version: 2.4.6
76
76
  signing_key:
77
77
  specification_version: 2
78
78
  summary: Generic Amazon Product Advertising Ruby API.