aws-s3 0.1.0 → 0.1.1

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/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
@@ -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
@@ -3,8 +3,8 @@ module AWS
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = '0'
5
5
  MINOR = '1'
6
- TINY = '0'
7
- REVISION = '$Revision: 66 $'[/\d+/]
6
+ TINY = '1'
7
+ REVISION = '$Revision: 84 $'[/\d+/]
8
8
  end
9
9
 
10
10
  Version = [VERSION::MAJOR, VERSION::MINOR, VERSION::TINY || VERSION::REVISION] * '.'
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: aws-s3
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.0
6
+ version: 0.1.1
7
7
  date: 2006-11-28 00:00:00 -06:00
8
8
  summary: Client library for Amazon's Simple Storage Service's REST API
9
9
  require_paths: