Skip to content

Commit

Permalink
Fix Rails 3.1 generator breakage and update to latest RSpec.
Browse files Browse the repository at this point in the history
  • Loading branch information
seancribbs committed Jan 12, 2012
1 parent ec0d916 commit c4a2454
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ doc
.yardoc
.bundle
spec/support/test_server.yml
Gemfile.lock
Gemfile*.lock
**/bin
*.rbc
.rvmrc
Expand Down
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--color
1 change: 1 addition & 0 deletions lib/rails/generators/ripple_generator.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'rails/generators'
require "rails/generators/named_base"
require "rails/generators/active_model"

Expand Down
4 changes: 2 additions & 2 deletions ripple.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Gem::Specification.new do |gem|
gem.authors = ["Sean Cribbs"]

# Deps
gem.add_development_dependency "rspec", "~>2.6.0"
gem.add_development_dependency 'rake', '~> 0.8.7'
gem.add_development_dependency "rspec", "~>2.8.0"
gem.add_development_dependency 'rake'
gem.add_development_dependency 'ammeter', '~>0.2.2'
gem.add_dependency "riak-client", "~>#{Ripple::VERSION}"
gem.add_dependency "activesupport", [">= 3.0.0", "< 3.2.0"]
Expand Down
5 changes: 4 additions & 1 deletion spec/support/generator_setup.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
require 'ammeter/init'
require 'fileutils'

module GeneratorSetup
include FileUtils
def self.included(group)
group.destination File.expand_path(File.join('..','..','..','tmp'), __FILE__)
group.send :include, FileUtils
group.before(:each){ Dir.chdir destination_root }
end
end
Expand Down

0 comments on commit c4a2454

Please sign in to comment.