extract_i18n 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/extract_i18n/version.rb +1 -1
- data/lib/extract_i18n.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b07a5d16f12025d3ec37464e566fcfaaa28869abce178cc2f3db62010951f0b3
|
4
|
+
data.tar.gz: 8a65883b89111f03030b589e08f04d12a4c23ee37a7a9009089d7e63b998f712
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 930d23f1f06983629af272f6e28e70414b3e7b9038450ffb8cb58c0009e004e348abd28d48824f8c5c9a815607f1dc11e546656f3c3d23276c3fafd94d5bcbc9
|
7
|
+
data.tar.gz: e018ee20e8e1e676ef425e9e7ec6d8104f5461c38af015e91790293f1ebea3f9747e4f65894af5e0a2a56f374689ee43eb5de3aeea0c43b26d4f4e295d941bee
|
data/lib/extract_i18n/version.rb
CHANGED
data/lib/extract_i18n.rb
CHANGED
@@ -44,8 +44,8 @@ module ExtractI18n
|
|
44
44
|
|
45
45
|
def self.file_key(path)
|
46
46
|
path.gsub(strip_path, '').
|
47
|
-
gsub(%r{^/|/$}, '').
|
48
|
-
gsub(/\.[a-z]+$/, ''). # remove file extension
|
47
|
+
gsub(%r{^/|/$}, ''). # remove leading and trailing slashes
|
48
|
+
gsub(/\.[a-z\.]+$/, ''). # remove file extension
|
49
49
|
gsub(/([A-Z\d]+)([A-Z][a-z])/, '\1_\2'). # convert camelcase to underscore
|
50
50
|
gsub(/([a-z\d])([A-Z])/, '\1_\2').
|
51
51
|
gsub('/_', '.').
|