aws-s3 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/INSTALL +7 -1
- data/Rakefile +6 -0
- data/lib/aws/s3/extensions.rb +8 -8
- data/lib/aws/s3/version.rb +2 -2
- metadata +1 -1
data/INSTALL
CHANGED
@@ -28,8 +28,14 @@ Then add the following line, save and exit:
|
|
28
28
|
|
29
29
|
== Dependencies
|
30
30
|
|
31
|
+
=== XML parsing
|
32
|
+
|
31
33
|
AWS::S3 depends on XmlSimple (http://xml-simple.rubyforge.org/). When installing aws/s3 with
|
32
34
|
Rubygems, this dependency will be taken care of for you. Otherwise, installation instructions are listed on the xml-simple
|
33
35
|
site.
|
34
36
|
|
35
|
-
If your system has the Ruby libxml bindings installed (http://libxml.rubyforge.org/) they will be used instead of REXML (which is what XmlSimple uses). For those concerned with speed and efficiency, it would behoove you to install libxml (instructions here: http://libxml.rubyforge.org/install.html) as it is considerably faster and less expensive than REXML.
|
37
|
+
If your system has the Ruby libxml bindings installed (http://libxml.rubyforge.org/) they will be used instead of REXML (which is what XmlSimple uses). For those concerned with speed and efficiency, it would behoove you to install libxml (instructions here: http://libxml.rubyforge.org/install.html) as it is considerably faster and less expensive than REXML.
|
38
|
+
|
39
|
+
=== XML generation
|
40
|
+
|
41
|
+
AWS::S3 also depends on the Builder library (http://builder.rubyforge.org/ and http://rubyforge.org/projects/builder/). This will also automatically be installed for you when using Rubygems.
|
data/Rakefile
CHANGED
@@ -24,6 +24,8 @@ namespace :doc do
|
|
24
24
|
rdoc.title = "AWS::S3 -- Support for Amazon S3's REST api"
|
25
25
|
rdoc.options << '--line-numbers' << '--inline-source'
|
26
26
|
rdoc.rdoc_files.include('README')
|
27
|
+
rdoc.rdoc_files.include('COPYING')
|
28
|
+
rdoc.rdoc_files.include('INSTALL')
|
27
29
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
28
30
|
end
|
29
31
|
|
@@ -48,6 +50,10 @@ namespace :doc do
|
|
48
50
|
file.write ERB.new(IO.read('README.erb')).result(binding)
|
49
51
|
end
|
50
52
|
end
|
53
|
+
|
54
|
+
task :deploy => :rerdoc do
|
55
|
+
sh %(scp -r doc marcel@rubyforge.org:/var/www/gforge-projects/amazon/)
|
56
|
+
end
|
51
57
|
end
|
52
58
|
|
53
59
|
namespace :dist do
|
data/lib/aws/s3/extensions.rb
CHANGED
@@ -36,6 +36,14 @@ class String
|
|
36
36
|
def to_header
|
37
37
|
downcase.gsub('_', '-')
|
38
38
|
end
|
39
|
+
|
40
|
+
# ActiveSupport adds an underscore method to String so let's just use that one if
|
41
|
+
# we find that the method is already defined
|
42
|
+
def underscore
|
43
|
+
gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
|
44
|
+
gsub(/([a-z\d])([A-Z])/,'\1_\2').
|
45
|
+
downcase
|
46
|
+
end unless public_instance_methods.include? 'underscore'
|
39
47
|
end
|
40
48
|
|
41
49
|
class Symbol
|
@@ -167,14 +175,6 @@ module SelectiveAttributeProxy
|
|
167
175
|
end
|
168
176
|
end
|
169
177
|
|
170
|
-
class String
|
171
|
-
def underscore
|
172
|
-
gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
|
173
|
-
gsub(/([a-z\d])([A-Z])/,'\1_\2').
|
174
|
-
downcase
|
175
|
-
end
|
176
|
-
end
|
177
|
-
|
178
178
|
class XmlGenerator < String #:nodoc:
|
179
179
|
attr_reader :xml
|
180
180
|
def initialize
|
data/lib/aws/s3/version.rb
CHANGED
metadata
CHANGED