actionpack-action_caching 1.2.1 → 1.2.2

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: 13e2fb3bc82b8a207a5712370efc031c31510dc257dbd2c044edf1c26ac01c30
4
- data.tar.gz: df99ab7f3623d4b4e2f1729f6cc3db276242f2362803606315b03c93bfe1cc7f
3
+ metadata.gz: d5a35e289d60b7b914b0b671d816c17e0abcdf42a97e6b8be14a255e230858c8
4
+ data.tar.gz: 4fe16b31cfac741be48dedc405659ef387b18c0f2199817f4b8b0987da5e1e5e
5
5
  SHA512:
6
- metadata.gz: 96ab04f9ff4d0250f94229cb6fb70a4d85e8ed8e4c0068c626a9fb2e7dddb08809ec38b440f18a259cf17ab98d30bef17736d276cfeb5c2a99ce7f69a598c501
7
- data.tar.gz: 478aa629c1579202d7a01d9e4f84062812136cbd8009f10bbaf91d72242d27678a76ee5277090959088522db01c81473e9170ba3bd2b37e0abd913dcee331d2d
6
+ metadata.gz: 0ac9a52dd25c03562d88acd255c1c1ae69d21753da1498858c1ef6d56c0937ed206a73238bd86cac92fe8b88afdddf991a35450a60a7402246e131af625287ba
7
+ data.tar.gz: e11f0ccd152d9ff6e9a0f3411e3099f5dde36b9bf7cbad4bf2711e9801e673d2d21f532a816054b53722a716526752d0f1c42b4c90eddb139b1fddad7967a5df
@@ -0,0 +1,77 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - 'master'
7
+ pull_request:
8
+
9
+ jobs:
10
+ build:
11
+ strategy:
12
+ matrix:
13
+ gemfile:
14
+ - '4-2-stable'
15
+ - '5-0-stable'
16
+ - '5-1-stable'
17
+ - '5-2-stable'
18
+ - '6-0-stable'
19
+ - '6-1-stable'
20
+ - 'edge'
21
+ ruby:
22
+ - '2.4'
23
+ - '2.5'
24
+ - '2.6'
25
+ - '2.7'
26
+ - '3.0'
27
+ exclude:
28
+ - gemfile: '4-2-stable'
29
+ ruby: '2.5'
30
+ - gemfile: '4-2-stable'
31
+ ruby: '2.6'
32
+ - gemfile: '4-2-stable'
33
+ ruby: '2.7'
34
+ - gemfile: '4-2-stable'
35
+ ruby: '3.0'
36
+ - gemfile: '5-0-stable'
37
+ ruby: '2.7'
38
+ - gemfile: '5-0-stable'
39
+ ruby: '3.0'
40
+ - gemfile: '5-1-stable'
41
+ ruby: '2.7'
42
+ - gemfile: '5-1-stable'
43
+ ruby: '3.0'
44
+ - gemfile: '5-2-stable'
45
+ ruby: '2.7'
46
+ - gemfile: '5-2-stable'
47
+ ruby: '3.0'
48
+ - gemfile: '6-0-stable'
49
+ ruby: '2.4'
50
+ - gemfile: '6-1-stable'
51
+ ruby: '2.4'
52
+ - gemfile: 'edge'
53
+ ruby: '2.4'
54
+ - gemfile: 'edge'
55
+ ruby: '2.5'
56
+ - gemfile: 'edge'
57
+ ruby: '2.6'
58
+ fail-fast: false
59
+
60
+ runs-on: ubuntu-latest
61
+ name: ${{ matrix.ruby }} rails-${{ matrix.gemfile }}
62
+
63
+ steps:
64
+ - uses: actions/checkout@v2
65
+
66
+ - uses: ruby/setup-ruby@v1
67
+ with:
68
+ ruby-version: ${{ matrix.ruby }}
69
+ bundler-cache: true
70
+ bundler: ${{ fromJSON('["2", "1"]')[matrix.ruby == '2.4'] }}
71
+
72
+ - run: bundle exec rake test
73
+
74
+ env:
75
+ BUNDLE_GEMFILE: gemfiles/Gemfile-${{ matrix.gemfile }}
76
+ BUNDLE_JOBS: 4
77
+ BUNDLE_RETRY: 3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 1.2.2 (May 10, 2021)
2
+
3
+ * Add support for Rails 6.1
4
+
5
+ *Jonathan Fleckenstein*, *Prem Sichanugrist*
6
+
7
+
1
8
  ## 1.2.1 (November 12, 2019)
2
9
 
3
10
  * Fix HTML escaping when `:layout` is `false`.
@@ -1,12 +1,19 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "actionpack-action_caching"
3
- gem.version = "1.2.1"
3
+ gem.version = "1.2.2"
4
4
  gem.author = "David Heinemeier Hansson"
5
5
  gem.email = "david@loudthinking.com"
6
6
  gem.description = "Action caching for Action Pack (removed from core in Rails 4.0)"
7
7
  gem.summary = "Action caching for Action Pack (removed from core in Rails 4.0)"
8
8
  gem.homepage = "https://github.com/rails/actionpack-action_caching"
