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.
Files changed (62) hide show
  1. data/History.md +12 -0
  2. data/README.md +26 -26
  3. data/lib/{aws → simple_aws}/api.rb +4 -4
  4. data/lib/{aws → simple_aws}/auto_scaling.rb +6 -6
  5. data/lib/{aws → simple_aws}/call_types/action_param.rb +8 -8
  6. data/lib/{aws → simple_aws}/cloud_formation.rb +6 -6
  7. data/lib/{aws → simple_aws}/cloud_front.rb +17 -17
  8. data/lib/{aws → simple_aws}/cloud_watch.rb +6 -6
  9. data/lib/{aws → simple_aws}/core/connection.rb +4 -4
  10. data/lib/{aws → simple_aws}/core/request.rb +2 -2
  11. data/lib/{aws → simple_aws}/core/response.rb +4 -4
  12. data/lib/{aws → simple_aws}/core/util.rb +1 -1
  13. data/lib/{aws → simple_aws}/ec2.rb +6 -6
  14. data/lib/{aws → simple_aws}/elasti_cache.rb +6 -6
  15. data/lib/{aws → simple_aws}/elastic_beanstalk.rb +6 -6
  16. data/lib/{aws → simple_aws}/elb.rb +6 -6
  17. data/lib/{aws → simple_aws}/iam.rb +6 -6
  18. data/lib/{aws → simple_aws}/import_export.rb +6 -6
  19. data/lib/{aws → simple_aws}/map_reduce.rb +6 -6
  20. data/lib/{aws → simple_aws}/mechanical_turk.rb +5 -5
  21. data/lib/{aws → simple_aws}/rds.rb +6 -6
  22. data/lib/{aws → simple_aws}/s3.rb +15 -15
  23. data/lib/{aws → simple_aws}/ses.rb +6 -6
  24. data/lib/{aws → simple_aws}/signing/version2.rb +1 -1
  25. data/lib/{aws → simple_aws}/signing/version3.rb +1 -1
  26. data/lib/{aws → simple_aws}/sns.rb +6 -6
  27. data/lib/{aws → simple_aws}/sqs.rb +8 -8
  28. data/samples/cloud_front.rb +2 -2
  29. data/samples/ec2.rb +2 -2
  30. data/samples/elb.rb +2 -2
  31. data/samples/iam.rb +2 -2
  32. data/samples/s3.rb +2 -2
  33. data/samples/s3_batch_download.rb +2 -2
  34. data/samples/sqs.rb +2 -2
  35. data/samples/turk.rb +2 -2
  36. data/simple_aws.gemspec +1 -1
  37. data/test/{aws → simple_aws}/api_test.rb +3 -3
  38. data/test/{aws → simple_aws}/auto_scaling_test.rb +5 -5
  39. data/test/{aws → simple_aws}/call_types/action_param_test.rb +7 -7
  40. data/test/{aws → simple_aws}/cloud_formation_test.rb +5 -5
  41. data/test/{aws → simple_aws}/cloud_front_test.rb +11 -11
  42. data/test/{aws → simple_aws}/cloud_watch_test.rb +5 -5
  43. data/test/{aws → simple_aws}/core/connection_test.rb +16 -16
  44. data/test/{aws → simple_aws}/core/request_test.rb +3 -3
  45. data/test/{aws → simple_aws}/core/response_test.rb +23 -23
  46. data/test/{aws → simple_aws}/core/util_test.rb +7 -7
  47. data/test/{aws → simple_aws}/ec2_test.rb +5 -5
  48. data/test/{aws → simple_aws}/elasti_cache_test.rb +5 -5
  49. data/test/{aws → simple_aws}/elastic_beanstalk_test.rb +5 -5
  50. data/test/{aws → simple_aws}/elb_test.rb +5 -5
  51. data/test/{aws → simple_aws}/iam_test.rb +5 -5
  52. data/test/{aws → simple_aws}/import_export_test.rb +6 -6
  53. data/test/{aws → simple_aws}/map_reduce_test.rb +5 -5
  54. data/test/{aws → simple_aws}/mechanical_turk_test.rb +6 -6
  55. data/test/{aws → simple_aws}/rds_test.rb +5 -5
  56. data/test/{aws → simple_aws}/s3_test.rb +14 -14
  57. data/test/{aws → simple_aws}/ses.rb +6 -6
  58. data/test/{aws → simple_aws}/signing/version2_test.rb +8 -8
  59. data/test/{aws → simple_aws}/signing/version3.rb +8 -8
  60. data/test/{aws → simple_aws}/sns_test.rb +5 -5
  61. data/test/{aws → simple_aws}/sqs.rb +7 -7
  62. metadata +82 -81
@@ -1,21 +1,21 @@
1
1
  require 'test_helper'
2
- require 'aws/api'
3
- require 'aws/call_types/action_param'
4
- require 'aws/signing/version2'
2
+ require 'simple_aws/api'
3
+ require 'simple_aws/call_types/action_param'
4
+ require 'simple_aws/signing/version2'
5
5
 
6
- describe AWS::Signing::Version2 do
6
+ describe SimpleAWS::Signing::Version2 do
7
7
 
8
- class SigningTestAPI < AWS::API
8
+ class SigningTestAPI < SimpleAWS::API
9
9
  endpoint "aptest"
10
10
  version "2011-01-01"
11
11
  use_https true
12
12
 
