mirror of
https://github.com/awesome-print/awesome_print
synced 2023-03-27 23:22:34 -04:00
Setup of appraisal
This commit is contained in:
parent
7552cb8121
commit
5625ea69b2
11 changed files with 132 additions and 18 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -21,6 +21,7 @@ coverage
|
||||||
rdoc
|
rdoc
|
||||||
pkg
|
pkg
|
||||||
.ruby-version
|
.ruby-version
|
||||||
|
gemfiles/*.gemfile.lock
|
||||||
Gemfile.lock
|
Gemfile.lock
|
||||||
|
|
||||||
## PROJECT::RVM
|
## PROJECT::RVM
|
||||||
|
|
31
Appraisals
Normal file
31
Appraisals
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
appraise 'rails-3.2' do
|
||||||
|
gem 'activesupport', '~> 3.2.0'
|
||||||
|
gem 'activerecord', '~> 3.2.0'
|
||||||
|
gem 'mongoid', '~> 3.0.0'
|
||||||
|
end
|
||||||
|
|
||||||
|
appraise 'mongoid-3.1' do
|
||||||
|
gem 'activesupport', '~> 3.2.0'
|
||||||
|
gem 'activerecord', '~> 3.2.0'
|
||||||
|
gem 'mongoid', '~> 3.1.0'
|
||||||
|
end
|
||||||
|
|
||||||
|
appraise 'rails-4.0' do
|
||||||
|
gem 'activesupport', '~> 4.0.0'
|
||||||
|
gem 'activerecord', '~> 4.0.0'
|
||||||
|
end
|
||||||
|
|
||||||
|
appraise 'rails-4.1' do
|
||||||
|
gem 'activesupport', '~> 4.1.0'
|
||||||
|
gem 'actionview', '~> 4.1.0'
|
||||||
|
gem 'activerecord', '~> 4.1.0'
|
||||||
|
gem 'mongoid', '~> 4.0.0'
|
||||||
|
end
|
||||||
|
|
||||||
|
appraise 'rails-4.2' do
|
||||||
|
gem 'activesupport', '~> 4.2.0'
|
||||||
|
gem 'actionview', '~> 4.2.0'
|
||||||
|
gem 'activerecord', '~> 4.2.0'
|
||||||
|
gem 'mongoid', '~> 4.0.0'
|
||||||
|
end
|
||||||
|
|
17
Gemfile
17
Gemfile
|
@ -3,18 +3,6 @@ gemspec
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
|
|
||||||
# ActionView extension
|
|
||||||
# ####################
|
|
||||||
gem 'actionview', '>= 4.2.0'
|
|
||||||
|
|
||||||
# ActiveSupport extension
|
|
||||||
# #######################
|
|
||||||
gem 'activesupport', '>= 4.2.0'
|
|
||||||
|
|
||||||
# ActiveRecord extension
|
|
||||||
# ######################
|
|
||||||
# * To simplify creating test models we use an in-memory SQLite DB
|
|
||||||
gem 'activerecord', '>= 4.2.0'
|
|
||||||
gem 'sqlite3'
|
gem 'sqlite3'
|
||||||
|
|
||||||
# MongoMapper extension
|
# MongoMapper extension
|
||||||
|
@ -33,9 +21,4 @@ group :development do
|
||||||
# * Ripple is abandoned http://basho.com/tag/ripple-client-apis/
|
# * Ripple is abandoned http://basho.com/tag/ripple-client-apis/
|
||||||
# * Ripple is not currently compatible with Rails 4
|
# * Ripple is not currently compatible with Rails 4
|
||||||
# gem 'ripple', '~> 0.9.5'
|
# gem 'ripple', '~> 0.9.5'
|
||||||
|
|
||||||
# Mongoid extension
|
|
||||||
# #################
|
|
||||||
# * cannot be enabled at the same time as mongo_mapper
|
|
||||||
gem 'mongoid', '>= 4.0.0'
|
|
||||||
end
|
end
|
||||||
|
|
15
Rakefile
15
Rakefile
|
@ -1,7 +1,20 @@
|
||||||
|
require "rubygems"
|
||||||
|
require "bundler/setup"
|
||||||
|
|
||||||
require "bundler"
|
require "bundler"
|
||||||
Bundler::GemHelper.install_tasks
|
Bundler::GemHelper.install_tasks
|
||||||
|
|
||||||
task :default => :spec
|
task :default do
|
||||||
|
if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/
|
||||||
|
Rake::Task['spec'].invoke
|
||||||
|
else
|
||||||
|
Rake::Task['appraise'].invoke
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
task :appraise do
|
||||||
|
exec 'appraisal install && appraisal rake'
|
||||||
|
end
|
||||||
|
|
||||||
desc "Run all awesome_print gem specs"
|
desc "Run all awesome_print gem specs"
|
||||||
task :spec do
|
task :spec do
|
||||||
|
|
|
@ -24,5 +24,6 @@ Gem::Specification.new do |s|
|
||||||
s.require_paths = ["lib"]
|
s.require_paths = ["lib"]
|
||||||
|
|
||||||
s.add_development_dependency "rspec", ">= 3.0.0"
|
s.add_development_dependency "rspec", ">= 3.0.0"
|
||||||
|
s.add_development_dependency "appraisal"
|
||||||
s.add_development_dependency "fakefs", ">= 0.2.1"
|
s.add_development_dependency "fakefs", ">= 0.2.1"
|
||||||
end
|
end
|
||||||
|
|
14
gemfiles/mongoid_3.1.gemfile
Normal file
14
gemfiles/mongoid_3.1.gemfile
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# This file was generated by Appraisal
|
||||||
|
|
||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
gem "activesupport", "~> 3.2.0"
|
||||||
|
gem "activerecord", "~> 3.2.0"
|
||||||
|
gem "mongoid", "~> 3.1.0"
|
||||||
|
|
||||||
|
group :development do
|
||||||
|
gem "sqlite3"
|
||||||
|
gem "nokogiri", ">= 1.6.5"
|
||||||
|
end
|
||||||
|
|
||||||
|
gemspec :path => "../"
|
14
gemfiles/rails_3.2.gemfile
Normal file
14
gemfiles/rails_3.2.gemfile
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# This file was generated by Appraisal
|
||||||
|
|
||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
gem "activesupport", "~> 3.2.0"
|
||||||
|
gem "activerecord", "~> 3.2.0"
|
||||||
|
gem "mongoid", "~> 3.0.0"
|
||||||
|
|
||||||
|
group :development do
|
||||||
|
gem "sqlite3"
|
||||||
|
gem "nokogiri", ">= 1.6.5"
|
||||||
|
end
|
||||||
|
|
||||||
|
gemspec :path => "../"
|
14
gemfiles/rails_4.0.1.gemfile
Normal file
14
gemfiles/rails_4.0.1.gemfile
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# This file was generated by Appraisal
|
||||||
|
|
||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
gem "activesupport", "~> 4.0.1"
|
||||||
|
gem "activerecord", "~> 4.0.1"
|
||||||
|
gem "mongoid", "~> 4.0.0"
|
||||||
|
|
||||||
|
group :development do
|
||||||
|
gem "sqlite3"
|
||||||
|
gem "nokogiri", ">= 1.6.5"
|
||||||
|
end
|
||||||
|
|
||||||
|
gemspec :path => "../"
|
13
gemfiles/rails_4.0.gemfile
Normal file
13
gemfiles/rails_4.0.gemfile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# This file was generated by Appraisal
|
||||||
|
|
||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
gem "activesupport", "~> 4.0.0"
|
||||||
|
gem "activerecord", "~> 4.0.0"
|
||||||
|
|
||||||
|
group :development do
|
||||||
|
gem "sqlite3"
|
||||||
|
gem "nokogiri", ">= 1.6.5"
|
||||||
|
end
|
||||||
|
|
||||||
|
gemspec :path => "../"
|
15
gemfiles/rails_4.1.gemfile
Normal file
15
gemfiles/rails_4.1.gemfile
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# This file was generated by Appraisal
|
||||||
|
|
||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
gem "activesupport", "~> 4.1.0"
|
||||||
|
gem "actionview", "~> 4.1.0"
|
||||||
|
gem "activerecord", "~> 4.1.0"
|
||||||
|
gem "mongoid", "~> 4.0.0"
|
||||||
|
|
||||||
|
group :development do
|
||||||
|
gem "sqlite3"
|
||||||
|
gem "nokogiri", ">= 1.6.5"
|
||||||
|
end
|
||||||
|
|
||||||
|
gemspec :path => "../"
|
15
gemfiles/rails_4.2.gemfile
Normal file
15
gemfiles/rails_4.2.gemfile
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# This file was generated by Appraisal
|
||||||
|
|
||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
gem "activesupport", "~> 4.2.0"
|
||||||
|
gem "actionview", "~> 4.2.0"
|
||||||
|
gem "activerecord", "~> 4.2.0"
|
||||||
|
gem "mongoid", "~> 4.0.0"
|
||||||
|
|
||||||
|
group :development do
|
||||||
|
gem "sqlite3"
|
||||||
|
gem "nokogiri", ">= 1.6.5"
|
||||||
|
end
|
||||||
|
|
||||||
|
gemspec :path => "../"
|
Loading…
Reference in a new issue