Navigation Menu

Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

Commit

Permalink
update gems, fix tests, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
nragaz committed Mar 20, 2012
1 parent d3c29ab commit d16971b
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 71 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -2,7 +2,7 @@ source "http://rubygems.org"

gemspec

gem 'rails', '3.1.0.rc4'
gem 'rails', '~> 3.1'
gem 'resque'

# Bundle edge Rails instead:
Expand Down
130 changes: 65 additions & 65 deletions Gemfile.lock
Expand Up @@ -8,105 +8,105 @@ PATH
GEM
remote: http://rubygems.org/
specs:
actionmailer (3.1.0.rc4)
actionpack (= 3.1.0.rc4)
mail (~> 2.3.0)
actionpack (3.1.0.rc4)
activemodel (= 3.1.0.rc4)
activesupport (= 3.1.0.rc4)
actionmailer (3.2.2)
actionpack (= 3.2.2)
mail (~> 2.4.0)
actionpack (3.2.2)
activemodel (= 3.2.2)
activesupport (= 3.2.2)
builder (~> 3.0.0)
erubis (~> 2.7.0)
i18n (~> 0.6)
rack (~> 1.3.0)
rack-cache (~> 1.0.1)
rack-mount (~> 0.8.1)
rack-test (~> 0.6.0)
sprockets (~> 2.0.0.beta.10)
tzinfo (~> 0.3.27)
activemodel (3.1.0.rc4)
activesupport (= 3.1.0.rc4)
bcrypt-ruby (~> 2.1.4)
journey (~> 1.0.1)
rack (~> 1.4.0)
rack-cache (~> 1.1)
rack-test (~> 0.6.1)
sprockets (~> 2.1.2)
activemodel (3.2.2)
activesupport (= 3.2.2)
builder (~> 3.0.0)
activerecord (3.2.2)
activemodel (= 3.2.2)
activesupport (= 3.2.2)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activeresource (3.2.2)
activemodel (= 3.2.2)
activesupport (= 3.2.2)
activesupport (3.2.2)
i18n (~> 0.6)
activerecord (3.1.0.rc4)
activemodel (= 3.1.0.rc4)
activesupport (= 3.1.0.rc4)
arel (~> 2.1.1)
tzinfo (~> 0.3.27)
activeresource (3.1.0.rc4)
activemodel (= 3.1.0.rc4)
activesupport (= 3.1.0.rc4)
activesupport (3.1.0.rc4)
multi_json (~> 1.0)
arel (2.1.1)
bcrypt-ruby (2.1.4)
arel (3.0.2)
builder (3.0.0)
erubis (2.7.0)
hike (1.0.0)
hike (1.2.1)
i18n (0.6.0)
json (1.5.1)
mail (2.3.0)
journey (1.0.3)
json (1.6.5)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.16)
multi_json (1.0.3)
polyglot (0.3.1)
rack (1.3.0)
rack-cache (1.0.2)
mime-types (1.17.2)
multi_json (1.1.0)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack (>= 0.4)
rack-mount (0.8.1)
rack (>= 1.0.0)
rack-protection (1.2.0)
rack
rack-ssl (1.3.2)
rack
rack-test (0.6.0)
rack-test (0.6.1)
rack (>= 1.0)
rails (3.1.0.rc4)
actionmailer (= 3.1.0.rc4)
actionpack (= 3.1.0.rc4)
activerecord (= 3.1.0.rc4)
activeresource (= 3.1.0.rc4)
activesupport (= 3.1.0.rc4)
rails (3.2.2)
actionmailer (= 3.2.2)
actionpack (= 3.2.2)
activerecord (= 3.2.2)
activeresource (= 3.2.2)
activesupport (= 3.2.2)
bundler (~> 1.0)
railties (= 3.1.0.rc4)
railties (3.1.0.rc4)
actionpack (= 3.1.0.rc4)
activesupport (= 3.1.0.rc4)
railties (= 3.2.2)
railties (3.2.2)
actionpack (= 3.2.2)
activesupport (= 3.2.2)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
rake (0.9.2)
rdoc (3.6.1)
redis (2.2.1)
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)
redis (2.2.2)
redis-namespace (1.0.3)
redis (< 3.0.0)
resque (1.17.1)
json (>= 1.4.6, < 1.6)
resque (1.20.0)
multi_json (~> 1.0)
redis-namespace (~> 1.0.2)
sinatra (>= 0.9.2)
vegas (~> 0.1.2)
sinatra (1.2.6)
rack (~> 1.1)
tilt (>= 1.2.2, < 2.0)
sprockets (2.0.0.beta.10)
hike (~> 1.0)
sinatra (1.3.2)
rack (~> 1.3, >= 1.3.6)
rack-protection (~> 1.2)
tilt (~> 1.3, >= 1.3.3)
sprockets (2.1.2)
hike (~> 1.2)
rack (~> 1.0)
tilt (!= 1.3.0, ~> 1.1)
sqlite3 (1.3.3)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.5)
thor (0.14.6)
tilt (1.3.2)
treetop (1.4.9)
tilt (1.3.3)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.28)
vegas (0.1.8)
tzinfo (0.3.32)
vegas (0.1.11)
rack (>= 1.0.0)

