appoxy-aws 1.11.30 → 1.11.31
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +25 -19
- data/lib/s3/right_s3.rb +2 -2
- metadata +5 -6
data/README.markdown
CHANGED
@@ -1,38 +1,47 @@
|
|
1
|
-
#
|
1
|
+
# Appoxy AWS Library
|
2
2
|
|
3
|
-
|
3
|
+
The Appoxy AWS gem is a forked version of RightScale's AWS library.
|
4
4
|
|
5
|
-
|
5
|
+
## Why the Fork?
|
6
|
+
|
7
|
+
1. RightScale wasn't fixing critical bugs that were reported in their forums.
|
6
8
|
1. It didn't work with Ruby 1.9 - this version does
|
7
9
|
1. RightScale doesn't have the source hosted for the community
|
8
10
|
1. We needed fixes and changes for [http://code.google.com/p/simple-record/ SimpleRecord] and didn't want to wait for RightScale to do it.
|
11
|
+
1. We needed Elastic Load Balancing support
|
9
12
|
|
10
|
-
|
13
|
+
## Discussion Group
|
11
14
|
|
12
15
|
http://groups.google.com/group/ruby-aws
|
13
16
|
|
14
|
-
|
17
|
+
## RightScale Amazon Web Services Ruby Gems
|
15
18
|
|
16
19
|
Published by RightScale, Inc. under the MIT License.
|
17
20
|
For information about RightScale, see http://www.rightscale.com
|
18
21
|
|
19
|
-
|
22
|
+
## INSTALL:
|
23
|
+
|
24
|
+
`sudo gem install right_aws`
|
25
|
+
|
20
26
|
|
21
|
-
|
22
|
-
|
27
|
+
## DESCRIPTION:
|
28
|
+
|
29
|
+
The RightScale AWS gems have been designed to provide a robust, fast, and secure interface to Amazon EC2, EBS, S3, SQS, SDB, and CloudFront.
|
30
|
+
These gems have been used in production by RightScale since late 2006 and are being maintained to track enhancements made by Amazon.
|
23
31
|
The RightScale AWS gems comprise:
|
24
32
|
|
25
|
-
- RightAws::Ec2 -- interface to Amazon EC2 (Elastic Compute Cloud) and the
|
26
|
-
associated EBS (Elastic Block Store)
|
33
|
+
- RightAws::Ec2 -- interface to Amazon EC2 (Elastic Compute Cloud) and the associated EBS (Elastic Block Store)
|
27
34
|
- RightAws::S3 and RightAws::S3Interface -- interface to Amazon S3 (Simple Storage Service)
|
28
35
|
- RightAws::Sqs and RightAws::SqsInterface -- interface to first-generation Amazon SQS (Simple Queue Service) (API version 2007-05-01)
|
29
36
|
- RightAws::SqsGen2 and RightAws::SqsGen2Interface -- interface to second-generation Amazon SQS (Simple Queue Service) (API version 2008-01-01)
|
30
37
|
- RightAws::SdbInterface and RightAws::ActiveSdb -- interface to Amazon SDB (SimpleDB)
|
31
38
|
- RightAws::AcfInterface -- interface to Amazon CloudFront, a content distribution service
|
39
|
+
- RightAws::ElbInterface -- interface to Amazon Load Balancing service
|
40
|
+
|
32
41
|
|
33
|
-
|
42
|
+
## FEATURES:
|
34
43
|
|
35
|
-
- Full programmmatic access to EC2, EBS, S3, SQS, SDB, and CloudFront.
|
44
|
+
- Full programmmatic access to EC2, EBS, S3, SQS, SDB, ELB, and CloudFront.
|
36
45
|
- Complete error handling: all operations check for errors and report complete
|
37
46
|
error information by raising an AwsError.
|
38
47
|
- Persistent HTTP connections with robust network-level retry layer using
|
@@ -55,7 +64,7 @@ The RightScale AWS gems comprise:
|
|
55
64
|
- Interoperability with any cloud running Eucalyptus (http://eucalyptus.cs.ucsb.edu)
|
56
65
|
- Test suite (requires AWS account to do "live" testing).
|
57
66
|
|
58
|
-
|
67
|
+
## THREADING:
|
59
68
|
|
60
69
|
All RightScale AWS interfaces offer two threading options:
|
61
70
|
1. Use a single persistent HTTP connection per process.
|
@@ -82,7 +91,7 @@ By default, EC2/S3/SQS/SDB/ACF interface instances are created in single-threade
|
|
82
91
|
"params[:multi_thread]" to "true" in the initialization arguments to use
|
83
92
|
multithreaded mode.
|
84
93
|
|
85
|
-
|
94
|
+
## GETTING STARTED:
|
86
95
|
|
87
96
|
* For EC2 read RightAws::Ec2 and consult the Amazon EC2 API documentation at
|
88
97
|
http://developer.amazonwebservices.com/connect/kbcategory.jspa?categoryID=87
|
@@ -101,7 +110,7 @@ multithreaded mode.
|
|
101
110
|
* For CloudFront (ACF) read RightAws::AcfInterface and consult the Amazon CloudFront API documentation at
|
102
111
|
http://developer.amazonwebservices.com/connect/kbcategory.jspa?categoryID=213
|
103
112
|
|
104
|
-
|
113
|
+
## KNOWN ISSUES:
|
105
114
|
|
106
115
|
- 7/08: A user has reported that uploads of large files on Windows may be broken on some
|
107
116
|
Win platforms due to a buggy File.lstat.size. Use the following monkey-patch at your own risk,
|
@@ -142,7 +151,7 @@ multithreaded mode.
|
|
142
151
|
RightAws::SqsInterface will fail with the message:
|
143
152
|
"AWS.SimpleQueueService.QueueDeletedRecently: You must wait 60 seconds after deleting a queue before you can create another with the same name."
|
144
153
|
|
145
|
-
|
154
|
+
## REQUIREMENTS:
|
146
155
|
|
147
156
|
RightAws requires REXML and the right_http_connection gem.
|
148
157
|
If libxml and its Ruby bindings (distributed in the libxml-ruby gem) are
|
@@ -151,9 +160,6 @@ present, RightAws can be configured to use them:
|
|
151
160
|
Any error with the libxml installation will result in RightAws failing-safe to
|
152
161
|
REXML parsing.
|
153
162
|
|
154
|
-
== INSTALL:
|
155
|
-
|
156
|
-
sudo gem install right_aws
|
157
163
|
|
158
164
|
== LICENSE:
|
159
165
|
|
data/lib/s3/right_s3.rb
CHANGED
@@ -464,8 +464,8 @@ module RightAws
|
|
464
464
|
# Retrieve object data and attributes from Amazon.
|
465
465
|
# Returns a +String+.
|
466
466
|
#
|
467
|
-
def get(headers={})
|
468
|
-
response = @bucket.s3.interface.get(@bucket.name, @name, headers)
|
467
|
+
def get(headers={}, &block)
|
468
|
+
response = @bucket.s3.interface.get(@bucket.name, @name, headers, &block)
|
469
469
|
@data = response[:object]
|
470
470
|
@headers, @meta_headers = self.class.split_meta(response[:headers])
|
471
471
|
refresh(false)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appoxy-aws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.
|
4
|
+
version: 1.11.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis Reeder
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2009-
|
14
|
+
date: 2009-09-13 00:00:00 -07:00
|
15
15
|
default_executable:
|
16
16
|
dependencies: []
|
17
17
|
|
@@ -38,9 +38,8 @@ files:
|
|
38
38
|
- lib/sqs/right_sqs.rb
|
39
39
|
- lib/sqs/right_sqs_interface.rb
|
40
40
|
- README.markdown
|
41
|
-
has_rdoc:
|
41
|
+
has_rdoc: true
|
42
42
|
homepage: http://github.com/appoxy/aws/
|
43
|
-
licenses:
|
44
43
|
post_install_message:
|
45
44
|
rdoc_options:
|
46
45
|
- --charset=UTF-8
|
@@ -61,9 +60,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
60
|
requirements: []
|
62
61
|
|
63
62
|
rubyforge_project:
|
64
|
-
rubygems_version: 1.
|
63
|
+
rubygems_version: 1.2.0
|
65
64
|
signing_key:
|
66
|
-
specification_version:
|
65
|
+
specification_version: 2
|
67
66
|
summary: AWS Ruby Library for interfacing with Amazon Web Services.
|
68
67
|
test_files:
|
69
68
|
- test/acf/test_helper.rb
|