From 2f93f2f51a2f6ae459e58b57a62262df659042be Mon Sep 17 00:00:00 2001 From: JuanitoFatas Date: Fri, 1 Jul 2016 16:01:16 +0800 Subject: [PATCH] Setup Appraisals and update .travis.yml --- .travis.yml | 19 ++++- Appraisals | 16 ++++ Gemfile | 3 +- Rakefile | 5 +- gemfiles/rails_3.gemfile | 26 ++++++ gemfiles/rails_3.gemfile.lock | 138 ++++++++++++++++++++++++++++++ gemfiles/rails_4.gemfile | 26 ++++++ gemfiles/rails_4.gemfile.lock | 149 +++++++++++++++++++++++++++++++++ gemfiles/rails_5.gemfile | 25 ++++++ gemfiles/rails_5.gemfile.lock | 153 ++++++++++++++++++++++++++++++++++ 10 files changed, 555 insertions(+), 5 deletions(-) create mode 100644 Appraisals create mode 100644 gemfiles/rails_3.gemfile create mode 100644 gemfiles/rails_3.gemfile.lock create mode 100644 gemfiles/rails_4.gemfile create mode 100644 gemfiles/rails_4.gemfile.lock create mode 100644 gemfiles/rails_5.gemfile create mode 100644 gemfiles/rails_5.gemfile.lock diff --git a/.travis.yml b/.travis.yml index abf1a7df..c2ed3542 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ language: ruby sudo: false +cache: bundler addons: apt: @@ -8,14 +9,26 @@ addons: script: "bundle exec rake" +gemfile: + - gemfiles/rails_3.gemfile + - gemfiles/rails_4.gemfile + - gemfiles/rails_5.gemfile + rvm: - - 2.0 - - 2.1 + - 2.3.1 + - 2.2.5 - 2.2 - - 2.3.0 + - 2.1 + - 2.0 - ruby-head matrix: fast_finish: true allow_failures: + - gemfile: gemfiles/rails_5.gemfile + rvm: 2.2 + - gemfile: gemfiles/rails_5.gemfile + rvm: 2.1 + - gemfile: gemfiles/rails_5.gemfile + rvm: 2.0 - rvm: ruby-head diff --git a/Appraisals b/Appraisals new file mode 100644 index 00000000..5d84ff34 --- /dev/null +++ b/Appraisals @@ -0,0 +1,16 @@ +appraise "rails-3" do + gem "minitest" + gem "rack", "< 2" + gem "rails", "3.2.22.2" +end + +appraise "rails-4" do + gem "minitest" + gem "rack", "< 2" + gem "rails", "~> 4.2.6" +end + +appraise "rails-5" do + gem "minitest" + gem "rails", "~> 5.0.0" +end diff --git a/Gemfile b/Gemfile index 19874abf..91f6162c 100644 --- a/Gemfile +++ b/Gemfile @@ -9,7 +9,6 @@ group :development do end group :test do - gem "minitest", "~> 5.3" gem "rinku", "~> 1.7", :require => false gem "gemoji", "~> 2.0", :require => false gem "RedCloth", "~> 4.2.9", :require => false @@ -28,4 +27,6 @@ group :test do if RUBY_VERSION < "1.9.3" gem "activesupport", ">= 2", "< 4" end + + gem "appraisal" end diff --git a/Rakefile b/Rakefile index 138105e3..a81faebf 100644 --- a/Rakefile +++ b/Rakefile @@ -1,4 +1,7 @@ #!/usr/bin/env rake +require "rubygems" +require "bundler/setup" + require "bundler/gem_tasks" require 'rake/testtask' @@ -8,4 +11,4 @@ Rake::TestTask.new do |t| t.verbose = true end -task :default => :test \ No newline at end of file +task :default => :test diff --git a/gemfiles/rails_3.gemfile b/gemfiles/rails_3.gemfile new file mode 100644 index 00000000..ec71599a --- /dev/null +++ b/gemfiles/rails_3.gemfile @@ -0,0 +1,26 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "minitest" +gem "rack", "< 2" +gem "rails", "3.2.22.2" + +group :development do + gem "bundler" + gem "rake" +end + +group :test do + gem "rinku", "~> 1.7", :require => false + gem "gemoji", "~> 2.0", :require => false + gem "RedCloth", "~> 4.2.9", :require => false + gem "github-markdown", "~> 0.5", :require => false + gem "email_reply_parser", "~> 0.5", :require => false + gem "sanitize", "~> 2.0", :require => false + gem "escape_utils", "~> 1.0", :require => false + gem "github-linguist", "~> 2.10", :require => false + gem "appraisal" +end + +gemspec :path => "../" diff --git a/gemfiles/rails_3.gemfile.lock b/gemfiles/rails_3.gemfile.lock new file mode 100644 index 00000000..e4b211cc --- /dev/null +++ b/gemfiles/rails_3.gemfile.lock @@ -0,0 +1,138 @@ +PATH + remote: ../ + specs: + html-pipeline (2.4.1) + activesupport (>= 2) + nokogiri (>= 1.4) + +GEM + remote: https://rubygems.org/ + specs: + RedCloth (4.2.9) + actionmailer (3.2.22.2) + actionpack (= 3.2.22.2) + mail (~> 2.5.4) + actionpack (3.2.22.2) + activemodel (= 3.2.22.2) + activesupport (= 3.2.22.2) + builder (~> 3.0.0) + erubis (~> 2.7.0) + journey (~> 1.0.4) + rack (~> 1.4.5) + rack-cache (~> 1.2) + rack-test (~> 0.6.1) + sprockets (~> 2.2.1) + activemodel (3.2.22.2) + activesupport (= 3.2.22.2) + builder (~> 3.0.0) + activerecord (3.2.22.2) + activemodel (= 3.2.22.2) + activesupport (= 3.2.22.2) + arel (~> 3.0.2) + tzinfo (~> 0.3.29) + activeresource (3.2.22.2) + activemodel (= 3.2.22.2) + activesupport (= 3.2.22.2) + activesupport (3.2.22.2) + i18n (~> 0.6, >= 0.6.4) + multi_json (~> 1.0) + appraisal (2.1.0) + bundler + rake + thor (>= 0.14.0) + arel (3.0.3) + builder (3.0.4) + charlock_holmes (0.7.3) + email_reply_parser (0.5.8) + erubis (2.7.0) + escape_utils (1.0.1) + gemoji (2.1.0) + github-linguist (2.12.0) + charlock_holmes (~> 0.7.3) + escape_utils (~> 1.0.1) + mime-types (~> 1.19) + pygments.rb (~> 0.6.0) + github-markdown (0.6.9) + hike (1.2.3) + i18n (0.7.0) + journey (1.0.4) + json (1.8.3) + mail (2.5.4) + mime-types (~> 1.16) + treetop (~> 1.4.8) + mime-types (1.25.1) + mini_portile2 (2.1.0) + minitest (5.9.0) + multi_json (1.12.1) + nokogiri (1.6.8) + mini_portile2 (~> 2.1.0) + pkg-config (~> 1.1.7) + pkg-config (1.1.7) + polyglot (0.3.5) + posix-spawn (0.3.11) + pygments.rb (0.6.3) + posix-spawn (~> 0.3.6) + yajl-ruby (~> 1.2.0) + rack (1.4.7) + rack-cache (1.6.1) + rack (>= 0.4) + rack-ssl (1.3.4) + rack + rack-test (0.6.3) + rack (>= 1.0) + rails (3.2.22.2) + actionmailer (= 3.2.22.2) + actionpack (= 3.2.22.2) + activerecord (= 3.2.22.2) + activeresource (= 3.2.22.2) + activesupport (= 3.2.22.2) + bundler (~> 1.0) + railties (= 3.2.22.2) + railties (3.2.22.2) + actionpack (= 3.2.22.2) + activesupport (= 3.2.22.2) + rack-ssl (~> 1.3.2) + rake (>= 0.8.7) + rdoc (~> 3.4) + thor (>= 0.14.6, < 2.0) + rake (11.2.2) + rdoc (3.12.2) + json (~> 1.4) + rinku (1.7.3) + sanitize (2.1.0) + nokogiri (>= 1.4.4) + sprockets (2.2.3) + hike (~> 1.2) + multi_json (~> 1.0) + rack (~> 1.0) + tilt (~> 1.1, != 1.3.0) + thor (0.19.1) + tilt (1.4.1) + treetop (1.4.15) + polyglot + polyglot (>= 0.3.1) + tzinfo (0.3.50) + yajl-ruby (1.2.1) + +PLATFORMS + ruby + +DEPENDENCIES + RedCloth (~> 4.2.9) + appraisal + bundler + email_reply_parser (~> 0.5) + escape_utils (~> 1.0) + gemoji (~> 2.0) + github-linguist (~> 2.10) + github-markdown (~> 0.5) + html-pipeline! + minitest + rack (< 2) + rails (= 3.2.22.2) + rake + rinku (~> 1.7) + sanitize (~> 2.0) + +BUNDLED WITH + 1.12.5 diff --git a/gemfiles/rails_4.gemfile b/gemfiles/rails_4.gemfile new file mode 100644 index 00000000..95db903e --- /dev/null +++ b/gemfiles/rails_4.gemfile @@ -0,0 +1,26 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "minitest" +gem "rack", "< 2" +gem "rails", "~> 4.2.6" + +group :development do + gem "bundler" + gem "rake" +end + +group :test do + gem "rinku", "~> 1.7", :require => false + gem "gemoji", "~> 2.0", :require => false + gem "RedCloth", "~> 4.2.9", :require => false + gem "github-markdown", "~> 0.5", :require => false + gem "email_reply_parser", "~> 0.5", :require => false + gem "sanitize", "~> 2.0", :require => false + gem "escape_utils", "~> 1.0", :require => false + gem "github-linguist", "~> 2.10", :require => false + gem "appraisal" +end + +gemspec :path => "../" diff --git a/gemfiles/rails_4.gemfile.lock b/gemfiles/rails_4.gemfile.lock new file mode 100644 index 00000000..777d8981 --- /dev/null +++ b/gemfiles/rails_4.gemfile.lock @@ -0,0 +1,149 @@ +PATH + remote: ../ + specs: + html-pipeline (2.4.1) + activesupport (>= 2) + nokogiri (>= 1.4) + +GEM + remote: https://rubygems.org/ + specs: + RedCloth (4.2.9) + actionmailer (4.2.6) + actionpack (= 4.2.6) + actionview (= 4.2.6) + activejob (= 4.2.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 1.0, >= 1.0.5) + actionpack (4.2.6) + actionview (= 4.2.6) + activesupport (= 4.2.6) + rack (~> 1.6) + rack-test (~> 0.6.2) + rails-dom-testing (~> 1.0, >= 1.0.5) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (4.2.6) + activesupport (= 4.2.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 1.0, >= 1.0.5) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + activejob (4.2.6) + activesupport (= 4.2.6) + globalid (>= 0.3.0) + activemodel (4.2.6) + activesupport (= 4.2.6) + builder (~> 3.1) + activerecord (4.2.6) + activemodel (= 4.2.6) + activesupport (= 4.2.6) + arel (~> 6.0) + activesupport (4.2.6) + i18n (~> 0.7) + json (~> 1.7, >= 1.7.7) + minitest (~> 5.1) + thread_safe (~> 0.3, >= 0.3.4) + tzinfo (~> 1.1) + appraisal (2.1.0) + bundler + rake + thor (>= 0.14.0) + arel (6.0.3) + builder (3.2.2) + charlock_holmes (0.7.3) + concurrent-ruby (1.0.2) + email_reply_parser (0.5.8) + erubis (2.7.0) + escape_utils (1.0.1) + gemoji (2.1.0) + github-linguist (2.12.0) + charlock_holmes (~> 0.7.3) + escape_utils (~> 1.0.1) + mime-types (~> 1.19) + pygments.rb (~> 0.6.0) + github-markdown (0.6.9) + globalid (0.3.6) + activesupport (>= 4.1.0) + i18n (0.7.0) + json (1.8.3) + loofah (2.0.3) + nokogiri (>= 1.5.9) + mail (2.6.4) + mime-types (>= 1.16, < 4) + mime-types (1.25.1) + mini_portile2 (2.1.0) + minitest (5.9.0) + nokogiri (1.6.8) + mini_portile2 (~> 2.1.0) + pkg-config (~> 1.1.7) + pkg-config (1.1.7) + posix-spawn (0.3.11) + pygments.rb (0.6.3) + posix-spawn (~> 0.3.6) + yajl-ruby (~> 1.2.0) + rack (1.6.4) + rack-test (0.6.3) + rack (>= 1.0) + rails (4.2.6) + actionmailer (= 4.2.6) + actionpack (= 4.2.6) + actionview (= 4.2.6) + activejob (= 4.2.6) + activemodel (= 4.2.6) + activerecord (= 4.2.6) + activesupport (= 4.2.6) + bundler (>= 1.3.0, < 2.0) + railties (= 4.2.6) + sprockets-rails + rails-deprecated_sanitizer (1.0.3) + activesupport (>= 4.2.0.alpha) + rails-dom-testing (1.0.7) + activesupport (>= 4.2.0.beta, < 5.0) + nokogiri (~> 1.6.0) + rails-deprecated_sanitizer (>= 1.0.1) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (4.2.6) + actionpack (= 4.2.6) + activesupport (= 4.2.6) + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (11.2.2) + rinku (1.7.3) + sanitize (2.1.0) + nokogiri (>= 1.4.4) + sprockets (3.6.2) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.1.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + thor (0.19.1) + thread_safe (0.3.5) + tzinfo (1.2.2) + thread_safe (~> 0.1) + yajl-ruby (1.2.1) + +PLATFORMS + ruby + +DEPENDENCIES + RedCloth (~> 4.2.9) + appraisal + bundler + email_reply_parser (~> 0.5) + escape_utils (~> 1.0) + gemoji (~> 2.0) + github-linguist (~> 2.10) + github-markdown (~> 0.5) + html-pipeline! + minitest + rack (< 2) + rails (~> 4.2.6) + rake + rinku (~> 1.7) + sanitize (~> 2.0) + +BUNDLED WITH + 1.12.5 diff --git a/gemfiles/rails_5.gemfile b/gemfiles/rails_5.gemfile new file mode 100644 index 00000000..3dd6deb1 --- /dev/null +++ b/gemfiles/rails_5.gemfile @@ -0,0 +1,25 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "minitest" +gem "rails", "~> 5.0.0" + +group :development do + gem "bundler" + gem "rake" +end + +group :test do + gem "rinku", "~> 1.7", :require => false + gem "gemoji", "~> 2.0", :require => false + gem "RedCloth", "~> 4.2.9", :require => false + gem "github-markdown", "~> 0.5", :require => false + gem "email_reply_parser", "~> 0.5", :require => false + gem "sanitize", "~> 2.0", :require => false + gem "escape_utils", "~> 1.0", :require => false + gem "github-linguist", "~> 2.10", :require => false + gem "appraisal" +end + +gemspec :path => "../" diff --git a/gemfiles/rails_5.gemfile.lock b/gemfiles/rails_5.gemfile.lock new file mode 100644 index 00000000..3e1ef466 --- /dev/null +++ b/gemfiles/rails_5.gemfile.lock @@ -0,0 +1,153 @@ +PATH + remote: ../ + specs: + html-pipeline (2.4.1) + activesupport (>= 2) + nokogiri (>= 1.4) + +GEM + remote: https://rubygems.org/ + specs: + RedCloth (4.2.9) + actioncable (5.0.0) + actionpack (= 5.0.0) + nio4r (~> 1.2) + websocket-driver (~> 0.6.1) + actionmailer (5.0.0) + actionpack (= 5.0.0) + actionview (= 5.0.0) + activejob (= 5.0.0) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.0) + actionview (= 5.0.0) + activesupport (= 5.0.0) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.0) + activesupport (= 5.0.0) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + activejob (5.0.0) + activesupport (= 5.0.0) + globalid (>= 0.3.6) + activemodel (5.0.0) + activesupport (= 5.0.0) + activerecord (5.0.0) + activemodel (= 5.0.0) + activesupport (= 5.0.0) + arel (~> 7.0) + activesupport (5.0.0) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + appraisal (2.1.0) + bundler + rake + thor (>= 0.14.0) + arel (7.0.0) + builder (3.2.2) + charlock_holmes (0.7.3) + concurrent-ruby (1.0.2) + email_reply_parser (0.5.8) + erubis (2.7.0) + escape_utils (1.0.1) + gemoji (2.1.0) + github-linguist (2.12.0) + charlock_holmes (~> 0.7.3) + escape_utils (~> 1.0.1) + mime-types (~> 1.19) + pygments.rb (~> 0.6.0) + github-markdown (0.6.9) + globalid (0.3.6) + activesupport (>= 4.1.0) + i18n (0.7.0) + loofah (2.0.3) + nokogiri (>= 1.5.9) + mail (2.6.4) + mime-types (>= 1.16, < 4) + method_source (0.8.2) + mime-types (1.25.1) + mini_portile2 (2.1.0) + minitest (5.9.0) + nio4r (1.2.1) + nokogiri (1.6.8) + mini_portile2 (~> 2.1.0) + pkg-config (~> 1.1.7) + pkg-config (1.1.7) + posix-spawn (0.3.11) + pygments.rb (0.6.3) + posix-spawn (~> 0.3.6) + yajl-ruby (~> 1.2.0) + rack (2.0.1) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.0) + actioncable (= 5.0.0) + actionmailer (= 5.0.0) + actionpack (= 5.0.0) + actionview (= 5.0.0) + activejob (= 5.0.0) + activemodel (= 5.0.0) + activerecord (= 5.0.0) + activesupport (= 5.0.0) + bundler (>= 1.3.0, < 2.0) + railties (= 5.0.0) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.1) + activesupport (>= 4.2.0, < 6.0) + nokogiri (~> 1.6.0) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.0) + actionpack (= 5.0.0) + activesupport (= 5.0.0) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (11.2.2) + rinku (1.7.3) + sanitize (2.1.0) + nokogiri (>= 1.4.4) + sprockets (3.6.2) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.1.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + thor (0.19.1) + thread_safe (0.3.5) + tzinfo (1.2.2) + thread_safe (~> 0.1) + websocket-driver (0.6.4) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.2) + yajl-ruby (1.2.1) + +PLATFORMS + ruby + +DEPENDENCIES + RedCloth (~> 4.2.9) + appraisal + bundler + email_reply_parser (~> 0.5) + escape_utils (~> 1.0) + gemoji (~> 2.0) + github-linguist (~> 2.10) + github-markdown (~> 0.5) + html-pipeline! + minitest + rails (~> 5.0.0) + rake + rinku (~> 1.7) + sanitize (~> 2.0) + +BUNDLED WITH + 1.12.5