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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31116fe6665d9390c1fcbcfd92d4553769020e0630928497506aaed67a733d6d
4
- data.tar.gz: 989a96a1155ab43be812e34132dfee491c9f764bd5bf3281e00f5ae5bc238b52
3
+ metadata.gz: 88240b664824a3bb40acc1af0d550844a390ff74b3d2e355cd0166dbc466f4fc
4
+ data.tar.gz: 5cf398d87526758abbe9d08617e8162b1d02777aac1dc56fa959e93ba45b0ed9
5
5
  SHA512:
6
- metadata.gz: c3309b4b10ae3325d88d9db6ab72588eeb06dfc811b8dbecf5e467d4a81c578501b7ad9268483572a3dab4fa0765ea6d30c7b9bd60b3c155b4789f20fbdf3c25
7
- data.tar.gz: a20aa24bc3b1d3f3f9b0344a07185e3291c79dc1206f86c7f7d6eb8a22a4566f453b87c4b2693b59da6bd2fbd4422a7409f8bd4efdeb54a26314bb52f0eeeb50
6
+ metadata.gz: cb8cd31f5fb440dff78205032a4b5a5cc6d561080752f368ecc93ac0ec75158b62cbb0c6cc64491c60e5cb4e2a135438774aef5c766aaad54a50f99a07411a5e
7
+ data.tar.gz: e0c474dce0bcaf642c4e3a8a1d81dca7f1c3f4724a8ee3b8ae85ddc51fd738d4ea99cb3c5a27837bc5b0c41e363d6b252824370ee08e23caf017fac42c84593c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 7.0.0
2
+
3
+ * Default styling behaviour determined by GOVUK_ENVIRONMENT env var
4
+
5
+ # 6.11.0
6
+
7
+ * Drop support for Ruby 3.0
8
+
1
9
  # 6.10.0
2
10
 
3
11
  * Remove Priority list from govspeak help example
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+filename%3AGemfile) include:
20
- * [Collections publisher](https://github.com/alphagov/collections-publisher)
21
- * [Imminence](https://github.com/alphagov/imminence)
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
+
@@ -1,3 +1,3 @@
1
1
  module GovukAdminTemplate
2
- VERSION = "6.10.0".freeze
2
+ VERSION = "7.0.0".freeze
3
3
  end
@@ -8,18 +8,10 @@ module GovukAdminTemplate
8
8
  mattr_accessor :environment_style, :environment_label
9
9
 
10
10
  def self.environment_style
11
- @@environment_style || default_environment_style
11
+ @environment_style ||= ENV["GOVUK_ENVIRONMENT"] == "production" ? "production" : "preview"
12
12
  end
13
13
 
14
14
  def self.environment_label
15
- @@environment_label || environment_style.try(:titleize)
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: 6.10.0
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: 2022-07-28 00:00:00.000000000 Z
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.6.0
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.6.0
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.txt
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: 2.7.2
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.3.19
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
File without changes