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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d859f3da97c24b5b4a20135783908f4e3d61431e
4
- data.tar.gz: 4ccd90029f0a4a63480cffb019df4dadb24307f9
3
+ metadata.gz: 2ce1c6d2f362408e0d7c77fda9193a2845cd0165
4
+ data.tar.gz: b3de63fc49dac8b719dd426a9ef2677970270d0d
5
5
  SHA512:
6
- metadata.gz: 835b8bd0a5c29f98beb689ca140d6c20e4cac16c7cb0beb6ccf5dea9272f8b26a8a5cd5044ec670d4581125fa9abae2e6c5fcde9f02c71116ade177e587c532d
7
- data.tar.gz: 14c620c2846253a350e0a352eb4c5a60cbdeb514c0afc7ceb6327d24ef80a6975f52b7c9d80e888a858d1321fd6e9dea1b334df56ff5060bd037a04f71765d87
6
+ metadata.gz: b16e84b3ef95664af592f3290810ccc4c3dd0fbf7857233e330f87d9667a5885721726dc5a9a92149f351a3690f2ba54924142e19c09ec3e3be8b6400bb293fe
7
+ data.tar.gz: 423653f96aee5ab58100394e8a905e30e0381acbe30fad2cfbcbd6d197a8a6ff72119315f3d4d836434858aef2d2ca932057c00970457e1fe1080d82e5a8ecaf
@@ -130,7 +130,7 @@ module Padrino
130
130
 
131
131
  content = {
132
132
  :body => @_response_buffer,
133
- :content_type => @_content_type
133
+ :content_type => response.content_type
134
134
  }
135
135
 
136
136
  settings.cache.store(route_cache_key, content, :expires => cache_expires)
@@ -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.2
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-09-06 00:00:00.000000000 Z
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.2
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.2
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.2
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.2
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.5.1
101
+ rubygems_version: 2.6.6
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Page and fragment caching for Padrino