padrino-cache 0.13.3.2 → 0.13.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/padrino-cache/helpers/page.rb +1 -1
- data/test/test_padrino_cache.rb +15 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ce1c6d2f362408e0d7c77fda9193a2845cd0165
|
4
|
+
data.tar.gz: b3de63fc49dac8b719dd426a9ef2677970270d0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b16e84b3ef95664af592f3290810ccc4c3dd0fbf7857233e330f87d9667a5885721726dc5a9a92149f351a3690f2ba54924142e19c09ec3e3be8b6400bb293fe
|
7
|
+
data.tar.gz: 423653f96aee5ab58100394e8a905e30e0381acbe30fad2cfbcbd6d197a8a6ff72119315f3d4d836434858aef2d2ca932057c00970457e1fe1080d82e5a8ecaf
|
data/test/test_padrino_cache.rb
CHANGED
@@ -506,4 +506,19 @@ describe "PadrinoCache" do
|
|
506
506
|
2.times { get "/object" }
|
507
507
|
assert_equal "1", body
|
508
508
|
end
|
509
|
+
|
510
|
+
it 'should cache full mime type of content_type' do
|
511
|
+
mock_app do
|
512
|
+
register Padrino::Cache
|
513
|
+
enable :caching
|
514
|
+
get '/foo', :cache => true do
|
515
|
+
content_type :json, :charset => 'utf-8'
|
516
|
+
'{}'
|
517
|
+
end
|
518
|
+
end
|
519
|
+
get "/foo"
|
520
|
+
assert_equal 'application/json;charset=utf-8', last_response.content_type
|
521
|
+
get "/foo"
|
522
|
+
assert_equal 'application/json;charset=utf-8', last_response.content_type
|
523
|
+
end
|
509
524
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: padrino-cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.3.
|
4
|
+
version: 0.13.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Padrino Team
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-
|
14
|
+
date: 2016-11-02 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: padrino-core
|
@@ -19,28 +19,28 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - '='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.13.3.
|
22
|
+
version: 0.13.3.3
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.13.3.
|
29
|
+
version: 0.13.3.3
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: padrino-helpers
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
34
|
- - '='
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 0.13.3.
|
36
|
+
version: 0.13.3.3
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
41
|
- - '='
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 0.13.3.
|
43
|
+
version: 0.13.3.3
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
45
|
name: moneta
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: 1.3.6
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project: padrino-cache
|
101
|
-
rubygems_version: 2.
|
101
|
+
rubygems_version: 2.6.6
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: Page and fragment caching for Padrino
|