forked from Shopify/oktakit
-
Notifications
You must be signed in to change notification settings - Fork 0
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 Shopify#33 from Shopify/ruby-26
Ruby 2.6 and better rubocop
- Loading branch information
Showing
21 changed files
with
331 additions
and
408 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,93 +1,16 @@ | ||
# This file strictly follows the rules defined in the Ruby style guide: | ||
# http://shopify.github.io/ruby-style-guide/ | ||
inherit_gem: | ||
rubocop-shopify: rubocop.yml | ||
|
||
AllCops: | ||
TargetRubyVersion: 2.6 | ||
SuggestExtensions: false | ||
|
||
# Allow .ruby-version and spec.required_ruby_version to differ | ||
# to run a newer Ruby version for Rubocop, but don't force users to upgrade | ||
Gemspec/RequiredRubyVersion: | ||
Enabled: false | ||
|
||
Rails: | ||
Enabled: false | ||
|
||
Lint/AssignmentInCondition: | ||
Enabled: false | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
||
Layout/MultilineOperationIndentation: | ||
Enabled: false | ||
|
||
Layout/AlignParameters: | ||
EnforcedStyle: with_fixed_indentation | ||
|
||
Layout/IndentFirstArgument: | ||
EnforcedStyle: consistent | ||
|
||
Style/TrailingCommaInArrayLiteral: | ||
Enabled: false | ||
|
||
Style/SignalException: | ||
EnforcedStyle: only_raise | ||
|
||
Style/NumericLiterals: | ||
Enabled: false | ||
|
||
Layout/CaseIndentation: | ||
EnforcedStyle: end | ||
|
||
Layout/IndentFirstHashElement: | ||
EnforcedStyle: consistent | ||
|
||
Style/WordArray: | ||
Enabled: false | ||
|
||
Metrics/AbcSize: | ||
Enabled: false | ||
|
||
Metrics/CyclomaticComplexity: | ||
Enabled: false | ||
|
||
Style/StringLiterals: | ||
Enabled: false | ||
|
||
Metrics/LineLength: | ||
Max: 120 | ||
|
||
Metrics/ClassLength: | ||
Enabled: false | ||
|
||
Metrics/MethodLength: | ||
Enabled: false | ||
|
||
Metrics/BlockLength: | ||
Exclude: | ||
- "**/*_spec.rb" | ||
|
||
Metrics/ParameterLists: | ||
Max: 5 | ||
CountKeywordArgs: false | ||
|
||
Metrics/PerceivedComplexity: | ||
Enabled: false | ||
|
||
Layout/EndAlignment: | ||
EnforcedStyleAlignWith: variable | ||
|
||
Style/FrozenStringLiteralComment: | ||
Enabled: false | ||
|
||
Style/Alias: | ||
EnforcedStyle: prefer_alias_method | ||
|
||
Style/MutableConstant: | ||
Enabled: false | ||
|
||
Performance/Casecmp: | ||
Enabled: false | ||
|
||
Style/GuardClause: | ||
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 |
---|---|---|
@@ -1 +1 @@ | ||
2.6.0 | ||
2.6.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,7 +1,5 @@ | ||
sudo: false | ||
language: ruby | ||
os: linux | ||
before_install: gem install bundler | ||
rvm: | ||
- '2.3.8' | ||
- '2.5.3' | ||
- '2.6.0' | ||
|
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
name: oktakit | ||
|
||
up: | ||
- ruby: 2.3.1 | ||
- ruby: 2.6.6 | ||
- bundler | ||
|
||
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
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 |
---|---|---|
|
@@ -9,16 +9,16 @@ Gem::Specification.new do |spec| | |
spec.email = ['[email protected]', '[email protected]'] | ||
|
||
spec.summary = 'Ruby toolkit for working with the Okta API' | ||
spec.homepage = 'https://github.com/shopify/oktakit' | ||
spec.homepage = 'https://github.com/Shopify/oktakit' | ||
spec.license = 'MIT' | ||
|
||
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } | ||
spec.files = %x(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.required_ruby_version = '>= 2.2' | ||
spec.required_ruby_version = '>= 2.6' | ||
|
||
spec.add_dependency 'sawyer', '~> 0.8.1' | ||
spec.add_development_dependency 'bundler' | ||
spec.add_dependency('sawyer', '~> 0.8.1') | ||
spec.add_development_dependency('bundler') | ||
end |
Oops, something went wrong.