govuk_admin_template 6.9.1 → 6.9.2

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: 63e1b2f22ab5a5c721e6c3f85a382790e00971b2962525b5d771d3122e248eaa
4
- data.tar.gz: 30d29fac615dfc4f9af4a0aa6e18b73c0288ae1073b279ffc636aedfd98351e3
3
+ metadata.gz: 29eb8926a645b99d811437c15b008bfa7f4ca1ee2203d6923571c9a2c994a311
4
+ data.tar.gz: 49b87aab449542d6dca6fd181aa526b2cad5643bd3752ea7f73b5dcde1434be7
5
5
  SHA512:
6
- metadata.gz: 4473d55c6834b4e9d074799a82ae9a03f17113b6c66bbdf7139ef5beae5015d36d6087be795f5c51ff7e6833bf4e9401cdd05ed7be862c8b620181d01a012ad7
7
- data.tar.gz: 411a506526b8dd848a2347b5bd769152b72bc98b7088531b3c5cc120459352ae05c19791b0fde3ccc06326001179a33a1b8903f63a701ae669e749ae42b985c2
6
+ metadata.gz: dc12a3a13ebcb6f5bf62c47ba860e23b95811f04cea1c1ac1c5efd76ae7a8307a9db031bcb9cd2063b7d43a1302856c8c0ea06ea52daffdadb21816d193e05bc
7
+ data.tar.gz: 95fe3e1b8ae9398c28595c52a51f877030232596ba7c84ab8cd01a41c539688fdb4a32015809085a10246ece40857e98cdbb1447cd35df00086d3ac98bcc83c2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 6.9.2
2
+
3
+ * Fix providing gem internal Rake tasks to applications embedding this gem as an engine.
4
+
1
5
  # 6.9.1
2
6
 
3
7
  * Fix broken Rails 6 compatibility: use `Date#to_formatted_s` instead of `Date#to_fs`
@@ -1,3 +1,3 @@
1
1
  module GovukAdminTemplate
2
- VERSION = "6.9.1".freeze
2
+ VERSION = "6.9.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_admin_template
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.9.1
4
+ version: 6.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-22 00:00:00.000000000 Z
11
+ date: 2022-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap-sass
@@ -184,9 +184,6 @@ files:
184
184
  - lib/govuk_admin_template/simple_form.rb
185
185
  - lib/govuk_admin_template/version.rb
186
186
  - lib/govuk_admin_template/view_helpers.rb
187
- - lib/tasks/jasmine.rake
188
- - lib/tasks/lint.rake
189
- - lib/tasks/sass/check.rake
190
187
  homepage: https://github.com/alphagov/govuk_admin_template
191
188
  licenses: []
192
189
  metadata: {}
@@ -205,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
202
  - !ruby/object:Gem::Version
206
203
  version: '0'
207
204
  requirements: []
208
- rubygems_version: 3.3.9
205
+ rubygems_version: 3.3.11
209
206
  signing_key:
210
207
  specification_version: 4
211
208
  summary: Styles, scripts and templates for GOV.UK admin applications
@@ -1,4 +0,0 @@
1
- desc "Run Jasmine tests"
2
- task jasmine: :environment do
3
- sh "yarn run jasmine:ci"
4
- end
data/lib/tasks/lint.rake DELETED
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- desc "Lint files"
4
- task "lint" => :environment do
5
- sh "rubocop --format clang"
6
- end
@@ -1,52 +0,0 @@
1
- UNGUARDED_URL_USAGE = /\surl\(/.freeze
2
- ABSOLUTE_ASSET_USAGE = /(?:image-path|image-url|asset-path|asset-url)\(["']\/assets/.freeze
3
-
4
- namespace :sass do
5
- desc "Check all SCSS for 404-creating problems, takes place of govuk-lint"
6
- task check: :environment do
7
- scss_files = File.expand_path(
8
- "../../app/assets/stylesheets/**/*.scss", __dir__
9
- )
10
-
11
- matching_lines = Dir[scss_files].each_with_object([]) do |scss_file, matching|
12
- File.readlines(scss_file).each_with_index do |line, number|
13
- matching << "Unguarded url usage: #{scss_file}:#{number + 1}" if line =~ UNGUARDED_URL_USAGE
14
- matching << "Absolute /assets usage: #{scss_file}:#{number + 1}" if line =~ ABSOLUTE_ASSET_USAGE
15
- end
16
- end
17
-
18
- if matching_lines.any?
19
- raise <<~MSG
20
-
21
- One or more problems exist:
22
-
23
- Unguarded url usage
24
- -------------------
25
-
26
- Do not use instances of url(...) to refer to images within this gem.
27
- Prefer the SASS function image-url. Unguarded url references won't work in
28
- Rails 4 and up due to MD5 hashes in asset filenames. Your asset will 404 in
29
- production Rails 4 apps.
30
-
31
- Absolute /assets usage
32
- ----------------------
33
-
34
- When using any of the image/asset helpers, don't refer to /assets absolutely.
35
- For example,
36
-
37
- image-url('/assets/govuk_admin_template/header-crown.png')
38
-
39
- should instead be
40
-
41
- image-url('govuk_admin_template/header-crown.png')
42
-
43
- If Sprockets can't find the image on precompilation, it won't rewrite the
44
- URL and will pass it through unaltered. This usually means it will 404.
45
-
46
- Problems:
47
- #{matching_lines.join("\n ")}
48
-
49
- MSG
50
- end
51
- end
52
- end