defra_ruby_companies_house 1.0.0 → 1.0.2

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: b916c7f7519769a21a038a9f8aad59c9bac9fe370c0d97c39679722f80c21ed0
4
- data.tar.gz: 23c12287100df332cf28a65a1f82600d73f75f0ef0c1ad255828a632356f4804
3
+ metadata.gz: 68e70d72463c9a6e8501b921f1b868f1e373d8f5d93e902f65a26b2af44c4b3a
4
+ data.tar.gz: 943f467cda91c512687f304a2fb9549a26dab9c61330da8ef9daa83fe4919eb9
5
5
  SHA512:
6
- metadata.gz: 55feda28269d6f06426f2adaaf9a502e0c60a29cba2413e4d48740595c5ab03dff94fa70aa994af05e80bf5b34412bbf0e63bac09661eb6e1dfc474ed6666195
7
- data.tar.gz: d6d45480e0aac478a41a27496fa8b4d34f4ba17671c83970abd0097815a061b094f7759fd85406238a273b3ae263e074122fa54fad4fad0cff878c5d9c6aea22
6
+ metadata.gz: 35bd325462130cbeb09c5447066645540a78d1700b213867156a23e4e4180c191b82701ea62d15a7f9df4adfb81ced7c39832f907bd2b9d500aa95fe01fa767d
7
+ data.tar.gz: e8bf0259383dd718b436146681133fbbb422ed7a3fa3bcec2210f2257dfe8685bdfdd847fb9d1ccba563c478e610d789f6a4c6916cfd1d0a90e64233c0b14a1e
@@ -105,10 +105,10 @@ module DefraRuby
105
105
  address = companies_house_api_response[:registered_office_address]
106
106
 
107
107
  [
108
- address[:address_line_1],
109
- address[:address_line_2],
110
- address[:locality],
111
- address[:postal_code]
108
+ address&.dig(:address_line_1),
109
+ address&.dig(:address_line_2),
110
+ address&.dig(:locality),
111
+ address&.dig(:postal_code)
112
112
  ].compact
113
113
  end
114
114
  # rubocop:enable Naming/VariableNumber
@@ -12,7 +12,7 @@ module DefraRuby
12
12
  # This means values in the host app can override those in the engine
13
13
  config.before_initialize do
14
14
  # engine_locales = Dir["#{config.root}/config/locales/**/*.yml"]
15
- engine_locales = Dir.glob( File.dirname(__FILE__) + "lib/locales/*.{rb,yml}" )
15
+ engine_locales = Dir.glob("#{File.dirname(__FILE__)}lib/locales/*.{rb,yml}")
16
16
  config.i18n.load_path = engine_locales + config.i18n.load_path
17
17
  end
18
18
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module DefraRuby
4
4
  module CompaniesHouse
5
- VERSION = "1.0.0"
5
+ VERSION = "1.0.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: defra_ruby_companies_house
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Defra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-21 00:00:00.000000000 Z
11
+ date: 2024-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n