-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from testdouble/update-everything
Get back to passing
- Loading branch information
Showing
30 changed files
with
234 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
/.bundle/ | ||
/.yardoc | ||
/Gemfile.lock | ||
/_yardoc/ | ||
/coverage/ | ||
/doc/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
language: ruby | ||
sudo: false | ||
rvm: | ||
- 2.2.3 | ||
- 2.7.1 | ||
before_install: | ||
- BUNDLE_GEMFILE="example/Gemfile" bundle install | ||
env: | ||
- RAILS_VERSION=3.1.0 | ||
- RAILS_VERSION=4.0.0 | ||
- RAILS_VERSION=4.2.0 | ||
- RAILS_VERSION=5.0.0.beta2 | ||
- RAILS_VERSION=5.2.4.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
# Specify your gem's dependencies in good_migrations.gemspec | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
good_migrations (0.0.2) | ||
activerecord (>= 3.1) | ||
railties (>= 3.1) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
actionpack (6.0.3.1) | ||
actionview (= 6.0.3.1) | ||
activesupport (= 6.0.3.1) | ||
rack (~> 2.0, >= 2.0.8) | ||
rack-test (>= 0.6.3) | ||
rails-dom-testing (~> 2.0) | ||
rails-html-sanitizer (~> 1.0, >= 1.2.0) | ||
actionview (6.0.3.1) | ||
activesupport (= 6.0.3.1) | ||
builder (~> 3.1) | ||
erubi (~> 1.4) | ||
rails-dom-testing (~> 2.0) | ||
rails-html-sanitizer (~> 1.1, >= 1.2.0) | ||
activemodel (6.0.3.1) | ||
activesupport (= 6.0.3.1) | ||
activerecord (6.0.3.1) | ||
activemodel (= 6.0.3.1) | ||
activesupport (= 6.0.3.1) | ||
activesupport (6.0.3.1) | ||
concurrent-ruby (~> 1.0, >= 1.0.2) | ||
i18n (>= 0.7, < 2) | ||
minitest (~> 5.1) | ||
tzinfo (~> 1.1) | ||
zeitwerk (~> 2.2, >= 2.2.2) | ||
ast (2.4.1) | ||
builder (3.2.4) | ||
coderay (1.1.3) | ||
concurrent-ruby (1.1.6) | ||
crass (1.0.6) | ||
erubi (1.9.0) | ||
i18n (1.8.3) | ||
concurrent-ruby (~> 1.0) | ||
loofah (2.5.0) | ||
crass (~> 1.0.2) | ||
nokogiri (>= 1.5.9) | ||
method_source (1.0.0) | ||
mini_portile2 (2.4.0) | ||
minitest (5.14.1) | ||
nokogiri (1.10.9) | ||
mini_portile2 (~> 2.4.0) | ||
parallel (1.19.1) | ||
parser (2.7.1.3) | ||
ast (~> 2.4.0) | ||
pry (0.13.1) | ||
coderay (~> 1.1) | ||
method_source (~> 1.0) | ||
rack (2.2.3) | ||
rack-test (1.1.0) | ||
rack (>= 1.0, < 3) | ||
rails-dom-testing (2.0.3) | ||
activesupport (>= 4.2.0) | ||
nokogiri (>= 1.6) | ||
rails-html-sanitizer (1.3.0) | ||
loofah (~> 2.3) | ||
railties (6.0.3.1) | ||
actionpack (= 6.0.3.1) | ||
activesupport (= 6.0.3.1) | ||
method_source | ||
rake (>= 0.8.7) | ||
thor (>= 0.20.3, < 2.0) | ||
rainbow (3.0.0) | ||
rake (13.0.1) | ||
regexp_parser (1.7.1) | ||
rexml (3.2.4) | ||
rubocop (0.85.1) | ||
parallel (~> 1.10) | ||
parser (>= 2.7.0.1) | ||
rainbow (>= 2.2.2, < 4.0) | ||
regexp_parser (>= 1.7) | ||
rexml | ||
rubocop-ast (>= 0.0.3) | ||
ruby-progressbar (~> 1.7) | ||
unicode-display_width (>= 1.4.0, < 2.0) | ||
rubocop-ast (0.0.3) | ||
parser (>= 2.7.0.1) | ||
rubocop-performance (1.6.1) | ||
rubocop (>= 0.71.0) | ||
ruby-progressbar (1.10.1) | ||
standard (0.4.7) | ||
rubocop (~> 0.85.0) | ||
rubocop-performance (~> 1.6.0) | ||
thor (1.0.1) | ||
thread_safe (0.3.6) | ||
tzinfo (1.2.7) | ||
thread_safe (~> 0.1) | ||
unicode-display_width (1.7.0) | ||
zeitwerk (2.3.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
bundler | ||
good_migrations! | ||
minitest | ||
pry | ||
rake | ||
standard | ||
|
||
BUNDLED WITH | ||
2.1.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
require "bundler/gem_tasks" | ||
require "rake/testtask" | ||
require "standard/rake" | ||
|
||
Rake::TestTask.new(:test) do |t| | ||
t.libs << "test" | ||
t.libs << "lib" | ||
t.test_files = FileList['test/**/*_test.rb'] | ||
t.test_files = FileList["test/**/*_test.rb"] | ||
end | ||
|
||
task :default => :test | ||
task default: ["standard:fix", :test] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
rails_version = ENV['RAILS_VERSION'] || '3.1.0' | ||
rails_version = ENV["RAILS_VERSION"] || "5.2.4.3" | ||
puts "<---- Installing Rails at version '#{rails_version}'" | ||
gem 'rails', rails_version | ||
gem "rails", rails_version | ||
|
||
gem 'good_migrations', :path => '..' | ||
|
||
gem 'sqlite3-ruby', :require => 'sqlite3' | ||
gem "good_migrations", path: ".." | ||
|
||
gem "sqlite3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Add your own tasks in files placed in lib/tasks ending in .rake, | ||
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | ||
|
||
require File.expand_path('../config/application', __FILE__) | ||
require 'rake' | ||
require File.expand_path("../config/application", __FILE__) | ||
require "rake" | ||
|
||
Example::Application.load_tasks |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
class Pant < ActiveRecord::Base | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This file is used by Rack-based servers to start the application. | ||
|
||
require ::File.expand_path('../config/environment', __FILE__) | ||
require ::File.expand_path("../config/environment", __FILE__) | ||
run Example::Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
require 'rubygems' | ||
require "rubygems" | ||
|
||
# Set up gems listed in the Gemfile. | ||
gemfile = File.expand_path('../../Gemfile', __FILE__) | ||
begin | ||
ENV['BUNDLE_GEMFILE'] = gemfile | ||
require 'bundler' | ||
Bundler.setup | ||
rescue Bundler::GemNotFound => e | ||
STDERR.puts e.message | ||
STDERR.puts "Try running `bundle install`." | ||
exit! | ||
end if File.exist?(gemfile) | ||
gemfile = File.expand_path("../../Gemfile", __FILE__) | ||
if File.exist?(gemfile) | ||
begin | ||
ENV["BUNDLE_GEMFILE"] = gemfile | ||
require "bundler" | ||
Bundler.setup | ||
rescue Bundler::GemNotFound => e | ||
warn e.message | ||
warn "Try running `bundle install`." | ||
exit! | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Load the rails application | ||
require File.expand_path('../application', __FILE__) | ||
require File.expand_path("../application", __FILE__) | ||
|
||
# Initialize the rails application | ||
Example::Application.initialize! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env ruby | ||
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. | ||
|
||
APP_PATH = File.expand_path('../../config/application', __FILE__) | ||
require File.expand_path('../../config/boot', __FILE__) | ||
require 'rails/commands' | ||
APP_PATH = File.expand_path("../../config/application", __FILE__) | ||
require File.expand_path("../../config/boot", __FILE__) | ||
require "rails/commands" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
require 'test_helper' | ||
require 'rails/performance_test_help' | ||
require "test_helper" | ||
require "rails/performance_test_help" | ||
|
||
# Profiling results for each test method are written to tmp/performance. | ||
class BrowsingTest < ActionDispatch::PerformanceTest | ||
def test_homepage | ||
get '/' | ||
get "/" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
# coding: utf-8 | ||
lib = File.expand_path('../lib', __FILE__) | ||
lib = File.expand_path("../lib", __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'good_migrations/version' | ||
require "good_migrations/version" | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "good_migrations" | ||
spec.version = GoodMigrations::VERSION | ||
spec.authors = ["Justin Searls", "Kevin Baribeau"] | ||
spec.email = ["[email protected]", "[email protected]"] | ||
spec.name = "good_migrations" | ||
spec.version = GoodMigrations::VERSION | ||
spec.authors = ["Justin Searls", "Kevin Baribeau"] | ||
spec.email = ["[email protected]", "[email protected]"] | ||
|
||
spec.summary = %q{Prevents Rails from auto-loading app code in database migrations} | ||
spec.description = %q{Referencing code in app/ from a database migration risks breaking the migration when your app code changes; this gem prevents that mistake} | ||
spec.homepage = "https://github.com/testdouble/good-migrations" | ||
spec.license = "MIT" | ||
spec.summary = "Prevents Rails from auto-loading app code in database migrations" | ||
spec.description = "Referencing code in app/ from a database migration risks breaking the migration when your app code changes; this gem prevents that mistake" | ||
spec.homepage = "https://github.com/testdouble/good-migrations" | ||
spec.license = "MIT" | ||
|
||
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } | ||
spec.bindir = "exe" | ||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } | ||
spec.bindir = "exe" | ||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.require_paths = ["lib"] | ||
|
||
spec.add_dependency "railties", ">= 3.1" | ||
spec.add_dependency "activerecord", ">= 3.1" | ||
|
||
spec.add_development_dependency "bundler", "~> 1.10" | ||
spec.add_development_dependency "rake", "~> 10.0" | ||
spec.add_development_dependency "bundler" | ||
spec.add_development_dependency "rake" | ||
spec.add_development_dependency "minitest" | ||
spec.add_development_dependency "pry" | ||
spec.add_development_dependency "standard" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module GoodMigrations | ||
class LoadError < ::LoadError | ||
class LoadError < RuntimeError | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.