Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
General cleanup, add rpsec, add dynamic methods
- Loading branch information
Brendan Loudermilk
committed
Oct 22, 2011
1 parent
451d842
commit d623b80
Showing
11 changed files
with
183 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,2 @@ | |||
--colour | |||
--format <%= ENV["CI"] ? 'progress' : 'documentation'%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,9 @@ | |||
rvm: | |||
- 1.8.7 | |||
- 1.9.2 | |||
- 1.9.3 | |||
- ruby-head | |||
- jruby | |||
- rbx | |||
- rbx-2.0 | |||
- ree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,4 @@ | |||
source :rubygems | |||
gemspec | |||
|
|||
gem "rake" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,70 @@ | |||
PATH | |||
remote: . | |||
specs: | |||
acts_as_async (0.1.0) | |||
activerecord | |||
activesupport | |||
resque | |||
resque-scheduler | |||
|
|||
GEM | |||
remote: http://rubygems.org/ | |||
specs: | |||
activemodel (3.1.1) | |||
activesupport (= 3.1.1) | |||
builder (~> 3.0.0) | |||
i18n (~> 0.6) | |||
activerecord (3.1.1) | |||
activemodel (= 3.1.1) | |||
activesupport (= 3.1.1) | |||
arel (~> 2.2.1) | |||
tzinfo (~> 0.3.29) | |||
activesupport (3.1.1) | |||
multi_json (~> 1.0) | |||
arel (2.2.1) | |||
builder (3.0.0) | |||
diff-lcs (1.1.3) | |||
i18n (0.6.0) | |||
multi_json (1.0.3) | |||
rack (1.3.5) | |||
rack-protection (1.1.4) | |||
rack | |||
rake (0.9.2) | |||
redis (2.2.2) | |||
redis-namespace (1.0.3) | |||
redis (< 3.0.0) | |||
resque (1.19.0) | |||
multi_json (~> 1.0) | |||
redis-namespace (~> 1.0.2) | |||
sinatra (>= 0.9.2) | |||
vegas (~> 0.1.2) | |||
resque-scheduler (1.9.9) | |||
redis (>= 2.0.1) | |||
resque (>= 1.8.0) | |||
rufus-scheduler | |||
rspec (2.7.0) | |||
rspec-core (~> 2.7.0) | |||
rspec-expectations (~> 2.7.0) | |||
rspec-mocks (~> 2.7.0) | |||
rspec-core (2.7.1) | |||
rspec-expectations (2.7.0) | |||
diff-lcs (~> 1.1.2) | |||
rspec-mocks (2.7.0) | |||
rufus-scheduler (2.0.11) | |||
tzinfo (>= 0.3.23) | |||
sinatra (1.3.1) | |||
rack (~> 1.3, >= 1.3.4) | |||
rack-protection (~> 1.1, >= 1.1.2) | |||
tilt (~> 1.3, >= 1.3.3) | |||
tilt (1.3.3) | |||
tzinfo (0.3.30) | |||
vegas (0.1.8) | |||
rack (>= 1.0.0) | |||
|
|||
PLATFORMS | |||
ruby | |||
|
|||
DEPENDENCIES | |||
acts_as_async! | |||
rake | |||
rspec (~> 2.7.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,21 @@ | |||
require "bundler" | |||
Bundler.setup | |||
|
|||
require "rake" | |||
require "rspec" | |||
require "rspec/core/rake_task" | |||
|
|||
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__) | |||
require "acts_as_async/version" | |||
|
|||
RSpec::Core::RakeTask.new("spec") | |||
task :default => :spec | |||
|
|||
task :build do | |||
system "gem build acts_as_async.gemspec" | |||
end | |||
|
|||
task :install => :build do | |||
system "sudo gem install acts_as_async-#{ActsAsAsync::VERSION}.gem" | |||
end | |||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,27 +1,25 @@ | |||
$LOAD_PATH.unshift 'lib' | $LOAD_PATH.unshift "lib" | ||
require 'acts_as_async/version' | |||
|
|
||
Gem::Specification.new do |s| | require "acts_as_async/version" | ||
s.name = "acts_as_async" | |||
s.version = ActsAsAsync::VERSION | |||
s.date = Time.now.strftime('%Y-%m-%d') | |||
s.summary = "Acts As Async is a Resque-backed ActiveRecord delayed job tool" | |||
s.homepage = "http://github.com/bloudermilk/acts_as_async" | |||
s.email = "brendan@gophilosophie.com" | |||
s.authors = [ "Brendan Loudermilk" ] | |||
|
|||
s.files = %w( README.md LICENSE ) | |||
s.files += Dir.glob("lib/**/*") | |||
|
|
||
s.extra_rdoc_files = [ "LICENSE", "README.md" ] | Gem::Specification.new do |s| | ||
s.rdoc_options = ["--charset=UTF-8"] | s.name = "acts_as_async" | ||
s.version = ActsAsAsync::VERSION | |||
s.platform = Gem::Platform::RUBY | |||
s.authors = ["Brendan Loudermilk"] | |||
s.email = ["brendan@gophilosophie.com"] | |||
s.homepage = "http://github.com/bloudermilk/acts_as_async" | |||
s.summary = "The marriage of ActiveRecord and Resque" | |||
s.description = "ActsAsAsync is an ActiveRecord extension that provides your models with easy-to-use Resque helpers" | |||
|
|
||
# TODO: Find minimum versions | # TODO: Find minimum versions | ||
s.add_dependency "resque" | s.add_dependency "resque" | ||
s.add_dependency "resque-scheduler" | s.add_dependency "resque-scheduler" | ||
s.add_dependency "activesupport" | |||
s.add_dependency "activerecord" | s.add_dependency "activerecord" | ||
|
|
||
s.description = <<description | s.add_development_dependency "rspec", "~> 2.7.0" | ||
This gem is so crazy you won't believe. |
|
||
description | s.files = Dir.glob("lib/**/*") + %w(LICENSE Rakefile README.md) | ||
s.require_path = "lib" | |||
end | end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,7 @@ | |||
require "spec_helper" | |||
|
|||
describe ActsAsAsync::BaseExtensions do | |||
it "should kick ass!" do | |||
ActsAsAsync.should == "kick ass!" | |||
end | |||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,2 @@ | |||
require "rspec" | |||
require "acts_as_async" |