public
Description: Amazon Web Services SimpleDB for Ruby
Homepage: http://rubyforge.org/projects/aws-sdb/
Clone URL: git://github.com/dysinger/aws-sdb.git
Search Repo:
Inital gem structure

git-svn-id: svn+ssh://rubyforge.org/var/svn/aws-sdb/trunk/aws-sdb@2 
b47d895a-97fd-408b-8300-45b572025c09
dysinger (author)
Sun Dec 16 11:13:45 -0800 2007
commit  bd96f54cadf13d996af3e840e23d4c6aa5a3d52d
tree    01eb2a9db199070f3f1ae89e50ba010bfff398d9
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
0
@@ -0,0 +1,19 @@
0
+Copyright (c) 2007, 2008 Tim Dysinger
0
+
0
+Permission is hereby granted, free of charge, to any person obtaining a copy
0
+of this software and associated documentation files (the "Software"), to deal
0
+in the Software without restriction, including without limitation the rights
0
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
0
+copies of the Software, and to permit persons to whom the Software is
0
+furnished to do so, subject to the following conditions:
0
+
0
+The above copyright notice and this permission notice shall be included in
0
+all copies or substantial portions of the Software.
0
+
0
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
0
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
0
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
0
+THE SOFTWARE.
0
...
 
...
1
0
@@ -0,0 +1 @@
0
+Amazon SDB API
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
0
@@ -0,0 +1,30 @@
0
+require 'rubygems'
0
+require 'spec/rake/spectask'
0
+require 'rake/gempackagetask'
0
+
0
+Spec::Rake::SpecTask.new
0
+
0
+gem_spec = Gem::Specification.new do |s|
0
+ s.name = "aws-sdb"
0
+ s.version = "0.0.1"
0
+ s.platform = Gem::Platform::RUBY
0
+ s.has_rdoc = true
0
+ s.extra_rdoc_files = ["README", "LICENSE"]
0
+ s.summary = "Amazon SDB API"
0
+ s.description = s.summary
0
+ s.author = "Tim Dysinger"
0
+ s.email = "tim@dysinger.net"
0
+ s.homepage = "http://dysinger.net"
0
+ # s.add_dependency "uuidtools"
0
+ s.require_path = 'lib'
0
+ s.autorequire = s.name.gsub('-','/')
0
+ s.files = %w(LICENSE README Rakefile) + Dir.glob("{lib,spec}/**/*")
0
+end
0
+
0
+Rake::GemPackageTask.new(gem_spec) do |pkg|
0
+ pkg.gem_spec = gem_spec
0
+end
0
+
0
+task :install => [:package] do
0
+ sh %{sudo gem install pkg/#{gem_spec.name}-#{gem_spec.version}}
0
+end
...
 
 
...
1
2
0
@@ -0,0 +1,2 @@
0
+require 'aws/sdb/error'
0
+
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
0
@@ -0,0 +1,28 @@
0
+module AWS
0
+ module SDB
0
+
0
+ class Error < RuntimeError ; end
0
+
0
+ class RequestError < Error
0
+ attr_accessor :errors
0
+
0
+ def initialize(errors = {})
0
+ super(errors.values.inspect)
0
+ @errors = errors
0
+ end
0
+ end
0
+
0
+ class ConnectionError < Error
0
+ attr_reader :response
0
+
0
+ def initialize(response)
0
+ super(
0
+ "#{response.code} #{response.message \
0
+ if response.respond_to?(:message)}"
0
+ )
0
+ @response = response
0
+ end
0
+ end
0
+
0
+ end
0
+end
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
0
@@ -0,0 +1,14 @@
0
+#!/usr/bin/env ruby
0
+APP_ROOT = File.join(File.dirname(__FILE__), '..')
0
+
0
+begin
0
+ require 'rubigen'
0
+rescue LoadError
0
+ require 'rubygems'
0
+ require 'rubigen'
0
+end
0
+require 'rubigen/scripts/destroy'
0
+
0
+ARGV.shift if ['--help', '-h'].include?(ARGV[0])
0
+RubiGen::Base.use_component_sources! [:newgem_simple, :test_unit]
0
+RubiGen::Scripts::Destroy.new.run(ARGV)
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
0
@@ -0,0 +1,14 @@
0
+#!/usr/bin/env ruby
0
+APP_ROOT = File.join(File.dirname(__FILE__), '..')
0
+
0
+begin
0
+ require 'rubigen'
0
+rescue LoadError
0
+ require 'rubygems'
0
+ require 'rubigen'
0
+end
0
+require 'rubigen/scripts/generate'
0
+
0
+ARGV.shift if ['--help', '-h'].include?(ARGV[0])
0
+RubiGen::Base.use_component_sources! [:newgem_simple, :test_unit]
0
+RubiGen::Scripts::Generate.new.run(ARGV)
...
 
 
 
 
0
...
1
2
3
4
5
0
@@ -0,0 +1,4 @@
0
+$TESTING=true
0
+$:.push File.join(File.dirname(__FILE__), '..', 'lib')
0
+
0
+require 'aws/sdb'
0
\ No newline at end of file

Comments

    No one has commented yet.