redis-actionpack 5.3.0 → 5.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffc2d2ea9d57234131426d376aa94d658e2cf707cde8e7144dcff4fef3939b11
4
- data.tar.gz: b2a9f00678e5e34e4821ab1f718783db3d4eee0d164dcf7b6f1eb8a6e864a442
3
+ metadata.gz: e260a35f3177c2653275cb7a46c7b8f8d6c0ca1b886dba6dc9c073d7a5103eff
4
+ data.tar.gz: f55b9b23b39f07735cfc4824c1d42235142ddf8baa9d57502b318c63a6840d12
5
5
  SHA512:
6
- metadata.gz: f3cee21add22e6d2391a46db594203328dcafac71168d923faffac6da024aecab243d7f39ee3a3591dec78c1154618a5d98ba0ac1e60a91e353d8d47dc5d99ca
7
- data.tar.gz: aa76e0b1f6bfadcc472f52481df23013f51a5678a8f3f736c669b87ca51047d8a2bd690fc12a2471e842561e90c24adf79feb0399adeec42eb87f01d3975b0d1
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
 
@@ -1,5 +1,5 @@
1
1
  class Redis
2
2
  module ActionPack
3
- VERSION = '5.3.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'
25
+ s.add_runtime_dependency 'redis-rack', '>= 2.1.0', '< 4'
23
26
  s.add_runtime_dependency 'actionpack', '>= 5', '< 8'
24
27
  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.3.0
4
+ version: 5.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-17 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
@@ -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,7 +117,8 @@ files:
115
117
  homepage: http://redis-store.org/redis-actionpack
116
118
  licenses:
117
119
  - MIT
118
- metadata: {}
120
+ metadata:
121
+ source_code_uri: https://github.com/redis-store/redis-actionpack
119
122
  post_install_message:
120
123
  rdoc_options: []
121
124
  require_paths:
@@ -131,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
134
  - !ruby/object:Gem::Version
132
135
  version: '0'
133
136
  requirements: []
134
- rubygems_version: 3.2.11
137
+ rubygems_version: 3.3.16
135
138
  signing_key:
136
139
  specification_version: 4
137
140
  summary: Redis session store for ActionPack
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