sdbtools 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/bin/sdbtool +2 -9
- data/lib/sdbtools.rb +1 -1
- data/lib/sdbtools/database.rb +1 -1
- data/lib/sdbtools/measured_sdb_interface.rb +1 -1
- data/lib/sdbtools/selection.rb +1 -1
- metadata +4 -4
data/Rakefile
CHANGED
@@ -13,7 +13,7 @@ END
|
|
13
13
|
gem.email = "devs@devver.net"
|
14
14
|
gem.homepage = "http://github.com/devver/sdbtools"
|
15
15
|
gem.authors = ["Avdi Grimm"]
|
16
|
-
gem.add_dependency "
|
16
|
+
gem.add_dependency "aws", "~> 2.1"
|
17
17
|
gem.add_dependency 'main', '~> 4.2'
|
18
18
|
gem.add_dependency 'fattr', '~> 2.1'
|
19
19
|
gem.add_dependency 'arrayfields', '~> 4.7'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.0
|
data/bin/sdbtool
CHANGED
@@ -1,16 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
gem 'main', '~> 4.2'
|
4
|
-
gem 'fattr', '~> 2.1'
|
5
|
-
gem 'highline', '~> 1.5'
|
6
|
-
gem 'right_aws', '~> 1.10'
|
7
|
-
gem 'progressbar', '~> 0.0.3'
|
8
|
-
gem 'libxml-ruby', '~> 1.1'
|
9
|
-
|
10
3
|
require 'main'
|
11
4
|
require 'highline/import'
|
12
5
|
require 'fattr'
|
13
|
-
require '
|
6
|
+
require 'aws'
|
14
7
|
require 'progressbar'
|
15
8
|
require 'pstore'
|
16
9
|
require 'pathname'
|
@@ -40,7 +33,7 @@ Main do
|
|
40
33
|
|
41
34
|
def initialize
|
42
35
|
HighLine.track_eof = false
|
43
|
-
|
36
|
+
Aws::RightAWSParser.xml_lib = 'libxml'
|
44
37
|
end
|
45
38
|
|
46
39
|
def timestamp
|
data/lib/sdbtools.rb
CHANGED
data/lib/sdbtools/database.rb
CHANGED
@@ -7,7 +7,7 @@ module SDBTools
|
|
7
7
|
@logger = (options[:logger] ||= ::Logger.new($stderr))
|
8
8
|
@sdb = MeasuredSdbInterface.new(
|
9
9
|
options.delete(:sdb_interface) {
|
10
|
-
|
10
|
+
Aws::SdbInterface.new(access_key, secret_key, options)
|
11
11
|
})
|
12
12
|
end
|
13
13
|
|
@@ -2,7 +2,7 @@ require 'sdbtools/transaction'
|
|
2
2
|
require 'delegate'
|
3
3
|
|
4
4
|
module SDBTools
|
5
|
-
class MeasuredSdbInterface < DelegateClass(
|
5
|
+
class MeasuredSdbInterface < DelegateClass(Aws::SdbInterface)
|
6
6
|
def create_domain(*args, &block)
|
7
7
|
Transaction.open("create_domain") do |t|
|
8
8
|
t.measure_aws_call{super(*args, &block)}
|
data/lib/sdbtools/selection.rb
CHANGED
@@ -88,7 +88,7 @@ module SDBTools
|
|
88
88
|
operation.args[0] = to_s(limit, num_items)
|
89
89
|
end
|
90
90
|
end
|
91
|
-
rescue
|
91
|
+
rescue Aws::AwsError => error
|
92
92
|
if error.message =~ /InvalidQueryExpression/
|
93
93
|
raise error, error.message.to_s + " (#{to_s(limit, num_items)})", error.backtrace
|
94
94
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sdbtools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Avdi Grimm
|
@@ -9,18 +9,18 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-26 00:00:00 -05:00
|
13
13
|
default_executable: sdbtool
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: aws
|
17
17
|
type: :runtime
|
18
18
|
version_requirement:
|
19
19
|
version_requirements: !ruby/object:Gem::Requirement
|
20
20
|
requirements:
|
21
21
|
- - ~>
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: "1
|
23
|
+
version: "2.1"
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: main
|