Skip to content

Commit

Permalink
Merge 5c95e65 into 16e011b
Browse files Browse the repository at this point in the history
  • Loading branch information
rarruda committed May 15, 2023
2 parents 16e011b + 5c95e65 commit d581ee1
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pull_request.yml
Expand Up @@ -10,11 +10,11 @@ jobs:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7"
ruby-version: "3.0"
bundler-cache: true
- name: Run RuboCop
run: bundle exec rubocop
Expand All @@ -38,6 +38,8 @@ jobs:
- 2.6
- 2.5

needs:
- lint
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
Expand Down
2 changes: 2 additions & 0 deletions .rubocop.yml
Expand Up @@ -11,6 +11,8 @@ Naming/PredicateName:

Metrics/ClassLength:
Max: 135
CountAsOne:
- 'method_call'
Layout/LineLength:
Max: 140
Metrics/MethodLength:
Expand Down
3 changes: 1 addition & 2 deletions spec/unleash/constraint_spec.rb
Expand Up @@ -50,8 +50,7 @@

it 'matches based on a value NOT_IN in a not existing context field' do
context_params = {
properties: {
}
properties: {}
}
context = Unleash::Context.new(context_params)
constraint = Unleash::Constraint.new('env', 'NOT_IN', ['anything'])
Expand Down
6 changes: 2 additions & 4 deletions spec/unleash/feature_toggle_spec.rb
Expand Up @@ -434,8 +434,7 @@
}
],
"name" => "default",
"parameters" => {
}
"parameters" => {}
}
]
)
Expand Down Expand Up @@ -480,8 +479,7 @@
}
],
"name" => "default",
"parameters" => {
}
"parameters" => {}
}
]
)
Expand Down
11 changes: 8 additions & 3 deletions unleash-client.gemspec
Expand Up @@ -27,11 +27,16 @@ Gem::Specification.new do |spec|

spec.add_development_dependency "bundler", "~> 2.1"
spec.add_development_dependency "rake", "~> 12.3"
spec.add_development_dependency "rspec", "~> 3.9"
spec.add_development_dependency "rspec", "~> 3.12"
spec.add_development_dependency "rspec-json_expectations", "~> 2.2"
spec.add_development_dependency "webmock", "~> 3.8"
spec.add_development_dependency "webmock", "~> 3.18.1"

# rubocop:disable Gemspec/RubyVersionGlobalsUsage, Style/IfUnlessModifier
if Gem::Version.new(RUBY_VERSION) > Gem::Version.new('3.0')
spec.add_development_dependency "rubocop", "~> 1.51.0"
end
# rubocop:enable Gemspec/RubyVersionGlobalsUsage, Style/IfUnlessModifier

spec.add_development_dependency "rubocop", "~> 1.28.2"
spec.add_development_dependency "simplecov", "~> 0.21.2"
spec.add_development_dependency "simplecov-lcov", "~> 0.8.0"
end

0 comments on commit d581ee1

Please sign in to comment.