govuk-design-system-rails 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/app/helpers/govuk_design_system/accordion_helper.rb +7 -0
- data/app/helpers/govuk_design_system/back_link_helper.rb +13 -0
- data/app/helpers/govuk_design_system/breadcrumbs_helper.rb +7 -0
- data/app/helpers/govuk_design_system/button_helper.rb +71 -0
- data/app/helpers/govuk_design_system/checkboxes_helper.rb +8 -0
- data/app/helpers/govuk_design_system/components_helper.rb +13 -0
- data/app/helpers/govuk_design_system/cookie_banner_helper.rb +7 -0
- data/app/helpers/govuk_design_system/date_input_helper.rb +8 -0
- data/app/helpers/govuk_design_system/details_helper.rb +32 -0
- data/app/helpers/govuk_design_system/error_message_helper.rb +7 -0
- data/app/helpers/govuk_design_system/error_summary_helper.rb +20 -0
- data/app/helpers/govuk_design_system/fieldset_helper.rb +9 -0
- data/app/helpers/govuk_design_system/file_upload_helper.rb +59 -0
- data/app/helpers/govuk_design_system/header_helper.rb +7 -0
- data/app/helpers/govuk_design_system/hint_helper.rb +7 -0
- data/app/helpers/govuk_design_system/hmcts_badge_helper.rb +7 -0
- data/app/helpers/govuk_design_system/hmcts_banner_helper.rb +7 -0
- data/app/helpers/govuk_design_system/input_helper.rb +8 -0
- data/app/helpers/govuk_design_system/inset_text_helper.rb +9 -0
- data/app/helpers/govuk_design_system/label_helper.rb +7 -0
- data/app/helpers/govuk_design_system/notification_banner_helper.rb +8 -0
- data/app/helpers/govuk_design_system/phase_banner_helper.rb +21 -0
- data/app/helpers/govuk_design_system/radios_helper.rb +8 -0
- data/app/helpers/govuk_design_system/select_helper.rb +8 -0
- data/app/helpers/govuk_design_system/skip_link_helper.rb +13 -0
- data/app/helpers/govuk_design_system/summary_list_helper.rb +7 -0
- data/app/helpers/govuk_design_system/tabs_helper.rb +7 -0
- data/app/helpers/govuk_design_system/tag_helper.rb +8 -0
- data/app/helpers/govuk_design_system/textarea_helper.rb +8 -0
- data/app/helpers/govuk_design_system/warning_text_helper.rb +20 -0
- data/app/views/components/_govuk_accordion.html.erb +44 -0
- data/app/views/components/_govuk_action_link.html.erb +12 -0
- data/app/views/components/_govuk_breadcrumbs.html.erb +25 -0
- data/app/views/components/_govuk_checkboxes.html.erb +125 -0
- data/app/views/components/_govuk_cookie_banner.html.erb +75 -0
- data/app/views/components/_govuk_date_input.html.erb +94 -0
- data/app/views/components/_govuk_error_message.html.erb +13 -0
- data/app/views/components/_govuk_error_summary.html.erb +32 -0
- data/app/views/components/_govuk_fieldset.html.erb +21 -0
- data/app/views/components/_govuk_header.html.erb +64 -0
- data/app/views/components/_govuk_hint.html.erb +7 -0
- data/app/views/components/_govuk_hr.html.erb +1 -0
- data/app/views/components/_govuk_input.html.erb +97 -0
- data/app/views/components/_govuk_inset_text.html.erb +10 -0
- data/app/views/components/_govuk_label.html.erb +18 -0
- data/app/views/components/_govuk_notification_banner.html.erb +68 -0
- data/app/views/components/_govuk_radios.html.erb +141 -0
- data/app/views/components/_govuk_select.html.erb +105 -0
- data/app/views/components/_govuk_summary_list.html.erb +39 -0
- data/app/views/components/_govuk_tabs.html.erb +46 -0
- data/app/views/components/_govuk_textarea.html.erb +70 -0
- data/app/views/components/_hmcts_banner.html.erb +33 -0
- data/app/views/form_components/_govuk_checkboxes.html.erb +21 -0
- data/app/views/form_components/_govuk_date_input.html.erb +32 -0
- data/app/views/form_components/_govuk_input.html.erb +11 -0
- data/app/views/form_components/_govuk_radios.html.erb +24 -0
- data/app/views/form_components/_govuk_select.html.erb +25 -0
- data/app/views/form_components/_govuk_textarea.html.erb +11 -0
- data/lib/govuk-design-system-rails.rb +1 -0
- data/lib/govuk_design_system/engine.rb +50 -0
- data/lib/govuk_design_system.rb +4 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/config/manifest.js +2 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
- data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
- data/spec/dummy/app/controllers/application_controller.rb +2 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/javascript/packs/application.js +15 -0
- data/spec/dummy/app/jobs/application_job.rb +7 -0
- data/spec/dummy/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy/app/models/application_record.rb +3 -0
- data/spec/dummy/app/views/layouts/application.html.erb +15 -0
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +33 -0
- data/spec/dummy/config/application.rb +38 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/cable.yml +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +76 -0
- data/spec/dummy/config/environments/production.rb +120 -0
- data/spec/dummy/config/environments/test.rb +59 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/dummy/config/initializers/assets.rb +12 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +8 -0
- data/spec/dummy/config/initializers/content_security_policy.rb +28 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +6 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/permissions_policy.rb +11 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +33 -0
- data/spec/dummy/config/puma.rb +43 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config/storage.yml +34 -0
- data/spec/dummy/config.ru +6 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/development_secret.txt +1 -0
- data/spec/helpers/govuk_design_system/accordion_helper_spec.rb +353 -0
- data/spec/helpers/govuk_design_system/breadcrumbs_helper_spec.rb +90 -0
- data/spec/helpers/govuk_design_system/button_helper_spec.rb +34 -0
- data/spec/helpers/govuk_design_system/checkboxes_helper_spec.rb +146 -0
- data/spec/helpers/govuk_design_system/cookie_banner_helper_spec.rb +65 -0
- data/spec/helpers/govuk_design_system/date_input_helper_spec.rb +63 -0
- data/spec/helpers/govuk_design_system/details_helper_spec.rb +42 -0
- data/spec/helpers/govuk_design_system/error_message_helper_spec.rb +18 -0
- data/spec/helpers/govuk_design_system/error_summary_helper_spec.rb +39 -0
- data/spec/helpers/govuk_design_system/header_helper_spec.rb +138 -0
- data/spec/helpers/govuk_design_system/hint_helper_spec.rb +20 -0
- data/spec/helpers/govuk_design_system/hmcts_badge_helper_spec.rb +16 -0
- data/spec/helpers/govuk_design_system/hmcts_banner_helper_spec.rb +59 -0
- data/spec/helpers/govuk_design_system/input_helper_spec.rb +157 -0
- data/spec/helpers/govuk_design_system/inset_text_helper_spec.rb +58 -0
- data/spec/helpers/govuk_design_system/label_helper_spec.rb +21 -0
- data/spec/helpers/govuk_design_system/notification_banner_helper_spec.rb +98 -0
- data/spec/helpers/govuk_design_system/radios_helper_spec.rb +270 -0
- data/spec/helpers/govuk_design_system/select_helper_spec.rb +85 -0
- data/spec/helpers/govuk_design_system/summary_list_helper_spec.rb +138 -0
- data/spec/helpers/govuk_design_system/tabs_helper_spec.rb +129 -0
- data/spec/helpers/govuk_design_system/tag_helper_spec.rb +17 -0
- data/spec/helpers/govuk_design_system/textarea_helper_spec.rb +67 -0
- data/spec/rails_helper.rb +64 -0
- data/spec/spec_helper.rb +116 -0
- metadata +401 -0
@@ -0,0 +1,67 @@
|
|
1
|
+
require "rails_helper"
|
2
|
+
|
3
|
+
RSpec.describe GovukDesignSystem::TextareaHelper, type: :helper do
|
4
|
+
describe "#govukTextarea" do
|
5
|
+
it "when hint is included returns the correct HTML" do
|
6
|
+
html = helper.govukTextarea({
|
7
|
+
name: "more-detail",
|
8
|
+
id: "more-detail",
|
9
|
+
label: {
|
10
|
+
text: "Can you provide more detail?",
|
11
|
+
classes: "govuk-label--l",
|
12
|
+
isPageHeading: true
|
13
|
+
},
|
14
|
+
hint: {
|
15
|
+
text: "Do not include personal or financial information, like your National Insurance number or credit card details."
|
16
|
+
}
|
17
|
+
})
|
18
|
+
|
19
|
+
expect(html).to match_html(<<~HTML)
|
20
|
+
<div class="govuk-form-group">
|
21
|
+
<h1 class="govuk-label-wrapper"><label class="govuk-label govuk-label--l" for="more-detail">
|
22
|
+
Can you provide more detail?
|
23
|
+
</label>
|
24
|
+
</h1>
|
25
|
+
<div id="more-detail-hint" class="govuk-hint">
|
26
|
+
Do not include personal or financial information, like your National Insurance number or credit card details.
|
27
|
+
</div>
|
28
|
+
<textarea class="govuk-textarea" id="more-detail" name="more-detail" rows="5" aria-describedby="more-detail-hint"></textarea>
|
29
|
+
</div>
|
30
|
+
HTML
|
31
|
+
end
|
32
|
+
|
33
|
+
it "when there is an error message is returns the correct HTML" do
|
34
|
+
html = helper.govukTextarea({
|
35
|
+
name: "more-detail",
|
36
|
+
id: "more-detail",
|
37
|
+
label: {
|
38
|
+
text: "Can you provide more detail?",
|
39
|
+
classes: "govuk-label--l",
|
40
|
+
isPageHeading: true
|
41
|
+
},
|
42
|
+
hint: {
|
43
|
+
text: "Do not include personal or financial information, like your National Insurance number or credit card details."
|
44
|
+
},
|
45
|
+
errorMessage: {
|
46
|
+
text: "Enter more detail"
|
47
|
+
}
|
48
|
+
})
|
49
|
+
|
50
|
+
expect(html).to match_html(<<~HTML)
|
51
|
+
<div class="govuk-form-group govuk-form-group--error">
|
52
|
+
<h1 class="govuk-label-wrapper"><label class="govuk-label govuk-label--l" for="more-detail">
|
53
|
+
Can you provide more detail?
|
54
|
+
</label>
|
55
|
+
</h1>
|
56
|
+
<div id="more-detail-hint" class="govuk-hint">
|
57
|
+
Do not include personal or financial information, like your National Insurance number or credit card details.
|
58
|
+
</div>
|
59
|
+
<p id="more-detail-error" class="govuk-error-message">
|
60
|
+
<span class="govuk-visually-hidden">Error:</span> Enter more detail
|
61
|
+
</p>
|
62
|
+
<textarea class="govuk-textarea govuk-textarea--error" id="more-detail" name="more-detail" rows="5" aria-describedby="more-detail-hint more-detail-error"></textarea>
|
63
|
+
</div>
|
64
|
+
HTML
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
|
+
require "spec_helper"
|
3
|
+
ENV["RAILS_ENV"] ||= "test"
|
4
|
+
require_relative "dummy/config/environment"
|
5
|
+
# Prevent database truncation if the environment is production
|
6
|
+
abort("The Rails environment is running in production mode!") if Rails.env.production?
|
7
|
+
require "rspec/rails"
|
8
|
+
# Add additional requires below this line. Rails is not loaded until this point!
|
9
|
+
|
10
|
+
# Requires supporting ruby files with custom matchers and macros, etc, in
|
11
|
+
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
|
12
|
+
# run as spec files by default. This means that files in spec/support that end
|
13
|
+
# in _spec.rb will both be required and run as specs, causing the specs to be
|
14
|
+
# run twice. It is recommended that you do not name files matching this glob to
|
15
|
+
# end with _spec.rb. You can configure this pattern with the --pattern
|
16
|
+
# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
|
17
|
+
#
|
18
|
+
# The following line is provided for convenience purposes. It has the downside
|
19
|
+
# of increasing the boot-up time by auto-requiring all files in the support
|
20
|
+
# directory. Alternatively, in the individual `*_spec.rb` files, manually
|
21
|
+
# require only the support files necessary.
|
22
|
+
#
|
23
|
+
# Dir[Rails.root.join('spec', 'support', '**', '*.rb')].sort.each { |f| require f }
|
24
|
+
|
25
|
+
# Checks for pending migrations and applies them before tests are run.
|
26
|
+
# If you are not using ActiveRecord, you can remove these lines.
|
27
|
+
# begin
|
28
|
+
# ActiveRecord::Migration.maintain_test_schema!
|
29
|
+
# rescue ActiveRecord::PendingMigrationError => e
|
30
|
+
# puts e.to_s.strip
|
31
|
+
# exit 1
|
32
|
+
# end
|
33
|
+
RSpec.configure do |config|
|
34
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
35
|
+
config.fixture_path = Rails.root.join("spec/fixtures")
|
36
|
+
|
37
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
38
|
+
# examples within a transaction, remove the following line or assign false
|
39
|
+
# instead of true.
|
40
|
+
config.use_transactional_fixtures = true
|
41
|
+
|
42
|
+
# You can uncomment this line to turn off ActiveRecord support entirely.
|
43
|
+
# config.use_active_record = false
|
44
|
+
|
45
|
+
# RSpec Rails can automatically mix in different behaviours to your tests
|
46
|
+
# based on their file location, for example enabling you to call `get` and
|
47
|
+
# `post` in specs under `spec/controllers`.
|
48
|
+
#
|
49
|
+
# You can disable this behaviour by removing the line below, and instead
|
50
|
+
# explicitly tag your specs with their type, e.g.:
|
51
|
+
#
|
52
|
+
# RSpec.describe UsersController, type: :controller do
|
53
|
+
# # ...
|
54
|
+
# end
|
55
|
+
#
|
56
|
+
# The different available types are documented in the features, such as in
|
57
|
+
# https://relishapp.com/rspec/rspec-rails/docs
|
58
|
+
config.infer_spec_type_from_file_location!
|
59
|
+
|
60
|
+
# Filter lines from Rails gems in backtraces.
|
61
|
+
config.filter_rails_from_backtrace!
|
62
|
+
# arbitrary gems may also be filtered via:
|
63
|
+
# config.filter_gems_from_backtrace("gem name")
|
64
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
require "nokogiri"
|
2
|
+
require "compare-xml"
|
3
|
+
require "super_diff/rspec"
|
4
|
+
|
5
|
+
# This file was generated by the `rails generate rspec:install` command. Conventionally, all
|
6
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
7
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
8
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
9
|
+
# files.
|
10
|
+
#
|
11
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
12
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
13
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
14
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
15
|
+
# a separate helper file that requires the additional dependencies and performs
|
16
|
+
# the additional setup, and require it from the spec files that actually need
|
17
|
+
# it.
|
18
|
+
#
|
19
|
+
# See https://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
20
|
+
RSpec.configure do |config|
|
21
|
+
# rspec-expectations config goes here. You can use an alternate
|
22
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
23
|
+
# assertions if you prefer.
|
24
|
+
config.expect_with :rspec do |expectations|
|
25
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
26
|
+
# and `failure_message` of custom matchers include text for helper methods
|
27
|
+
# defined using `chain`, e.g.:
|
28
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
29
|
+
# # => "be bigger than 2 and smaller than 4"
|
30
|
+
# ...rather than:
|
31
|
+
# # => "be bigger than 2"
|
32
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
33
|
+
end
|
34
|
+
|
35
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
36
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
37
|
+
config.mock_with :rspec do |mocks|
|
38
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
39
|
+
# a real object. This is generally recommended, and will default to
|
40
|
+
# `true` in RSpec 4.
|
41
|
+
mocks.verify_partial_doubles = true
|
42
|
+
end
|
43
|
+
|
44
|
+
# This option will default to `:apply_to_host_groups` in RSpec 4 (and will
|
45
|
+
# have no way to turn it off -- the option exists only for backwards
|
46
|
+
# compatibility in RSpec 3). It causes shared context metadata to be
|
47
|
+
# inherited by the metadata hash of host groups and examples, rather than
|
48
|
+
# triggering implicit auto-inclusion in groups with matching metadata.
|
49
|
+
config.shared_context_metadata_behavior = :apply_to_host_groups
|
50
|
+
|
51
|
+
# The settings below are suggested to provide a good initial experience
|
52
|
+
# with RSpec, but feel free to customize to your heart's content.
|
53
|
+
# # This allows you to limit a spec run to individual examples or groups
|
54
|
+
# # you care about by tagging them with `:focus` metadata. When nothing
|
55
|
+
# # is tagged with `:focus`, all examples get run. RSpec also provides
|
56
|
+
# # aliases for `it`, `describe`, and `context` that include `:focus`
|
57
|
+
# # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
|
58
|
+
# config.filter_run_when_matching :focus
|
59
|
+
#
|
60
|
+
# # Allows RSpec to persist some state between runs in order to support
|
61
|
+
# # the `--only-failures` and `--next-failure` CLI options. We recommend
|
62
|
+
# # you configure your source control system to ignore this file.
|
63
|
+
# config.example_status_persistence_file_path = "spec/examples.txt"
|
64
|
+
#
|
65
|
+
# # Limits the available syntax to the non-monkey patched syntax that is
|
66
|
+
# # recommended. For more details, see:
|
67
|
+
# # https://relishapp.com/rspec/rspec-core/docs/configuration/zero-monkey-patching-mode
|
68
|
+
# config.disable_monkey_patching!
|
69
|
+
#
|
70
|
+
# # Many RSpec users commonly either run the entire suite or an individual
|
71
|
+
# # file, and it's useful to allow more verbose output when running an
|
72
|
+
# # individual spec file.
|
73
|
+
# if config.files_to_run.one?
|
74
|
+
# # Use the documentation formatter for detailed output,
|
75
|
+
# # unless a formatter has already been configured
|
76
|
+
# # (e.g. via a command-line flag).
|
77
|
+
# config.default_formatter = "doc"
|
78
|
+
# end
|
79
|
+
#
|
80
|
+
# # Print the 10 slowest examples and example groups at the
|
81
|
+
# # end of the spec run, to help surface which specs are running
|
82
|
+
# # particularly slow.
|
83
|
+
# config.profile_examples = 10
|
84
|
+
#
|
85
|
+
# # Run specs in random order to surface order dependencies. If you find an
|
86
|
+
# # order dependency and want to debug it, you can fix the order by providing
|
87
|
+
# # the seed, which is printed after each run.
|
88
|
+
# # --seed 1234
|
89
|
+
# config.order = :random
|
90
|
+
#
|
91
|
+
# # Seed global randomization in this process using the `--seed` CLI option.
|
92
|
+
# # Setting this allows you to use `--seed` to deterministically reproduce
|
93
|
+
# # test failures related to randomization by passing the same `--seed` value
|
94
|
+
# # as the one that triggered the failure.
|
95
|
+
# Kernel.srand config.seed
|
96
|
+
end
|
97
|
+
|
98
|
+
RSpec::Matchers.define :match_html do |expected_html, **options|
|
99
|
+
# https://makandracards.com/makandra/505308-rspec-matcher-to-compare-two-html-fragments
|
100
|
+
match do |actual_html|
|
101
|
+
expected_doc = Nokogiri::HTML5.fragment(expected_html)
|
102
|
+
actual_doc = Nokogiri::HTML5.fragment(actual_html)
|
103
|
+
|
104
|
+
# Options documented here: https://github.com/vkononov/compare-xml
|
105
|
+
default_options = {
|
106
|
+
collapse_whitespace: true,
|
107
|
+
ignore_attr_order: true,
|
108
|
+
ignore_comments: true
|
109
|
+
}
|
110
|
+
|
111
|
+
options = default_options.merge(options).merge(verbose: true)
|
112
|
+
|
113
|
+
diff = CompareXML.equivalent?(expected_doc, actual_doc, **options)
|
114
|
+
diff.blank?
|
115
|
+
end
|
116
|
+
end
|
metadata
ADDED
@@ -0,0 +1,401 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: govuk-design-system-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.10.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- govuk-ruby
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-01-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: compare-xml
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: nokogiri
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 6.1.6
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 6.1.6.1
|
51
|
+
type: :development
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - "~>"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 6.1.6
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 6.1.6.1
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rspec-rails
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: rubocop
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: rubocop-govuk
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: rubocop-performance
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: rubocop-rspec
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: sqlite3
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: super_diff
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
description:
|
160
|
+
email:
|
161
|
+
executables: []
|
162
|
+
extensions: []
|
163
|
+
extra_rdoc_files: []
|
164
|
+
files:
|
165
|
+
- app/helpers/govuk_design_system/accordion_helper.rb
|
166
|
+
- app/helpers/govuk_design_system/back_link_helper.rb
|
167
|
+
- app/helpers/govuk_design_system/breadcrumbs_helper.rb
|
168
|
+
- app/helpers/govuk_design_system/button_helper.rb
|
169
|
+
- app/helpers/govuk_design_system/checkboxes_helper.rb
|
170
|
+
- app/helpers/govuk_design_system/components_helper.rb
|
171
|
+
- app/helpers/govuk_design_system/cookie_banner_helper.rb
|
172
|
+
- app/helpers/govuk_design_system/date_input_helper.rb
|
173
|
+
- app/helpers/govuk_design_system/details_helper.rb
|
174
|
+
- app/helpers/govuk_design_system/error_message_helper.rb
|
175
|
+
- app/helpers/govuk_design_system/error_summary_helper.rb
|
176
|
+
- app/helpers/govuk_design_system/fieldset_helper.rb
|
177
|
+
- app/helpers/govuk_design_system/file_upload_helper.rb
|
178
|
+
- app/helpers/govuk_design_system/header_helper.rb
|
179
|
+
- app/helpers/govuk_design_system/hint_helper.rb
|
180
|
+
- app/helpers/govuk_design_system/hmcts_badge_helper.rb
|
181
|
+
- app/helpers/govuk_design_system/hmcts_banner_helper.rb
|
182
|
+
- app/helpers/govuk_design_system/input_helper.rb
|
183
|
+
- app/helpers/govuk_design_system/inset_text_helper.rb
|
184
|
+
- app/helpers/govuk_design_system/label_helper.rb
|
185
|
+
- app/helpers/govuk_design_system/notification_banner_helper.rb
|
186
|
+
- app/helpers/govuk_design_system/phase_banner_helper.rb
|
187
|
+
- app/helpers/govuk_design_system/radios_helper.rb
|
188
|
+
- app/helpers/govuk_design_system/select_helper.rb
|
189
|
+
- app/helpers/govuk_design_system/skip_link_helper.rb
|
190
|
+
- app/helpers/govuk_design_system/summary_list_helper.rb
|
191
|
+
- app/helpers/govuk_design_system/tabs_helper.rb
|
192
|
+
- app/helpers/govuk_design_system/tag_helper.rb
|
193
|
+
- app/helpers/govuk_design_system/textarea_helper.rb
|
194
|
+
- app/helpers/govuk_design_system/warning_text_helper.rb
|
195
|
+
- app/views/components/_govuk_accordion.html.erb
|
196
|
+
- app/views/components/_govuk_action_link.html.erb
|
197
|
+
- app/views/components/_govuk_breadcrumbs.html.erb
|
198
|
+
- app/views/components/_govuk_checkboxes.html.erb
|
199
|
+
- app/views/components/_govuk_cookie_banner.html.erb
|
200
|
+
- app/views/components/_govuk_date_input.html.erb
|
201
|
+
- app/views/components/_govuk_error_message.html.erb
|
202
|
+
- app/views/components/_govuk_error_summary.html.erb
|
203
|
+
- app/views/components/_govuk_fieldset.html.erb
|
204
|
+
- app/views/components/_govuk_header.html.erb
|
205
|
+
- app/views/components/_govuk_hint.html.erb
|
206
|
+
- app/views/components/_govuk_hr.html.erb
|
207
|
+
- app/views/components/_govuk_input.html.erb
|
208
|
+
- app/views/components/_govuk_inset_text.html.erb
|
209
|
+
- app/views/components/_govuk_label.html.erb
|
210
|
+
- app/views/components/_govuk_notification_banner.html.erb
|
211
|
+
- app/views/components/_govuk_radios.html.erb
|
212
|
+
- app/views/components/_govuk_select.html.erb
|
213
|
+
- app/views/components/_govuk_summary_list.html.erb
|
214
|
+
- app/views/components/_govuk_tabs.html.erb
|
215
|
+
- app/views/components/_govuk_textarea.html.erb
|
216
|
+
- app/views/components/_hmcts_banner.html.erb
|
217
|
+
- app/views/form_components/_govuk_checkboxes.html.erb
|
218
|
+
- app/views/form_components/_govuk_date_input.html.erb
|
219
|
+
- app/views/form_components/_govuk_input.html.erb
|
220
|
+
- app/views/form_components/_govuk_radios.html.erb
|
221
|
+
- app/views/form_components/_govuk_select.html.erb
|
222
|
+
- app/views/form_components/_govuk_textarea.html.erb
|
223
|
+
- lib/govuk-design-system-rails.rb
|
224
|
+
- lib/govuk_design_system.rb
|
225
|
+
- lib/govuk_design_system/engine.rb
|
226
|
+
- spec/dummy/Rakefile
|
227
|
+
- spec/dummy/app/assets/config/manifest.js
|
228
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
229
|
+
- spec/dummy/app/channels/application_cable/channel.rb
|
230
|
+
- spec/dummy/app/channels/application_cable/connection.rb
|
231
|
+
- spec/dummy/app/controllers/application_controller.rb
|
232
|
+
- spec/dummy/app/helpers/application_helper.rb
|
233
|
+
- spec/dummy/app/javascript/packs/application.js
|
234
|
+
- spec/dummy/app/jobs/application_job.rb
|
235
|
+
- spec/dummy/app/mailers/application_mailer.rb
|
236
|
+
- spec/dummy/app/models/application_record.rb
|
237
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
238
|
+
- spec/dummy/app/views/layouts/mailer.html.erb
|
239
|
+
- spec/dummy/app/views/layouts/mailer.text.erb
|
240
|
+
- spec/dummy/bin/rails
|
241
|
+
- spec/dummy/bin/rake
|
242
|
+
- spec/dummy/bin/setup
|
243
|
+
- spec/dummy/config.ru
|
244
|
+
- spec/dummy/config/application.rb
|
245
|
+
- spec/dummy/config/boot.rb
|
246
|
+
- spec/dummy/config/cable.yml
|
247
|
+
- spec/dummy/config/database.yml
|
248
|
+
- spec/dummy/config/environment.rb
|
249
|
+
- spec/dummy/config/environments/development.rb
|
250
|
+
- spec/dummy/config/environments/production.rb
|
251
|
+
- spec/dummy/config/environments/test.rb
|
252
|
+
- spec/dummy/config/initializers/application_controller_renderer.rb
|
253
|
+
- spec/dummy/config/initializers/assets.rb
|
254
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
255
|
+
- spec/dummy/config/initializers/content_security_policy.rb
|
256
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
257
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
258
|
+
- spec/dummy/config/initializers/inflections.rb
|
259
|
+
- spec/dummy/config/initializers/mime_types.rb
|
260
|
+
- spec/dummy/config/initializers/permissions_policy.rb
|
261
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
262
|
+
- spec/dummy/config/locales/en.yml
|
263
|
+
- spec/dummy/config/puma.rb
|
264
|
+
- spec/dummy/config/routes.rb
|
265
|
+
- spec/dummy/config/storage.yml
|
266
|
+
- spec/dummy/db/development.sqlite3
|
267
|
+
- spec/dummy/db/test.sqlite3
|
268
|
+
- spec/dummy/public/404.html
|
269
|
+
- spec/dummy/public/422.html
|
270
|
+
- spec/dummy/public/500.html
|
271
|
+
- spec/dummy/public/apple-touch-icon-precomposed.png
|
272
|
+
- spec/dummy/public/apple-touch-icon.png
|
273
|
+
- spec/dummy/public/favicon.ico
|
274
|
+
- spec/dummy/tmp/development_secret.txt
|
275
|
+
- spec/helpers/govuk_design_system/accordion_helper_spec.rb
|
276
|
+
- spec/helpers/govuk_design_system/breadcrumbs_helper_spec.rb
|
277
|
+
- spec/helpers/govuk_design_system/button_helper_spec.rb
|
278
|
+
- spec/helpers/govuk_design_system/checkboxes_helper_spec.rb
|
279
|
+
- spec/helpers/govuk_design_system/cookie_banner_helper_spec.rb
|
280
|
+
- spec/helpers/govuk_design_system/date_input_helper_spec.rb
|
281
|
+
- spec/helpers/govuk_design_system/details_helper_spec.rb
|
282
|
+
- spec/helpers/govuk_design_system/error_message_helper_spec.rb
|
283
|
+
- spec/helpers/govuk_design_system/error_summary_helper_spec.rb
|
284
|
+
- spec/helpers/govuk_design_system/header_helper_spec.rb
|
285
|
+
- spec/helpers/govuk_design_system/hint_helper_spec.rb
|
286
|
+
- spec/helpers/govuk_design_system/hmcts_badge_helper_spec.rb
|
287
|
+
- spec/helpers/govuk_design_system/hmcts_banner_helper_spec.rb
|
288
|
+
- spec/helpers/govuk_design_system/input_helper_spec.rb
|
289
|
+
- spec/helpers/govuk_design_system/inset_text_helper_spec.rb
|
290
|
+
- spec/helpers/govuk_design_system/label_helper_spec.rb
|
291
|
+
- spec/helpers/govuk_design_system/notification_banner_helper_spec.rb
|
292
|
+
- spec/helpers/govuk_design_system/radios_helper_spec.rb
|
293
|
+
- spec/helpers/govuk_design_system/select_helper_spec.rb
|
294
|
+
- spec/helpers/govuk_design_system/summary_list_helper_spec.rb
|
295
|
+
- spec/helpers/govuk_design_system/tabs_helper_spec.rb
|
296
|
+
- spec/helpers/govuk_design_system/tag_helper_spec.rb
|
297
|
+
- spec/helpers/govuk_design_system/textarea_helper_spec.rb
|
298
|
+
- spec/rails_helper.rb
|
299
|
+
- spec/spec_helper.rb
|
300
|
+
homepage: https://github.com/govuk-ruby/govuk-design-system-rails
|
301
|
+
licenses: []
|
302
|
+
metadata:
|
303
|
+
bug_tracker_uri: https://github.com/govuk-ruby/govuk-design-system-rails/issues
|
304
|
+
changelog_uri: https://github.com/govuk-ruby/govuk-design-system-rails/releases
|
305
|
+
homepage_uri: https://github.com/govuk-ruby/govuk-design-system-rails
|
306
|
+
source_code_uri: https://github.com/govuk-ruby/govuk-design-system-rails
|
307
|
+
wiki_uri: https://github.com/govuk-ruby/govuk-design-system-rails/wiki
|
308
|
+
post_install_message:
|
309
|
+
rdoc_options: []
|
310
|
+
require_paths:
|
311
|
+
- lib
|
312
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
313
|
+
requirements:
|
314
|
+
- - ">="
|
315
|
+
- !ruby/object:Gem::Version
|
316
|
+
version: 2.7.0
|
317
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
318
|
+
requirements:
|
319
|
+
- - ">="
|
320
|
+
- !ruby/object:Gem::Version
|
321
|
+
version: '0'
|
322
|
+
requirements: []
|
323
|
+
rubygems_version: 3.1.6
|
324
|
+
signing_key:
|
325
|
+
specification_version: 4
|
326
|
+
summary: An implementation of the govuk-frontend macros in Ruby on Rails
|
327
|
+
test_files:
|
328
|
+
- spec/dummy/config/cable.yml
|
329
|
+
- spec/dummy/config/puma.rb
|
330
|
+
- spec/dummy/config/environments/development.rb
|
331
|
+
- spec/dummy/config/environments/production.rb
|
332
|
+
- spec/dummy/config/environments/test.rb
|
333
|
+
- spec/dummy/config/initializers/application_controller_renderer.rb
|
334
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
335
|
+
- spec/dummy/config/initializers/permissions_policy.rb
|
336
|
+
- spec/dummy/config/initializers/content_security_policy.rb
|
337
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
338
|
+
- spec/dummy/config/initializers/assets.rb
|
339
|
+
- spec/dummy/config/initializers/mime_types.rb
|
340
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
341
|
+
- spec/dummy/config/initializers/inflections.rb
|
342
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
343
|
+
- spec/dummy/config/boot.rb
|
344
|
+
- spec/dummy/config/application.rb
|
345
|
+
- spec/dummy/config/storage.yml
|
346
|
+
- spec/dummy/config/database.yml
|
347
|
+
- spec/dummy/config/environment.rb
|
348
|
+
- spec/dummy/config/locales/en.yml
|
349
|
+
- spec/dummy/config/routes.rb
|
350
|
+
- spec/dummy/Rakefile
|
351
|
+
- spec/dummy/config.ru
|
352
|
+
- spec/dummy/app/mailers/application_mailer.rb
|
353
|
+
- spec/dummy/app/jobs/application_job.rb
|
354
|
+
- spec/dummy/app/views/layouts/mailer.text.erb
|
355
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
356
|
+
- spec/dummy/app/views/layouts/mailer.html.erb
|
357
|
+
- spec/dummy/app/models/application_record.rb
|
358
|
+
- spec/dummy/app/javascript/packs/application.js
|
359
|
+
- spec/dummy/app/controllers/application_controller.rb
|
360
|
+
- spec/dummy/app/helpers/application_helper.rb
|
361
|
+
- spec/dummy/app/channels/application_cable/channel.rb
|
362
|
+
- spec/dummy/app/channels/application_cable/connection.rb
|
363
|
+
- spec/dummy/app/assets/config/manifest.js
|
364
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
365
|
+
- spec/dummy/db/test.sqlite3
|
366
|
+
- spec/dummy/db/development.sqlite3
|
367
|
+
- spec/dummy/tmp/development_secret.txt
|
368
|
+
- spec/dummy/public/apple-touch-icon-precomposed.png
|
369
|
+
- spec/dummy/public/422.html
|
370
|
+
- spec/dummy/public/favicon.ico
|
371
|
+
- spec/dummy/public/404.html
|
372
|
+
- spec/dummy/public/apple-touch-icon.png
|
373
|
+
- spec/dummy/public/500.html
|
374
|
+
- spec/dummy/bin/rake
|
375
|
+
- spec/dummy/bin/setup
|
376
|
+
- spec/dummy/bin/rails
|
377
|
+
- spec/helpers/govuk_design_system/tag_helper_spec.rb
|
378
|
+
- spec/helpers/govuk_design_system/summary_list_helper_spec.rb
|
379
|
+
- spec/helpers/govuk_design_system/details_helper_spec.rb
|
380
|
+
- spec/helpers/govuk_design_system/select_helper_spec.rb
|
381
|
+
- spec/helpers/govuk_design_system/hint_helper_spec.rb
|
382
|
+
- spec/helpers/govuk_design_system/tabs_helper_spec.rb
|
383
|
+
- spec/helpers/govuk_design_system/notification_banner_helper_spec.rb
|
384
|
+
- spec/helpers/govuk_design_system/textarea_helper_spec.rb
|
385
|
+
- spec/helpers/govuk_design_system/hmcts_badge_helper_spec.rb
|
386
|
+
- spec/helpers/govuk_design_system/error_message_helper_spec.rb
|
387
|
+
- spec/helpers/govuk_design_system/checkboxes_helper_spec.rb
|
388
|
+
- spec/helpers/govuk_design_system/label_helper_spec.rb
|
389
|
+
- spec/helpers/govuk_design_system/accordion_helper_spec.rb
|
390
|
+
- spec/helpers/govuk_design_system/date_input_helper_spec.rb
|
391
|
+
- spec/helpers/govuk_design_system/input_helper_spec.rb
|
392
|
+
- spec/helpers/govuk_design_system/inset_text_helper_spec.rb
|
393
|
+
- spec/helpers/govuk_design_system/cookie_banner_helper_spec.rb
|
394
|
+
- spec/helpers/govuk_design_system/hmcts_banner_helper_spec.rb
|
395
|
+
- spec/helpers/govuk_design_system/radios_helper_spec.rb
|
396
|
+
- spec/helpers/govuk_design_system/header_helper_spec.rb
|
397
|
+
- spec/helpers/govuk_design_system/error_summary_helper_spec.rb
|
398
|
+
- spec/helpers/govuk_design_system/button_helper_spec.rb
|
399
|
+
- spec/helpers/govuk_design_system/breadcrumbs_helper_spec.rb
|
400
|
+
- spec/rails_helper.rb
|
401
|
+
- spec/spec_helper.rb
|