govuk_design_system_formbuilder 1.1.9 → 1.1.10

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: c93ca87d8428492c19a060bf52d6ff4ec098989107e3bddcecef92e1f4946a72
4
- data.tar.gz: 649bc4fd9d8172e977b9bd79168197a1ed9863639a869fa6db8012f1756b14e0
3
+ metadata.gz: d20300d83e65da38b6ae0b3a20a6e4e1bbdd9d04a9911ecf29829417abe5ba6f
4
+ data.tar.gz: a62f856b0804bc22eacfabcf7c31166651cee64d2dee82d8454b92a693a4b553
5
5
  SHA512:
6
- metadata.gz: ded4f0ba72f2f3a826411ee6b6a3d8e513e98f6f8ad679e528e0841c0f02e974eddeca660c95b2e56a77bd32fa6c4a97f3e487bf8bc8997a8c82abd2ee6c70fd
7
- data.tar.gz: 5c52fe93ff53076d3c97b3fa15bd0a1dbc6e6f39bfa69eb572e1f3cd9961a0e560ff8673d0728129bfbd706553a4e4aba1326ca63a3686765f2b054a948765d2
6
+ metadata.gz: 586414dba6e14f1f4d8f16638b6634c1aedbadf600e4fbaf2ea67fd7bcae93cca3046a247187d08df5a609ceec318526f0effa4183fe8f903288f76926535e0a
7
+ data.tar.gz: 323c190132caefde2e449f6b8f9088fdd13a58a520c166a17c43b35d53bc13c613c770b4fea82efc470ad5c90fdcf0e976226bc61811430ff1e301f5d8e1a66c
@@ -6,7 +6,9 @@ module GOVUKDesignSystemFormBuilder
6
6
  def localised_text(context)
7
7
  key = localisation_key(context)
8
8
 
9
- return nil unless I18n.exists?(key)
9
+ # `I18n.exists?(nil)` returns true when `config.i18n.fallbacks` is
10
+ # enabled, so only proceed if the key is present too
11
+ return nil unless key.present? && I18n.exists?(key)
10
12
 
11
13
  I18n.translate(key)
12
14
  end
@@ -1,3 +1,3 @@
1
1
  module GOVUKDesignSystemFormBuilder
2
- VERSION = '1.1.9'.freeze
2
+ VERSION = '1.1.10'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_design_system_formbuilder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9
4
+ version: 1.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Yates
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-03 00:00:00.000000000 Z
11
+ date: 2020-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3'
61
+ version: '3.7'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3'
68
+ version: '3.7'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: pry
71
71
  requirement: !ruby/object:Gem::Requirement