redis-actionpack 5.2.0 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e8c18274ebb8a1a35f6490ea21d3728ce4daebfc974b77d81f1e1d29c517b0a
4
- data.tar.gz: b8b9b5cf0d95370bf4688c833bc854b32fcf153c0cdfab17b72828268dd5de77
3
+ metadata.gz: e260a35f3177c2653275cb7a46c7b8f8d6c0ca1b886dba6dc9c073d7a5103eff
4
+ data.tar.gz: f55b9b23b39f07735cfc4824c1d42235142ddf8baa9d57502b318c63a6840d12
5
5
  SHA512:
6
- metadata.gz: 17437048b9c715bd8029676f0da6865d10035fa1089484aaa14a8b6a9dc39f9296c53a8176212b372f4efeba379e6868d60e548468ac82aa520069c8d9ce0bc9
7
- data.tar.gz: e84179116acf7607e560cb03721c1ecb662d946a55dba0604cfb853e41fa83ae3f9beb2f0be446958fb390dc06e49f848303252e3da2f146a6c76e51cd9a7822
6
+ metadata.gz: 9a54c1a095f8516b88ad2fd37a754d99fc88519dc75121cafe8cb78b5a9960f79166b7db3542db5d343e53edd504ab7fde752fa56509fa32601cc702534b818c
7
+ data.tar.gz: b2c25b73ae1c6e6ab982971a8935a75f5bedc9e3ccbb45f4578b4ca37bcc9431b6272b00c91a00a9ebbe9af85b1a916b6eedf2e385b1bcc3ad34243ce6b8e670
@@ -0,0 +1,13 @@
1
+ changelog:
2
+ exclude:
3
+ labels: [dependencies]
4
+ authors: [renovate-bot]
5
+ categories:
6
+ - title: Breaking Changes
7
+ labels: [breaking]
8
+ - title: New Features
9
+ labels: [enhancement]
10
+ - title: Bug Fixes
11
+ labels: [bug]
12
+ - title: Other Changes
13
+ labels: ["*"]
@@ -0,0 +1,62 @@
1
+ name: CI
2
+ on:
3
+ push:
4
+ branches-ignore: [master]
5
+ tags-ignore: [v*]
6
+ concurrency:
7
+ group: ${{ github.workflow }}-${{ github.ref }}
8
+ cancel-in-progress: true
9
+ jobs:
10
+ test:
11
+ name: "test (ruby: ${{ matrix.ruby }}, redis.rb: ${{ matrix.redis }})"
12
+ runs-on: ubuntu-latest
13
+ continue-on-error: ${{ contains(matrix.ruby, 'head') }}
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ ruby:
18
+ - "2.7"
19
+ - "3.0"
20
+ - "3.1"
21
+ # - 'head'
22
+ - "jruby"
23
+ # - 'jruby-head'
24
+ - "truffleruby"
25
+ # - 'truffleruby-head'
26
+ redis:
27
+ - 4_0_x
28
+ - 4_1_x
29
+ - 4_x
30
+ env:
31
+ BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/redis_${{ matrix.redis }}.gemfile
32
+ services:
33
+ redis:
34
+ image: redis
35
+ ports:
36
+ - 6379:6379
37
+ distributed1:
38
+ image: redis
39
+ ports:
40
+ - 6380:6380
41
+ distributed2:
42
+ image: redis
43
+ ports:
44
+ - 6381:6381
45
+ steps:
46
+ - uses: actions/checkout@v3
47
+ - uses: ruby/setup-ruby@v1
48
+ with:
49
+ ruby-version: ${{ matrix.ruby }}
50
+ bundler-cache: true
51
+ - run: bundle exec rake
52
+ lint:
53
+ runs-on: ubuntu-latest
54
+ steps:
55
+ - uses: actions/checkout@v3
56
+ with:
57
+ fetch-depth: 0
58
+ - uses: ruby/setup-ruby@v1
59
+ with:
60
+ ruby-version: 3.1
61
+ bundler-cache: true
62
+ - run: bundle exec rake lint
@@ -0,0 +1,32 @@
1
+ name: Publish
2
+ on:
3
+ push:
4
+ tags: [v*]
5
+ permissions:
6
+ contents: write
7
+ concurrency:
8
+ group: ${{ github.workflow }}-${{ github.ref }}
9
+ cancel-in-progress: true
10
+ jobs:
11
+ release:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: "3.1"
18
+ bundler-cache: true
19
+ - run: |
20
+ mkdir -p ~/.gem
21
+ cat << EOF > ~/.gem/credentials
22
+ ---
23
+ :rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}
24
+ EOF
25
+
26
+ chmod 0600 ~/.gem/credentials
27
+ - run: bundle exec rake release
28
+ - uses: softprops/action-gh-release@v1
29
+ with:
30
+ files: "*.gem"
31
+ generate_release_notes: true
32
+ prerelease: ${{ contains(github.ref, '.pre') }}
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ v5.3.0 (2022-01-17)
2
+ --------------------------------------------------------------------------------
3
+
4
+ * Support actionpack 7
5
+ Shodai Suzuki
6
+
7
+
1
8
  v5.2.0 (2020-01-13)
