aigu 1.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f139727dc870d7af72ca5a7158f82b862ab845d0
4
- data.tar.gz: e08a5d627d246fc8a683e10bca1b0d92c6c3255d
3
+ metadata.gz: ff8b67f02dc5d0a485ab77004ccc75ac69c96a42
4
+ data.tar.gz: d7d137ed8113e1d53da193b41ba40dd84349257b
5
5
  SHA512:
6
- metadata.gz: 408822e9bbe23a275efa973102e9ee0dbbeface4f27c9483b80632b7f367cef9a9cd1acb249de36c905bd6499fc0e5e6b9b2491d8dbbc3b96efcaf30fdaa9ac3
7
- data.tar.gz: 93567c83ec12858ab34e243887f8b711f03d597f596d83531bcc5c8bb17b7f5d5a5e6944ad400552ed2cdcefe2f972649641167cf7a76e041c9e3c9933729cf8
6
+ metadata.gz: da2c5d8d190df874f33e35ffebc18b544e927e429241ae2f52472027ac5fc2d31bb58339455b3ee5d973f9de2f9596ede1953b1222ffc67a86c6d57558b3f9d9
7
+ data.tar.gz: 20a3f3711151be9c32c0582509c11b8b848b24c876ada354457ce025a1ac6a5c6a6631f396ded5acc8eec420c25247d411b01e79c942b701ae4db698a70736c3
@@ -18,8 +18,7 @@ module Aigu
18
18
  return nil unless content
19
19
 
20
20
  root_key = file.match(/translations\.([a-z]+)\.json/)[1]
21
-
22
- base_key = file.gsub(input_directory, '').gsub(/^\//, '').gsub(/[a-z]+\/translations\.[a-z]+\.json$/, "__LOCALE__/translations.#{root_key}.json|")
21
+ base_key = file.gsub(/^#{input_directory}/, '').gsub(/^\//, '').gsub(/[a-z]+\/translations\.[a-z]+\.json$/, "__LOCALE__/translations.#{root_key}.json|")
23
22
 
24
23
  content = flattenize_hash(content, base_key)
25
24
 
@@ -35,7 +34,7 @@ module Aigu
35
34
 
36
35
  return nil unless content
37
36
 
38
- base_key = file.gsub(input_directory, '').gsub(/^\//, '').gsub(/\/translations.#{locale}.json$/, '/translations.__LOCALE__.json|')
37
+ base_key = file.gsub(/^#{input_directory}/, '').gsub(/^\//, '').gsub(/\/translations.#{locale}.json$/, '/translations.__LOCALE__.json|')
39
38
 
40
39
  content = flattenize_hash(content, base_key)
41
40
 
@@ -1,3 +1,3 @@
1
1
  module Aigu
2
- VERSION = '1.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aigu
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rémi Prévost
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-04-20 00:00:00.000000000 Z
12
+ date: 2017-05-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler