rubizon 0.1.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +3 -10
- data/Rakefile +3 -1
- data/lib/rubizon.rb +8 -2
- data/lib/rubizon/product/product_advertising.rb +0 -2
- data/lib/rubizon/product/sns.rb +0 -2
- data/lib/rubizon/version.rb +10 -0
- data/rubizon.gemspec +7 -5
- data/test/test_request.rb +0 -1
- data/test/test_signature_sample.rb +0 -1
- data/test/test_sns.rb +0 -1
- data/test/test_version.rb +9 -0
- metadata +6 -4
- data/VERSION +0 -1
data/README.rdoc
CHANGED
@@ -22,9 +22,9 @@ classes for each of the AWS services it supports.
|
|
22
22
|
|
23
23
|
*AbstractSig2Product is intended to provided a foundation for building
|
24
24
|
requests to any service that supports signature version 2. The
|
25
|
-
SimpleNotificationService
|
26
|
-
|
27
|
-
|
25
|
+
SimpleNotificationService class is a concrete subclass supporting SNS.
|
26
|
+
Similar classes should be able to similarly subclass AbstractSig2Product
|
27
|
+
in order to support other AWS services.
|
28
28
|
Only a single instance of any product's class should be required to
|
29
29
|
serve any number of requests using the same credentials, host and scheme.
|
30
30
|
|
@@ -34,13 +34,6 @@ classes for each of the AWS services it supports.
|
|
34
34
|
values to perform a requested action and then return the request object.
|
35
35
|
The URL and its components can then be queried from the request object.
|
36
36
|
|
37
|
-
Since the ultimate intent of Rubizon is to support requests to many of the AWS
|
38
|
-
services, even though a given application may only need access to a small number
|
39
|
-
of the supported services, the main rubizon.rb file only requires the core
|
40
|
-
code. An interface for each AWS product are maintained in the rubizon/product
|
41
|
-
directory and will need to be specifically required into any code needing its
|
42
|
-
services.
|
43
|
-
|
44
37
|
===An example of publishing a message via SNS:
|
45
38
|
<tt>
|
46
39
|
require 'rubizon'
|
data/Rakefile
CHANGED
@@ -10,9 +10,11 @@ end
|
|
10
10
|
require 'rake'
|
11
11
|
|
12
12
|
require 'jeweler'
|
13
|
+
require 'lib/rubizon/version'
|
13
14
|
Jeweler::Tasks.new do |gem|
|
14
15
|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
15
16
|
gem.name = "rubizon"
|
17
|
+
gem.version = Rubizon::Version::STRING
|
16
18
|
gem.homepage = "http://github.com/randymized/rubizon"
|
17
19
|
gem.license = "MIT"
|
18
20
|
gem.summary = %Q{A Ruby interface to Amazon Web Services}
|
@@ -51,7 +53,7 @@ task :default => :test
|
|
51
53
|
|
52
54
|
require 'rake/rdoctask'
|
53
55
|
Rake::RDocTask.new do |rdoc|
|
54
|
-
version =
|
56
|
+
version = Rubizon::Version::STRING
|
55
57
|
|
56
58
|
rdoc.rdoc_dir = 'rdoc'
|
57
59
|
rdoc.title = "rubizon #{version}"
|
data/lib/rubizon.rb
CHANGED
@@ -1,2 +1,8 @@
|
|
1
|
-
require File.dirname(__FILE__) +
|
2
|
-
require File.dirname(__FILE__) +
|
1
|
+
require File.dirname(__FILE__) + '/rubizon/security_credentials'
|
2
|
+
require File.dirname(__FILE__) + '/rubizon/request'
|
3
|
+
module Rubizon
|
4
|
+
autoload :Version, File.dirname(__FILE__) + '/rubizon/version'
|
5
|
+
autoload :AbstractSig2Product, File.dirname(__FILE__) + '/rubizon/abstract_sig2_product'
|
6
|
+
autoload :ProductAdvertisingProduct, File.dirname(__FILE__) + '/rubizon/product/product_advertising'
|
7
|
+
autoload :SimpleNotificationService, File.dirname(__FILE__) + '/rubizon/product/sns'
|
8
|
+
end
|
data/lib/rubizon/product/sns.rb
CHANGED
data/rubizon.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rubizon}
|
8
|
-
s.version = "0.1
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Randy McLaughlin"]
|
12
|
-
s.date = %q{2011-01-
|
12
|
+
s.date = %q{2011-01-04}
|
13
13
|
s.description = %q{A Ruby interface to Amazon Web Services. Rubizon separates creating a
|
14
14
|
properly-formed, signed URL for making an AWS request from the transport
|
15
15
|
mechanism used.
|
@@ -30,7 +30,6 @@ interpretation of results.
|
|
30
30
|
"LICENSE.txt",
|
31
31
|
"README.rdoc",
|
32
32
|
"Rakefile",
|
33
|
-
"VERSION",
|
34
33
|
"lib/rubizon.rb",
|
35
34
|
"lib/rubizon/abstract_sig2_product.rb",
|
36
35
|
"lib/rubizon/exceptions.rb",
|
@@ -38,13 +37,15 @@ interpretation of results.
|
|
38
37
|
"lib/rubizon/product/sns.rb",
|
39
38
|
"lib/rubizon/request.rb",
|
40
39
|
"lib/rubizon/security_credentials.rb",
|
40
|
+
"lib/rubizon/version.rb",
|
41
41
|
"rubizon.gemspec",
|
42
42
|
"test/helper.rb",
|
43
43
|
"test/test_abstract_sig2_product.rb",
|
44
44
|
"test/test_request.rb",
|
45
45
|
"test/test_security_credentials.rb",
|
46
46
|
"test/test_signature_sample.rb",
|
47
|
-
"test/test_sns.rb"
|
47
|
+
"test/test_sns.rb",
|
48
|
+
"test/test_version.rb"
|
48
49
|
]
|
49
50
|
s.homepage = %q{http://github.com/randymized/rubizon}
|
50
51
|
s.licenses = ["MIT"]
|
@@ -57,7 +58,8 @@ interpretation of results.
|
|
57
58
|
"test/test_request.rb",
|
58
59
|
"test/test_security_credentials.rb",
|
59
60
|
"test/test_signature_sample.rb",
|
60
|
-
"test/test_sns.rb"
|
61
|
+
"test/test_sns.rb",
|
62
|
+
"test/test_version.rb"
|
61
63
|
]
|
62
64
|
|
63
65
|
if s.respond_to? :specification_version then
|
data/test/test_request.rb
CHANGED
data/test/test_sns.rb
CHANGED
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
+
- 2
|
7
8
|
- 1
|
8
|
-
|
9
|
-
version: 0.1.0
|
9
|
+
version: 0.2.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Randy McLaughlin
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-01-
|
17
|
+
date: 2011-01-04 00:00:00 -06:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -127,7 +127,6 @@ files:
|
|
127
127
|
- LICENSE.txt
|
128
128
|
- README.rdoc
|
129
129
|
- Rakefile
|
130
|
-
- VERSION
|
131
130
|
- lib/rubizon.rb
|
132
131
|
- lib/rubizon/abstract_sig2_product.rb
|
133
132
|
- lib/rubizon/exceptions.rb
|
@@ -135,6 +134,7 @@ files:
|
|
135
134
|
- lib/rubizon/product/sns.rb
|
136
135
|
- lib/rubizon/request.rb
|
137
136
|
- lib/rubizon/security_credentials.rb
|
137
|
+
- lib/rubizon/version.rb
|
138
138
|
- rubizon.gemspec
|
139
139
|
- test/helper.rb
|
140
140
|
- test/test_abstract_sig2_product.rb
|
@@ -142,6 +142,7 @@ files:
|
|
142
142
|
- test/test_security_credentials.rb
|
143
143
|
- test/test_signature_sample.rb
|
144
144
|
- test/test_sns.rb
|
145
|
+
- test/test_version.rb
|
145
146
|
has_rdoc: true
|
146
147
|
homepage: http://github.com/randymized/rubizon
|
147
148
|
licenses:
|
@@ -182,3 +183,4 @@ test_files:
|
|
182
183
|
- test/test_security_credentials.rb
|
183
184
|
- test/test_signature_sample.rb
|
184
185
|
- test/test_sns.rb
|
186
|
+
- test/test_version.rb
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.1.0
|