2
9
  --------------------------------------------------------------------------------
3
10
 
data/Gemfile CHANGED
@@ -1,10 +1,10 @@
1
1
  source 'https://rubygems.org'
2
2
  gemspec
3
3
 
4
- gem "rake", "~> 10.5"
5
- gem "bundler", "~> 2.1"
6
- gem "mocha", "~> 0.14.0"
7
- gem "minitest-rails", "~> 6.0"
8
- gem "tzinfo", "~> 1.2"
9
- gem "appraisal", "~> 2.2"
10
- gem "redis-store-testing", github: 'redis-store/testing', branch: 'v0.0.3'
4
+ gem 'rake', '>= 12.3.3'
5
+ gem 'bundler', '~> 2.1'
6
+ gem 'mocha', '~> 0.14.0', require: 'mocha/setup'
7
+ gem 'tzinfo', '~> 1.2'
8
+ gem 'appraisal', '~> 2.2'
9
+ gem 'redis-store-testing', github: 'redis-store/testing'
10
+ gem 'minitest-rails'
data/README.md CHANGED
@@ -29,7 +29,6 @@ ActionController::Base.session_store = :redis_store,
29
29
  expire_after: 90.minutes,
30
30
  key: '_my_application_session',
31
31
  threadsafe: false,
32
- signed: true,
33
32
  secure: true
