simple_aws 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.md +12 -0
- data/README.md +26 -26
- data/lib/{aws → simple_aws}/api.rb +4 -4
- data/lib/{aws → simple_aws}/auto_scaling.rb +6 -6
- data/lib/{aws → simple_aws}/call_types/action_param.rb +8 -8
- data/lib/{aws → simple_aws}/cloud_formation.rb +6 -6
- data/lib/{aws → simple_aws}/cloud_front.rb +17 -17
- data/lib/{aws → simple_aws}/cloud_watch.rb +6 -6
- data/lib/{aws → simple_aws}/core/connection.rb +4 -4
- data/lib/{aws → simple_aws}/core/request.rb +2 -2
- data/lib/{aws → simple_aws}/core/response.rb +4 -4
- data/lib/{aws → simple_aws}/core/util.rb +1 -1
- data/lib/{aws → simple_aws}/ec2.rb +6 -6
- data/lib/{aws → simple_aws}/elasti_cache.rb +6 -6
- data/lib/{aws → simple_aws}/elastic_beanstalk.rb +6 -6
- data/lib/{aws → simple_aws}/elb.rb +6 -6
- data/lib/{aws → simple_aws}/iam.rb +6 -6
- data/lib/{aws → simple_aws}/import_export.rb +6 -6
- data/lib/{aws → simple_aws}/map_reduce.rb +6 -6
- data/lib/{aws → simple_aws}/mechanical_turk.rb +5 -5
- data/lib/{aws → simple_aws}/rds.rb +6 -6
- data/lib/{aws → simple_aws}/s3.rb +15 -15
- data/lib/{aws → simple_aws}/ses.rb +6 -6
- data/lib/{aws → simple_aws}/signing/version2.rb +1 -1
- data/lib/{aws → simple_aws}/signing/version3.rb +1 -1
- data/lib/{aws → simple_aws}/sns.rb +6 -6
- data/lib/{aws → simple_aws}/sqs.rb +8 -8
- data/samples/cloud_front.rb +2 -2
- data/samples/ec2.rb +2 -2
- data/samples/elb.rb +2 -2
- data/samples/iam.rb +2 -2
- data/samples/s3.rb +2 -2
- data/samples/s3_batch_download.rb +2 -2
- data/samples/sqs.rb +2 -2
- data/samples/turk.rb +2 -2
- data/simple_aws.gemspec +1 -1
- data/test/{aws → simple_aws}/api_test.rb +3 -3
- data/test/{aws → simple_aws}/auto_scaling_test.rb +5 -5
- data/test/{aws → simple_aws}/call_types/action_param_test.rb +7 -7
- data/test/{aws → simple_aws}/cloud_formation_test.rb +5 -5
- data/test/{aws → simple_aws}/cloud_front_test.rb +11 -11
- data/test/{aws → simple_aws}/cloud_watch_test.rb +5 -5
- data/test/{aws → simple_aws}/core/connection_test.rb +16 -16
- data/test/{aws → simple_aws}/core/request_test.rb +3 -3
- data/test/{aws → simple_aws}/core/response_test.rb +23 -23
- data/test/{aws → simple_aws}/core/util_test.rb +7 -7
- data/test/{aws → simple_aws}/ec2_test.rb +5 -5
- data/test/{aws → simple_aws}/elasti_cache_test.rb +5 -5
- data/test/{aws → simple_aws}/elastic_beanstalk_test.rb +5 -5
- data/test/{aws → simple_aws}/elb_test.rb +5 -5
- data/test/{aws → simple_aws}/iam_test.rb +5 -5
- data/test/{aws → simple_aws}/import_export_test.rb +6 -6
- data/test/{aws → simple_aws}/map_reduce_test.rb +5 -5
- data/test/{aws → simple_aws}/mechanical_turk_test.rb +6 -6
- data/test/{aws → simple_aws}/rds_test.rb +5 -5
- data/test/{aws → simple_aws}/s3_test.rb +14 -14
- data/test/{aws → simple_aws}/ses.rb +6 -6
- data/test/{aws → simple_aws}/signing/version2_test.rb +8 -8
- data/test/{aws → simple_aws}/signing/version3.rb +8 -8
- data/test/{aws → simple_aws}/sns_test.rb +5 -5
- data/test/{aws → simple_aws}/sqs.rb +7 -7
- metadata +82 -81
@@ -1,21 +1,21 @@
|
|
1
1
|
require 'test_helper'
|
2
|
-
require '
|
3
|
-
require '
|
4
|
-
require '
|
2
|
+
require 'simple_aws/api'
|
3
|
+
require 'simple_aws/call_types/action_param'
|
4
|
+
require 'simple_aws/signing/version2'
|
5
5
|
|
6
|
-
describe
|
6
|
+
describe SimpleAWS::Signing::Version2 do
|
7
7
|
|
8
|
-
class SigningTestAPI <
|
8
|
+
class SigningTestAPI < SimpleAWS::API
|
9
9
|
endpoint "aptest"
|
10
10
|
version "2011-01-01"
|
11
11
|
use_https true
|
12
12
|
|
13
|
-
include
|
14
|
-
include
|
13
|
+
include SimpleAWS::CallTypes::ActionParam
|
14
|
+
include SimpleAWS::Signing::Version2
|
15
15
|
end
|
16
16
|
|
17
17
|
it "signs the given request according to Version 2 rules" do
|
18
|
-
|
18
|
+
SimpleAWS::Connection.any_instance.expects(:call).with do |request|
|
19
19
|
params = request.params
|
20
20
|
params.wont_be_nil
|
21
21
|
|
@@ -1,21 +1,21 @@
|
|
1
1
|
require 'test_helper'
|
2
|
-
require '
|
3
|
-
require '
|
4
|
-
require '
|
2
|
+
require 'simple_aws/api'
|
3
|
+
require 'simple_aws/call_types/action_param'
|
4
|
+
require 'simple_aws/signing/version3'
|
5
5
|
|
6
|
-
describe
|
6
|
+
describe SimpleAWS::Signing::Version3 do
|
7
7
|
|
8
|
-
class SigningV3TestAPI <
|
8
|
+
class SigningV3TestAPI < SimpleAWS::API
|
9
9
|
endpoint "aptest"
|
10
10
|
version "2011-01-01"
|
11
11
|
use_https true
|
12
12
|
|
13
|
-
include
|
14
|
-
include
|
13
|
+
include SimpleAWS::CallTypes::ActionParam
|
14
|
+
include SimpleAWS::Signing::Version3
|
15
15
|
end
|
16
16
|
|
17
17
|
it "signs the given request according to Version 3 rules" do
|
18
|
-
|
18
|
+
SimpleAWS::Connection.any_instance.expects(:call).with do |request|
|
19
19
|
params = request.params
|
20
20
|
params.wont_be_nil
|
21
21
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
require 'test_helper'
|
2
|
-
require '
|
2
|
+
require 'simple_aws/sns'
|
3
3
|
|
4
|
-
describe
|
4
|
+
describe SimpleAWS::SNS do
|
5
5
|
|
6
6
|
before do
|
7
|
-
@api =
|
7
|
+
@api = SimpleAWS::SNS.new "key", "secret"
|
8
8
|
end
|
9
9
|
|
10
10
|
it "points to endpoint, default to us-east-1" do
|
@@ -18,7 +18,7 @@ describe AWS::SNS do
|
|
18
18
|
describe "API calls" do
|
19
19
|
|
20
20
|
it "builds and signs calls with ActionParam rules" do
|
21
|
-
|
21
|
+
SimpleAWS::Connection.any_instance.expects(:call).with do |request|
|
22
22
|
params = request.params
|
23
23
|
params.wont_be_nil
|
24
24
|
|
@@ -28,7 +28,7 @@ describe AWS::SNS do
|
|
28
28
|
true
|
29
29
|
end
|
30
30
|
|
31
|
-
obj =
|
31
|
+
obj = SimpleAWS::SNS.new "key", "secret"
|
32
32
|
obj.list_topics
|
33
33
|
end
|
34
34
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
require 'test_helper'
|
2
|
-
require '
|
2
|
+
require 'simple_aws/sqs'
|
3
3
|
|
4
|
-
describe
|
4
|
+
describe SimpleAWS::SQS do
|
5
5
|
|
6
6
|
before do
|
7
|
-
@api =
|
7
|
+
@api = SimpleAWS::SQS.new "key", "secret"
|
8
8
|
end
|
9
9
|
|
10
10
|
it "points to the endpoint" do
|
@@ -18,7 +18,7 @@ describe AWS::SQS do
|
|
18
18
|
describe "API calls" do
|
19
19
|
|
20
20
|
it "builds and signs calls with ActionParam rules" do
|
21
|
-
|
21
|
+
SimpleAWS::Connection.any_instance.expects(:call).with do |request|
|
22
22
|
params = request.params
|
23
23
|
params.wont_be_nil
|
24
24
|
|
@@ -28,12 +28,12 @@ describe AWS::SQS do
|
|
28
28
|
true
|
29
29
|
end
|
30
30
|
|
31
|
-
obj =
|
31
|
+
obj = SimpleAWS::SQS.new "key", "secret"
|
32
32
|
obj.list_queues
|
33
33
|
end
|
34
34
|
|
35
35
|
it "listens for the first parameter to be a queue URL and sets the path appropriately" do
|
36
|
-
|
36
|
+
SimpleAWS::Connection.any_instance.expects(:call).with do |request|
|
37
37
|
params = request.params
|
38
38
|
params.wont_be_nil
|
39
39
|
|
@@ -45,7 +45,7 @@ describe AWS::SQS do
|
|
45
45
|
true
|
46
46
|
end
|
47
47
|
|
48
|
-
obj =
|
48
|
+
obj = SimpleAWS::SQS.new "key", "secret"
|
49
49
|
obj.send_message "http://sqs.us-west-1.amazonaws.com/1234567890/queue_name",
|
50
50
|
"MessageBody" => "This is a message body"
|
51
51
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_aws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-01-
|
12
|
+
date: 2012-01-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
16
|
-
requirement: &
|
16
|
+
requirement: &70128306098780 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.5.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70128306098780
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: httparty
|
27
|
-
requirement: &
|
27
|
+
requirement: &70128306081300 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 0.8.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70128306081300
|
36
36
|
description: SimpleAWS is a clean, simple, and forward compatible library for talking
|
37
37
|
to Amazon's AWS APIs.
|
38
38
|
email:
|
@@ -45,34 +45,35 @@ files:
|
|
45
45
|
- .travis.yml
|
46
46
|
- .yardopts
|
47
47
|
- Gemfile
|
48
|
+
- History.md
|
48
49
|
- MIT_LICENCE
|
49
50
|
- README.md
|
50
51
|
- Rakefile
|
51
|
-
- lib/
|
52
|
-
- lib/
|
53
|
-
- lib/
|
54
|
-
- lib/
|
55
|
-
- lib/
|
56
|
-
- lib/
|
57
|
-
- lib/
|
58
|
-
- lib/
|
59
|
-
- lib/
|
60
|
-
- lib/
|
61
|
-
- lib/
|
62
|
-
- lib/
|
63
|
-
- lib/
|
64
|
-
- lib/
|
65
|
-
- lib/
|
66
|
-
- lib/
|
67
|
-
- lib/
|
68
|
-
- lib/
|
69
|
-
- lib/
|
70
|
-
- lib/
|
71
|
-
- lib/
|
72
|
-
- lib/
|
73
|
-
- lib/
|
74
|
-
- lib/
|
75
|
-
- lib/
|
52
|
+
- lib/simple_aws/api.rb
|
53
|
+
- lib/simple_aws/auto_scaling.rb
|
54
|
+
- lib/simple_aws/call_types/action_param.rb
|
55
|
+
- lib/simple_aws/cloud_formation.rb
|
56
|
+
- lib/simple_aws/cloud_front.rb
|
57
|
+
- lib/simple_aws/cloud_watch.rb
|
58
|
+
- lib/simple_aws/core/connection.rb
|
59
|
+
- lib/simple_aws/core/request.rb
|
60
|
+
- lib/simple_aws/core/response.rb
|
61
|
+
- lib/simple_aws/core/util.rb
|
62
|
+
- lib/simple_aws/ec2.rb
|
63
|
+
- lib/simple_aws/elasti_cache.rb
|
64
|
+
- lib/simple_aws/elastic_beanstalk.rb
|
65
|
+
- lib/simple_aws/elb.rb
|
66
|
+
- lib/simple_aws/iam.rb
|
67
|
+
- lib/simple_aws/import_export.rb
|
68
|
+
- lib/simple_aws/map_reduce.rb
|
69
|
+
- lib/simple_aws/mechanical_turk.rb
|
70
|
+
- lib/simple_aws/rds.rb
|
71
|
+
- lib/simple_aws/s3.rb
|
72
|
+
- lib/simple_aws/ses.rb
|
73
|
+
- lib/simple_aws/signing/version2.rb
|
74
|
+
- lib/simple_aws/signing/version3.rb
|
75
|
+
- lib/simple_aws/sns.rb
|
76
|
+
- lib/simple_aws/sqs.rb
|
76
77
|
- samples/cloud_front.rb
|
77
78
|
- samples/ec2.rb
|
78
79
|
- samples/elb.rb
|
@@ -82,31 +83,31 @@ files:
|
|
82
83
|
- samples/sqs.rb
|
83
84
|
- samples/turk.rb
|
84
85
|
- simple_aws.gemspec
|
85
|
-
- test/
|
86
|
-
- test/
|
87
|
-
- test/
|
88
|
-
- test/
|
89
|
-
- test/
|
90
|
-
- test/
|
91
|
-
- test/
|
92
|
-
- test/
|
93
|
-
- test/
|
94
|
-
- test/
|
95
|
-
- test/
|
96
|
-
- test/
|
97
|
-
- test/
|
98
|
-
- test/
|
99
|
-
- test/
|
100
|
-
- test/
|
101
|
-
- test/
|
102
|
-
- test/
|
103
|
-
- test/
|
104
|
-
- test/
|
105
|
-
- test/
|
106
|
-
- test/
|
107
|
-
- test/
|
108
|
-
- test/
|
109
|
-
- test/
|
86
|
+
- test/simple_aws/api_test.rb
|
87
|
+
- test/simple_aws/auto_scaling_test.rb
|
88
|
+
- test/simple_aws/call_types/action_param_test.rb
|
89
|
+
- test/simple_aws/cloud_formation_test.rb
|
90
|
+
- test/simple_aws/cloud_front_test.rb
|
91
|
+
- test/simple_aws/cloud_watch_test.rb
|
92
|
+
- test/simple_aws/core/connection_test.rb
|
93
|
+
- test/simple_aws/core/request_test.rb
|
94
|
+
- test/simple_aws/core/response_test.rb
|
95
|
+
- test/simple_aws/core/util_test.rb
|
96
|
+
- test/simple_aws/ec2_test.rb
|
97
|
+
- test/simple_aws/elasti_cache_test.rb
|
98
|
+
- test/simple_aws/elastic_beanstalk_test.rb
|
99
|
+
- test/simple_aws/elb_test.rb
|
100
|
+
- test/simple_aws/iam_test.rb
|
101
|
+
- test/simple_aws/import_export_test.rb
|
102
|
+
- test/simple_aws/map_reduce_test.rb
|
103
|
+
- test/simple_aws/mechanical_turk_test.rb
|
104
|
+
- test/simple_aws/rds_test.rb
|
105
|
+
- test/simple_aws/s3_test.rb
|
106
|
+
- test/simple_aws/ses.rb
|
107
|
+
- test/simple_aws/signing/version2_test.rb
|
108
|
+
- test/simple_aws/signing/version3.rb
|
109
|
+
- test/simple_aws/sns_test.rb
|
110
|
+
- test/simple_aws/sqs.rb
|
110
111
|
- test/test_helper.rb
|
111
112
|
homepage: http://github.com/jameskilton/simple_aws
|
112
113
|
licenses: []
|
@@ -133,30 +134,30 @@ signing_key:
|
|
133
134
|
specification_version: 3
|
134
135
|
summary: The simplest and easiest to use and maintain AWS communication library
|
135
136
|
test_files:
|
136
|
-
- test/
|
137
|
-
- test/
|
138
|
-
- test/
|
139
|
-
- test/
|
140
|
-
- test/
|
141
|
-
- test/
|
142
|
-
- test/
|
143
|
-
- test/
|
144
|
-
- test/
|
145
|
-
- test/
|
146
|
-
- test/
|
147
|
-
- test/
|
148
|
-
- test/
|
149
|
-
- test/
|
150
|
-
- test/
|
151
|
-
- test/
|
152
|
-
- test/
|
153
|
-
- test/
|
154
|
-
- test/
|
155
|
-
- test/
|
156
|
-
- test/
|
157
|
-
- test/
|
158
|
-
- test/
|
159
|
-
- test/
|
160
|
-
- test/
|
137
|
+
- test/simple_aws/api_test.rb
|
138
|
+
- test/simple_aws/auto_scaling_test.rb
|
139
|
+
- test/simple_aws/call_types/action_param_test.rb
|
140
|
+
- test/simple_aws/cloud_formation_test.rb
|
141
|
+
- test/simple_aws/cloud_front_test.rb
|
142
|
+
- test/simple_aws/cloud_watch_test.rb
|
143
|
+
- test/simple_aws/core/connection_test.rb
|
144
|
+
- test/simple_aws/core/request_test.rb
|
145
|
+
- test/simple_aws/core/response_test.rb
|
146
|
+
- test/simple_aws/core/util_test.rb
|
147
|
+
- test/simple_aws/ec2_test.rb
|
148
|
+
- test/simple_aws/elasti_cache_test.rb
|
149
|
+
- test/simple_aws/elastic_beanstalk_test.rb
|
150
|
+
- test/simple_aws/elb_test.rb
|
151
|
+
- test/simple_aws/iam_test.rb
|
152
|
+
- test/simple_aws/import_export_test.rb
|
153
|
+
- test/simple_aws/map_reduce_test.rb
|
154
|
+
- test/simple_aws/mechanical_turk_test.rb
|
155
|
+
- test/simple_aws/rds_test.rb
|
156
|
+
- test/simple_aws/s3_test.rb
|
157
|
+
- test/simple_aws/ses.rb
|
158
|
+
- test/simple_aws/signing/version2_test.rb
|
159
|
+
- test/simple_aws/signing/version3.rb
|
160
|
+
- test/simple_aws/sns_test.rb
|
161
|
+
- test/simple_aws/sqs.rb
|
161
162
|
- test/test_helper.rb
|
162
163
|
has_rdoc:
|