extract_i18n 0.7.0 → 0.7.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
  SHA256:
3
- metadata.gz: d821da5a501918ce7aab427aeeb58ba4da863e1f87b4d846e256753301f55fcc
4
- data.tar.gz: ab6d26c92aa2ae78d15fe1e802fb6024febf78d281c07117e6b0793aa369a997
3
+ metadata.gz: b07a5d16f12025d3ec37464e566fcfaaa28869abce178cc2f3db62010951f0b3
4
+ data.tar.gz: 8a65883b89111f03030b589e08f04d12a4c23ee37a7a9009089d7e63b998f712
5
5
  SHA512:
6
- metadata.gz: 396e63617070e13ee79c0353e5c847289d19e9b7643d6897ea14af84740b86232759ff4edea52584431b713eb4c4d1a7b8f30fe734ab936a95b06860af909233
7
- data.tar.gz: 5808700e8db2e02eea5f62c04804d68613ed8a2f711ca71976a3acd4c0eda04a1ab57fbb77bb61f44554ab8d16142451507fa8588df7451a8e5f34abde02f340
6
+ metadata.gz: 930d23f1f06983629af272f6e28e70414b3e7b9038450ffb8cb58c0009e004e348abd28d48824f8c5c9a815607f1dc11e546656f3c3d23276c3fafd94d5bcbc9
7
+ data.tar.gz: e018ee20e8e1e676ef425e9e7ec6d8104f5461c38af015e91790293f1ebea3f9747e4f65894af5e0a2a56f374689ee43eb5de3aeea0c43b26d4f4e295d941bee
@@ -1,3 +1,3 @@
1
1
  module ExtractI18n
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
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{^/|/$}, ''). # remove leading and trailing slashes
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('/_', '.').
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: extract_i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Wienert