diff --git a/Rakefile b/Rakefile index 9ddec70..cb6b440 100644 --- a/Rakefile +++ b/Rakefile @@ -2,6 +2,17 @@ require "bundler/gem_tasks" require "yaml" require "active_record" +namespace :test do + task :all do + Dir.glob("./gemfiles/Gemfile*").each do |gemfile| + next if gemfile.end_with?(".lock") + puts "Running specs for #{Pathname.new(gemfile).basename}" + system("BUNDLE_GEMFILE=#{gemfile} bundle install > /dev/null && BUNDLE_GEMFILE=#{gemfile} bundle exec rspec") + puts "" + end + end +end + namespace :db do database_config = YAML.load(File.open("./spec/support/database.yml")) admin_database_config = database_config.merge(database: "mysql") diff --git a/gemfiles/Gemfile.rails-4.2-stable b/gemfiles/Gemfile.rails-4.2-stable new file mode 100644 index 0000000..ce1206b --- /dev/null +++ b/gemfiles/Gemfile.rails-4.2-stable @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +source "https://rubygems.org" + +gemspec path: ".." + +gem "activerecord", github: "rails/rails", branch: "4-2-stable" +gem "sqlite3", "~> 1.3.6" diff --git a/gemfiles/Gemfile.rails-4.2-stable.lock b/gemfiles/Gemfile.rails-4.2-stable.lock new file mode 100644 index 0000000..bd7fb5f --- /dev/null +++ b/gemfiles/Gemfile.rails-4.2-stable.lock @@ -0,0 +1,68 @@ +GIT + remote: git://github.com/rails/rails.git + revision: e9d6b85f3e834ceea2aeabe4cbaa96a7c73eb896 + branch: 4-2-stable + specs: + activemodel (4.2.11.1) + activesupport (= 4.2.11.1) + builder (~> 3.1) + activerecord (4.2.11.1) + activemodel (= 4.2.11.1) + activesupport (= 4.2.11.1) + arel (~> 6.0) + activesupport (4.2.11.1) + i18n (~> 0.7) + minitest (~> 5.1) + thread_safe (~> 0.3, >= 0.3.4) + tzinfo (~> 1.1) + +PATH + remote: .. + specs: + polymorphic_integer_type (2.2.4) + activerecord + +GEM + remote: https://rubygems.org/ + specs: + arel (6.0.4) + builder (3.2.4) + byebug (11.0.1) + concurrent-ruby (1.1.5) + diff-lcs (1.3) + i18n (0.9.5) + concurrent-ruby (~> 1.0) + minitest (5.13.0) + rake (13.0.1) + rspec (3.9.0) + rspec-core (~> 3.9.0) + rspec-expectations (~> 3.9.0) + rspec-mocks (~> 3.9.0) + rspec-core (3.9.0) + rspec-support (~> 3.9.0) + rspec-expectations (3.9.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.9.0) + rspec-mocks (3.9.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.9.0) + rspec-support (3.9.0) + sqlite3 (1.3.13) + thread_safe (0.3.6) + tzinfo (1.2.5) + thread_safe (~> 0.1) + +PLATFORMS + ruby + +DEPENDENCIES + activerecord! + bundler + byebug + polymorphic_integer_type! + rake + rspec + sqlite3 (~> 1.3.6) + +BUNDLED WITH + 1.16.1 diff --git a/gemfiles/Gemfile.rails-5.0-stable b/gemfiles/Gemfile.rails-5.0-stable new file mode 100644 index 0000000..9d07146 --- /dev/null +++ b/gemfiles/Gemfile.rails-5.0-stable @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +source "https://rubygems.org" + +gemspec path: ".." + +gem "activerecord", github: "rails/rails", branch: "5-0-stable" +gem "sqlite3", "~> 1.3.6" diff --git a/gemfiles/Gemfile.rails-5.0-stable.lock b/gemfiles/Gemfile.rails-5.0-stable.lock new file mode 100644 index 0000000..cd9efb0 --- /dev/null +++ b/gemfiles/Gemfile.rails-5.0-stable.lock @@ -0,0 +1,66 @@ +GIT + remote: git://github.com/rails/rails.git + revision: ac6aa32f7cf66264ba87eabed7c042bb60bcf3a2 + branch: 5-0-stable + specs: + activemodel (5.0.7.2) + activesupport (= 5.0.7.2) + activerecord (5.0.7.2) + activemodel (= 5.0.7.2) + activesupport (= 5.0.7.2) + arel (~> 7.0) + activesupport (5.0.7.2) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + +PATH + remote: .. + specs: + polymorphic_integer_type (2.2.4) + activerecord + +GEM + remote: https://rubygems.org/ + specs: + arel (7.1.4) + byebug (11.0.1) + concurrent-ruby (1.1.5) + diff-lcs (1.3) + i18n (1.7.0) + concurrent-ruby (~> 1.0) + minitest (5.13.0) + rake (13.0.1) + rspec (3.9.0) + rspec-core (~> 3.9.0) + rspec-expectations (~> 3.9.0) + rspec-mocks (~> 3.9.0) + rspec-core (3.9.0) + rspec-support (~> 3.9.0) + rspec-expectations (3.9.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.9.0) + rspec-mocks (3.9.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.9.0) + rspec-support (3.9.0) + sqlite3 (1.3.13) + thread_safe (0.3.6) + tzinfo (1.2.5) + thread_safe (~> 0.1) + +PLATFORMS + ruby + +DEPENDENCIES + activerecord! + bundler + byebug + polymorphic_integer_type! + rake + rspec + sqlite3 (~> 1.3.6) + +BUNDLED WITH + 1.16.1 diff --git a/gemfiles/Gemfile.rails-5.1-stable b/gemfiles/Gemfile.rails-5.1-stable new file mode 100644 index 0000000..7c93bab --- /dev/null +++ b/gemfiles/Gemfile.rails-5.1-stable @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +source "https://rubygems.org" + +gemspec path: ".." + +gem "activerecord", github: "rails/rails", branch: "5-1-stable" diff --git a/gemfiles/Gemfile.rails-5.1-stable.lock b/gemfiles/Gemfile.rails-5.1-stable.lock new file mode 100644 index 0000000..0eaf550 --- /dev/null +++ b/gemfiles/Gemfile.rails-5.1-stable.lock @@ -0,0 +1,66 @@ +GIT + remote: git://github.com/rails/rails.git + revision: 663206d20aec374a28a24bb43bc7b1233042ed9b + branch: 5-1-stable + specs: + activemodel (5.1.7) + activesupport (= 5.1.7) + activerecord (5.1.7) + activemodel (= 5.1.7) + activesupport (= 5.1.7) + arel (~> 8.0) + activesupport (5.1.7) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + +PATH + remote: .. + specs: + polymorphic_integer_type (2.2.4) + activerecord + +GEM + remote: https://rubygems.org/ + specs: + arel (8.0.0) + byebug (11.0.1) + concurrent-ruby (1.1.5) + diff-lcs (1.3) + i18n (1.7.0) + concurrent-ruby (~> 1.0) + minitest (5.13.0) + rake (13.0.1) + rspec (3.9.0) + rspec-core (~> 3.9.0) + rspec-expectations (~> 3.9.0) + rspec-mocks (~> 3.9.0) + rspec-core (3.9.0) + rspec-support (~> 3.9.0) + rspec-expectations (3.9.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.9.0) + rspec-mocks (3.9.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.9.0) + rspec-support (3.9.0) + sqlite3 (1.4.2) + thread_safe (0.3.6) + tzinfo (1.2.5) + thread_safe (~> 0.1) + +PLATFORMS + ruby + +DEPENDENCIES + activerecord! + bundler + byebug + polymorphic_integer_type! + rake + rspec + sqlite3 + +BUNDLED WITH + 1.16.1 diff --git a/gemfiles/Gemfile.rails-5.2-stable b/gemfiles/Gemfile.rails-5.2-stable new file mode 100644 index 0000000..5882b02 --- /dev/null +++ b/gemfiles/Gemfile.rails-5.2-stable @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +source "https://rubygems.org" + +gemspec path: ".." + +gem "activerecord", github: "rails/rails", branch: "5-2-stable" diff --git a/gemfiles/Gemfile.rails-5.2-stable.lock b/gemfiles/Gemfile.rails-5.2-stable.lock new file mode 100644 index 0000000..a5ec205 --- /dev/null +++ b/gemfiles/Gemfile.rails-5.2-stable.lock @@ -0,0 +1,66 @@ +GIT + remote: git://github.com/rails/rails.git + revision: 892eab777c418135ce0646e91bc9ebb08a29ab9b + branch: 5-2-stable + specs: + activemodel (5.2.4.1) + activesupport (= 5.2.4.1) + activerecord (5.2.4.1) + activemodel (= 5.2.4.1) + activesupport (= 5.2.4.1) + arel (>= 9.0) + activesupport (5.2.4.1) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + +PATH + remote: .. + specs: + polymorphic_integer_type (2.2.4) + activerecord + +GEM + remote: https://rubygems.org/ + specs: + arel (9.0.0) + byebug (11.0.1) + concurrent-ruby (1.1.5) + diff-lcs (1.3) + i18n (1.7.0) + concurrent-ruby (~> 1.0) + minitest (5.13.0) + rake (13.0.1) + rspec (3.9.0) + rspec-core (~> 3.9.0) + rspec-expectations (~> 3.9.0) + rspec-mocks (~> 3.9.0) + rspec-core (3.9.0) + rspec-support (~> 3.9.0) + rspec-expectations (3.9.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.9.0) + rspec-mocks (3.9.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.9.0) + rspec-support (3.9.0) + sqlite3 (1.4.2) + thread_safe (0.3.6) + tzinfo (1.2.5) + thread_safe (~> 0.1) + +PLATFORMS + ruby + +DEPENDENCIES + activerecord! + bundler + byebug + polymorphic_integer_type! + rake + rspec + sqlite3 + +BUNDLED WITH + 1.16.1