govuk_admin_template 6.10.0 → 7.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 +8 -0
- data/README.md +9 -5
- data/lib/govuk_admin_template/version.rb +1 -1
- data/lib/govuk_admin_template.rb +2 -10
- metadata +21 -7
- /data/{LICENCE.txt → LICENCE} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88240b664824a3bb40acc1af0d550844a390ff74b3d2e355cd0166dbc466f4fc
|
4
|
+
data.tar.gz: 5cf398d87526758abbe9d08617e8162b1d02777aac1dc56fa959e93ba45b0ed9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb8cd31f5fb440dff78205032a4b5a5cc6d561080752f368ecc93ac0ec75158b62cbb0c6cc64491c60e5cb4e2a135438774aef5c766aaad54a50f99a07411a5e
|
7
|
+
data.tar.gz: e0c474dce0bcaf642c4e3a8a1d81dca7f1c3f4724a8ee3b8ae85ddc51fd738d4ea99cb3c5a27837bc5b0c41e363d6b252824370ee08e23caf017fac42c84593c
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -16,18 +16,17 @@ This gem provides (via a Rails engine):
|
|
16
16
|
* GOV.UK user friendly date formats
|
17
17
|
* Google Analytics tracking code (Universal Analytics), using the "GOV.UK apps" profile
|
18
18
|
|
19
|
-
[Apps using this gem](https://github.com/search?q=govuk_admin_template+user%3Aalphagov+
|
20
|
-
* [
|
21
|
-
* [
|
19
|
+
[Apps using this gem](https://github.com/search?q=govuk_admin_template+user%3Aalphagov+path%3AGemfile.lock) include:
|
20
|
+
* [Contacts admin](https://github.com/alphagov/contacts-admin)
|
21
|
+
* [Content tagger](https://github.com/alphagov/content-tagger)
|
22
22
|
* [Maslow](https://github.com/alphagov/maslow)
|
23
23
|
* [Publisher](https://github.com/alphagov/publisher)
|
24
24
|
* [Search admin](https://github.com/alphagov/search-admin)
|
25
|
-
* [Sign on](https://github.com/alphagov/signonotron2)
|
26
25
|
* [Service manual publisher](https://github.com/alphagov/service-manual-publisher)
|
26
|
+
* [Short URL manager](https://github.com/alphagov/short-url-manager)
|
27
27
|
* [Specialist publisher](https://github.com/alphagov/specialist-publisher)
|
28
28
|
* [Support](https://github.com/alphagov/support)
|
29
29
|
* [Transition](https://github.com/alphagov/transition)
|
30
|
-
* [Travel advice publisher](https://github.com/alphagov/travel-advice-publisher)
|
31
30
|
|
32
31
|
## Usage
|
33
32
|
|
@@ -289,3 +288,8 @@ It's also possible to run tests against multiple Rails versions locally.
|
|
289
288
|
## Publishing
|
290
289
|
|
291
290
|
Version bumps will automatically update RubyGems.org.
|
291
|
+
|
292
|
+
## Licence
|
293
|
+
|
294
|
+
[MIT License](LICENCE)
|
295
|
+
|
data/lib/govuk_admin_template.rb
CHANGED
@@ -8,18 +8,10 @@ module GovukAdminTemplate
|
|
8
8
|
mattr_accessor :environment_style, :environment_label
|
9
9
|
|
10
10
|
def self.environment_style
|
11
|
-
|
11
|
+
@environment_style ||= ENV["GOVUK_ENVIRONMENT"] == "production" ? "production" : "preview"
|
12
12
|
end
|
13
13
|
|
14
14
|
def self.environment_label
|
15
|
-
|
16
|
-
end
|
17
|
-
|
18
|
-
# In development we can't consistently set an environment
|
19
|
-
# variable, so use a default based on Rails.env
|
20
|
-
def self.default_environment_style
|
21
|
-
if Rails.env.development?
|
22
|
-
"development"
|
23
|
-
end
|
15
|
+
@environment_label ||= ENV.fetch("GOVUK_ENVIRONMENT", "development").titleize
|
24
16
|
end
|
25
17
|
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:
|
4
|
+
version: 7.0.0
|
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:
|
11
|
+
date: 2024-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootstrap-sass
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '3'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: climate_control
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: rspec-rails
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +114,14 @@ dependencies:
|
|
100
114
|
requirements:
|
101
115
|
- - '='
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version: 4.
|
117
|
+
version: 4.18.0
|
104
118
|
type: :development
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
122
|
- - '='
|
109
123
|
- !ruby/object:Gem::Version
|
110
|
-
version: 4.
|
124
|
+
version: 4.18.0
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: sassc-rails
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -132,7 +146,7 @@ files:
|
|
132
146
|
- CHANGELOG.md
|
133
147
|
- CSS.md
|
134
148
|
- JAVASCRIPT.md
|
135
|
-
- LICENCE
|
149
|
+
- LICENCE
|
136
150
|
- README.md
|
137
151
|
- app/assets/images/govuk_admin_template/favicon-development.png
|
138
152
|
- app/assets/images/govuk_admin_template/favicon-integration.png
|
@@ -195,14 +209,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
195
209
|
requirements:
|
196
210
|
- - ">="
|
197
211
|
- !ruby/object:Gem::Version
|
198
|
-
version:
|
212
|
+
version: '3.1'
|
199
213
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
200
214
|
requirements:
|
201
215
|
- - ">="
|
202
216
|
- !ruby/object:Gem::Version
|
203
217
|
version: '0'
|
204
218
|
requirements: []
|
205
|
-
rubygems_version: 3.
|
219
|
+
rubygems_version: 3.5.11
|
206
220
|
signing_key:
|
207
221
|
specification_version: 4
|
208
222
|
summary: Styles, scripts and templates for GOV.UK admin applications
|
/data/{LICENCE.txt → LICENCE}
RENAMED
File without changes
|