34
33
  ```
35
34
 
@@ -44,9 +43,6 @@ A brief run-down of these options...
44
43
  this to `false` if you want to disable the global mutex lock on
45
44
  session data. It's `true` by default, meaning the mutex will be
46
45
  enabled.
47
- - **signed** uses signed/encrypted cookies to store the local session on
48
- a client machine, preventing a malicious user from tampering with its
49
- contents.
50
46
  - **secure** ensures HTTP cookies are transferred from server to client
51
47
  on a secure (HTTPS) connection
52
48
 
@@ -2,6 +2,13 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
+ gem "rake", ">= 12.3.3"
6
+ gem "bundler", "~> 2.1"
7
+ gem "mocha", "~> 0.14.0", require: "mocha/setup"
8
+ gem "tzinfo", "~> 1.2"
9
+ gem "appraisal", "~> 2.2"
10
+ gem "redis-store-testing", github: "redis-store/testing"
11
+ gem "minitest-rails"
5
12
  gem "redis-store"
6
13
  gem "redis-rack"
7
14
  gem "actionpack", "~> 5.0.0"
@@ -2,6 +2,13 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
+ gem "rake", ">= 12.3.3"
6
+ gem "bundler", "~> 2.1"
7
+ gem "mocha", "~> 0.14.0", require: "mocha/setup"
8
+ gem "tzinfo", "~> 1.2"
9
+ gem "appraisal", "~> 2.2"
10
+ gem "redis-store-testing", github: "redis-store/testing"
11
+ gem "minitest-rails"
5
12
  gem "redis-store"
6
13
  gem "redis-rack"
7
14
  gem "actionpack", "~> 5.1.0"
@@ -2,6 +2,13 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
+ gem "rake", ">= 12.3.3"
6
+ gem "bundler", "~> 2.1"
7
+ gem "mocha", "~> 0.14.0", require: "mocha/setup"
8
+ gem "tzinfo", "~> 1.2"
9
+ gem "appraisal", "~> 2.2"
10
+ gem "redis-store-testing", github: "redis-store/testing"
11
+ gem "minitest-rails"
5
12
  gem "redis-store"
6
13
  gem "redis-rack"
7
14
  gem "actionpack", "~> 5.1.0"
@@ -2,6 +2,13 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
+ gem "rake", ">= 12.3.3"
6
+ gem "bundler", "~> 2.1"
7
+ gem "mocha", "~> 0.14.0", require: "mocha/setup"
8
+ gem "tzinfo", "~> 1.2"
9
+ gem "appraisal", "~> 2.2"
10
+ gem "redis-store-testing", github: "redis-store/testing"
11
+ gem "minitest-rails"
5
12
  gem "redis-store"
6
13
  gem "redis-rack"
7
14
  gem "actionpack", "~> 6.0.0"
@@ -1,5 +1,5 @@
1
1
  class Redis
2
2
  module ActionPack
3
- VERSION = '5.2.0'
3
+ VERSION = '5.4.0'
4
4
  end
5
5
  end
@@ -11,6 +11,9 @@ Gem::Specification.new do |s|
11
11
  s.summary = %q{Redis session store for ActionPack}
12
12
  s.description = "#{s.summary}. Used for storing the Rails session in Redis."
13
13
  s.license = 'MIT'
14
+ s.metadata = {
15
+ "source_code_uri" => "https://github.com/redis-store/redis-actionpack"
16
+ }
14
17
 
15
18
  s.files = `git ls-files`.split("\n")
16
19
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -19,6 +22,6 @@ Gem::Specification.new do |s|
19
22
  s.required_ruby_version = '>= 2.3.0'
20
23
 
21
24
  s.add_runtime_dependency 'redis-store', '>= 1.1.0', '< 2'
22
- s.add_runtime_dependency 'redis-rack', '>= 2.1.0', '< 3'
23
- s.add_runtime_dependency 'actionpack', '>= 5', '< 7'
25
+ s.add_runtime_dependency 'redis-rack', '>= 2.1.0', '< 4'
26
+ s.add_runtime_dependency 'actionpack', '>= 5', '< 8'
24
27
  end
@@ -1,4 +1,8 @@
1
1
  class TestController < ActionController::Base
2
+ def self.actions
3
+ public_instance_methods - ActionController::Base.public_instance_methods
4
+ end
5
+
2
6
  def no_session_access
3
7
  head :ok
4
8
  end
@@ -1,3 +1,5 @@
1
1
  Dummy::Application.routes.draw do
2
- get ':action', :to => TestController
2
+ TestController.actions.each do |action|
3
+ get action, to: ['test', action].join('#')
4
+ end
3
5
  end
@@ -29,7 +29,11 @@ class RedisStoreIntegrationTest < ::ActionDispatch::IntegrationTest
29
29
  get '/set_session_value'
30
30
  assert_response :success
31
31
  assert cookies['_session_id'].present?
32
- session_cookie = cookies.send(:hash_for)['_session_id']
32
+ if cookies.respond_to?(:get_cookie)
33
+ session_cookie = cookies.get_cookie('_session_id')
34
+ else
35
+ session_cookie = cookies.send(:hash_for)['_session_id']
36
+ end
33
37
 
34
38
  get '/call_reset_session'
35
39
  assert_response :success
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-actionpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0
4
+ version: 5.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-13 00:00:00.000000000 Z
11
+ date: 2023-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis-store
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: 2.1.0
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '3'
42
+ version: '4'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: 2.1.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '3'
52
+ version: '4'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: actionpack
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,7 @@ dependencies:
59
59
  version: '5'
60
60
  - - "<"
61
61
  - !ruby/object:Gem::Version
62
- version: '7'
62
+ version: '8'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
@@ -69,7 +69,7 @@ dependencies:
69
69
  version: '5'
70
70
  - - "<"
71
71
  - !ruby/object:Gem::Version
72
- version: '7'
72
+ version: '8'
73
73
  description: Redis session store for ActionPack. Used for storing the Rails session
74
74
  in Redis.
75
75
  email:
@@ -79,8 +79,10 @@ extensions: []
79
79
  extra_rdoc_files: []
80
80
  files:
81
81
  - ".github/auto-assign-issues.yml"
82
+ - ".github/release.yml"
83
+ - ".github/workflows/ci.yml"
84
+ - ".github/workflows/publish.yml"
82
85
  - ".gitignore"
83
- - ".travis.yml"
84
86
  - Appraisals
85
87
  - CHANGELOG.md
86
88
  - CODEOWNERS
@@ -115,8 +117,9 @@ files:
115
117
  homepage: http://redis-store.org/redis-actionpack
116
118
  licenses:
117
119
  - MIT
118
- metadata: {}
119
- post_install_message:
120
+ metadata:
121
+ source_code_uri: https://github.com/redis-store/redis-actionpack
122
+ post_install_message:
120
123
  rdoc_options: []
121
124
  require_paths:
122
125
  - lib
@@ -131,8 +134,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
134
  - !ruby/object:Gem::Version
132
135
  version: '0'
133
136
  requirements: []
134
- rubygems_version: 3.1.2
135
- signing_key:
137
+ rubygems_version: 3.3.16
138
+ signing_key:
136
139
  specification_version: 4
137
140
  summary: Redis session store for ActionPack
138
141
  test_files:
data/.travis.yml DELETED
@@ -1,33 +0,0 @@
1
- language: ruby
2
- before_install: gem install bundler
3
- script: bundle exec rake
4
- rvm:
5
- - 2.3
6
- - 2.4
7
- - 2.5
8
- - 2.6
9
- - 2.7
10
- - ruby-head
11
- - jruby-head
12
- gemfile:
13
- - gemfiles/rails_5.0.x.gemfile
14
- - gemfiles/rails_5.1.x.gemfile
15
- - gemfiles/rails_5.2.x.gemfile
16
- - gemfiles/rails_6.0.x.gemfile
17
- matrix:
18
- exclude:
19
- - rvm: 2.3
20
- gemfile: gemfiles/rails_6.0.x.gemfile
21
- - rvm: 2.4
22
- gemfile: gemfiles/rails_6.0.x.gemfile
23
- allow_failures:
24
- - rvm: ruby-head
25
- - rvm: jruby-head
26
- deploy:
27
- provider: rubygems
28
- api_key:
29
- secure: edRiCZPzp3pqBQn3hjeG5WqUNf0eEb8/Ea2VY0jJfQfOHxOYJSATkpdZ5xxOL1YIefk7ERUURY3dKwS/qdSIF2h954QPeOChLTlSaWtFjSNAZIAhH7Ks4vN/q1i7JAWtJRCBOtHlAe9AJj7CvHpUsry3+oHsJ+gXaaA9lntbheE=
30
- gem: redis-actionpack
31
- on:
32
- tags: true
33
- repo: redis-store/redis-actionpack