1
0
Fork 0
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:
Mauro George 2014-12-30 16:09:18 -02:00
parent 7552cb8121
commit 5625ea69b2
11 changed files with 132 additions and 18 deletions

1
.gitignore vendored
View file

@ -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
View 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
View file

@ -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

View file

@ -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

View file

@ -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

View 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 => "../"

View 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 => "../"

View 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 => "../"

View 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 => "../"

View 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 => "../"

View 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 => "../"