PLATFORMS
ruby

DEPENDENCIES
rails (= 3.1.0.rc4)
rails (~> 3.1)
resque
resque-async-method!
sqlite3
10 changes: 5 additions & 5 deletions test/async_method_test.rb
Expand Up @@ -4,18 +4,18 @@ class AsyncMethodTest < ActiveSupport::TestCase
test "define methods" do
assert User.new.respond_to?(:long_method)
assert User.new.respond_to?(:another_long_method)

assert User.new.respond_to?(:sync_long_method)
assert User.new.respond_to?(:sync_another_long_method)
end

test "enqueue jobs" do
user = User.first
assert_equal [], user.long_method

assert_equal true, user.long_method
assert_equal 'success!', user.sync_long_method
end

test "lint" do
assert_nothing_raised do
Resque::Plugin.lint(Resque::Plugins::Async::Method)
Expand Down
Binary file modified test/dummy/db/test.sqlite3
Binary file not shown.
24 changes: 24 additions & 0 deletions test/dummy/log/async_testing.log
Expand Up @@ -26,3 +26,27 @@
Fixture Insert (1.0ms) INSERT INTO "users" ("name", "email", "born_on", "locked_at", "created_at", "updated_at", "id") VALUES ('John Doe', 'john.doe@johndoe.com', '1984-09-17', '2011-06-13 22:01:13.000000', '2011-06-14 20:26:41', '2011-06-14 20:26:41', 980190962)
User Load (0.1ms) SELECT "users".* FROM "users" LIMIT 1
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
 (0.4ms) begin transaction
Fixture Delete (0.2ms) DELETE FROM "users"
Fixture Insert (0.2ms) INSERT INTO "users" ("name", "email", "born_on", "locked_at", "created_at", "updated_at", "id") VALUES ('John Doe', 'john.doe@johndoe.com', '1984-09-17', '2011-06-13 22:01:13.000000', '2012-03-20 01:14:22', '2012-03-20 01:14:22', 980190962)
 (5.3ms) commit transaction
 (0.1ms) begin transaction
 (0.1ms) rollback transaction
 (0.0ms) begin transaction
User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 1
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
 (0.1ms) rollback transaction
 (0.1ms) begin transaction
 (0.0ms) rollback transaction
 (0.3ms) begin transaction
Fixture Delete (0.2ms) DELETE FROM "users"
Fixture Insert (0.2ms) INSERT INTO "users" ("name", "email", "born_on", "locked_at", "created_at", "updated_at", "id") VALUES ('John Doe', 'john.doe@johndoe.com', '1984-09-17', '2011-06-13 22:01:13.000000', '2012-03-20 01:14:53', '2012-03-20 01:14:53', 980190962)
 (2.1ms) commit transaction
 (0.0ms) begin transaction
 (0.1ms) rollback transaction
 (0.1ms) begin transaction
User Load (0.2ms) SELECT "users".* FROM "users" LIMIT 1
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
 (0.1ms) rollback transaction
 (0.1ms) begin transaction
 (0.0ms) rollback transaction

0 comments on commit d16971b

Please sign in to comment.