13
- include AWS::CallTypes::ActionParam
14
- include AWS::Signing::Version2
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
- AWS::Connection.any_instance.expects(:call).with do |request|
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 'aws/api'
3
- require 'aws/call_types/action_param'
4
- require 'aws/signing/version3'
2
+ require 'simple_aws/api'
3
+ require 'simple_aws/call_types/action_param'
4
+ require 'simple_aws/signing/version3'
5
5
 
6
- describe AWS::Signing::Version3 do
6
+ describe SimpleAWS::Signing::Version3 do
7
7
 
8
- class SigningV3TestAPI < AWS::API
8
+ class SigningV3TestAPI < SimpleAWS::API
9
9
  endpoint "aptest"
10
10
  version "2011-01-01"
11
11
  use_https true
12
12
 
13
- include AWS::CallTypes::ActionParam
14
- include AWS::Signing::Version3
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
- AWS::Connection.any_instance.expects(:call).with do |request|
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 'aws/sns'
2
+ require 'simple_aws/sns'
3
3
 
4
- describe AWS::SNS do
4
+ describe SimpleAWS::SNS do
5
5
 
6
6
  before do
7
- @api = AWS::SNS.new "key", "secret"
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
- AWS::Connection.any_instance.expects(:call).with do |request|
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 = AWS::SNS.new "key", "secret"
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 'aws/sqs'
2
+ require 'simple_aws/sqs'
3
3
 
4
- describe AWS::SQS do
4
+ describe SimpleAWS::SQS do
5
5
 
6
6
  before do
7
- @api = AWS::SQS.new "key", "secret"
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
- AWS::Connection.any_instance.expects(:call).with do |request|
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 = AWS::SQS.new "key", "secret"
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
- AWS::Connection.any_instance.expects(:call).with do |request|
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 = AWS::SQS.new "key", "secret"
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.0.0
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-23 00:00:00.000000000 Z
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: &70136090585300 !ruby/object:Gem::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: *70136090585300
24
+ version_requirements: *70128306098780
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: httparty
27
- requirement: &70136090583720 !ruby/object:Gem::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: *70136090583720
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/aws/api.rb
52
- - lib/aws/auto_scaling.rb
53
- - lib/aws/call_types/action_param.rb
54
- - lib/aws/cloud_formation.rb
55
- - lib/aws/cloud_front.rb
56
- - lib/aws/cloud_watch.rb
57
- - lib/aws/core/connection.rb
58
- - lib/aws/core/request.rb
59
- - lib/aws/core/response.rb
60
- - lib/aws/core/util.rb
61
- - lib/aws/ec2.rb
62
- - lib/aws/elasti_cache.rb
63
- - lib/aws/elastic_beanstalk.rb
64
- - lib/aws/elb.rb
65
- - lib/aws/iam.rb
66
- - lib/aws/import_export.rb
67
- - lib/aws/map_reduce.rb
68
- - lib/aws/mechanical_turk.rb
69
- - lib/aws/rds.rb
70
- - lib/aws/s3.rb
71
- - lib/aws/ses.rb
72
- - lib/aws/signing/version2.rb
73
- - lib/aws/signing/version3.rb
74
- - lib/aws/sns.rb
75
- - lib/aws/sqs.rb
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/aws/api_test.rb
86
- - test/aws/auto_scaling_test.rb
87
- - test/aws/call_types/action_param_test.rb
88
- - test/aws/cloud_formation_test.rb
89
- - test/aws/cloud_front_test.rb
90
- - test/aws/cloud_watch_test.rb
91
- - test/aws/core/connection_test.rb
92
- - test/aws/core/request_test.rb
93
- - test/aws/core/response_test.rb
94
- - test/aws/core/util_test.rb
95
- - test/aws/ec2_test.rb
96
- - test/aws/elasti_cache_test.rb
97
- - test/aws/elastic_beanstalk_test.rb
98
- - test/aws/elb_test.rb
99
- - test/aws/iam_test.rb
100
- - test/aws/import_export_test.rb
101
- - test/aws/map_reduce_test.rb
102
- - test/aws/mechanical_turk_test.rb
103
- - test/aws/rds_test.rb
104
- - test/aws/s3_test.rb
105
- - test/aws/ses.rb
106
- - test/aws/signing/version2_test.rb
107
- - test/aws/signing/version3.rb
108
- - test/aws/sns_test.rb
109
- - test/aws/sqs.rb
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/aws/api_test.rb
137
- - test/aws/auto_scaling_test.rb
138
- - test/aws/call_types/action_param_test.rb
139
- - test/aws/cloud_formation_test.rb
140
- - test/aws/cloud_front_test.rb
141
- - test/aws/cloud_watch_test.rb
142
- - test/aws/core/connection_test.rb
143
- - test/aws/core/request_test.rb
144
- - test/aws/core/response_test.rb
145
- - test/aws/core/util_test.rb
146
- - test/aws/ec2_test.rb
147
- - test/aws/elasti_cache_test.rb
148
- - test/aws/elastic_beanstalk_test.rb
149
- - test/aws/elb_test.rb
150
- - test/aws/iam_test.rb
151
- - test/aws/import_export_test.rb
152
- - test/aws/map_reduce_test.rb
153
- - test/aws/mechanical_turk_test.rb
154
- - test/aws/rds_test.rb
155
- - test/aws/s3_test.rb
156
- - test/aws/ses.rb
157
- - test/aws/signing/version2_test.rb
158
- - test/aws/signing/version3.rb
159
- - test/aws/sns_test.rb
160
- - test/aws/sqs.rb
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: