amazon-ecs 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 0.5.4 2008-01-02
2
+ ----------------
3
+ * Add Response#error_code
4
+
1
5
  0.5.3 2007-09-12
2
6
  ----------------
3
7
  * send_request to use default options.
data/README CHANGED
@@ -12,7 +12,7 @@ If in the future, there is a change in REST XML output structure,
12
12
  no changes will be required on <tt>amazon-ecs</tt> library,
13
13
  instead you just need to change the element path.
14
14
 
15
- Version: 0.5.1
15
+ Version: 0.5.4
16
16
 
17
17
  == INSTALLATION
18
18
 
@@ -81,6 +81,10 @@ http://docs.amazonwebservices.com/AWSEcommerceService/2006-09-13/
81
81
  To get a sample of Amazon REST response XML output, use AWSZone.com scratch pad:
82
82
  http://www.awszone.com/scratchpads/aws/ecs.us/index.aws
83
83
 
84
+ == SOURCE CODES
85
+
86
+ * http://github.com/jugend/amazon-ecs/tree/master
87
+
84
88
  == LINKS
85
89
 
86
90
  * http://amazon-ecs.rubyforge.org
data/lib/amazon/ecs.rb CHANGED
@@ -129,6 +129,11 @@ module Amazon
129
129
  Element.get(@doc, "error/message")
130
130
  end
131
131
 
132
+ # Return error code
133
+ def error_code
134
+ Element.get(@doc, "error/code")
135
+ end
136
+
132
137
  # Return an array of Amazon::Element item objects.
133
138
  def items
134
139
  unless @items
@@ -2,7 +2,7 @@ require File.dirname(__FILE__) + '/../test_helper'
2
2
 
3
3
  class Amazon::EcsTest < Test::Unit::TestCase
4
4
 
5
- AWS_ACCESS_KEY_ID = ''
5
+ AWS_ACCESS_KEY_ID = '1ZD53WRGR730ZCVWBSG2'
6
6
  raise "Please specify set your AWS_ACCESS_KEY_ID" if AWS_ACCESS_KEY_ID.empty?
7
7
 
8
8
  Amazon::Ecs.configure do |options|
@@ -64,7 +64,7 @@ class Amazon::EcsTest < Test::Unit::TestCase
64
64
  small_image = item.get_hash("smallimage")
65
65
 
66
66
  assert_equal 3, small_image.keys.size
67
- assert_match "0974514055.01", small_image[:url]
67
+ assert_match ".jpg", small_image[:url]
68
68
  assert_equal "75", small_image[:height]
69
69
  assert_equal "59", small_image[:width]
70
70
 
metadata CHANGED
@@ -1,58 +1,66 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.2
3
- specification_version: 1
4
2
  name: amazon-ecs
5
3
  version: !ruby/object:Gem::Version
6
- version: 0.5.3
7
- date: 2007-09-12 00:00:00 +08:00
8
- summary: Generic Amazon E-commerce Service (ECS) REST API. Supports ECS 4.0.
9
- require_paths:
10
- - lib
11
- email: herryanto@pluitsolutions.com
12
- homepage: http://amazon-ecs.rubyforge.net/
13
- rubyforge_project:
14
- description:
15
- autorequire: name
16
- default_executable:
17
- bindir: bin
18
- has_rdoc: true
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
20
- requirements:
21
- - - ">"
22
- - !ruby/object:Gem::Version
23
- version: 0.0.0
24
- version:
4
+ version: 0.5.4
25
5
  platform: ruby
26
- signing_key:
27
- cert_chain:
28
- post_install_message:
29
6
  authors:
30
7
  - Herryanto Siatono
31
- files:
32
- - lib/amazon
33
- - lib/amazon/ecs.rb
34
- - README
35
- - CHANGELOG
36
- test_files:
37
- - test/amazon/ecs_test.rb
38
- rdoc_options: []
39
-
40
- extra_rdoc_files:
41
- - README
42
- - CHANGELOG
43
- executables: []
44
-
45
- extensions: []
46
-
47
- requirements: []
8
+ autorequire: name
9
+ bindir: bin
10
+ cert_chain: []
48
11
 
12
+ date: 2009-01-24 00:00:00 +08:00
13
+ default_executable:
49
14
  dependencies:
50
15
  - !ruby/object:Gem::Dependency
51
16
  name: hpricot
17
+ type: :runtime
52
18
  version_requirement:
53
- version_requirements: !ruby/object:Gem::Version::Requirement
19
+ version_requirements: !ruby/object:Gem::Requirement
54
20
  requirements:
55
21
  - - ">="
56
22
  - !ruby/object:Gem::Version
57
23
  version: "0.4"
58
24
  version:
25
+ description:
26
+ email: herryanto@pluitsolutions.com
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files:
32
+ - README
33
+ - CHANGELOG
34
+ files:
35
+ - lib/amazon
36
+ - lib/amazon/ecs.rb
37
+ - README
38
+ - CHANGELOG
39
+ has_rdoc: true
40
+ homepage: http://amazon-ecs.rubyforge.net/
41
+ post_install_message:
42
+ rdoc_options: []
43
+
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: "0"
51
+ version:
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: "0"
57
+ version:
58
+ requirements: []
59
+
60
+ rubyforge_project:
61
+ rubygems_version: 1.3.0
62
+ signing_key:
63
+ specification_version: 2
64
+ summary: Generic Amazon E-commerce Service (ECS) REST API. Supports ECS 4.0.
65
+ test_files:
66
+ - test/amazon/ecs_test.rb