-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'case/master' into 2.3.6/single-associat…
…ion-performance
- Loading branch information
Showing
41 changed files
with
751 additions
and
904 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
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,137 +1,34 @@ | ||
require: | ||
- standard | ||
- rubocop-performance | ||
- rubocop-rails | ||
- rubocop-rake | ||
- rubocop-rspec | ||
|
||
inherit_gem: | ||
standard: config/base.yml | ||
|
||
AllCops: | ||
TargetRubyVersion: 2.7 | ||
NewCops: enable | ||
NewCops: disable | ||
Exclude: | ||
- bin/**/* | ||
- vendor/**/* | ||
|
||
Style/StringLiterals: | ||
Enabled: false | ||
|
||
Layout/LineLength: | ||
Max: 120 | ||
|
||
Metrics/MethodLength: | ||
Max: 15 | ||
|
||
Metrics/BlockLength: | ||
Exclude: | ||
- spec/**/* | ||
|
||
Layout/ParameterAlignment: | ||
EnforcedStyle: with_fixed_indentation | ||
|
||
Style/NumericPredicate: | ||
Enabled: false | ||
|
||
Style/PercentLiteralDelimiters: | ||
PreferredDelimiters: | ||
'%w': '[]' | ||
'%W': '[]' | ||
|
||
Style/GuardClause: | ||
Enabled: false | ||
|
||
Naming/VariableNumber: | ||
EnforcedStyle: snake_case | ||
|
||
Bundler/OrderedGems: | ||
Enabled: false | ||
|
||
Bundler/DuplicatedGem: | ||
Enabled: false | ||
|
||
Style/EmptyMethod: | ||
EnforcedStyle: expanded | ||
|
||
Layout/FirstArrayElementIndentation: | ||
EnforcedStyle: consistent | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
||
Style/WordArray: | ||
EnforcedStyle: percent | ||
MinSize: 3 | ||
|
||
Style/HashEachMethods: | ||
Lint/RedundantCopDisableDirective: | ||
Enabled: true | ||
|
||
Style/HashTransformKeys: | ||
Lint/RedundantCopEnableDirective: | ||
Enabled: true | ||
|
||
Style/HashTransformValues: | ||
Enabled: true | ||
|
||
Rails/ApplicationRecord: | ||
Bundler/DuplicatedGem: | ||
Enabled: false | ||
|
||
Rails/TimeZone: | ||
Rails/ApplicationRecord: | ||
Enabled: false | ||
|
||
RSpec/ContextWording: | ||
Prefixes: | ||
- using | ||
- via | ||
- when | ||
- with | ||
- without | ||
|
||
Lint/RaiseException: | ||
Enabled: true | ||
|
||
Lint/StructNewOverride: | ||
Enabled: true | ||
|
||
Layout/SpaceAroundMethodCallOperator: | ||
Enabled: true | ||
|
||
Style/ExponentialNotation: | ||
Enabled: true | ||
|
||
RSpec/DescribedClass: | ||
Enabled: true | ||
|
||
RSpec/ExpectInHook: | ||
Rails/RakeEnvironment: | ||
Enabled: false | ||
|
||
RSpec/FilePath: | ||
CustomTransform: | ||
TSearch: "tsearch" | ||
DMetaphone: "dmetaphone" | ||
|
||
Layout/EmptyLinesAroundAttributeAccessor: | ||
Enabled: true | ||
|
||
Lint/DeprecatedOpenSSLConstant: | ||
Enabled: true | ||
|
||
Style/SlicingWithRange: | ||
Enabled: true | ||
|
||
Lint/MixedRegexpCaptureTypes: | ||
Enabled: true | ||
|
||
Style/RedundantFetchBlock: | ||
Enabled: true | ||
|
||
Style/RedundantRegexpCharacterClass: | ||
Enabled: true | ||
|
||
Style/RedundantRegexpEscape: | ||
Enabled: true | ||
|
||
RSpec/MultipleExpectations: | ||
Max: 5 | ||
|
||
RSpec/ExampleLength: | ||
Max: 15 | ||
|
||
Rails/RakeEnvironment: | ||
Rails/TimeZone: | ||
Enabled: false |
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 @@ | ||
ruby 2.7.6 |
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,15 +1,30 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
gemspec | ||
|
||
gem 'pg', '>= 0.21.0', platform: :ruby | ||
gem "pg", ">= 0.21.0", platform: :ruby | ||
gem "activerecord-jdbcpostgresql-adapter", ">= 1.3.1", platform: :jruby | ||
|
||
if ENV['ACTIVE_RECORD_BRANCH'] | ||
gem 'activerecord', git: 'https://github.com/rails/rails.git', branch: ENV.fetch('ACTIVE_RECORD_BRANCH', nil) | ||
gem 'arel', git: 'https://github.com/rails/arel.git' if ENV.fetch('ACTIVE_RECORD_BRANCH', nil) == 'master' | ||
if ENV["ACTIVE_RECORD_BRANCH"] | ||
gem "activerecord", git: "https://github.com/rails/rails.git", branch: ENV.fetch("ACTIVE_RECORD_BRANCH", nil) | ||
gem "arel", git: "https://github.com/rails/arel.git" if ENV.fetch("ACTIVE_RECORD_BRANCH", nil) == "master" | ||
end | ||
|
||
gem 'activerecord', ENV.fetch('ACTIVE_RECORD_VERSION', nil) if ENV['ACTIVE_RECORD_VERSION'] | ||
gem "activerecord", ENV.fetch("ACTIVE_RECORD_VERSION", nil) if ENV["ACTIVE_RECORD_VERSION"] | ||
|
||
gem "pry" | ||
gem "rake" | ||
gem "rspec" | ||
gem "rubocop" | ||
gem "rubocop-performance" | ||
gem "rubocop-rails" | ||
gem "rubocop-rake" | ||
gem "rubocop-rspec" | ||
gem "simplecov" | ||
gem "simplecov-lcov" | ||
gem "standard", ">= 1.23.0" | ||
gem "undercover" | ||
gem "warning" | ||
gem "with_model" |
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 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'digest' | ||
require "digest" | ||
|
||
module PgSearch | ||
class Configuration | ||
|
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
Oops, something went wrong.