From 50a2db6060aaafbdecbbe09e93fbe355eb49f5da Mon Sep 17 00:00:00 2001 From: Dominic Sayers Date: Tue, 29 May 2018 10:56:16 +0100 Subject: [PATCH 01/10] Update Rubocop config Use the latest version of Rubocop that CodeClimate knows about --- .rubocop | 1 + .rubocop.yml | 45 +++--- .rubocop_todo.yml | 64 +++++---- Gemfile | 1 + gemfiles/rails_5.2.gemfile | 31 ----- gemfiles/rails_5.2.gemfile.lock | 236 -------------------------------- 6 files changed, 60 insertions(+), 318 deletions(-) create mode 100644 .rubocop delete mode 100755 gemfiles/rails_5.2.gemfile delete mode 100644 gemfiles/rails_5.2.gemfile.lock diff --git a/.rubocop b/.rubocop new file mode 100644 index 0000000..71b4480 --- /dev/null +++ b/.rubocop @@ -0,0 +1 @@ +--extra-details diff --git a/.rubocop.yml b/.rubocop.yml index 6fe558b..64532fd 100755 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -6,44 +6,41 @@ AllCops: TargetRubyVersion: 2.2 DisplayCopNames: true Exclude: - - 'tmp/**/*' + - gemfiles/**/* + - tmp/**/* -Style/MixinGrouping: - Exclude: - - 'spec/**/*.rb' +Layout/DotPosition: + EnforcedStyle: leading + Enabled: true + +Layout/ExtraSpacing: + Enabled: true + +Lint/LiteralInInterpolation: + AutoCorrect: true Metrics/BlockLength: CountComments: false # count full line comments? Exclude: - '**/*_spec.rb' -StringLiterals: - EnforcedStyle: single_quotes +Metrics/LineLength: + Max: 120 Enabled: true -DotPosition: - EnforcedStyle: leading +Naming/FileName: Enabled: true -ClassAndModuleChildren: +Style/ClassAndModuleChildren: EnforcedStyle: nested Enabled: true -Documentation: +Style/Documentation: Enabled: false -FileName: - Enabled: true - -LineLength: - Max: 120 - Enabled: true - -Style/ExtraSpacing: - Enabled: true - -Lint/LiteralInInterpolation: - AutoCorrect: true +Style/MixinGrouping: + Exclude: + - spec/**/*.rb Style/ModuleFunction: EnforcedStyle: extend_self # Allows us to have private methods too @@ -58,3 +55,7 @@ Style/PercentLiteralDelimiters: '%r': '{}' '%w': '[]' '%W': '[]' + +Style/StringLiterals: + EnforcedStyle: single_quotes + Enabled: true diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index be2bcca..45eadf4 100755 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,27 +1,28 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2017-05-16 15:42:20 +0100 using RuboCop version 0.48.1. +# on 2018-05-29 13:23:58 +0100 using RuboCop version 0.54.0. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new # versions of RuboCop, may require this file to be generated again. # Offense count: 1 -Metrics/AbcSize: - Max: 17 - -# Offense count: 1 -Metrics/CyclomaticComplexity: - Max: 7 - -# Offense count: 1 -# Configuration parameters: CountComments. -Metrics/MethodLength: - Max: 13 +# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros. +# NamePrefix: is_, has_, have_ +# NamePrefixBlacklist: is_, has_, have_ +# NameWhitelist: is_a? +# MethodDefinitionMacros: define_method, define_singleton_method +Naming/PredicateName: + Exclude: + - 'spec/**/*' + - 'lib/machinist/blueprint.rb' -# Offense count: 1 -Metrics/PerceivedComplexity: - Max: 8 +# Offense count: 4 +# Configuration parameters: Prefixes. +# Prefixes: when, with, without +RSpec/ContextWording: + Exclude: + - 'spec/machinist/active_record_spec.rb' # Offense count: 1 RSpec/DescribeMethod: @@ -44,18 +45,26 @@ RSpec/IteratedExpectation: - 'spec/machinist/machinable_spec.rb' # Offense count: 21 +# Configuration parameters: AggregateFailuresByDefault. RSpec/MultipleExpectations: Max: 6 # Offense count: 1 -# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms. -# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS -Style/FileName: +# Cop supports --auto-correct. +Style/Encoding: + Exclude: + - 'machinist.gemspec' + +# Offense count: 2 +# Cop supports --auto-correct. +Style/ExpandPathArguments: Exclude: - - 'Appraisals' + - 'lib/generators/machinist/install/install_generator.rb' + - 'machinist.gemspec' # Offense count: 1 -# Configuration parameters: EnforcedStyle, SupportedStyles. +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle. # SupportedStyles: format, sprintf, percent Style/FormatString: Exclude: @@ -68,17 +77,14 @@ Style/GuardClause: - 'lib/generators/machinist/install/install_generator.rb' - 'lib/machinist/lathe.rb' -# Offense count: 1 -Style/MethodMissing: +# Offense count: 2 +# Cop supports --auto-correct. +Style/IfUnlessModifier: Exclude: + - 'lib/generators/machinist/install/install_generator.rb' - 'lib/machinist/lathe.rb' # Offense count: 1 -# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist. -# NamePrefix: is_, has_, have_ -# NamePrefixBlacklist: is_, has_, have_ -# NameWhitelist: is_a? -Style/PredicateName: +Style/MethodMissing: Exclude: - - 'spec/**/*' - - 'lib/machinist/blueprint.rb' + - 'lib/machinist/lathe.rb' diff --git a/Gemfile b/Gemfile index 83eabce..0b5ac7e 100755 --- a/Gemfile +++ b/Gemfile @@ -13,6 +13,7 @@ group :development do gem 'guard-rubocop', require: false gem 'guard-rubycritic', require: false gem 'rdoc', require: false + gem 'rubocop', '= 0.54', require: false gem 'rubocop-rspec', require: false end diff --git a/gemfiles/rails_5.2.gemfile b/gemfiles/rails_5.2.gemfile deleted file mode 100755 index 621479e..0000000 --- a/gemfiles/rails_5.2.gemfile +++ /dev/null @@ -1,31 +0,0 @@ -# This file was generated by Appraisal - -source "http://rubygems.org" - -ruby RUBY_VERSION - -gem "activerecord", "~> 5.2.0", group: :test, require: false -gem 'sqlite3' - -group :development do - gem 'appraisal', require: false - gem 'gem-release', require: false - gem 'github_changelog_generator', require: false - gem 'guard', require: false - gem 'guard-rspec', require: false - gem 'guard-rubocop', require: false - gem 'guard-rubycritic', require: false - gem 'rdoc', require: false - gem 'rubocop-rspec', require: false -end - -group :test do - gem "codeclimate-test-reporter", require: false - gem "coveralls", require: false - gem "fuubar", require: false - gem "rspec", require: false - gem "rspec_junit_formatter", require: false - gem "simplecov", "~> 0.14", require: false -end - -gemspec path: "../" diff --git a/gemfiles/rails_5.2.gemfile.lock b/gemfiles/rails_5.2.gemfile.lock deleted file mode 100644 index 2892de3..0000000 --- a/gemfiles/rails_5.2.gemfile.lock +++ /dev/null @@ -1,236 +0,0 @@ -PATH - remote: .. - specs: - machinist_redux (3.0.3) - -GEM - remote: http://rubygems.org/ - specs: - activemodel (5.2.0) - activesupport (= 5.2.0) - activerecord (5.2.0) - activemodel (= 5.2.0) - activesupport (= 5.2.0) - arel (>= 9.0) - activesupport (5.2.0) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 0.7, < 2) - minitest (~> 5.1) - tzinfo (~> 1.1) - addressable (2.5.2) - public_suffix (>= 2.0.2, < 4.0) - appraisal (2.2.0) - bundler - rake - thor (>= 0.14.0) - arel (9.0.0) - ast (2.4.0) - axiom-types (0.1.1) - descendants_tracker (~> 0.0.4) - ice_nine (~> 0.11.0) - thread_safe (~> 0.3, >= 0.3.1) - codeclimate-engine-rb (0.4.1) - virtus (~> 1.0) - codeclimate-test-reporter (1.0.7) - simplecov - coderay (1.1.2) - coercible (1.0.0) - descendants_tracker (~> 0.0.1) - concurrent-ruby (1.0.5) - coveralls (0.7.2) - multi_json (~> 1.3) - rest-client (= 1.6.7) - simplecov (>= 0.7) - term-ansicolor (= 1.2.2) - thor (= 0.18.1) - descendants_tracker (0.0.4) - thread_safe (~> 0.3, >= 0.3.1) - diff-lcs (1.3) - docile (1.3.1) - equalizer (0.0.11) - erubis (2.7.0) - faraday (0.15.2) - multipart-post (>= 1.2, < 3) - faraday-http-cache (2.0.0) - faraday (~> 0.8) - ffi (1.9.23) - flay (2.12.0) - erubis (~> 2.7.0) - path_expander (~> 1.0) - ruby_parser (~> 3.0) - sexp_processor (~> 4.0) - flog (4.6.2) - path_expander (~> 1.0) - ruby_parser (~> 3.1, > 3.1.0) - sexp_processor (~> 4.8) - formatador (0.2.5) - fuubar (2.3.1) - rspec-core (~> 3.0) - ruby-progressbar (~> 1.4) - gem-release (1.0.0) - github_changelog_generator (1.14.3) - activesupport - faraday-http-cache - multi_json - octokit (~> 4.6) - rainbow (>= 2.1) - rake (>= 10.0) - retriable (~> 2.1) - guard (2.14.2) - formatador (>= 0.2.4) - listen (>= 2.7, < 4.0) - lumberjack (>= 1.0.12, < 2.0) - nenv (~> 0.1) - notiffany (~> 0.0) - pry (>= 0.9.12) - shellany (~> 0.0) - thor (>= 0.18.1) - guard-compat (1.2.1) - guard-rspec (4.7.3) - guard (~> 2.1) - guard-compat (~> 1.1) - rspec (>= 2.99.0, < 4.0) - guard-rubocop (1.3.0) - guard (~> 2.0) - rubocop (~> 0.20) - guard-rubycritic (2.9.3) - guard (~> 2.6) - rubycritic (>= 2.9.3) - i18n (1.0.1) - concurrent-ruby (~> 1.0) - ice_nine (0.11.2) - json (2.1.0) - launchy (2.4.3) - addressable (~> 2.3) - listen (3.1.5) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - ruby_dep (~> 1.2) - lumberjack (1.0.13) - method_source (0.9.0) - mime-types (3.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2016.0521) - minitest (5.11.3) - multi_json (1.13.1) - multipart-post (2.0.0) - nenv (0.3.0) - notiffany (0.1.1) - nenv (~> 0.1) - shellany (~> 0.0) - octokit (4.9.0) - sawyer (~> 0.8.0, >= 0.5.3) - parallel (1.12.1) - parser (2.5.1.0) - ast (~> 2.4.0) - path_expander (1.0.3) - powerpack (0.1.1) - pry (0.11.3) - coderay (~> 1.1.0) - method_source (~> 0.9.0) - public_suffix (3.0.2) - rainbow (3.0.0) - rake (12.3.1) - rb-fsevent (0.10.3) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (6.0.4) - reek (4.8.1) - codeclimate-engine-rb (~> 0.4.0) - parser (>= 2.5.0.0, < 2.6) - rainbow (>= 2.0, < 4.0) - rest-client (1.6.7) - mime-types (>= 1.16) - retriable (2.1.0) - rspec (3.7.0) - rspec-core (~> 3.7.0) - rspec-expectations (~> 3.7.0) - rspec-mocks (~> 3.7.0) - rspec-core (3.7.1) - rspec-support (~> 3.7.0) - rspec-expectations (3.7.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.7.0) - rspec-mocks (3.7.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.7.0) - rspec-support (3.7.1) - rspec_junit_formatter (0.4.0) - rspec-core (>= 2, < 4, != 2.12.0) - rubocop (0.56.0) - parallel (~> 1.10) - parser (>= 2.5) - powerpack (~> 0.1) - rainbow (>= 2.2.2, < 4.0) - ruby-progressbar (~> 1.7) - unicode-display_width (~> 1.0, >= 1.0.1) - rubocop-rspec (1.25.1) - rubocop (>= 0.53.0) - ruby-progressbar (1.9.0) - ruby_dep (1.5.0) - ruby_parser (3.11.0) - sexp_processor (~> 4.9) - rubycritic (3.4.0) - flay (~> 2.8) - flog (~> 4.4) - launchy (= 2.4.3) - parser (~> 2.5.0) - rainbow (~> 3.0) - reek (~> 4.4) - ruby_parser (~> 3.8) - tty-which (~> 0.3.0) - virtus (~> 1.0) - sawyer (0.8.1) - addressable (>= 2.3.5, < 2.6) - faraday (~> 0.8, < 1.0) - sexp_processor (4.11.0) - shellany (0.0.1) - simplecov (0.16.1) - docile (~> 1.1) - json (>= 1.8, < 3) - simplecov-html (~> 0.10.0) - simplecov-html (0.10.2) - sqlite3 (1.3.13) - term-ansicolor (1.2.2) - tins (~> 0.8) - thor (0.18.1) - thread_safe (0.3.6) - tins (0.13.2) - tty-which (0.3.0) - tzinfo (1.2.5) - thread_safe (~> 0.1) - unicode-display_width (1.3.2) - virtus (1.0.5) - axiom-types (~> 0.1) - coercible (~> 1.0) - descendants_tracker (~> 0.0, >= 0.0.3) - equalizer (~> 0.0, >= 0.0.9) - -PLATFORMS - ruby - -DEPENDENCIES - activerecord (~> 5.2.0) - appraisal - codeclimate-test-reporter - coveralls - fuubar - gem-release - github_changelog_generator - guard - guard-rspec - guard-rubocop - guard-rubycritic - machinist_redux! - rdoc - rspec - rspec_junit_formatter - rubocop-rspec - simplecov (~> 0.14) - sqlite3 - -RUBY VERSION - ruby 2.5.0p0 - -BUNDLED WITH - 1.16.1 From 184a0146190c82f76c25537bd99c18d8f8c30cf6 Mon Sep 17 00:00:00 2001 From: Dominic Sayers Date: Tue, 29 May 2018 10:57:28 +0100 Subject: [PATCH 02/10] Rubocop auto-correct `rubocop --auto-correct` --- gemfiles/rails_4.2.gemfile | 22 +++++++++---------- gemfiles/rails_5.0.gemfile | 22 +++++++++---------- gemfiles/rails_5.1.gemfile | 22 +++++++++---------- .../machinist/install/install_generator.rb | 6 ++--- lib/machinist/blueprint.rb | 2 +- lib/machinist/lathe.rb | 4 +--- machinist.gemspec | 4 +--- 7 files changed, 38 insertions(+), 44 deletions(-) diff --git a/gemfiles/rails_4.2.gemfile b/gemfiles/rails_4.2.gemfile index c238ade..3e9cf3b 100755 --- a/gemfiles/rails_4.2.gemfile +++ b/gemfiles/rails_4.2.gemfile @@ -2,21 +2,21 @@ source "http://rubygems.org" -ruby RUBY_VERSION +ruby "2.4.1" +gem "sqlite3" gem "activerecord", "~> 4.2.8", group: :test, require: false -gem 'sqlite3' group :development do - gem 'appraisal', require: false - gem 'gem-release', require: false - gem 'github_changelog_generator', require: false - gem 'guard', require: false - gem 'guard-rspec', require: false - gem 'guard-rubocop', require: false - gem 'guard-rubycritic', require: false - gem 'rdoc', require: false - gem 'rubocop-rspec', require: false + gem "appraisal", require: false + gem "gem-release", require: false + gem "github_changelog_generator", require: false + gem "guard", require: false + gem "guard-rspec", require: false + gem "guard-rubocop", require: false + gem "guard-rubycritic", require: false + gem "rdoc", require: false + gem "rubocop-rspec", require: false end group :test do diff --git a/gemfiles/rails_5.0.gemfile b/gemfiles/rails_5.0.gemfile index d018122..b7022f8 100755 --- a/gemfiles/rails_5.0.gemfile +++ b/gemfiles/rails_5.0.gemfile @@ -2,21 +2,21 @@ source "http://rubygems.org" -ruby RUBY_VERSION +ruby "2.4.1" +gem "sqlite3" gem "activerecord", "~> 5.0.3", group: :test, require: false -gem 'sqlite3' group :development do - gem 'appraisal', require: false - gem 'gem-release', require: false - gem 'github_changelog_generator', require: false - gem 'guard', require: false - gem 'guard-rspec', require: false - gem 'guard-rubocop', require: false - gem 'guard-rubycritic', require: false - gem 'rdoc', require: false - gem 'rubocop-rspec', require: false + gem "appraisal", require: false + gem "gem-release", require: false + gem "github_changelog_generator", require: false + gem "guard", require: false + gem "guard-rspec", require: false + gem "guard-rubocop", require: false + gem "guard-rubycritic", require: false + gem "rdoc", require: false + gem "rubocop-rspec", require: false end group :test do diff --git a/gemfiles/rails_5.1.gemfile b/gemfiles/rails_5.1.gemfile index 78e3f3a..b9cc892 100755 --- a/gemfiles/rails_5.1.gemfile +++ b/gemfiles/rails_5.1.gemfile @@ -2,21 +2,21 @@ source "http://rubygems.org" -ruby RUBY_VERSION +ruby "2.4.1" +gem "sqlite3" gem "activerecord", "~> 5.1.1", group: :test, require: false -gem 'sqlite3' group :development do - gem 'appraisal', require: false - gem 'gem-release', require: false - gem 'github_changelog_generator', require: false - gem 'guard', require: false - gem 'guard-rspec', require: false - gem 'guard-rubocop', require: false - gem 'guard-rubycritic', require: false - gem 'rdoc', require: false - gem 'rubocop-rspec', require: false + gem "appraisal", require: false + gem "gem-release", require: false + gem "github_changelog_generator", require: false + gem "guard", require: false + gem "guard-rspec", require: false + gem "guard-rubocop", require: false + gem "guard-rubycritic", require: false + gem "rdoc", require: false + gem "rubocop-rspec", require: false end group :test do diff --git a/lib/generators/machinist/install/install_generator.rb b/lib/generators/machinist/install/install_generator.rb index 9ff51bf..8d4e4e9 100644 --- a/lib/generators/machinist/install/install_generator.rb +++ b/lib/generators/machinist/install/install_generator.rb @@ -1,7 +1,7 @@ module Machinist module Generators #:nodoc: class InstallGenerator < Rails::Generators::Base #:nodoc: - source_root File.expand_path('../templates', __FILE__) + source_root File.expand_path('templates', __dir__) class_option :test_framework, type: :string, aliases: '-t', desc: 'Test framework to use Machinist with' class_option :cucumber, type: :boolean, desc: 'Set up access to Machinist from Cucumber' @@ -23,9 +23,7 @@ def test_helper end def cucumber_support - if cucumber? - template 'machinist.rb.erb', 'features/support/machinist.rb' - end + template 'machinist.rb.erb', 'features/support/machinist.rb' if cucumber? end private diff --git a/lib/machinist/blueprint.rb b/lib/machinist/blueprint.rb index 4ff6fa8..a31f1a7 100644 --- a/lib/machinist/blueprint.rb +++ b/lib/machinist/blueprint.rb @@ -66,7 +66,7 @@ def new_serial_number #:nodoc: else @serial_number ||= 0 @serial_number += 1 - sprintf('%04d', @serial_number) + format('%04d', @serial_number) end end diff --git a/lib/machinist/lathe.rb b/lib/machinist/lathe.rb index 7b8bcad..41eb810 100755 --- a/lib/machinist/lathe.rb +++ b/lib/machinist/lathe.rb @@ -23,9 +23,7 @@ def sn attr_reader :object def method_missing(attribute, *args, &block) #:nodoc: - unless attribute_assigned?(attribute) - assign_attribute(attribute, make_attribute(attribute, args, &block)) - end + assign_attribute(attribute, make_attribute(attribute, args, &block)) unless attribute_assigned?(attribute) end # Undef a couple of methods that are common ActiveRecord attributes. diff --git a/machinist.gemspec b/machinist.gemspec index fb5634d..874fac2 100755 --- a/machinist.gemspec +++ b/machinist.gemspec @@ -1,6 +1,4 @@ -# -*- encoding: utf-8 -*- - -lib = File.expand_path('../lib', __FILE__) +lib = File.expand_path('lib', __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'machinist/version' From 907109a7aedeb7fb1a977e0ea58a10135e6ac1d7 Mon Sep 17 00:00:00 2001 From: Dominic Sayers Date: Tue, 29 May 2018 11:43:52 +0100 Subject: [PATCH 03/10] Use more recent Rubocop for CodeClimate --- .codeclimate.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.codeclimate.yml b/.codeclimate.yml index 7897fff..0ea604d 100755 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -1,5 +1,6 @@ --- -engines: +version: 2 +plugins: duplication: enabled: true config: @@ -9,9 +10,7 @@ engines: enabled: true rubocop: enabled: true -ratings: - paths: - - '**.rb' -exclude_paths: + channel: rubocop-0-54 +exclude_patterns: - script/ - spec/ From 65775fba80933269f08eafc93bf482da6cf5d553 Mon Sep 17 00:00:00 2001 From: Dominic Sayers Date: Tue, 29 May 2018 09:00:36 +0100 Subject: [PATCH 04/10] Update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 59b7149..18f3185 100755 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ If you want support for Rails 3 or Rubies prior to 2.2, [go here](https://github This is a fork of [Pete Yandell's Machinist](http://github.com/notahat/machinist). The original gem was abandoned for the reasons given below, as are most of its forks. The purpose of this fork is to keep Machinist under maintenance for legacy projects that have upgraded to Ruby 2.2 or later and Rails 4.2 or later, but still have Machinist factories in the test environment. -I'm pleased to say that Pete's code runs fine under Ruby 2.2, 2.3 & 2.4 and Rails 4.2, 5.0 and 5.1. I have allowed [RuboCop](https://github.com/bbatsov/rubocop) and [RuboCop RSpec](https://github.com/backus/rubocop-rspec) to suggest some changes, and I have converted to the more up-to-date RSpec syntax using [Transpec](https://github.com/yujinakayama/transpec). Few if any manual changes were needed. +I'm pleased to say that Pete's code runs fine under Ruby 2.2, 2.3, 2.4 & 2.5 and Rails 4.2, 5.0, 5.1 and 5.2. I have allowed [RuboCop](https://github.com/bbatsov/rubocop) and [RuboCop RSpec](https://github.com/backus/rubocop-rspec) to suggest some changes, and I have converted to the more up-to-date RSpec syntax using [Transpec](https://github.com/yujinakayama/transpec). Few if any manual changes were needed. Pete Yandell's reason for abandoning Machinist is that he found himself with less and less need for factories in tests. He recommends Bo Jeanes' [excellent article on the topic](http://bjeanes.com/2012/02/factories-breed-complexity). From 10fb6311a89c33c149a9eccc03c63e27c4820ff4 Mon Sep 17 00:00:00 2001 From: Dominic Sayers Date: Tue, 29 May 2018 10:33:06 +0100 Subject: [PATCH 05/10] Auto-generate changelog --- CHANGELOG.md | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..6618503 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,57 @@ +# Change Log + +## [Unreleased](https://github.com/dominicsayers/machinist/tree/HEAD) + +[Full Changelog](https://github.com/dominicsayers/machinist/compare/v3.0.3...HEAD) + +**Merged pull requests:** + +- add rails 5.2 tests [\#5](https://github.com/dominicsayers/machinist/pull/5) ([thomasdziedzic-pd](https://github.com/thomasdziedzic-pd)) + +## [v3.0.3](https://github.com/dominicsayers/machinist/tree/v3.0.3) (2017-05-19) +[Full Changelog](https://github.com/dominicsayers/machinist/compare/v3.0.2...v3.0.3) + +## [v3.0.2](https://github.com/dominicsayers/machinist/tree/v3.0.2) (2017-05-19) +[Full Changelog](https://github.com/dominicsayers/machinist/compare/v3.0.1...v3.0.2) + +**Closed issues:** + +- Better diagnostics when ActiveRecord model can't be instantiated [\#4](https://github.com/dominicsayers/machinist/issues/4) + +**Merged pull requests:** + +- Machinist v3 [\#3](https://github.com/dominicsayers/machinist/pull/3) ([dominicsayers](https://github.com/dominicsayers)) + +## [v3.0.1](https://github.com/dominicsayers/machinist/tree/v3.0.1) (2017-05-17) +[Full Changelog](https://github.com/dominicsayers/machinist/compare/v3.0.0...v3.0.1) + +## [v3.0.0](https://github.com/dominicsayers/machinist/tree/v3.0.0) (2017-05-17) +[Full Changelog](https://github.com/dominicsayers/machinist/compare/v2.0...v3.0.0) + +**Merged pull requests:** + +- Development environment [\#2](https://github.com/dominicsayers/machinist/pull/2) ([dominicsayers](https://github.com/dominicsayers)) +- Rails 4.2 [\#1](https://github.com/dominicsayers/machinist/pull/1) ([dominicsayers](https://github.com/dominicsayers)) + +## [v2.0](https://github.com/dominicsayers/machinist/tree/v2.0) (2012-01-13) +[Full Changelog](https://github.com/dominicsayers/machinist/compare/v2.0.0.beta2...v2.0) + +## [v2.0.0.beta2](https://github.com/dominicsayers/machinist/tree/v2.0.0.beta2) (2010-07-06) +[Full Changelog](https://github.com/dominicsayers/machinist/compare/v2.0.0.beta1...v2.0.0.beta2) + +## [v2.0.0.beta1](https://github.com/dominicsayers/machinist/tree/v2.0.0.beta1) (2010-07-06) +[Full Changelog](https://github.com/dominicsayers/machinist/compare/v1.0.6...v2.0.0.beta1) + +## [v1.0.6](https://github.com/dominicsayers/machinist/tree/v1.0.6) (2009-11-29) +[Full Changelog](https://github.com/dominicsayers/machinist/compare/1.0.5...v1.0.6) + +## [1.0.5](https://github.com/dominicsayers/machinist/tree/1.0.5) (2009-10-20) +[Full Changelog](https://github.com/dominicsayers/machinist/compare/1.0.4...1.0.5) + +## [1.0.4](https://github.com/dominicsayers/machinist/tree/1.0.4) (2009-10-08) +[Full Changelog](https://github.com/dominicsayers/machinist/compare/1.0.0...1.0.4) + +## [1.0.0](https://github.com/dominicsayers/machinist/tree/1.0.0) (2009-06-02) + + +\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* \ No newline at end of file From 94aa0133380c827230740df6bd7135ef3207dfd0 Mon Sep 17 00:00:00 2001 From: Dominic Sayers Date: Tue, 29 May 2018 10:43:07 +0100 Subject: [PATCH 06/10] Use gem-release 2 --- .gem_release.yml | 3 +++ Gemfile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .gem_release.yml diff --git a/.gem_release.yml b/.gem_release.yml new file mode 100644 index 0000000..fd644dd --- /dev/null +++ b/.gem_release.yml @@ -0,0 +1,3 @@ +--- +bump: + file: ./lib/machinist/version.rb diff --git a/Gemfile b/Gemfile index 0b5ac7e..2535d79 100755 --- a/Gemfile +++ b/Gemfile @@ -6,7 +6,7 @@ gem 'sqlite3' group :development do gem 'appraisal', require: false - gem 'gem-release', require: false + gem 'gem-release', '> 1', require: false gem 'github_changelog_generator', require: false gem 'guard', require: false gem 'guard-rspec', require: false From 5615f16cb953da99732256d624e893b279b27c71 Mon Sep 17 00:00:00 2001 From: Dominic Sayers Date: Tue, 29 May 2018 10:43:14 +0100 Subject: [PATCH 07/10] Bump machinist to 3.0.4 --- lib/machinist/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/machinist/version.rb b/lib/machinist/version.rb index 7e8d6c6..610e0b3 100755 --- a/lib/machinist/version.rb +++ b/lib/machinist/version.rb @@ -1,3 +1,3 @@ module Machinist - VERSION = '3.0.3'.freeze + VERSION = '3.0.4'.freeze end From e6d2c91f35929c2d5d4a17cbe16ed5cd137277b9 Mon Sep 17 00:00:00 2001 From: Dominic Sayers Date: Tue, 29 May 2018 10:49:18 +0100 Subject: [PATCH 08/10] Update appraisal gemfiles --- gemfiles/rails_4.2.gemfile | 2 +- gemfiles/rails_4.2.gemfile.lock | 10 +++++----- gemfiles/rails_5.0.gemfile | 2 +- gemfiles/rails_5.0.gemfile.lock | 10 +++++----- gemfiles/rails_5.1.gemfile | 2 +- gemfiles/rails_5.1.gemfile.lock | 10 +++++----- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/gemfiles/rails_4.2.gemfile b/gemfiles/rails_4.2.gemfile index 3e9cf3b..ac685c5 100755 --- a/gemfiles/rails_4.2.gemfile +++ b/gemfiles/rails_4.2.gemfile @@ -9,7 +9,7 @@ gem "activerecord", "~> 4.2.8", group: :test, require: false group :development do gem "appraisal", require: false - gem "gem-release", require: false + gem "gem-release", "> 1", require: false gem "github_changelog_generator", require: false gem "guard", require: false gem "guard-rspec", require: false diff --git a/gemfiles/rails_4.2.gemfile.lock b/gemfiles/rails_4.2.gemfile.lock index 61bafda..04f6dca 100644 --- a/gemfiles/rails_4.2.gemfile.lock +++ b/gemfiles/rails_4.2.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - machinist_redux (3.0.3) + machinist_redux (3.0.4) GEM remote: http://rubygems.org/ @@ -68,7 +68,7 @@ GEM fuubar (2.2.0) rspec-core (~> 3.0) ruby-progressbar (~> 1.4) - gem-release (1.0.0) + gem-release (2.0.0.rc.3) github_changelog_generator (1.14.3) activesupport faraday-http-cache @@ -210,7 +210,7 @@ DEPENDENCIES codeclimate-test-reporter coveralls fuubar - gem-release + gem-release (> 1) github_changelog_generator guard guard-rspec @@ -225,7 +225,7 @@ DEPENDENCIES sqlite3 RUBY VERSION - ruby 2.3.4p301 + ruby 2.4.1p111 BUNDLED WITH - 1.14.6 + 1.16.2 diff --git a/gemfiles/rails_5.0.gemfile b/gemfiles/rails_5.0.gemfile index b7022f8..505dccf 100755 --- a/gemfiles/rails_5.0.gemfile +++ b/gemfiles/rails_5.0.gemfile @@ -9,7 +9,7 @@ gem "activerecord", "~> 5.0.3", group: :test, require: false group :development do gem "appraisal", require: false - gem "gem-release", require: false + gem "gem-release", "> 1", require: false gem "github_changelog_generator", require: false gem "guard", require: false gem "guard-rspec", require: false diff --git a/gemfiles/rails_5.0.gemfile.lock b/gemfiles/rails_5.0.gemfile.lock index 8aa6f90..7e4d15a 100644 --- a/gemfiles/rails_5.0.gemfile.lock +++ b/gemfiles/rails_5.0.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - machinist_redux (3.0.3) + machinist_redux (3.0.4) GEM remote: http://rubygems.org/ @@ -68,7 +68,7 @@ GEM fuubar (2.2.0) rspec-core (~> 3.0) ruby-progressbar (~> 1.4) - gem-release (1.0.0) + gem-release (2.0.0.rc.3) github_changelog_generator (1.14.3) activesupport faraday-http-cache @@ -210,7 +210,7 @@ DEPENDENCIES codeclimate-test-reporter coveralls fuubar - gem-release + gem-release (> 1) github_changelog_generator guard guard-rspec @@ -225,7 +225,7 @@ DEPENDENCIES sqlite3 RUBY VERSION - ruby 2.3.4p301 + ruby 2.4.1p111 BUNDLED WITH - 1.14.6 + 1.16.2 diff --git a/gemfiles/rails_5.1.gemfile b/gemfiles/rails_5.1.gemfile index b9cc892..27de9cb 100755 --- a/gemfiles/rails_5.1.gemfile +++ b/gemfiles/rails_5.1.gemfile @@ -9,7 +9,7 @@ gem "activerecord", "~> 5.1.1", group: :test, require: false group :development do gem "appraisal", require: false - gem "gem-release", require: false + gem "gem-release", "> 1", require: false gem "github_changelog_generator", require: false gem "guard", require: false gem "guard-rspec", require: false diff --git a/gemfiles/rails_5.1.gemfile.lock b/gemfiles/rails_5.1.gemfile.lock index 944e1e3..5ebb3ed 100644 --- a/gemfiles/rails_5.1.gemfile.lock +++ b/gemfiles/rails_5.1.gemfile.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - machinist_redux (3.0.3) + machinist_redux (3.0.4) GEM remote: http://rubygems.org/ @@ -68,7 +68,7 @@ GEM fuubar (2.2.0) rspec-core (~> 3.0) ruby-progressbar (~> 1.4) - gem-release (1.0.0) + gem-release (2.0.0.rc.3) github_changelog_generator (1.14.3) activesupport faraday-http-cache @@ -210,7 +210,7 @@ DEPENDENCIES codeclimate-test-reporter coveralls fuubar - gem-release + gem-release (> 1) github_changelog_generator guard guard-rspec @@ -225,7 +225,7 @@ DEPENDENCIES sqlite3 RUBY VERSION - ruby 2.3.4p301 + ruby 2.4.1p111 BUNDLED WITH - 1.14.6 + 1.16.2 From 5ff3dcab34608e71510f174a89900e29033b82ab Mon Sep 17 00:00:00 2001 From: Dominic Sayers Date: Tue, 29 May 2018 11:04:08 +0100 Subject: [PATCH 09/10] Update appraisals `bundle exec apprasial install` --- Appraisals | 10 +- gemfiles/rails_4.2.gemfile | 2 +- gemfiles/rails_4.2.gemfile.lock | 177 ++++++++++++------------ gemfiles/rails_5.0.gemfile | 2 +- gemfiles/rails_5.0.gemfile.lock | 179 +++++++++++++------------ gemfiles/rails_5.1.gemfile | 2 +- gemfiles/rails_5.1.gemfile.lock | 179 +++++++++++++------------ gemfiles/rails_5.2.gemfile | 31 +++++ gemfiles/rails_5.2.gemfile.lock | 231 ++++++++++++++++++++++++++++++++ 9 files changed, 548 insertions(+), 265 deletions(-) create mode 100644 gemfiles/rails_5.2.gemfile create mode 100644 gemfiles/rails_5.2.gemfile.lock diff --git a/Appraisals b/Appraisals index f76d745..f58ea9b 100755 --- a/Appraisals +++ b/Appraisals @@ -1,11 +1,15 @@ appraise 'rails-4.2' do - gem 'activerecord', '~> 4.2.8', group: :test, require: false + gem 'activerecord', '~> 4.2.10', group: :test, require: false end appraise 'rails-5.0' do - gem 'activerecord', '~> 5.0.3', group: :test, require: false + gem 'activerecord', '~> 5.0.7', group: :test, require: false end appraise 'rails-5.1' do - gem 'activerecord', '~> 5.1.1', group: :test, require: false + gem 'activerecord', '~> 5.1.6', group: :test, require: false +end + +appraise 'rails-5.2' do + gem 'activerecord', '~> 5.2.0', group: :test, require: false end diff --git a/gemfiles/rails_4.2.gemfile b/gemfiles/rails_4.2.gemfile index ac685c5..350f451 100755 --- a/gemfiles/rails_4.2.gemfile +++ b/gemfiles/rails_4.2.gemfile @@ -5,7 +5,7 @@ source "http://rubygems.org" ruby "2.4.1" gem "sqlite3" -gem "activerecord", "~> 4.2.8", group: :test, require: false +gem "activerecord", "~> 4.2.10", group: :test, require: false group :development do gem "appraisal", require: false diff --git a/gemfiles/rails_4.2.gemfile.lock b/gemfiles/rails_4.2.gemfile.lock index 04f6dca..2399ec8 100644 --- a/gemfiles/rails_4.2.gemfile.lock +++ b/gemfiles/rails_4.2.gemfile.lock @@ -6,66 +6,67 @@ PATH GEM remote: http://rubygems.org/ specs: - activemodel (4.2.8) - activesupport (= 4.2.8) + activemodel (4.2.10) + activesupport (= 4.2.10) builder (~> 3.1) - activerecord (4.2.8) - activemodel (= 4.2.8) - activesupport (= 4.2.8) + activerecord (4.2.10) + activemodel (= 4.2.10) + activesupport (= 4.2.10) arel (~> 6.0) - activesupport (4.2.8) + activesupport (4.2.10) i18n (~> 0.7) minitest (~> 5.1) thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) - addressable (2.5.1) - public_suffix (~> 2.0, >= 2.0.2) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) appraisal (2.2.0) bundler rake thor (>= 0.14.0) arel (6.0.4) - ast (2.3.0) + ast (2.4.0) axiom-types (0.1.1) descendants_tracker (~> 0.0.4) ice_nine (~> 0.11.0) thread_safe (~> 0.3, >= 0.3.1) builder (3.2.3) - codeclimate-engine-rb (0.4.0) + codeclimate-engine-rb (0.4.1) virtus (~> 1.0) codeclimate-test-reporter (1.0.7) simplecov - coderay (1.1.1) + coderay (1.1.2) coercible (1.0.0) descendants_tracker (~> 0.0.1) - coveralls (0.8.21) - json (>= 1.8, < 3) - simplecov (~> 0.14.1) - term-ansicolor (~> 1.3) - thor (~> 0.19.4) - tins (~> 1.6) + concurrent-ruby (1.0.5) + coveralls (0.7.2) + multi_json (~> 1.3) + rest-client (= 1.6.7) + simplecov (>= 0.7) + term-ansicolor (= 1.2.2) + thor (= 0.18.1) descendants_tracker (0.0.4) thread_safe (~> 0.3, >= 0.3.1) diff-lcs (1.3) - docile (1.1.5) + docile (1.3.1) equalizer (0.0.11) erubis (2.7.0) - faraday (0.12.1) + faraday (0.15.2) multipart-post (>= 1.2, < 3) faraday-http-cache (2.0.0) faraday (~> 0.8) - ffi (1.9.18) - flay (2.9.0) + ffi (1.9.23) + flay (2.12.0) erubis (~> 2.7.0) path_expander (~> 1.0) ruby_parser (~> 3.0) sexp_processor (~> 4.0) - flog (4.6.1) + flog (4.6.2) path_expander (~> 1.0) ruby_parser (~> 3.1, > 3.1.0) sexp_processor (~> 4.8) formatador (0.2.5) - fuubar (2.2.0) + fuubar (2.3.1) rspec-core (~> 3.0) ruby-progressbar (~> 1.4) gem-release (2.0.0.rc.3) @@ -77,10 +78,10 @@ GEM rainbow (>= 2.1) rake (>= 10.0) retriable (~> 2.1) - guard (2.14.1) + guard (2.14.2) formatador (>= 0.2.4) listen (>= 2.7, < 4.0) - lumberjack (~> 1.0) + lumberjack (>= 1.0.12, < 2.0) nenv (~> 0.1) notiffany (~> 0.0) pry (>= 0.9.12) @@ -91,13 +92,14 @@ GEM guard (~> 2.1) guard-compat (~> 1.1) rspec (>= 2.99.0, < 4.0) - guard-rubocop (1.2.0) + guard-rubocop (1.3.0) guard (~> 2.0) rubocop (~> 0.20) guard-rubycritic (2.9.3) guard (~> 2.6) rubycritic (>= 2.9.3) - i18n (0.8.1) + i18n (0.9.5) + concurrent-ruby (~> 1.0) ice_nine (0.11.2) json (2.1.0) launchy (2.4.3) @@ -106,95 +108,100 @@ GEM rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) ruby_dep (~> 1.2) - lumberjack (1.0.12) - method_source (0.8.2) - minitest (5.10.2) - multi_json (1.12.1) + lumberjack (1.0.13) + method_source (0.9.0) + mime-types (3.1) + mime-types-data (~> 3.2015) + mime-types-data (3.2016.0521) + minitest (5.11.3) + multi_json (1.13.1) multipart-post (2.0.0) nenv (0.3.0) notiffany (0.1.1) nenv (~> 0.1) shellany (~> 0.0) - octokit (4.7.0) + octokit (4.9.0) sawyer (~> 0.8.0, >= 0.5.3) - parser (2.4.0.0) - ast (~> 2.2) - path_expander (1.0.2) + parallel (1.12.1) + parser (2.5.1.0) + ast (~> 2.4.0) + path_expander (1.0.3) powerpack (0.1.1) - pry (0.10.4) + pry (0.11.3) coderay (~> 1.1.0) - method_source (~> 0.8.1) - slop (~> 3.4) - public_suffix (2.0.5) - rainbow (2.2.2) - rake - rake (12.0.0) - rb-fsevent (0.9.8) - rb-inotify (0.9.8) - ffi (>= 0.5.0) - rdoc (5.1.0) - reek (4.6.2) + method_source (~> 0.9.0) + public_suffix (3.0.2) + rainbow (3.0.0) + rake (12.3.1) + rb-fsevent (0.10.3) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + rdoc (6.0.4) + reek (4.8.1) codeclimate-engine-rb (~> 0.4.0) - parser (>= 2.4.0.0, < 2.5) - rainbow (~> 2.0) + parser (>= 2.5.0.0, < 2.6) + rainbow (>= 2.0, < 4.0) + rest-client (1.6.7) + mime-types (>= 1.16) retriable (2.1.0) - rspec (3.6.0) - rspec-core (~> 3.6.0) - rspec-expectations (~> 3.6.0) - rspec-mocks (~> 3.6.0) - rspec-core (3.6.0) - rspec-support (~> 3.6.0) - rspec-expectations (3.6.0) + rspec (3.7.0) + rspec-core (~> 3.7.0) + rspec-expectations (~> 3.7.0) + rspec-mocks (~> 3.7.0) + rspec-core (3.7.1) + rspec-support (~> 3.7.0) + rspec-expectations (3.7.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.6.0) - rspec-mocks (3.6.0) + rspec-support (~> 3.7.0) + rspec-mocks (3.7.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.6.0) - rspec-support (3.6.0) - rspec_junit_formatter (0.2.3) - builder (< 4) + rspec-support (~> 3.7.0) + rspec-support (3.7.1) + rspec_junit_formatter (0.4.0) rspec-core (>= 2, < 4, != 2.12.0) - rubocop (0.48.1) - parser (>= 2.3.3.1, < 3.0) + rubocop (0.56.0) + parallel (~> 1.10) + parser (>= 2.5) powerpack (~> 0.1) - rainbow (>= 1.99.1, < 3.0) + rainbow (>= 2.2.2, < 4.0) ruby-progressbar (~> 1.7) unicode-display_width (~> 1.0, >= 1.0.1) - rubocop-rspec (1.15.1) - rubocop (>= 0.42.0) - ruby-progressbar (1.8.1) + rubocop-rspec (1.25.1) + rubocop (>= 0.53.0) + ruby-progressbar (1.9.0) ruby_dep (1.5.0) - ruby_parser (3.9.0) - sexp_processor (~> 4.1) - rubycritic (3.2.2) + ruby_parser (3.11.0) + sexp_processor (~> 4.9) + rubycritic (3.4.0) flay (~> 2.8) flog (~> 4.4) launchy (= 2.4.3) - parser (~> 2.4.0) - rainbow (~> 2.1) + parser (~> 2.5.0) + rainbow (~> 3.0) reek (~> 4.4) ruby_parser (~> 3.8) + tty-which (~> 0.3.0) virtus (~> 1.0) sawyer (0.8.1) addressable (>= 2.3.5, < 2.6) faraday (~> 0.8, < 1.0) - sexp_processor (4.9.0) + sexp_processor (4.11.0) shellany (0.0.1) - simplecov (0.14.1) - docile (~> 1.1.0) + simplecov (0.16.1) + docile (~> 1.1) json (>= 1.8, < 3) simplecov-html (~> 0.10.0) - simplecov-html (0.10.1) - slop (3.6.0) + simplecov-html (0.10.2) sqlite3 (1.3.13) - term-ansicolor (1.6.0) - tins (~> 1.0) - thor (0.19.4) + term-ansicolor (1.2.2) + tins (~> 0.8) + thor (0.18.1) thread_safe (0.3.6) - tins (1.14.0) - tzinfo (1.2.3) + tins (0.13.2) + tty-which (0.3.0) + tzinfo (1.2.5) thread_safe (~> 0.1) - unicode-display_width (1.2.1) + unicode-display_width (1.3.3) virtus (1.0.5) axiom-types (~> 0.1) coercible (~> 1.0) @@ -205,7 +212,7 @@ PLATFORMS ruby DEPENDENCIES - activerecord (~> 4.2.8) + activerecord (~> 4.2.10) appraisal codeclimate-test-reporter coveralls diff --git a/gemfiles/rails_5.0.gemfile b/gemfiles/rails_5.0.gemfile index 505dccf..2376311 100755 --- a/gemfiles/rails_5.0.gemfile +++ b/gemfiles/rails_5.0.gemfile @@ -5,7 +5,7 @@ source "http://rubygems.org" ruby "2.4.1" gem "sqlite3" -gem "activerecord", "~> 5.0.3", group: :test, require: false +gem "activerecord", "~> 5.0.7", group: :test, require: false group :development do gem "appraisal", require: false diff --git a/gemfiles/rails_5.0.gemfile.lock b/gemfiles/rails_5.0.gemfile.lock index 7e4d15a..315c629 100644 --- a/gemfiles/rails_5.0.gemfile.lock +++ b/gemfiles/rails_5.0.gemfile.lock @@ -6,66 +6,65 @@ PATH GEM remote: http://rubygems.org/ specs: - activemodel (5.0.3) - activesupport (= 5.0.3) - activerecord (5.0.3) - activemodel (= 5.0.3) - activesupport (= 5.0.3) + activemodel (5.0.7) + activesupport (= 5.0.7) + activerecord (5.0.7) + activemodel (= 5.0.7) + activesupport (= 5.0.7) arel (~> 7.0) - activesupport (5.0.3) + activesupport (5.0.7) concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (~> 0.7) + i18n (>= 0.7, < 2) minitest (~> 5.1) tzinfo (~> 1.1) - addressable (2.5.1) - public_suffix (~> 2.0, >= 2.0.2) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) appraisal (2.2.0) bundler rake thor (>= 0.14.0) arel (7.1.4) - ast (2.3.0) + ast (2.4.0) axiom-types (0.1.1) descendants_tracker (~> 0.0.4) ice_nine (~> 0.11.0) thread_safe (~> 0.3, >= 0.3.1) - builder (3.2.3) - codeclimate-engine-rb (0.4.0) + codeclimate-engine-rb (0.4.1) virtus (~> 1.0) codeclimate-test-reporter (1.0.7) simplecov - coderay (1.1.1) + coderay (1.1.2) coercible (1.0.0) descendants_tracker (~> 0.0.1) concurrent-ruby (1.0.5) - coveralls (0.8.21) - json (>= 1.8, < 3) - simplecov (~> 0.14.1) - term-ansicolor (~> 1.3) - thor (~> 0.19.4) - tins (~> 1.6) + coveralls (0.7.2) + multi_json (~> 1.3) + rest-client (= 1.6.7) + simplecov (>= 0.7) + term-ansicolor (= 1.2.2) + thor (= 0.18.1) descendants_tracker (0.0.4) thread_safe (~> 0.3, >= 0.3.1) diff-lcs (1.3) - docile (1.1.5) + docile (1.3.1) equalizer (0.0.11) erubis (2.7.0) - faraday (0.12.1) + faraday (0.15.2) multipart-post (>= 1.2, < 3) faraday-http-cache (2.0.0) faraday (~> 0.8) - ffi (1.9.18) - flay (2.9.0) + ffi (1.9.23) + flay (2.12.0) erubis (~> 2.7.0) path_expander (~> 1.0) ruby_parser (~> 3.0) sexp_processor (~> 4.0) - flog (4.6.1) + flog (4.6.2) path_expander (~> 1.0) ruby_parser (~> 3.1, > 3.1.0) sexp_processor (~> 4.8) formatador (0.2.5) - fuubar (2.2.0) + fuubar (2.3.1) rspec-core (~> 3.0) ruby-progressbar (~> 1.4) gem-release (2.0.0.rc.3) @@ -77,10 +76,10 @@ GEM rainbow (>= 2.1) rake (>= 10.0) retriable (~> 2.1) - guard (2.14.1) + guard (2.14.2) formatador (>= 0.2.4) listen (>= 2.7, < 4.0) - lumberjack (~> 1.0) + lumberjack (>= 1.0.12, < 2.0) nenv (~> 0.1) notiffany (~> 0.0) pry (>= 0.9.12) @@ -91,13 +90,14 @@ GEM guard (~> 2.1) guard-compat (~> 1.1) rspec (>= 2.99.0, < 4.0) - guard-rubocop (1.2.0) + guard-rubocop (1.3.0) guard (~> 2.0) rubocop (~> 0.20) guard-rubycritic (2.9.3) guard (~> 2.6) rubycritic (>= 2.9.3) - i18n (0.8.1) + i18n (1.0.1) + concurrent-ruby (~> 1.0) ice_nine (0.11.2) json (2.1.0) launchy (2.4.3) @@ -106,95 +106,100 @@ GEM rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) ruby_dep (~> 1.2) - lumberjack (1.0.12) - method_source (0.8.2) - minitest (5.10.2) - multi_json (1.12.1) + lumberjack (1.0.13) + method_source (0.9.0) + mime-types (3.1) + mime-types-data (~> 3.2015) + mime-types-data (3.2016.0521) + minitest (5.11.3) + multi_json (1.13.1) multipart-post (2.0.0) nenv (0.3.0) notiffany (0.1.1) nenv (~> 0.1) shellany (~> 0.0) - octokit (4.7.0) + octokit (4.9.0) sawyer (~> 0.8.0, >= 0.5.3) - parser (2.4.0.0) - ast (~> 2.2) - path_expander (1.0.2) + parallel (1.12.1) + parser (2.5.1.0) + ast (~> 2.4.0) + path_expander (1.0.3) powerpack (0.1.1) - pry (0.10.4) + pry (0.11.3) coderay (~> 1.1.0) - method_source (~> 0.8.1) - slop (~> 3.4) - public_suffix (2.0.5) - rainbow (2.2.2) - rake - rake (12.0.0) - rb-fsevent (0.9.8) - rb-inotify (0.9.8) - ffi (>= 0.5.0) - rdoc (5.1.0) - reek (4.6.2) + method_source (~> 0.9.0) + public_suffix (3.0.2) + rainbow (3.0.0) + rake (12.3.1) + rb-fsevent (0.10.3) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + rdoc (6.0.4) + reek (4.8.1) codeclimate-engine-rb (~> 0.4.0) - parser (>= 2.4.0.0, < 2.5) - rainbow (~> 2.0) + parser (>= 2.5.0.0, < 2.6) + rainbow (>= 2.0, < 4.0) + rest-client (1.6.7) + mime-types (>= 1.16) retriable (2.1.0) - rspec (3.6.0) - rspec-core (~> 3.6.0) - rspec-expectations (~> 3.6.0) - rspec-mocks (~> 3.6.0) - rspec-core (3.6.0) - rspec-support (~> 3.6.0) - rspec-expectations (3.6.0) + rspec (3.7.0) + rspec-core (~> 3.7.0) + rspec-expectations (~> 3.7.0) + rspec-mocks (~> 3.7.0) + rspec-core (3.7.1) + rspec-support (~> 3.7.0) + rspec-expectations (3.7.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.6.0) - rspec-mocks (3.6.0) + rspec-support (~> 3.7.0) + rspec-mocks (3.7.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.6.0) - rspec-support (3.6.0) - rspec_junit_formatter (0.2.3) - builder (< 4) + rspec-support (~> 3.7.0) + rspec-support (3.7.1) + rspec_junit_formatter (0.4.0) rspec-core (>= 2, < 4, != 2.12.0) - rubocop (0.48.1) - parser (>= 2.3.3.1, < 3.0) + rubocop (0.56.0) + parallel (~> 1.10) + parser (>= 2.5) powerpack (~> 0.1) - rainbow (>= 1.99.1, < 3.0) + rainbow (>= 2.2.2, < 4.0) ruby-progressbar (~> 1.7) unicode-display_width (~> 1.0, >= 1.0.1) - rubocop-rspec (1.15.1) - rubocop (>= 0.42.0) - ruby-progressbar (1.8.1) + rubocop-rspec (1.25.1) + rubocop (>= 0.53.0) + ruby-progressbar (1.9.0) ruby_dep (1.5.0) - ruby_parser (3.9.0) - sexp_processor (~> 4.1) - rubycritic (3.2.2) + ruby_parser (3.11.0) + sexp_processor (~> 4.9) + rubycritic (3.4.0) flay (~> 2.8) flog (~> 4.4) launchy (= 2.4.3) - parser (~> 2.4.0) - rainbow (~> 2.1) + parser (~> 2.5.0) + rainbow (~> 3.0) reek (~> 4.4) ruby_parser (~> 3.8) + tty-which (~> 0.3.0) virtus (~> 1.0) sawyer (0.8.1) addressable (>= 2.3.5, < 2.6) faraday (~> 0.8, < 1.0) - sexp_processor (4.9.0) + sexp_processor (4.11.0) shellany (0.0.1) - simplecov (0.14.1) - docile (~> 1.1.0) + simplecov (0.16.1) + docile (~> 1.1) json (>= 1.8, < 3) simplecov-html (~> 0.10.0) - simplecov-html (0.10.1) - slop (3.6.0) + simplecov-html (0.10.2) sqlite3 (1.3.13) - term-ansicolor (1.6.0) - tins (~> 1.0) - thor (0.19.4) + term-ansicolor (1.2.2) + tins (~> 0.8) + thor (0.18.1) thread_safe (0.3.6) - tins (1.14.0) - tzinfo (1.2.3) + tins (0.13.2) + tty-which (0.3.0) + tzinfo (1.2.5) thread_safe (~> 0.1) - unicode-display_width (1.2.1) + unicode-display_width (1.3.3) virtus (1.0.5) axiom-types (~> 0.1) coercible (~> 1.0) @@ -205,7 +210,7 @@ PLATFORMS ruby DEPENDENCIES - activerecord (~> 5.0.3) + activerecord (~> 5.0.7) appraisal codeclimate-test-reporter coveralls diff --git a/gemfiles/rails_5.1.gemfile b/gemfiles/rails_5.1.gemfile index 27de9cb..97a2a49 100755 --- a/gemfiles/rails_5.1.gemfile +++ b/gemfiles/rails_5.1.gemfile @@ -5,7 +5,7 @@ source "http://rubygems.org" ruby "2.4.1" gem "sqlite3" -gem "activerecord", "~> 5.1.1", group: :test, require: false +gem "activerecord", "~> 5.1.6", group: :test, require: false group :development do gem "appraisal", require: false diff --git a/gemfiles/rails_5.1.gemfile.lock b/gemfiles/rails_5.1.gemfile.lock index 5ebb3ed..9ca05c0 100644 --- a/gemfiles/rails_5.1.gemfile.lock +++ b/gemfiles/rails_5.1.gemfile.lock @@ -6,66 +6,65 @@ PATH GEM remote: http://rubygems.org/ specs: - activemodel (5.1.1) - activesupport (= 5.1.1) - activerecord (5.1.1) - activemodel (= 5.1.1) - activesupport (= 5.1.1) + activemodel (5.1.6) + activesupport (= 5.1.6) + activerecord (5.1.6) + activemodel (= 5.1.6) + activesupport (= 5.1.6) arel (~> 8.0) - activesupport (5.1.1) + activesupport (5.1.6) concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (~> 0.7) + i18n (>= 0.7, < 2) minitest (~> 5.1) tzinfo (~> 1.1) - addressable (2.5.1) - public_suffix (~> 2.0, >= 2.0.2) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) appraisal (2.2.0) bundler rake thor (>= 0.14.0) arel (8.0.0) - ast (2.3.0) + ast (2.4.0) axiom-types (0.1.1) descendants_tracker (~> 0.0.4) ice_nine (~> 0.11.0) thread_safe (~> 0.3, >= 0.3.1) - builder (3.2.3) - codeclimate-engine-rb (0.4.0) + codeclimate-engine-rb (0.4.1) virtus (~> 1.0) codeclimate-test-reporter (1.0.7) simplecov - coderay (1.1.1) + coderay (1.1.2) coercible (1.0.0) descendants_tracker (~> 0.0.1) concurrent-ruby (1.0.5) - coveralls (0.8.21) - json (>= 1.8, < 3) - simplecov (~> 0.14.1) - term-ansicolor (~> 1.3) - thor (~> 0.19.4) - tins (~> 1.6) + coveralls (0.7.2) + multi_json (~> 1.3) + rest-client (= 1.6.7) + simplecov (>= 0.7) + term-ansicolor (= 1.2.2) + thor (= 0.18.1) descendants_tracker (0.0.4) thread_safe (~> 0.3, >= 0.3.1) diff-lcs (1.3) - docile (1.1.5) + docile (1.3.1) equalizer (0.0.11) erubis (2.7.0) - faraday (0.12.1) + faraday (0.15.2) multipart-post (>= 1.2, < 3) faraday-http-cache (2.0.0) faraday (~> 0.8) - ffi (1.9.18) - flay (2.9.0) + ffi (1.9.23) + flay (2.12.0) erubis (~> 2.7.0) path_expander (~> 1.0) ruby_parser (~> 3.0) sexp_processor (~> 4.0) - flog (4.6.1) + flog (4.6.2) path_expander (~> 1.0) ruby_parser (~> 3.1, > 3.1.0) sexp_processor (~> 4.8) formatador (0.2.5) - fuubar (2.2.0) + fuubar (2.3.1) rspec-core (~> 3.0) ruby-progressbar (~> 1.4) gem-release (2.0.0.rc.3) @@ -77,10 +76,10 @@ GEM rainbow (>= 2.1) rake (>= 10.0) retriable (~> 2.1) - guard (2.14.1) + guard (2.14.2) formatador (>= 0.2.4) listen (>= 2.7, < 4.0) - lumberjack (~> 1.0) + lumberjack (>= 1.0.12, < 2.0) nenv (~> 0.1) notiffany (~> 0.0) pry (>= 0.9.12) @@ -91,13 +90,14 @@ GEM guard (~> 2.1) guard-compat (~> 1.1) rspec (>= 2.99.0, < 4.0) - guard-rubocop (1.2.0) + guard-rubocop (1.3.0) guard (~> 2.0) rubocop (~> 0.20) guard-rubycritic (2.9.3) guard (~> 2.6) rubycritic (>= 2.9.3) - i18n (0.8.1) + i18n (1.0.1) + concurrent-ruby (~> 1.0) ice_nine (0.11.2) json (2.1.0) launchy (2.4.3) @@ -106,95 +106,100 @@ GEM rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) ruby_dep (~> 1.2) - lumberjack (1.0.12) - method_source (0.8.2) - minitest (5.10.2) - multi_json (1.12.1) + lumberjack (1.0.13) + method_source (0.9.0) + mime-types (3.1) + mime-types-data (~> 3.2015) + mime-types-data (3.2016.0521) + minitest (5.11.3) + multi_json (1.13.1) multipart-post (2.0.0) nenv (0.3.0) notiffany (0.1.1) nenv (~> 0.1) shellany (~> 0.0) - octokit (4.7.0) + octokit (4.9.0) sawyer (~> 0.8.0, >= 0.5.3) - parser (2.4.0.0) - ast (~> 2.2) - path_expander (1.0.2) + parallel (1.12.1) + parser (2.5.1.0) + ast (~> 2.4.0) + path_expander (1.0.3) powerpack (0.1.1) - pry (0.10.4) + pry (0.11.3) coderay (~> 1.1.0) - method_source (~> 0.8.1) - slop (~> 3.4) - public_suffix (2.0.5) - rainbow (2.2.2) - rake - rake (12.0.0) - rb-fsevent (0.9.8) - rb-inotify (0.9.8) - ffi (>= 0.5.0) - rdoc (5.1.0) - reek (4.6.2) + method_source (~> 0.9.0) + public_suffix (3.0.2) + rainbow (3.0.0) + rake (12.3.1) + rb-fsevent (0.10.3) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + rdoc (6.0.4) + reek (4.8.1) codeclimate-engine-rb (~> 0.4.0) - parser (>= 2.4.0.0, < 2.5) - rainbow (~> 2.0) + parser (>= 2.5.0.0, < 2.6) + rainbow (>= 2.0, < 4.0) + rest-client (1.6.7) + mime-types (>= 1.16) retriable (2.1.0) - rspec (3.6.0) - rspec-core (~> 3.6.0) - rspec-expectations (~> 3.6.0) - rspec-mocks (~> 3.6.0) - rspec-core (3.6.0) - rspec-support (~> 3.6.0) - rspec-expectations (3.6.0) + rspec (3.7.0) + rspec-core (~> 3.7.0) + rspec-expectations (~> 3.7.0) + rspec-mocks (~> 3.7.0) + rspec-core (3.7.1) + rspec-support (~> 3.7.0) + rspec-expectations (3.7.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.6.0) - rspec-mocks (3.6.0) + rspec-support (~> 3.7.0) + rspec-mocks (3.7.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.6.0) - rspec-support (3.6.0) - rspec_junit_formatter (0.2.3) - builder (< 4) + rspec-support (~> 3.7.0) + rspec-support (3.7.1) + rspec_junit_formatter (0.4.0) rspec-core (>= 2, < 4, != 2.12.0) - rubocop (0.48.1) - parser (>= 2.3.3.1, < 3.0) + rubocop (0.56.0) + parallel (~> 1.10) + parser (>= 2.5) powerpack (~> 0.1) - rainbow (>= 1.99.1, < 3.0) + rainbow (>= 2.2.2, < 4.0) ruby-progressbar (~> 1.7) unicode-display_width (~> 1.0, >= 1.0.1) - rubocop-rspec (1.15.1) - rubocop (>= 0.42.0) - ruby-progressbar (1.8.1) + rubocop-rspec (1.25.1) + rubocop (>= 0.53.0) + ruby-progressbar (1.9.0) ruby_dep (1.5.0) - ruby_parser (3.9.0) - sexp_processor (~> 4.1) - rubycritic (3.2.2) + ruby_parser (3.11.0) + sexp_processor (~> 4.9) + rubycritic (3.4.0) flay (~> 2.8) flog (~> 4.4) launchy (= 2.4.3) - parser (~> 2.4.0) - rainbow (~> 2.1) + parser (~> 2.5.0) + rainbow (~> 3.0) reek (~> 4.4) ruby_parser (~> 3.8) + tty-which (~> 0.3.0) virtus (~> 1.0) sawyer (0.8.1) addressable (>= 2.3.5, < 2.6) faraday (~> 0.8, < 1.0) - sexp_processor (4.9.0) + sexp_processor (4.11.0) shellany (0.0.1) - simplecov (0.14.1) - docile (~> 1.1.0) + simplecov (0.16.1) + docile (~> 1.1) json (>= 1.8, < 3) simplecov-html (~> 0.10.0) - simplecov-html (0.10.1) - slop (3.6.0) + simplecov-html (0.10.2) sqlite3 (1.3.13) - term-ansicolor (1.6.0) - tins (~> 1.0) - thor (0.19.4) + term-ansicolor (1.2.2) + tins (~> 0.8) + thor (0.18.1) thread_safe (0.3.6) - tins (1.14.0) - tzinfo (1.2.3) + tins (0.13.2) + tty-which (0.3.0) + tzinfo (1.2.5) thread_safe (~> 0.1) - unicode-display_width (1.2.1) + unicode-display_width (1.3.3) virtus (1.0.5) axiom-types (~> 0.1) coercible (~> 1.0) @@ -205,7 +210,7 @@ PLATFORMS ruby DEPENDENCIES - activerecord (~> 5.1.1) + activerecord (~> 5.1.6) appraisal codeclimate-test-reporter coveralls diff --git a/gemfiles/rails_5.2.gemfile b/gemfiles/rails_5.2.gemfile new file mode 100644 index 0000000..896d814 --- /dev/null +++ b/gemfiles/rails_5.2.gemfile @@ -0,0 +1,31 @@ +# This file was generated by Appraisal + +source "http://rubygems.org" + +ruby "2.4.1" + +gem "sqlite3" +gem "activerecord", "~> 5.2.0", group: :test, require: false + +group :development do + gem "appraisal", require: false + gem "gem-release", "> 1", require: false + gem "github_changelog_generator", require: false + gem "guard", require: false + gem "guard-rspec", require: false + gem "guard-rubocop", require: false + gem "guard-rubycritic", require: false + gem "rdoc", require: false + gem "rubocop-rspec", require: false +end + +group :test do + gem "codeclimate-test-reporter", require: false + gem "coveralls", require: false + gem "fuubar", require: false + gem "rspec", require: false + gem "rspec_junit_formatter", require: false + gem "simplecov", "~> 0.14", require: false +end + +gemspec path: "../" diff --git a/gemfiles/rails_5.2.gemfile.lock b/gemfiles/rails_5.2.gemfile.lock new file mode 100644 index 0000000..a56460c --- /dev/null +++ b/gemfiles/rails_5.2.gemfile.lock @@ -0,0 +1,231 @@ +PATH + remote: .. + specs: + machinist_redux (3.0.4) + +GEM + remote: http://rubygems.org/ + specs: + activemodel (5.2.0) + activesupport (= 5.2.0) + activerecord (5.2.0) + activemodel (= 5.2.0) + activesupport (= 5.2.0) + arel (>= 9.0) + activesupport (5.2.0) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) + appraisal (2.2.0) + bundler + rake + thor (>= 0.14.0) + arel (9.0.0) + ast (2.4.0) + axiom-types (0.1.1) + descendants_tracker (~> 0.0.4) + ice_nine (~> 0.11.0) + thread_safe (~> 0.3, >= 0.3.1) + codeclimate-engine-rb (0.4.1) + virtus (~> 1.0) + codeclimate-test-reporter (1.0.7) + simplecov + coderay (1.1.2) + coercible (1.0.0) + descendants_tracker (~> 0.0.1) + concurrent-ruby (1.0.5) + coveralls (0.8.21) + json (>= 1.8, < 3) + simplecov (~> 0.14.1) + term-ansicolor (~> 1.3) + thor (~> 0.19.4) + tins (~> 1.6) + descendants_tracker (0.0.4) + thread_safe (~> 0.3, >= 0.3.1) + diff-lcs (1.3) + docile (1.1.5) + equalizer (0.0.11) + erubis (2.7.0) + faraday (0.15.2) + multipart-post (>= 1.2, < 3) + faraday-http-cache (2.0.0) + faraday (~> 0.8) + ffi (1.9.23) + flay (2.12.0) + erubis (~> 2.7.0) + path_expander (~> 1.0) + ruby_parser (~> 3.0) + sexp_processor (~> 4.0) + flog (4.6.2) + path_expander (~> 1.0) + ruby_parser (~> 3.1, > 3.1.0) + sexp_processor (~> 4.8) + formatador (0.2.5) + fuubar (2.3.1) + rspec-core (~> 3.0) + ruby-progressbar (~> 1.4) + gem-release (2.0.0.rc.3) + github_changelog_generator (1.14.3) + activesupport + faraday-http-cache + multi_json + octokit (~> 4.6) + rainbow (>= 2.1) + rake (>= 10.0) + retriable (~> 2.1) + guard (2.14.2) + formatador (>= 0.2.4) + listen (>= 2.7, < 4.0) + lumberjack (>= 1.0.12, < 2.0) + nenv (~> 0.1) + notiffany (~> 0.0) + pry (>= 0.9.12) + shellany (~> 0.0) + thor (>= 0.18.1) + guard-compat (1.2.1) + guard-rspec (4.7.3) + guard (~> 2.1) + guard-compat (~> 1.1) + rspec (>= 2.99.0, < 4.0) + guard-rubocop (1.3.0) + guard (~> 2.0) + rubocop (~> 0.20) + guard-rubycritic (2.9.3) + guard (~> 2.6) + rubycritic (>= 2.9.3) + i18n (1.0.1) + concurrent-ruby (~> 1.0) + ice_nine (0.11.2) + json (2.1.0) + launchy (2.4.3) + addressable (~> 2.3) + listen (3.1.5) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + ruby_dep (~> 1.2) + lumberjack (1.0.13) + method_source (0.9.0) + minitest (5.11.3) + multi_json (1.13.1) + multipart-post (2.0.0) + nenv (0.3.0) + notiffany (0.1.1) + nenv (~> 0.1) + shellany (~> 0.0) + octokit (4.9.0) + sawyer (~> 0.8.0, >= 0.5.3) + parallel (1.12.1) + parser (2.5.1.0) + ast (~> 2.4.0) + path_expander (1.0.3) + powerpack (0.1.1) + pry (0.11.3) + coderay (~> 1.1.0) + method_source (~> 0.9.0) + public_suffix (3.0.2) + rainbow (3.0.0) + rake (12.3.1) + rb-fsevent (0.10.3) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + rdoc (6.0.4) + reek (4.8.1) + codeclimate-engine-rb (~> 0.4.0) + parser (>= 2.5.0.0, < 2.6) + rainbow (>= 2.0, < 4.0) + retriable (2.1.0) + rspec (3.7.0) + rspec-core (~> 3.7.0) + rspec-expectations (~> 3.7.0) + rspec-mocks (~> 3.7.0) + rspec-core (3.7.1) + rspec-support (~> 3.7.0) + rspec-expectations (3.7.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.7.0) + rspec-mocks (3.7.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.7.0) + rspec-support (3.7.1) + rspec_junit_formatter (0.4.0) + rspec-core (>= 2, < 4, != 2.12.0) + rubocop (0.56.0) + parallel (~> 1.10) + parser (>= 2.5) + powerpack (~> 0.1) + rainbow (>= 2.2.2, < 4.0) + ruby-progressbar (~> 1.7) + unicode-display_width (~> 1.0, >= 1.0.1) + rubocop-rspec (1.25.1) + rubocop (>= 0.53.0) + ruby-progressbar (1.9.0) + ruby_dep (1.5.0) + ruby_parser (3.11.0) + sexp_processor (~> 4.9) + rubycritic (3.4.0) + flay (~> 2.8) + flog (~> 4.4) + launchy (= 2.4.3) + parser (~> 2.5.0) + rainbow (~> 3.0) + reek (~> 4.4) + ruby_parser (~> 3.8) + tty-which (~> 0.3.0) + virtus (~> 1.0) + sawyer (0.8.1) + addressable (>= 2.3.5, < 2.6) + faraday (~> 0.8, < 1.0) + sexp_processor (4.11.0) + shellany (0.0.1) + simplecov (0.14.1) + docile (~> 1.1.0) + json (>= 1.8, < 3) + simplecov-html (~> 0.10.0) + simplecov-html (0.10.2) + sqlite3 (1.3.13) + term-ansicolor (1.6.0) + tins (~> 1.0) + thor (0.19.4) + thread_safe (0.3.6) + tins (1.16.3) + tty-which (0.3.0) + tzinfo (1.2.5) + thread_safe (~> 0.1) + unicode-display_width (1.3.3) + virtus (1.0.5) + axiom-types (~> 0.1) + coercible (~> 1.0) + descendants_tracker (~> 0.0, >= 0.0.3) + equalizer (~> 0.0, >= 0.0.9) + +PLATFORMS + ruby + +DEPENDENCIES + activerecord (~> 5.2.0) + appraisal + codeclimate-test-reporter + coveralls + fuubar + gem-release (> 1) + github_changelog_generator + guard + guard-rspec + guard-rubocop + guard-rubycritic + machinist_redux! + rdoc + rspec + rspec_junit_formatter + rubocop-rspec + simplecov (~> 0.14) + sqlite3 + +RUBY VERSION + ruby 2.4.1p111 + +BUNDLED WITH + 1.16.2 From a5979f83cd7eee426f051d7b6c1f724c188de91c Mon Sep 17 00:00:00 2001 From: Dominic Sayers Date: Tue, 29 May 2018 11:38:42 +0100 Subject: [PATCH 10/10] Set ruby version to RUBY_VERSION So Travis can test using multiple versions --- gemfiles/rails_4.2.gemfile | 2 +- gemfiles/rails_5.0.gemfile | 2 +- gemfiles/rails_5.1.gemfile | 2 +- gemfiles/rails_5.2.gemfile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gemfiles/rails_4.2.gemfile b/gemfiles/rails_4.2.gemfile index 350f451..a4af791 100755 --- a/gemfiles/rails_4.2.gemfile +++ b/gemfiles/rails_4.2.gemfile @@ -2,7 +2,7 @@ source "http://rubygems.org" -ruby "2.4.1" +ruby RUBY_VERSION gem "sqlite3" gem "activerecord", "~> 4.2.10", group: :test, require: false diff --git a/gemfiles/rails_5.0.gemfile b/gemfiles/rails_5.0.gemfile index 2376311..04b5617 100755 --- a/gemfiles/rails_5.0.gemfile +++ b/gemfiles/rails_5.0.gemfile @@ -2,7 +2,7 @@ source "http://rubygems.org" -ruby "2.4.1" +ruby RUBY_VERSION gem "sqlite3" gem "activerecord", "~> 5.0.7", group: :test, require: false diff --git a/gemfiles/rails_5.1.gemfile b/gemfiles/rails_5.1.gemfile index 97a2a49..c800381 100755 --- a/gemfiles/rails_5.1.gemfile +++ b/gemfiles/rails_5.1.gemfile @@ -2,7 +2,7 @@ source "http://rubygems.org" -ruby "2.4.1" +ruby RUBY_VERSION gem "sqlite3" gem "activerecord", "~> 5.1.6", group: :test, require: false diff --git a/gemfiles/rails_5.2.gemfile b/gemfiles/rails_5.2.gemfile index 896d814..14603e9 100644 --- a/gemfiles/rails_5.2.gemfile +++ b/gemfiles/rails_5.2.gemfile @@ -2,7 +2,7 @@ source "http://rubygems.org" -ruby "2.4.1" +ruby RUBY_VERSION gem "sqlite3" gem "activerecord", "~> 5.2.0", group: :test, require: false