amazon-ecs 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/amazon/ecs.rb +9 -7
  2. metadata +36 -63
@@ -32,13 +32,13 @@ module Amazon
32
32
  class RequestError < StandardError; end
33
33
 
34
34
  class Ecs
35
- SERVICE_URLS = {:us => 'http://webservices.amazon.com/onca/xml?',
36
- :uk => 'http://webservices.amazon.co.uk/onca/xml?',
37
- :ca => 'http://webservices.amazon.ca/onca/xml?',
38
- :de => 'http://webservices.amazon.de/onca/xml?',
39
- :jp => 'http://webservices.amazon.co.jp/onca/xml?',
40
- :fr => 'http://webservices.amazon.fr/onca/xml?',
41
- :it => 'http://webservices.amazon.it/onca/xml?'
35
+ SERVICE_URLS = {:us => 'http://ecs.amazonaws.com/onca/xml?',
36
+ :uk => 'http://ecs.amazonaws.co.uk/onca/xml?',
37
+ :ca => 'http://ecs.amazonaws.ca/onca/xml?',
38
+ :de => 'http://ecs.amazonaws.de/onca/xml?',
39
+ :jp => 'http://ecs.amazonaws.co.jp/onca/xml?',
40
+ :fr => 'http://ecs.amazonaws.fr/onca/xml?',
41
+ :it => 'http://ecs.amazonaws.it/onca/xml?'
42
42
  }
43
43
 
44
44
  OPENSSL_DIGEST_SUPPORT = OpenSSL::Digest.constants.include?( 'SHA256' ) ||
@@ -235,6 +235,8 @@ module Amazon
235
235
  unless secret_key.nil?
236
236
  request_to_sign="GET\n#{request_host}\n/onca/xml\n#{qs}"
237
237
  signature = "&Signature=#{sign_request(request_to_sign, secret_key)}"
238
+ else
239
+ raise Amazon::RequestError, "Must provide aWS_secret_key to sign request"
238
240
  end
239
241
 
240
242
  "#{request_url}#{qs}#{signature}"
metadata CHANGED
@@ -1,101 +1,74 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: amazon-ecs
3
- version: !ruby/object:Gem::Version
4
- hash: 15
5
- prerelease: false
6
- segments:
7
- - 2
8
- - 0
9
- - 0
10
- version: 2.0.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.1.0
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Herryanto Siatono
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-05-09 00:00:00 +08:00
12
+ date: 2011-08-18 00:00:00.000000000 +08:00
19
13
  default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
22
16
  name: nokogiri
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &2165062420 !ruby/object:Gem::Requirement
25
18
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 7
30
- segments:
31
- - 1
32
- - 4
33
- - 0
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
34
22
  version: 1.4.0
35
23
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: ruby-hmac
39
24
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *2165062420
26
+ - !ruby/object:Gem::Dependency
27
+ name: ruby-hmac
28
+ requirement: &2165061940 !ruby/object:Gem::Requirement
41
29
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 23
46
- segments:
47
- - 0
48
- - 3
49
- - 2
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
50
33
  version: 0.3.2
51
34
  type: :runtime
52
- version_requirements: *id002
35
+ prerelease: false
36
+ version_requirements: *2165061940
53
37
  description: Generic Amazon Product Advertising Ruby API
54
38
  email: herryanto@gmail.com
55
39
  executables: []
56
-
57
40
  extensions: []
58
-
59
- extra_rdoc_files:
41
+ extra_rdoc_files:
60
42
  - README
61
- files:
43
+ files:
62
44
  - README
63
45
  - lib/amazon/ecs.rb
64
46
  - test/amazon/ecs_test.rb
65
47
  has_rdoc: true
66
48
  homepage: https://github.com/jugend/amazon-ecs
67
49
  licenses: []
68
-
69
50
  post_install_message:
70
- rdoc_options:
51
+ rdoc_options:
71
52
  - --inline-source
72
53
  - --charset=UTF-8
73
- require_paths:
54
+ require_paths:
74
55
  - lib
75
- required_ruby_version: !ruby/object:Gem::Requirement
56
+ required_ruby_version: !ruby/object:Gem::Requirement
76
57
  none: false
77
- requirements:
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- hash: 3
81
- segments:
82
- - 0
83
- version: "0"
84
- required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
85
63
  none: false
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- hash: 3
90
- segments:
91
- - 0
92
- version: "0"
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
93
68
  requirements: []
94
-
95
69
  rubyforge_project:
96
- rubygems_version: 1.3.7
70
+ rubygems_version: 1.6.2
97
71
  signing_key:
98
72
  specification_version: 2
99
73
  summary: Generic Amazon Product Advertising Ruby API
100
74
  test_files: []
101
-