extract_i18n 0.4.0 → 0.5.0

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: e096f991f890e9173c84d6e243be7eb37471214d45b10c78b371d00cd655559c
4
- data.tar.gz: 5d4094b82db8a575f16398eee06f89e41e588fecde0e00c60a12c74b62692228
3
+ metadata.gz: a0e718931e791745b06662fbf98b56bd9728f24aed2016843ec41b94bc77f466
4
+ data.tar.gz: 85fbfbfd1104dbce0a49e6898180c01f5ab9d3fb7ce1d282e1939ece01501114
5
5
  SHA512:
6
- metadata.gz: dd60db2f7d6dcccf61af954e2c93dce5d7db2be2571a6b53bc299dab47541d3bbb16ce55422c7c36cbc915395ce166fd6c52bddad5f9d6f1dd5cd4acf0b06f94
7
- data.tar.gz: 73e063ef3162a6dc09f0de306fce9aadb07b2291fc8452c83cae1342915dcd5030894ba913d6f4c5825e6b3f8cf9aeee94dc0d3d7b8a33738d3cab4d0ec80681
6
+ metadata.gz: 8822e7f750d327573964307a97f2e0d461a81efc5e66e721724611399cb2093fce8312c2cd3a733d95c9321c7715e784c265b924966b2140d86c1daeb533bdbf
7
+ data.tar.gz: ba1604c2e7f384d63effe8bc451b0004adb8c33c4ed9a5552115718bea8c09cc5c5f9923c9409a39fec85cb35ab4607e3e7a8b1e2fcfbf1932742a06759230c4
@@ -21,7 +21,8 @@ module ExtractI18n
21
21
  self.ignore_functions = %w[where order group select sql]
22
22
  self.ignorelist = [
23
23
  '_',
24
- '::'
24
+ '::',
25
+ %r{^/}
25
26
  ]
26
27
  self.html_fields_with_plaintext = %w[title placeholder alt label aria-label modal-title]
27
28
 
@@ -23,8 +23,8 @@ module ExtractI18n
23
23
  append: /(?<html_tag>append:\s*)/,
24
24
  label: /(?<html_tag>[a-z]*_?label:\s*)/,
25
25
  optionals: /(?<html_tag>(default|include_blank|alt):\s*)/,
26
- input: /(?<html_tag>[a-z]*\.?input:?\s*)/,
27
- button: /(?<html_tag>[a-z]*\.?button:?\s*(\:[a-z]+\s*,\s*)?)/,
26
+ input: /(?<html_tag>[a-z]*\.?input:\s*)/,
27
+ button: /(?<html_tag>[a-z]*\.?button:\s*(\:[a-z]+\s*,\s*)?)/,
28
28
  tag: /(?<html_tag>(submit|content)_tag[\:\(]?\s*)/,
29
29
  data_naive: /(?<html_tag>data:\s*\{\s*(confirm|content):\s*)/
30
30
  }.freeze
@@ -70,7 +70,7 @@ module ExtractI18n
70
70
  end
71
71
 
72
72
  def increment_key!
73
- if @key[-1][/(.*)([0-9]+)$/]
73
+ if @key[/(.+)([0-9]+)$/]
74
74
  rest = $1
75
75
  number = $2.to_i
76
76
  else
@@ -1,3 +1,3 @@
1
1
  module ExtractI18n
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: extract_i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Wienert
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-18 00:00:00.000000000 Z
11
+ date: 2020-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri