crown_marketplace_utils 0.1.0.beta.5 → 0.1.0.beta.6

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: efd7605edd0d81a5dc2a899b1196c235a2f2265898f979855cd3e2b995e7c6c2
4
- data.tar.gz: 1bef91763ce32d1c96e3e98494f2ea544142dfdf1eecb7141d40ebbd16fe2227
3
+ metadata.gz: e73452d7763d7859ed777fcf3fcb1b1c94f29d1b7847296a103cac6b75cb5be4
4
+ data.tar.gz: 9e68caffdbdaa5c2bd3c9b35cf867f59e2928945e74b0c537864bfe0441cd74b
5
5
  SHA512:
6
- metadata.gz: cd54c38fddaf0e2e012eb3440476de012cee407787407a35e8eea925e20b30a81bb37416e33a66e4218f1752e3203a6a61dc2df31d24b91e6acde7718ce35bf3
7
- data.tar.gz: 21de5f82595c05403b6b4c81cdef316cb4a84610604e5de45aaf69df13b17733567e7ccce0298fbb675c79dee297786e5c3fbedb5ee8cef516256951ac3c3d17
6
+ metadata.gz: 972d9d7bf8c15f1408500948595155932dc99d24ed43565762ce3e0d0f3b695328834f1685aff46c90d21afa8fe6a298551d1e00162d05cc21a91971600065ff
7
+ data.tar.gz: 16c588d4814694d494093134ff77098b0f1bf1a37ce019efeabef0780848cc17ea00bc6f356fa3206b668da507bf18038677152e21aad3d3c95dfd7eef775077
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- crown_marketplace_utils (0.1.0.beta.5)
4
+ crown_marketplace_utils (0.1.0.beta.6)
5
5
  actionview (>= 6.0)
6
6
 
7
7
  GEM
@@ -118,7 +118,7 @@ GEM
118
118
  nokogiri (1.13.9-x86_64-linux)
119
119
  racc (~> 1.4)
120
120
  parallel (1.22.1)
121
- parser (3.1.3.0)
121
+ parser (3.2.0.0)
122
122
  ast (~> 2.4.1)
123
123
  public_suffix (5.0.0)
124
124
  racc (1.6.0)
@@ -168,32 +168,32 @@ GEM
168
168
  diff-lcs (>= 1.2.0, < 2.0)
169
169
  rspec-support (~> 3.12.0)
170
170
  rspec-support (3.12.0)
171
- rubocop (1.40.0)
171
+ rubocop (1.43.0)
172
172
  json (~> 2.3)
173
173
  parallel (~> 1.10)
174
- parser (>= 3.1.2.1)
174
+ parser (>= 3.2.0.0)
175
175
  rainbow (>= 2.2.2, < 4.0)
176
176
  regexp_parser (>= 1.8, < 3.0)
177
177
  rexml (>= 3.2.5, < 4.0)
178
- rubocop-ast (>= 1.23.0, < 2.0)
178
+ rubocop-ast (>= 1.24.1, < 2.0)
179
179
  ruby-progressbar (~> 1.7)
180
- unicode-display_width (>= 1.4.0, < 3.0)
181
- rubocop-ast (1.24.0)
180
+ unicode-display_width (>= 2.4.0, < 3.0)
181
+ rubocop-ast (1.24.1)
182
182
  parser (>= 3.1.1.0)
183
- rubocop-rails (2.17.3)
183
+ rubocop-rails (2.17.4)
184
184
  activesupport (>= 4.2.0)
185
185
  rack (>= 1.1)
186
186
  rubocop (>= 1.33.0, < 2.0)
187
187
  rubocop-rake (0.6.0)
188
188
  rubocop (~> 1.0)
189
- rubocop-rspec (2.15.0)
189
+ rubocop-rspec (2.16.0)
190
190
  rubocop (~> 1.33)
191
191
  ruby-progressbar (1.11.0)
192
192
  thor (1.2.1)
193
193
  timeout (0.3.0)
194
194
  tzinfo (2.0.5)
195
195
  concurrent-ruby (~> 1.0)
196
- unicode-display_width (2.3.0)
196
+ unicode-display_width (2.4.2)
197
197
  webrick (1.7.0)
198
198
  websocket-driver (0.7.5)
199
199
  websocket-extensions (>= 0.1.0)
@@ -50,7 +50,7 @@ module CrownMarketplaceUtils::Helpers
50
50
  # @param govuk_breadcrumb_item [Hash] a hash containg options for the breadcrumb item
51
51
  #
52
52
  # @option govuk_breadcrumb_item [String] :text the text for the link
53
- # @option govuk_breadcrumb_item [String] :link the URI for the link. If blank it is assumed that this item relates to current page
53
+ # @option govuk_breadcrumb_item [String] :href the URI for the link. If blank it is assumed that this item relates to current page
54
54
  # @option govuk_breadcrumb_item [Hash] :attributes any additional attributes that will added as part of the HTML.
55
55
  # If the link is blank then it defaults to +{ aria: { current: 'page' } }+
56
56
  #
@@ -59,9 +59,9 @@ module CrownMarketplaceUtils::Helpers
59
59
  def govuk_breadcrumb_link(govuk_breadcrumb_item)
60
60
  govuk_breadcrumb_item[:attributes] ||= {}
61
61
 
62
- if govuk_breadcrumb_item[:link].present?
62
+ if govuk_breadcrumb_item[:href].present?
63
63
  tag.li(class: 'govuk-breadcrumbs__list-item', **govuk_breadcrumb_item[:attributes]) do
64
- link_to govuk_breadcrumb_item[:text], govuk_breadcrumb_item[:link], class: 'govuk-breadcrumbs__link'
64
+ link_to govuk_breadcrumb_item[:text], govuk_breadcrumb_item[:href], class: 'govuk-breadcrumbs__link'
65
65
  end
66
66
  else
67
67
  (govuk_breadcrumb_item[:attributes][:aria] ||= {}).merge!({ current: 'page' })
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CrownMarketplaceUtils
4
- VERSION = '0.1.0.beta.5'
4
+ VERSION = '0.1.0.beta.6'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crown_marketplace_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.beta.5
4
+ version: 0.1.0.beta.6
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: 2022-12-16 00:00:00.000000000 Z
11
+ date: 2023-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview