ccs-frontend_helpers 0.1.0.rc.5 → 0.1.0.rc.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -2
- data/Gemfile +15 -1
- data/Gemfile.lock +17 -14
- data/ccs-frontend_helpers.gemspec +0 -10
- data/lib/ccs/components/ccs/dashboard_section.rb +2 -4
- data/lib/ccs/frontend_helpers/govuk_frontend/table.rb +8 -1
- data/lib/ccs/frontend_helpers/version.rb +1 -1
- metadata +2 -128
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 376385395af1b119139c7132e1c965f14c26e30496c72721a8b5d83a9b0a1b31
|
4
|
+
data.tar.gz: cfdd0913eaa1daf7b215d03eb2d84e446427507a84de38015dd27a5448a5d7e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b1773b88ec9589d880fd911035db3e77653ee812e71a9d06dbe3e6e9535cfdf24219f01282114a895c98bd367e32f3b82e1f1d7d44af322cc37596ee14636d4
|
7
|
+
data.tar.gz: f360726ae0c9f1fb2e58b7fe161d3c118e82eb656fa4e11f17558ae29e4ff4042d2aa2190a9f7f6db69900c7f2b7834aa8caf4cd16785787fcc8b27c1f3d6cb0
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## [0.1.0.rc.
|
1
|
+
## [0.1.0.rc.7] - 2023-05-18
|
2
2
|
|
3
3
|
Initial release of CCS Frontend Helpers.
|
4
4
|
This release contains view helpers that are used to create GOV.UK and CCS components.
|
@@ -42,6 +42,5 @@ The following GOV.UK helpers have been added:
|
|
42
42
|
The following CCS helpers have been added:
|
43
43
|
|
44
44
|
- Dashboard Panels
|
45
|
-
- Logo
|
46
45
|
- Header
|
47
46
|
- Footer
|
data/Gemfile
CHANGED
@@ -5,6 +5,20 @@ source 'https://rubygems.org'
|
|
5
5
|
# Specify your gem's dependencies in ccs-frontend_helpers.gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
|
+
# Gems for building the package
|
9
|
+
gem 'bundler', '~> 2.3'
|
8
10
|
gem 'rake', '~> 13.0'
|
9
11
|
|
10
|
-
|
12
|
+
# Gems for testing the package
|
13
|
+
gem 'capybara', '~> 3.39.0'
|
14
|
+
gem 'rspec', '~> 3.12'
|
15
|
+
gem 'simplecov', '~> 0.21'
|
16
|
+
|
17
|
+
# Gems for linting/formatting the package
|
18
|
+
gem 'rubocop', '~> 1.36'
|
19
|
+
gem 'rubocop-rails', '~> 2.16'
|
20
|
+
gem 'rubocop-rake', '~> 0.6'
|
21
|
+
gem 'rubocop-rspec', '~> 2.13'
|
22
|
+
|
23
|
+
# Gems for documenting the package
|
24
|
+
gem 'yard', '~> 0.9'
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ccs-frontend_helpers (0.1.0.rc.
|
4
|
+
ccs-frontend_helpers (0.1.0.rc.7)
|
5
5
|
rails (>= 6.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -72,11 +72,11 @@ GEM
|
|
72
72
|
i18n (>= 1.6, < 2)
|
73
73
|
minitest (>= 5.1)
|
74
74
|
tzinfo (~> 2.0)
|
75
|
-
addressable (2.8.
|
75
|
+
addressable (2.8.4)
|
76
76
|
public_suffix (>= 2.0.2, < 6.0)
|
77
77
|
ast (2.4.2)
|
78
78
|
builder (3.2.4)
|
79
|
-
capybara (3.39.
|
79
|
+
capybara (3.39.1)
|
80
80
|
addressable
|
81
81
|
matrix
|
82
82
|
mini_mime (>= 0.1.3)
|
@@ -119,16 +119,16 @@ GEM
|
|
119
119
|
net-smtp (0.3.3)
|
120
120
|
net-protocol
|
121
121
|
nio4r (2.5.8)
|
122
|
-
nokogiri (1.14.
|
122
|
+
nokogiri (1.14.4-x86_64-darwin)
|
123
123
|
racc (~> 1.4)
|
124
|
-
nokogiri (1.14.
|
124
|
+
nokogiri (1.14.4-x86_64-linux)
|
125
125
|
racc (~> 1.4)
|
126
|
-
parallel (1.
|
127
|
-
parser (3.2.2.
|
126
|
+
parallel (1.23.0)
|
127
|
+
parser (3.2.2.1)
|
128
128
|
ast (~> 2.4.1)
|
129
129
|
public_suffix (5.0.1)
|
130
130
|
racc (1.6.2)
|
131
|
-
rack (2.2.
|
131
|
+
rack (2.2.7)
|
132
132
|
rack-test (2.1.0)
|
133
133
|
rack (>= 1.3)
|
134
134
|
rails (7.0.4.3)
|
@@ -159,7 +159,7 @@ GEM
|
|
159
159
|
zeitwerk (~> 2.5)
|
160
160
|
rainbow (3.1.1)
|
161
161
|
rake (13.0.6)
|
162
|
-
regexp_parser (2.
|
162
|
+
regexp_parser (2.8.0)
|
163
163
|
rexml (3.2.5)
|
164
164
|
rspec (3.12.0)
|
165
165
|
rspec-core (~> 3.12.0)
|
@@ -174,7 +174,7 @@ GEM
|
|
174
174
|
diff-lcs (>= 1.2.0, < 2.0)
|
175
175
|
rspec-support (~> 3.12.0)
|
176
176
|
rspec-support (3.12.0)
|
177
|
-
rubocop (1.
|
177
|
+
rubocop (1.51.0)
|
178
178
|
json (~> 2.3)
|
179
179
|
parallel (~> 1.10)
|
180
180
|
parser (>= 3.2.0.0)
|
@@ -184,19 +184,22 @@ GEM
|
|
184
184
|
rubocop-ast (>= 1.28.0, < 2.0)
|
185
185
|
ruby-progressbar (~> 1.7)
|
186
186
|
unicode-display_width (>= 2.4.0, < 3.0)
|
187
|
-
rubocop-ast (1.28.
|
187
|
+
rubocop-ast (1.28.1)
|
188
188
|
parser (>= 3.2.1.0)
|
189
|
-
rubocop-capybara (2.
|
189
|
+
rubocop-capybara (2.18.0)
|
190
190
|
rubocop (~> 1.41)
|
191
|
+
rubocop-factory_bot (2.22.0)
|
192
|
+
rubocop (~> 1.33)
|
191
193
|
rubocop-rails (2.19.1)
|
192
194
|
activesupport (>= 4.2.0)
|
193
195
|
rack (>= 1.1)
|
194
196
|
rubocop (>= 1.33.0, < 2.0)
|
195
197
|
rubocop-rake (0.6.0)
|
196
198
|
rubocop (~> 1.0)
|
197
|
-
rubocop-rspec (2.
|
199
|
+
rubocop-rspec (2.22.0)
|
198
200
|
rubocop (~> 1.33)
|
199
201
|
rubocop-capybara (~> 2.17)
|
202
|
+
rubocop-factory_bot (~> 2.22)
|
200
203
|
ruby-progressbar (1.13.0)
|
201
204
|
simplecov (0.22.0)
|
202
205
|
docile (~> 1.1)
|
@@ -227,7 +230,7 @@ DEPENDENCIES
|
|
227
230
|
capybara (~> 3.39.0)
|
228
231
|
ccs-frontend_helpers!
|
229
232
|
rake (~> 13.0)
|
230
|
-
rspec (~> 3.
|
233
|
+
rspec (~> 3.12)
|
231
234
|
rubocop (~> 1.36)
|
232
235
|
rubocop-rails (~> 2.16)
|
233
236
|
rubocop-rake (~> 0.6)
|
@@ -33,15 +33,5 @@ Gem::Specification.new do |spec|
|
|
33
33
|
|
34
34
|
spec.add_dependency 'rails', '>= 6.0'
|
35
35
|
|
36
|
-
spec.add_development_dependency 'bundler', '~> 2.3'
|
37
|
-
spec.add_development_dependency 'capybara', '~> 3.39.0'
|
38
|
-
spec.add_development_dependency 'rspec', '~> 3.12'
|
39
|
-
spec.add_development_dependency 'rubocop', '~> 1.36'
|
40
|
-
spec.add_development_dependency 'rubocop-rails', '~> 2.16'
|
41
|
-
spec.add_development_dependency 'rubocop-rake', '~> 0.6'
|
42
|
-
spec.add_development_dependency 'rubocop-rspec', '~> 2.13'
|
43
|
-
spec.add_development_dependency 'simplecov', '~> 0.21'
|
44
|
-
spec.add_development_dependency 'yard', '~> 0.9'
|
45
|
-
|
46
36
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
47
37
|
end
|
@@ -52,10 +52,8 @@ module CCS
|
|
52
52
|
concat(tag.h2(title_text, class: 'ccs-dashboard-section__heading govuk-heading-m'))
|
53
53
|
concat(tag.hr(class: 'ccs-dashboard-section__heading-section-break govuk-section-break govuk-section-break--visible'))
|
54
54
|
end
|
55
|
-
concat(tag.div(class: 'ccs-dashboard-section__container') do
|
56
|
-
|
57
|
-
dashboard_section_panels.each { |dashboard_section_panel| concat(dashboard_section_panel.render) }
|
58
|
-
end
|
55
|
+
concat(tag.div(class: 'govuk-grid-row ccs-dashboard-section__container') do
|
56
|
+
dashboard_section_panels.each { |dashboard_section_panel| concat(dashboard_section_panel.render) }
|
59
57
|
end)
|
60
58
|
end
|
61
59
|
end
|
@@ -19,7 +19,14 @@ module CCS
|
|
19
19
|
#
|
20
20
|
# @return (see CCS::Components::GovUK::Table#render)
|
21
21
|
|
22
|
-
def govuk_table(
|
22
|
+
def govuk_table(head_cells_or_rows, rows = nil, **options)
|
23
|
+
if rows.nil?
|
24
|
+
rows = head_cells_or_rows
|
25
|
+
head_cells = nil
|
26
|
+
else
|
27
|
+
head_cells = head_cells_or_rows
|
28
|
+
end
|
29
|
+
|
23
30
|
Components::GovUK::Table.new(context: self, rows: rows, head_cells: head_cells, **options).render
|
24
31
|
end
|
25
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ccs-frontend_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.rc.
|
4
|
+
version: 0.1.0.rc.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tim-s-ccs
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -24,132 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '6.0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: bundler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '2.3'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '2.3'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: capybara
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 3.39.0
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 3.39.0
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rspec
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '3.12'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '3.12'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rubocop
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '1.36'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '1.36'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rubocop-rails
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '2.16'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '2.16'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rubocop-rake
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0.6'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0.6'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rubocop-rspec
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '2.13'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '2.13'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: simplecov
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0.21'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0.21'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: yard
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0.9'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0.9'
|
153
27
|
description: Gem containing view helpers for CCS Ruby on Rails projects
|
154
28
|
email:
|
155
29
|
- timothy.south@crowncommercial.gov.uk
|