slimmer 8.4.0 → 9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/slimmer/skin.rb +1 -1
- data/lib/slimmer/version.rb +1 -1
- data/test/fixtures/{wrapper.html.erb → core_layout.html.erb} +0 -0
- data/test/test_helper.rb +5 -5
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 361c0fd71af9a4a6397baa789bf4a507c46ca742
|
4
|
+
data.tar.gz: fc1f266dc3dd608f544f959747f1a7b37c975d77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b308845c4566a6d6d010929ef50695182437d52fb6cbe270c8e7972f0bd1f524591b5d1f091a1cb1714473cabc631a4f1f824ec18235b06b059d02d17f38b2bb
|
7
|
+
data.tar.gz: 3186905e90ce23d219c1dd0b4009a43e23c8e896b136fbe7db35294119f202b579c6a541a2c7f41082da07ed602f4ba985f6ade60332c7b3b3c91a49875c8058
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# 9.0.0
|
2
|
+
|
3
|
+
* Change default template to `core_layout` from `wrapper`.
|
4
|
+
Any application that doesn't define a custom template should have
|
5
|
+
`slimmer_template 'wrapper'` added to its `application_controller` to
|
6
|
+
maintain the old functionality
|
7
|
+
|
1
8
|
# 8.4.0
|
2
9
|
|
3
10
|
* Add support for moving `meta` tags that use `property` attribute
|
data/lib/slimmer/skin.rb
CHANGED
@@ -129,7 +129,7 @@ module Slimmer
|
|
129
129
|
Processors::SearchRemover.new(response.headers),
|
130
130
|
]
|
131
131
|
|
132
|
-
template_name = response.headers[Headers::TEMPLATE_HEADER] || '
|
132
|
+
template_name = response.headers[Headers::TEMPLATE_HEADER] || 'core_layout'
|
133
133
|
process(processors, body, template(template_name), source_request.env)
|
134
134
|
end
|
135
135
|
|
data/lib/slimmer/version.rb
CHANGED
File without changes
|
data/test/test_helper.rb
CHANGED
@@ -83,11 +83,11 @@ class SlimmerIntegrationTest < MiniTest::Test
|
|
83
83
|
end
|
84
84
|
|
85
85
|
template_name = case code
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
86
|
+
when 200 then 'core_layout'
|
87
|
+
when 404 then '404'
|
88
|
+
when 410 then '410'
|
89
|
+
else '500'
|
90
|
+
end
|
91
91
|
|
92
92
|
use_template(template_name)
|
93
93
|
use_template('related.raw')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slimmer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 9.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Griffiths
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-08-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -241,6 +241,20 @@ dependencies:
|
|
241
241
|
- - "~>"
|
242
242
|
- !ruby/object:Gem::Version
|
243
243
|
version: 0.5.1
|
244
|
+
- !ruby/object:Gem::Dependency
|
245
|
+
name: govuk-lint
|
246
|
+
requirement: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - "~>"
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: 0.2.0
|
251
|
+
type: :development
|
252
|
+
prerelease: false
|
253
|
+
version_requirements: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - "~>"
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: 0.2.0
|
244
258
|
description: Rack middleware for skinning pages using a specific template
|
245
259
|
email:
|
246
260
|
- bengriffiths@gmail.com
|
@@ -295,10 +309,10 @@ files:
|
|
295
309
|
- test/fixtures/404.html.erb
|
296
310
|
- test/fixtures/410.html.erb
|
297
311
|
- test/fixtures/500.html.erb
|
312
|
+
- test/fixtures/core_layout.html.erb
|
298
313
|
- test/fixtures/proposition_menu.html.erb
|
299
314
|
- test/fixtures/related.raw.html.erb
|
300
315
|
- test/fixtures/report_a_problem.raw.html.erb
|
301
|
-
- test/fixtures/wrapper.html.erb
|
302
316
|
- test/headers_test.rb
|
303
317
|
- test/processors/body_inserter_test.rb
|
304
318
|
- test/processors/header_context_inserter_test.rb
|
@@ -336,7 +350,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
336
350
|
version: '0'
|
337
351
|
requirements: []
|
338
352
|
rubyforge_project: slimmer
|
339
|
-
rubygems_version: 2.2.
|
353
|
+
rubygems_version: 2.2.5
|
340
354
|
signing_key:
|
341
355
|
specification_version: 4
|
342
356
|
summary: Thinner than the skinner
|
@@ -347,10 +361,10 @@ test_files:
|
|
347
361
|
- test/typical_usage_test.rb
|
348
362
|
- test/skin_test.rb
|
349
363
|
- test/artefact_test.rb
|
350
|
-
- test/fixtures/wrapper.html.erb
|
351
364
|
- test/fixtures/500.html.erb
|
352
365
|
- test/fixtures/proposition_menu.html.erb
|
353
366
|
- test/fixtures/410.html.erb
|
367
|
+
- test/fixtures/core_layout.html.erb
|
354
368
|
- test/fixtures/404.html.erb
|
355
369
|
- test/fixtures/report_a_problem.raw.html.erb
|
356
370
|
- test/fixtures/related.raw.html.erb
|