Permalink
Browse files

Starting evented branch.

  • Loading branch information...
1 parent 2c3ea91 commit fc42992d40899c1c281be3901aec922b609fff11 @treeder treeder committed May 8, 2011
Showing with 45 additions and 11 deletions.
  1. +1 −1 Rakefile
  2. +4 −4 VERSION.yml
  3. +7 −6 simple_record.gemspec
  4. +33 −0 test/test_async.rb
View
@@ -13,7 +13,7 @@ begin
gemspec.description = "ActiveRecord like interface for Amazon SimpleDB. Store, query, shard, etc. By http://www.appoxy.com"
gemspec.authors = ["Travis Reeder", "Chad Arimura", "RightScale"]
gemspec.files = FileList['lib/**/*.rb']
- gemspec.add_dependency 'aws'
+ gemspec.add_dependency 'aws', '>= 3.0.0.beta'
gemspec.add_dependency 'concur'
end
Jeweler::GemcutterTasks.new
View
@@ -1,5 +1,5 @@
---
-:major: 2
-:minor: 1
-:patch: 6
-:build:
+:major: 3
+:minor: 0
+:patch: 0
+:build: beta
View
@@ -5,9 +5,9 @@
Gem::Specification.new do |s|
s.name = %q{simple_record}
- s.version = "2.1.6"
+ s.version = "3.0.0.beta"
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
s.authors = ["Travis Reeder", "Chad Arimura", "RightScale"]
s.date = %q{2011-05-08}
s.description = %q{ActiveRecord like interface for Amazon SimpleDB. Store, query, shard, etc. By http://www.appoxy.com}
@@ -33,21 +33,22 @@ Gem::Specification.new do |s|
]
s.homepage = %q{http://github.com/appoxy/simple_record/}
s.require_paths = ["lib"]
- s.rubygems_version = %q{1.7.2}
+ s.rubygems_version = %q{1.3.7}
s.summary = %q{ActiveRecord like interface for Amazon SimpleDB. By http://www.appoxy.com}
if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<aws>, [">= 0"])
+ s.add_runtime_dependency(%q<aws>, [">= 3.0.0.beta"])
s.add_runtime_dependency(%q<concur>, [">= 0"])
else
- s.add_dependency(%q<aws>, [">= 0"])
+ s.add_dependency(%q<aws>, [">= 3.0.0.beta"])
s.add_dependency(%q<concur>, [">= 0"])
end
else
- s.add_dependency(%q<aws>, [">= 0"])
+ s.add_dependency(%q<aws>, [">= 3.0.0.beta"])
s.add_dependency(%q<concur>, [">= 0"])
end
end
View
@@ -0,0 +1,33 @@
+require 'rspec'
+require File.join(File.dirname(__FILE__), "/../lib/simple_record")
+require File.join(File.dirname(__FILE__), "./test_helpers")
+require_relative "test_base"
+require "yaml"
+require 'aws'
+require_relative 'my_model'
+require_relative 'my_child_model'
+require_relative 'model_with_enc'
+require_relative 'my_simple_model'
+
+
+describe "async" do
+ before(:all) do
+ @config = YAML::load(File.open(File.expand_path("~/.test_configs/simple_record.yml")))
+ #puts 'inspecting config = ' + @config.inspect
+
+ SimpleRecord::Base.set_domain_prefix("simplerecord_tests_")
+ SimpleRecord.establish_connection(@config['amazon']['access_key'], @config['amazon']['secret_key'],
+ {:connection_mode=>:per_thread})
+
+
+ # Establish AWS connection directly
+ @@sdb = Aws::SdbInterface.new(@config['amazon']['access_key'], @config['amazon']['secret_key'],
+ {:connection_mode => :per_thread}.merge(options))
+ end
+ describe "find" do
+ it "should be able to find in parallel" do
+ model = MySimpleModel.new
+ end
+ end
+end
+

0 comments on commit fc42992

Please sign in to comment.