9
9
 
10
+ gem.metadata = {
11
+ "bug_tracker_uri" => "https://github.com/rails/actionpack-action_caching/issues",
12
+ "changelog_uri" => "https://github.com/rails/actionpack-action_caching/blob/v#{gem.version}/CHANGELOG.md",
13
+ "documentation_uri" => "https://www.rubydoc.info/gems/actionpack-action_caching/#{gem.version}",
14
+ "source_code_uri" => "https://github.com/rails/actionpack-action_caching/tree/v#{gem.version}",
15
+ }
16
+
10
17
  gem.required_ruby_version = ">= 1.9.3"
11
18
  gem.files = `git ls-files`.split($/)
12
19
  gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec path: ".."
4
+
5
+ gem "rails", github: "rails/rails", branch: "6-1-stable"
@@ -2,5 +2,5 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec path: ".."
4
4
 
5
- gem "rails", github: "rails/rails", branch: "master"
6
- gem "arel", github: "rails/arel", branch: "master"
5
+ gem "rails", github: "rails/rails", branch: "main"
6
+ gem "activerecord", github: "rails/rails", branch: "main"
@@ -2,6 +2,8 @@ require "action_controller/caching/actions"
2
2
 
3
3
  module ActionController
4
4
  module Caching
5
+ extend ActiveSupport::Autoload
6
+
5
7
  eager_autoload do
6
8
  autoload :Actions
7
9
  end
@@ -228,10 +228,10 @@ module ActionController
228
228
 
229
229
  private
230
230
  def normalize!(path)
231
- ext = URI.parser.escape(extension.to_s) if extension
231
+ ext = URI::DEFAULT_PARSER.escape(extension.to_s) if extension
232
232
  path << "index" if path[-1] == ?/
233
- path << ".#{ext}" if extension && !path.split("?", 2).first.ends_with?(".#{ext}")
234
- URI.parser.unescape(path)
233
+ path << ".#{ext}" if extension && !path.split("?", 2).first.end_with?(".#{ext}")
234
+ URI::DEFAULT_PARSER.unescape(path)
235
235
  end
236
236
  end
237
237
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionpack-action_caching
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-13 00:00:00.000000000 Z
11
+ date: 2021-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -59,22 +59,21 @@ extensions: []
59
59
  extra_rdoc_files: []
60
60
  files:
61
61
  - ".codeclimate.yml"
62
+ - ".github/workflows/ci.yml"
62
63
  - ".gitignore"
63
64
  - ".rubocop.yml"
64
- - ".travis.yml"
65
65
  - CHANGELOG.md
66
66
  - Gemfile
67
67
  - LICENSE.txt
68
68
  - README.md
69
69
  - Rakefile
70
70
  - actionpack-action_caching.gemspec
71
- - gemfiles/Gemfile-4-0-stable
72
- - gemfiles/Gemfile-4-1-stable
73
71
  - gemfiles/Gemfile-4-2-stable
74
72
  - gemfiles/Gemfile-5-0-stable
75
73
  - gemfiles/Gemfile-5-1-stable
76
74
  - gemfiles/Gemfile-5-2-stable
77
75
  - gemfiles/Gemfile-6-0-stable
76
+ - gemfiles/Gemfile-6-1-stable
78
77
  - gemfiles/Gemfile-edge
79
78
  - lib/action_controller/action_caching.rb
80
79
  - lib/action_controller/caching/actions.rb
@@ -86,8 +85,12 @@ files:
86
85
  homepage: https://github.com/rails/actionpack-action_caching
87
86
  licenses:
88
87
  - MIT
89
- metadata: {}
90
- post_install_message:
88
+ metadata:
89
+ bug_tracker_uri: https://github.com/rails/actionpack-action_caching/issues
90
+ changelog_uri: https://github.com/rails/actionpack-action_caching/blob/v1.2.2/CHANGELOG.md
91
+ documentation_uri: https://www.rubydoc.info/gems/actionpack-action_caching/1.2.2
92
+ source_code_uri: https://github.com/rails/actionpack-action_caching/tree/v1.2.2
93
+ post_install_message:
91
94
  rdoc_options: []
92
95
  require_paths:
93
96
  - lib
@@ -102,8 +105,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
105
  - !ruby/object:Gem::Version
103
106
  version: '0'
104
107
  requirements: []
105
- rubygems_version: 3.0.2
106
- signing_key:
108
+ rubygems_version: 3.2.15
109
+ signing_key:
107
110
  specification_version: 4
108
111
  summary: Action caching for Action Pack (removed from core in Rails 4.0)
109
112
  test_files:
