diff --git a/Gemfile b/Gemfile index 4201d2fc..47df9844 100644 --- a/Gemfile +++ b/Gemfile @@ -8,3 +8,4 @@ gem 'mocha' gem 'minitest-rg' gem 'rails-controller-testing' gem 'rubocop' +gem 'chandler', '0.9.0' diff --git a/Gemfile.lock b/Gemfile.lock index ec26f386..729eb3cd 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -51,12 +51,19 @@ GEM i18n (>= 0.7, < 2) minitest (~> 5.1) tzinfo (~> 1.1) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) arel (9.0.0) ast (2.4.0) builder (3.2.3) + chandler (0.9.0) + netrc + octokit (>= 2.2.0) concurrent-ruby (1.1.5) crass (1.0.4) erubi (1.8.0) + faraday (0.15.4) + multipart-post (>= 1.2, < 3) globalid (0.4.2) activesupport (>= 4.2.0) has_scope (0.7.2) @@ -83,15 +90,20 @@ GEM minitest (~> 5.0) mocha (1.7.0) metaclass (~> 0.0.1) + multipart-post (2.0.0) + netrc (0.11.0) nio4r (2.3.1) nio4r (2.3.1-java) nokogiri (1.10.1) mini_portile2 (~> 2.4.0) nokogiri (1.10.1-java) + octokit (4.13.0) + sawyer (~> 0.8.0, >= 0.5.3) parallel (1.12.1) parser (2.5.3.0) ast (~> 2.4.0) powerpack (0.1.2) + public_suffix (3.0.3) rack (2.0.6) rack-test (1.1.0) rack (>= 1.0, < 3) @@ -137,6 +149,9 @@ GEM ruby-progressbar (~> 1.7) unicode-display_width (~> 1.4.0) ruby-progressbar (1.10.0) + sawyer (0.8.1) + addressable (>= 2.3.5, < 2.6) + faraday (~> 0.8, < 1.0) sprockets (3.7.2) concurrent-ruby (~> 1.0) rack (> 1, < 3) @@ -161,6 +176,7 @@ PLATFORMS ruby DEPENDENCIES + chandler (= 0.9.0) inherited_resources! minitest-rg mocha diff --git a/Rakefile b/Rakefile index 5db41474..f205bfb4 100644 --- a/Rakefile +++ b/Rakefile @@ -4,6 +4,7 @@ require 'rdoc/task' require 'rubocop/rake_task' import 'tasks/gemfiles.rake' +import 'tasks/release.rake' desc 'Run tests for InheritedResources.' Rake::TestTask.new(:test) do |t| diff --git a/bin/chandler b/bin/chandler new file mode 100755 index 00000000..b56409c4 --- /dev/null +++ b/bin/chandler @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +# +# This file was generated by Bundler. +# +# The application 'chandler' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +bundle_binstub = File.expand_path("../bundle", __FILE__) + +if File.file?(bundle_binstub) + if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/ + load(bundle_binstub) + else + abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. +Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") + end +end + +require "rubygems" +require "bundler/setup" + +load Gem.bin_path("chandler", "chandler") diff --git a/bin/rake b/bin/rake new file mode 100755 index 00000000..9275675e --- /dev/null +++ b/bin/rake @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +# +# This file was generated by Bundler. +# +# The application 'rake' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require "pathname" +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +bundle_binstub = File.expand_path("../bundle", __FILE__) + +if File.file?(bundle_binstub) + if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/ + load(bundle_binstub) + else + abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. +Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") + end +end + +require "rubygems" +require "bundler/setup" + +load Gem.bin_path("rake", "rake") diff --git a/tasks/release.rake b/tasks/release.rake new file mode 100644 index 00000000..e98c7790 --- /dev/null +++ b/tasks/release.rake @@ -0,0 +1,6 @@ +require "chandler/tasks" + +# +# Add chandler as a prerequisite for `rake release` +# +task "release:rubygem_push" => "chandler:push" diff --git a/test/gemfiles/Gemfile-Rails-5-0 b/test/gemfiles/Gemfile-Rails-5-0 index 81bf8885..d63193d3 100644 --- a/test/gemfiles/Gemfile-Rails-5-0 +++ b/test/gemfiles/Gemfile-Rails-5-0 @@ -8,3 +8,4 @@ gem 'mocha' gem 'minitest-rg' gem 'rails-controller-testing' gem 'rubocop' +gem 'chandler', '0.9.0' diff --git a/test/gemfiles/Gemfile-Rails-5-0.lock b/test/gemfiles/Gemfile-Rails-5-0.lock index bb673e16..60f800f9 100644 --- a/test/gemfiles/Gemfile-Rails-5-0.lock +++ b/test/gemfiles/Gemfile-Rails-5-0.lock @@ -51,12 +51,19 @@ GEM i18n (>= 0.7, < 2) minitest (~> 5.1) tzinfo (~> 1.1) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) arel (9.0.0) ast (2.4.0) builder (3.2.3) + chandler (0.9.0) + netrc + octokit (>= 2.2.0) concurrent-ruby (1.1.5) crass (1.0.4) erubi (1.8.0) + faraday (0.15.4) + multipart-post (>= 1.2, < 3) globalid (0.4.2) activesupport (>= 4.2.0) has_scope (0.7.2) @@ -83,15 +90,20 @@ GEM minitest (~> 5.0) mocha (1.7.0) metaclass (~> 0.0.1) + multipart-post (2.0.0) + netrc (0.11.0) nio4r (2.3.1) nio4r (2.3.1-java) nokogiri (1.10.1) mini_portile2 (~> 2.4.0) nokogiri (1.10.1-java) + octokit (4.13.0) + sawyer (~> 0.8.0, >= 0.5.3) parallel (1.12.1) parser (2.5.3.0) ast (~> 2.4.0) powerpack (0.1.2) + public_suffix (3.0.3) rack (2.0.6) rack-test (1.1.0) rack (>= 1.0, < 3) @@ -137,6 +149,9 @@ GEM ruby-progressbar (~> 1.7) unicode-display_width (~> 1.4.0) ruby-progressbar (1.10.0) + sawyer (0.8.1) + addressable (>= 2.3.5, < 2.6) + faraday (~> 0.8, < 1.0) sprockets (3.7.2) concurrent-ruby (~> 1.0) rack (> 1, < 3) @@ -161,6 +176,7 @@ PLATFORMS ruby DEPENDENCIES + chandler (= 0.9.0) inherited_resources! minitest-rg mocha diff --git a/test/gemfiles/Gemfile-Rails-5-1 b/test/gemfiles/Gemfile-Rails-5-1 index 96859e92..7f4abb36 100644 --- a/test/gemfiles/Gemfile-Rails-5-1 +++ b/test/gemfiles/Gemfile-Rails-5-1 @@ -8,3 +8,4 @@ gem 'mocha' gem 'minitest-rg' gem 'rails-controller-testing' gem 'rubocop' +gem 'chandler', '0.9.0' diff --git a/test/gemfiles/Gemfile-Rails-5-1.lock b/test/gemfiles/Gemfile-Rails-5-1.lock index b9a843c5..5ba51233 100644 --- a/test/gemfiles/Gemfile-Rails-5-1.lock +++ b/test/gemfiles/Gemfile-Rails-5-1.lock @@ -51,12 +51,19 @@ GEM i18n (>= 0.7, < 2) minitest (~> 5.1) tzinfo (~> 1.1) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) arel (9.0.0) ast (2.4.0) builder (3.2.3) + chandler (0.9.0) + netrc + octokit (>= 2.2.0) concurrent-ruby (1.1.5) crass (1.0.4) erubi (1.8.0) + faraday (0.15.4) + multipart-post (>= 1.2, < 3) globalid (0.4.2) activesupport (>= 4.2.0) has_scope (0.7.2) @@ -83,15 +90,20 @@ GEM minitest (~> 5.0) mocha (1.7.0) metaclass (~> 0.0.1) + multipart-post (2.0.0) + netrc (0.11.0) nio4r (2.3.1) nio4r (2.3.1-java) nokogiri (1.10.1) mini_portile2 (~> 2.4.0) nokogiri (1.10.1-java) + octokit (4.13.0) + sawyer (~> 0.8.0, >= 0.5.3) parallel (1.12.1) parser (2.5.3.0) ast (~> 2.4.0) powerpack (0.1.2) + public_suffix (3.0.3) rack (2.0.6) rack-test (1.1.0) rack (>= 1.0, < 3) @@ -137,6 +149,9 @@ GEM ruby-progressbar (~> 1.7) unicode-display_width (~> 1.4.0) ruby-progressbar (1.10.0) + sawyer (0.8.1) + addressable (>= 2.3.5, < 2.6) + faraday (~> 0.8, < 1.0) sprockets (3.7.2) concurrent-ruby (~> 1.0) rack (> 1, < 3) @@ -161,6 +176,7 @@ PLATFORMS ruby DEPENDENCIES + chandler (= 0.9.0) inherited_resources! minitest-rg mocha diff --git a/test/gemfiles/Gemfile-Rails-6-0 b/test/gemfiles/Gemfile-Rails-6-0 index c9d5187b..c9e3d403 100644 --- a/test/gemfiles/Gemfile-Rails-6-0 +++ b/test/gemfiles/Gemfile-Rails-6-0 @@ -8,3 +8,4 @@ gem 'mocha' gem 'minitest-rg' gem 'rails-controller-testing' gem 'rubocop' +gem 'chandler', '0.9.0' diff --git a/test/gemfiles/Gemfile-Rails-6-0.lock b/test/gemfiles/Gemfile-Rails-6-0.lock index f4ddcd42..f6de96a6 100644 --- a/test/gemfiles/Gemfile-Rails-6-0.lock +++ b/test/gemfiles/Gemfile-Rails-6-0.lock @@ -64,11 +64,18 @@ GEM minitest (~> 5.1) tzinfo (~> 1.1) zeitwerk (~> 1.3, >= 1.3.1) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) ast (2.4.0) builder (3.2.3) + chandler (0.9.0) + netrc + octokit (>= 2.2.0) concurrent-ruby (1.1.5) crass (1.0.4) erubi (1.8.0) + faraday (0.15.4) + multipart-post (>= 1.2, < 3) globalid (0.4.2) activesupport (>= 4.2.0) has_scope (0.7.2) @@ -96,11 +103,15 @@ GEM minitest (~> 5.0) mocha (1.8.0) metaclass (~> 0.0.1) + multipart-post (2.0.0) + netrc (0.11.0) nio4r (2.3.1) nio4r (2.3.1-java) nokogiri (1.10.1) mini_portile2 (~> 2.4.0) nokogiri (1.10.1-java) + octokit (4.13.0) + sawyer (~> 0.8.0, >= 0.5.3) parallel (1.14.0) parser (2.6.0.0) ast (~> 2.4.0) @@ -108,6 +119,7 @@ GEM psych (3.1.0) psych (3.1.0-java) jar-dependencies (>= 0.1.7) + public_suffix (3.0.3) rack (2.0.6) rack-test (1.1.0) rack (>= 1.0, < 3) @@ -156,6 +168,9 @@ GEM ruby-progressbar (~> 1.7) unicode-display_width (~> 1.4.0) ruby-progressbar (1.10.0) + sawyer (0.8.1) + addressable (>= 2.3.5, < 2.6) + faraday (~> 0.8, < 1.0) sprockets (3.7.2) concurrent-ruby (~> 1.0) rack (> 1, < 3) @@ -181,6 +196,7 @@ PLATFORMS ruby DEPENDENCIES + chandler (= 0.9.0) inherited_resources! minitest-rg mocha