Permalink
Browse files

Issue #4

  • Loading branch information...
1 parent c733cce commit a33e9eafe289f566e698b24dd8094b7f15e1531d Brian Ploetz committed Apr 15, 2012
View
@@ -4,3 +4,7 @@ rvm:
- 1.9.3
- jruby
- ree
+gemfile:
+ - gemfiles/Rails-3.0
+ - gemfiles/Rails-3.1
+ - gemfiles/Rails-3.2
View
11 Gemfile
@@ -1,3 +1,12 @@
source "http://rubygems.org"
-gemspec
+group :development do
+ gem 'versionist', :path => '.'
+ gem 'awesome_print', '= 1.0.2'
+ gem 'rake', '>= 0.9.2'
+ gem 'rspec', '2.8.0'
+ gem 'rspec-rails', '2.8.0'
+ gem 'generator_spec', '0.8.4'
+ gem 'rdoc', '>= 3.11'
+ gem 'simplecov', '0.5.4'
+end
View
@@ -7,35 +7,34 @@ PATH
GEM
remote: http://rubygems.org/
specs:
- actionmailer (3.1.3)
- actionpack (= 3.1.3)
- mail (~> 2.3.0)
- actionpack (3.1.3)
- activemodel (= 3.1.3)
- activesupport (= 3.1.3)
+ actionmailer (3.2.3)
+ actionpack (= 3.2.3)
+ mail (~> 2.4.4)
+ actionpack (3.2.3)
+ activemodel (= 3.2.3)
+ activesupport (= 3.2.3)
builder (~> 3.0.0)
erubis (~> 2.7.0)
- i18n (~> 0.6)
- rack (~> 1.3.5)
- rack-cache (~> 1.1)
- rack-mount (~> 0.8.2)
+ journey (~> 1.0.1)
+ rack (~> 1.4.0)
+ rack-cache (~> 1.2)
rack-test (~> 0.6.1)
- sprockets (~> 2.0.3)
- activemodel (3.1.3)
- activesupport (= 3.1.3)
+ sprockets (~> 2.1.2)
+ activemodel (3.2.3)
+ activesupport (= 3.2.3)
builder (~> 3.0.0)
- i18n (~> 0.6)
- activerecord (3.1.3)
- activemodel (= 3.1.3)
- activesupport (= 3.1.3)
- arel (~> 2.2.1)
+ activerecord (3.2.3)
+ activemodel (= 3.2.3)
+ activesupport (= 3.2.3)
+ arel (~> 3.0.2)
tzinfo (~> 0.3.29)
- activeresource (3.1.3)
- activemodel (= 3.1.3)
- activesupport (= 3.1.3)
- activesupport (3.1.3)
+ activeresource (3.2.3)
+ activemodel (= 3.2.3)
+ activesupport (= 3.2.3)
+ activesupport (3.2.3)
+ i18n (~> 0.6)
multi_json (~> 1.0)
- arel (2.2.1)
+ arel (3.0.2)
awesome_print (1.0.2)
builder (3.0.0)
diff-lcs (1.1.3)
@@ -45,34 +44,33 @@ GEM
rspec-rails
hike (1.2.1)
i18n (0.6.0)
- json (1.6.4)
- mail (2.3.0)
+ journey (1.0.3)
+ json (1.6.6)
+ mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
- mime-types (1.17.2)
+ mime-types (1.18)
multi_json (1.0.4)
polyglot (0.3.3)
- rack (1.3.6)
- rack-cache (1.1)
+ rack (1.4.1)
+ rack-cache (1.2)
rack (>= 0.4)
- rack-mount (0.8.3)
- rack (>= 1.0.0)
rack-ssl (1.3.2)
rack
rack-test (0.6.1)
rack (>= 1.0)
- rails (3.1.3)
- actionmailer (= 3.1.3)
- actionpack (= 3.1.3)
- activerecord (= 3.1.3)
- activeresource (= 3.1.3)
- activesupport (= 3.1.3)
+ rails (3.2.3)
+ actionmailer (= 3.2.3)
+ actionpack (= 3.2.3)
+ activerecord (= 3.2.3)
+ activeresource (= 3.2.3)
+ activesupport (= 3.2.3)
bundler (~> 1.0)
- railties (= 3.1.3)
- railties (3.1.3)
- actionpack (= 3.1.3)
- activesupport (= 3.1.3)
+ railties (= 3.2.3)
+ railties (3.2.3)
+ actionpack (= 3.2.3)
+ activesupport (= 3.2.3)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
@@ -97,7 +95,7 @@ GEM
multi_json (~> 1.0.3)
simplecov-html (~> 0.5.3)
simplecov-html (0.5.3)
- sprockets (2.0.3)
+ sprockets (2.1.2)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
@@ -106,15 +104,14 @@ GEM
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
- tzinfo (0.3.31)
+ tzinfo (0.3.33)
PLATFORMS
ruby
DEPENDENCIES
awesome_print (= 1.0.2)
generator_spec (= 0.8.4)
- rails (~> 3.0)
rake (>= 0.9.2)
rdoc (>= 3.11)
rspec (= 2.8.0)
View
@@ -179,6 +179,8 @@ If you use the generators provided Versionist (more below) simply pass the modul
create spec/presenters/v2_0_0/foos_presenter_spec.rb
+Unfortunately this work around currently only works in Rails 3.0 and 3.1. Rails 3.2 doesn't seem to honor underscores in module names at all (see [https://github.com/rails/rails/issues/5849](https://github.com/rails/rails/issues/5849)).
+
Don't shoot the messenger. :-)
View
@@ -1,6 +1,30 @@
require 'rspec/core/rake_task'
+require 'rdoc/task'
+require 'versionist/version'
-task :default => [:spec]
+GEMFILE_MAP = {"gemfiles/Rails-3.0" => "Rails 3.0", "gemfiles/Rails-3.1" => "Rails 3.1", "gemfiles/Rails-3.2" => "Rails 3.2"}
+
+# To run the tests locally:
+# gem install bundler
+# bundle install
+# rake test:all
+namespace :test do
+ desc "Installs all dependencies"
+ task :setup do
+ GEMFILE_MAP.each do |gemfile, name|
+ puts "Installing gems for testing with #{name} ..."
+ sh "env BUNDLE_GEMFILE=#{File.dirname(__FILE__) + '/' + gemfile} bundle install"
+ end
+ end
+
+ GEMFILE_MAP.each do |gemfile, name|
+ desc "Run all tests against #{name}"
+ task gemfile.downcase.gsub(/\./, "_") do
+ sh "env BUNDLE_GEMFILE=#{gemfile} bundle exec rake"
+ end
+ end
+ task :all=> [:setup] + GEMFILE_MAP.map {|gemfile, name| "test:#{gemfile.downcase.gsub(/\./, "_")}"}
+end
task :build do
system "gem build versionist.gemspec"
@@ -11,7 +35,8 @@ RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = "spec/**/*_spec.rb"
end
-require 'rdoc/task'
+task :default => [:spec]
+
RDoc::Task.new do |rdoc|
files = ['lib/**/*.rb']
rdoc.rdoc_dir = 'rdoc'
View
@@ -0,0 +1,15 @@
+source "http://rubygems.org"
+
+gemspec :path => "../"
+
+gem "rails", "~> 3.0.0"
+
+group :development do
+ gem 'awesome_print', '= 1.0.2'
+ gem 'rake', '>= 0.9.2'
+ gem 'rspec', '2.8.0'
+ gem 'rspec-rails', '2.8.0'
+ gem 'generator_spec', '0.8.4'
+ gem 'rdoc', '>= 3.11'
+ gem 'simplecov', '0.5.4'
+end
View
@@ -0,0 +1,113 @@
+PATH
+ remote: /Users/bploetz/workspace/versionist
+ specs:
+ versionist (0.1.3)
+ rails (~> 3.0)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ abstract (1.0.0)
+ actionmailer (3.0.12)
+ actionpack (= 3.0.12)
+ mail (~> 2.2.19)
+ actionpack (3.0.12)
+ activemodel (= 3.0.12)
+ activesupport (= 3.0.12)
+ builder (~> 2.1.2)
+ erubis (~> 2.6.6)
+ i18n (~> 0.5.0)
+ rack (~> 1.2.5)
+ rack-mount (~> 0.6.14)
+ rack-test (~> 0.5.7)
+ tzinfo (~> 0.3.23)
+ activemodel (3.0.12)
+ activesupport (= 3.0.12)
+ builder (~> 2.1.2)
+ i18n (~> 0.5.0)
+ activerecord (3.0.12)
+ activemodel (= 3.0.12)
+ activesupport (= 3.0.12)
+ arel (~> 2.0.10)
+ tzinfo (~> 0.3.23)
+ activeresource (3.0.12)
+ activemodel (= 3.0.12)
+ activesupport (= 3.0.12)
+ activesupport (3.0.12)
+ arel (2.0.10)
+ awesome_print (1.0.2)
+ builder (2.1.2)
+ diff-lcs (1.1.3)
+ erubis (2.6.6)
+ abstract (>= 1.0.0)
+ generator_spec (0.8.4)
+ rails (>= 3.0, < 4.0)
+ rspec-rails
+ i18n (0.5.0)
+ json (1.6.6)
+ mail (2.2.19)
+ activesupport (>= 2.3.6)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.18)
+ multi_json (1.0.4)
+ polyglot (0.3.3)
+ rack (1.2.5)
+ rack-mount (0.6.14)
+ rack (>= 1.0.0)
+ rack-test (0.5.7)
+ rack (>= 1.0)
+ rails (3.0.12)
+ actionmailer (= 3.0.12)
+ actionpack (= 3.0.12)
+ activerecord (= 3.0.12)
+ activeresource (= 3.0.12)
+ activesupport (= 3.0.12)
+ bundler (~> 1.0)
+ railties (= 3.0.12)
+ railties (3.0.12)
+ actionpack (= 3.0.12)
+ activesupport (= 3.0.12)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (~> 0.14.4)
+ rake (0.9.2.2)
+ rdoc (3.12)
+ json (~> 1.4)
+ rspec (2.8.0)
+ rspec-core (~> 2.8.0)
+ rspec-expectations (~> 2.8.0)
+ rspec-mocks (~> 2.8.0)
+ rspec-core (2.8.0)
+ rspec-expectations (2.8.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.8.0)
+ rspec-rails (2.8.0)
+ actionpack (>= 3.0)
+ activesupport (>= 3.0)
+ railties (>= 3.0)
+ rspec (~> 2.8.0)
+ simplecov (0.5.4)
+ multi_json (~> 1.0.3)
+ simplecov-html (~> 0.5.3)
+ simplecov-html (0.5.3)
+ thor (0.14.6)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.33)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ awesome_print (= 1.0.2)
+ generator_spec (= 0.8.4)
+ rails (~> 3.0.0)
+ rake (>= 0.9.2)
+ rdoc (>= 3.11)
+ rspec (= 2.8.0)
+ rspec-rails (= 2.8.0)
+ simplecov (= 0.5.4)
+ versionist!
View
@@ -0,0 +1,15 @@
+source "http://rubygems.org"
+
+gemspec :path => "../"
+
+gem "rails", "~> 3.1.0"
+
+group :development do
+ gem 'awesome_print', '= 1.0.2'
+ gem 'rake', '>= 0.9.2'
+ gem 'rspec', '2.8.0'
+ gem 'rspec-rails', '2.8.0'
+ gem 'generator_spec', '0.8.4'
+ gem 'rdoc', '>= 3.11'
+ gem 'simplecov', '0.5.4'
+end
Oops, something went wrong.

0 comments on commit a33e9ea

Please sign in to comment.