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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68e70d72463c9a6e8501b921f1b868f1e373d8f5d93e902f65a26b2af44c4b3a
|
4
|
+
data.tar.gz: 943f467cda91c512687f304a2fb9549a26dab9c61330da8ef9daa83fe4919eb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
109
|
-
address
|
110
|
-
address
|
111
|
-
address
|
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(
|
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
|
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.
|
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
|
+
date: 2024-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|