data/.travis.yml DELETED
@@ -1,114 +0,0 @@
1
- language: ruby
2
- sudo: false
3
-
4
- cache:
5
- bundler: true
6
-
7
- before_install:
8
- - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
9
- - gem install bundler -v '< 2'
10
-
11
- rvm:
12
- - 1.9.3
13
- - 2.0.0
14
- - 2.1.10
15
- - 2.2.10
16
- - 2.3.8
17
- - 2.4.6
18
- - 2.5.5
19
- - 2.6.3
20
-
21
- gemfile:
22
- - Gemfile
23
- - gemfiles/Gemfile-4-0-stable
24
- - gemfiles/Gemfile-4-1-stable
25
- - gemfiles/Gemfile-4-2-stable
26
- - gemfiles/Gemfile-5-0-stable
27
- - gemfiles/Gemfile-5-1-stable
28
- - gemfiles/Gemfile-5-2-stable
29
- - gemfiles/Gemfile-6-0-stable
30
- - gemfiles/Gemfile-edge
31
-
32
- matrix:
33
- allow_failures:
34
- - gemfile: gemfiles/Gemfile-edge
35
- exclude:
36
- - rvm: 1.9.3
37
- gemfile: Gemfile
38
- - rvm: 2.0.0
39
- gemfile: Gemfile
40
- - rvm: 2.1.10
41
- gemfile: Gemfile
42
- - rvm: 1.9.3
43
- gemfile: gemfiles/Gemfile-5-0-stable
44
- - rvm: 1.9.3
45
- gemfile: gemfiles/Gemfile-5-1-stable
46
- - rvm: 1.9.3
47
- gemfile: gemfiles/Gemfile-5-2-stable
48
- - rvm: 1.9.3
49
- gemfile: gemfiles/Gemfile-6-0-stable
50
- - rvm: 2.0.0
51
- gemfile: gemfiles/Gemfile-5-0-stable
52
- - rvm: 2.0.0
53
- gemfile: gemfiles/Gemfile-5-1-stable
54
- - rvm: 2.0.0
55
- gemfile: gemfiles/Gemfile-5-2-stable
56
- - rvm: 2.0.0
57
- gemfile: gemfiles/Gemfile-6-0-stable
58
- - rvm: 2.1.10
59
- gemfile: gemfiles/Gemfile-5-0-stable
60
- - rvm: 2.1.10
61
- gemfile: gemfiles/Gemfile-5-1-stable
62
- - rvm: 2.1.10
63
- gemfile: gemfiles/Gemfile-5-2-stable
64
- - rvm: 2.1.10
65
- gemfile: gemfiles/Gemfile-6-0-stable
66
- - rvm: 2.2.10
67
- gemfile: gemfiles/Gemfile-6-0-stable
68
- - rvm: 2.3.8
69
- gemfile: gemfiles/Gemfile-6-0-stable
70
- - rvm: 2.4.6
71
- gemfile: gemfiles/Gemfile-6-0-stable
72
- - rvm: 1.9.3
73
- gemfile: gemfiles/Gemfile-edge
74
- - rvm: 2.0.0
75
- gemfile: gemfiles/Gemfile-edge
76
- - rvm: 2.1.10
77
- gemfile: gemfiles/Gemfile-edge
78
- - rvm: 2.2.10
79
- gemfile: gemfiles/Gemfile-edge
80
- - rvm: 2.3.8
81
- gemfile: gemfiles/Gemfile-edge
82
- - rvm: 2.4.6
83
- gemfile: gemfiles/Gemfile-edge
84
- - rvm: 2.4.6
85
- gemfile: gemfiles/Gemfile-4-0-stable
86
- - rvm: 2.4.6
87
- gemfile: gemfiles/Gemfile-4-1-stable
88
- - rvm: 2.5.5
89
- gemfile: gemfiles/Gemfile-4-0-stable
90
- - rvm: 2.5.5
91
- gemfile: gemfiles/Gemfile-4-1-stable
92
- - rvm: 2.6.3
93
- gemfile: gemfiles/Gemfile-4-0-stable
94
- - rvm: 2.6.3
95
- gemfile: gemfiles/Gemfile-4-1-stable
96
- - rvm: 2.6.3
97
- gemfile: gemfiles/Gemfile-4-2-stable
98
- - rvm: 2.6.3
99
- gemfile: gemfiles/Gemfile-5-0-stable
100
- - rvm: 2.6.3
101
- gemfile: gemfiles/Gemfile-5-1-stable
102
-
103
- notifications:
104
- email: false
105
- irc:
106
- on_success: change
107
- on_failure: always
108
- channels:
109
- - "irc.freenode.org#rails-contrib"
110
- campfire:
111
- on_success: change
112
- on_failure: always
113
- rooms:
114
- - secure: "WikBuknvGGTx/fNGc4qE+8WK+Glt+H+yZKhHXmavRV2zrN3hC0pTPwuGZhNs\nvkc6N9WKud7un2DtWu1v77BgFhIYjfJTRkmoZ8hoNsoHpe93W/a3s8LU30/l\nzDCKoTrqlHT5hJTmEKpNVqkhfFBPiXRFMgFWALUHiA8Q4Z9BUIc="
@@ -1,6 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec path: ".."
4
-
5
- gem "rails", github: "rails/rails", branch: "4-0-stable"
6
- gem "mime-types", "< 3"
@@ -1,6 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec path: ".."
4
-
5
- gem "rails", github: "rails/rails", branch: "4-1-stable"
6
- gem "mime-types", "< 3"