aws-sdb 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/aws_sdb/service.rb +8 -2
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ Spec::Rake::SpecTask.new
7
7
  gem_spec = Gem::Specification.new do |s|
8
8
  s.name = "aws-sdb"
9
9
  s.rubyforge_project = s.name
10
- s.version = "0.1.3"
10
+ s.version = "0.1.4"
11
11
  s.platform = Gem::Platform::RUBY
12
12
  s.has_rdoc = true
13
13
  s.extra_rdoc_files = ["README", "LICENSE"]
@@ -12,10 +12,16 @@ require 'rexml/xpath'
12
12
  module AwsSdb
13
13
 
14
14
  class Service
15
- def initialize(logger, access_key_id, secret_access_key)
15
+ def initialize(
16
+ logger,
17
+ access_key_id,
18
+ secret_access_key,
19
+ url = "http://sds.amazonaws.com"
20
+ )
16
21
  @logger = logger
17
22
  @access_key_id = access_key_id
18
23
  @secret_access_key = secret_access_key
24
+ @base_url = url
19
25
  end
20
26
 
21
27
  def list_domains(max = nil, token = nil)
@@ -133,7 +139,7 @@ module AwsSdb
133
139
  signature = Base64.encode64(hmac).strip
134
140
  query << "Signature=#{CGI::escape(signature)}"
135
141
  query = query.join('&')
136
- url = "http://sds.amazonaws.com?#{query}"
142
+ url = "#{@base_url}?#{query}"
137
143
  uri = URI.parse(url)
138
144
  @logger.debug("#{url}") if @logger
139
145
  response =
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Dysinger
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-02-20 00:00:00 -10:00
12
+ date: 2008-03-19 00:00:00 -10:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency