-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Github Actions and update Rubocop (#128)
* Add Github Actions and update Rubocop * Fix * Remove support for ruby 2.3 and 2.4 * Fix
- Loading branch information
1 parent
8648650
commit 5bf8a51
Showing
8 changed files
with
130 additions
and
46 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake | ||
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby | ||
|
||
name: Ruby | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
test: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ruby: [2.5, 2.6, 2.7, head, jruby-9.2.20.1, jruby-head] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
continue-on-error: true | ||
- name: Run tests | ||
run: bundle exec rake | ||
continue-on-error: true |
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,9 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
require: | ||
- rubocop-rake | ||
- rubocop-rspec | ||
|
||
AllCops: | ||
DisplayCopNames: true | ||
Exclude: | ||
|
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,67 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2022-01-29 11:55:33 UTC using RuboCop version 1.25.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 | ||
# Configuration parameters: Include. | ||
# Include: **/*.gemspec | ||
Gemspec/RequiredRubyVersion: | ||
Exclude: | ||
- 'redis-session-store.gemspec' | ||
|
||
# Offense count: 6 | ||
# Configuration parameters: Prefixes. | ||
# Prefixes: when, with, without | ||
RSpec/ContextWording: | ||
Exclude: | ||
- 'spec/redis_session_store_spec.rb' | ||
|
||
# Offense count: 2 | ||
# Configuration parameters: CountAsOne. | ||
RSpec/ExampleLength: | ||
Max: 9 | ||
|
||
# Offense count: 5 | ||
# Configuration parameters: AssignmentOnly. | ||
RSpec/InstanceVariable: | ||
Exclude: | ||
- 'spec/redis_session_store_spec.rb' | ||
|
||
# Offense count: 8 | ||
# Configuration parameters: . | ||
# SupportedStyles: have_received, receive | ||
RSpec/MessageSpies: | ||
EnforcedStyle: receive | ||
|
||
# Offense count: 5 | ||
RSpec/MultipleExpectations: | ||
Max: 2 | ||
|
||
# Offense count: 17 | ||
# Configuration parameters: AllowSubject. | ||
RSpec/MultipleMemoizedHelpers: | ||
Max: 10 | ||
|
||
# Offense count: 13 | ||
RSpec/NestedGroups: | ||
Max: 5 | ||
|
||
# Offense count: 2 | ||
RSpec/StubbedMock: | ||
Exclude: | ||
- 'spec/redis_session_store_spec.rb' | ||
|
||
# Offense count: 20 | ||
RSpec/SubjectStub: | ||
Exclude: | ||
- 'spec/redis_session_store_spec.rb' | ||
|
||
# Offense count: 16 | ||
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames. | ||
RSpec/VerifiedDoubles: | ||
Exclude: | ||
- 'spec/redis_session_store_spec.rb' |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ Gem::Specification.new do |gem| | |
gem.email = ['[email protected]'] | ||
gem.summary = 'A drop-in replacement for e.g. MemCacheStore to ' \ | ||
'store Rails sessions (and Rails sessions only) in Redis.' | ||
gem.description = gem.summary + ' For great glory!' | ||
gem.description = "#{gem.summary} For great glory!" | ||
gem.homepage = 'https://github.com/roidrage/redis-session-store' | ||
gem.license = 'MIT' | ||
|
||
|
@@ -21,6 +21,8 @@ Gem::Specification.new do |gem| | |
gem.add_development_dependency 'fakeredis', '~> 0.8' | ||
gem.add_development_dependency 'rake', '~> 13' | ||
gem.add_development_dependency 'rspec', '~> 3' | ||
gem.add_development_dependency 'rubocop', '~> 0.81' | ||
gem.add_development_dependency 'simplecov', '~> 0.17' | ||
gem.add_development_dependency 'rubocop', '~> 1.25' | ||
gem.add_development_dependency 'rubocop-rake', '~> 0.6' | ||
gem.add_development_dependency 'rubocop-rspec', '~> 2.8' | ||
gem.add_development_dependency 'simplecov', '~> 0.21' | ||
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