i18n_screwdriver 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/i18n_screwdriver.rb +2 -2
- data/lib/i18n_screwdriver/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa74a6062e9864af1bb45c22d657f7957f9dbc40
|
4
|
+
data.tar.gz: 028c089def491881debbc089ab1ea2147bbb39ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db9824837d925ad5f78fa884cf91f89e881d4bfe9e23fdb5591c0f2b33289df450c6b66c1386d9dc141d4af0ce76b66283d31b2c4bc2c861b31d68514264db5c
|
7
|
+
data.tar.gz: d9c7ae8651ae29c68a1958ef3249a10b7a3596e7af6698b1f9ac031c3a40e2e814586d0695dd22fac989e222c237d1d07139540e5341fad342e8e72904ad327d
|
data/lib/i18n_screwdriver.rb
CHANGED
@@ -29,8 +29,8 @@ module I18nScrewdriver
|
|
29
29
|
|
30
30
|
def self.grab_texts_to_be_translated(string)
|
31
31
|
[].tap do |texts|
|
32
|
-
texts.concat(string.scan(/_\("(.*?)"\)/).map{ |v| unescape_string(v[0]) })
|
33
|
-
texts.concat(string.scan(/_\('(.*?)'\)/).map{ |v| unescape_string(v[0]) })
|
32
|
+
texts.concat(string.scan(/_\((?<!\\)"(.*?)(?<!\\)"\)/).map{ |v| unescape_string(v[0]) })
|
33
|
+
texts.concat(string.scan(/_\((?<!\\)'(.*?)(?<!\\)'\)/).map{ |v| unescape_string(v[0]) })
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n_screwdriver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Miesel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-11-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
79
|
version: '0'
|
80
80
|
requirements: []
|
81
81
|
rubyforge_project: i18n_screwdriver
|
82
|
-
rubygems_version: 2.
|
82
|
+
rubygems_version: 2.1.9
|
83
83
|
signing_key:
|
84
84
|
specification_version: 4
|
85
85
|
summary: make translating with rails i18n fun again
|