i18n_screwdriver 9.1 → 9.2

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
  SHA1:
3
- metadata.gz: 4187fa1c5868d21038c0b669bfe9e1eef63b86bc
4
- data.tar.gz: a40116b32db9f7b95d9c2b48e0c271c1353fbe54
3
+ metadata.gz: dbe8ce60e602808de3bed486e4996074699f1081
4
+ data.tar.gz: 0166cae973e6c9729c45d92e8c1ded33a3bd61be
5
5
  SHA512:
6
- metadata.gz: 5a1af2f44c3dedde05c92cab358ef16da06798cfacfe0ff7ee14958d8f767803377b68d57648c36b561f55414a5f0a0034f779bb61a66264b0498f62b37fce2e
7
- data.tar.gz: 03f5ddcb42e51b078e01918d8e7e986decde909d15cc1da696d47ddd04fad8ecd07cfcbd9c8d06dfd4ee5b11c5e9bedf7ef320a722063045d02f431ca1e54bdb
6
+ metadata.gz: 85676b094e7a2cae208da19d6cea5ede7ade91f3700c0de117aaa25c2d3443414a1f5a463483d81af00beff8a9e4a7b4e04e4a15a2cda00fe2a45b43e7b53a49
7
+ data.tar.gz: 3a8306d4671148b31eb6d1002bdf9591bddea00fa8a71b407b43e316d52b513afce18f07b5a6c392ca8f7d3948c62b9c9782bba8c0ed71890f563b53bcac8915
@@ -1,3 +1,3 @@
1
1
  module I18nScrewdriver
2
- VERSION = "9.1"
2
+ VERSION = "9.2"
3
3
  end
@@ -49,6 +49,7 @@ module I18nScrewdriver
49
49
  [].tap do |texts|
50
50
  texts.concat(string.scan(/\bI18n\.screw\(?\s*(?<!\\)"(.*?)(?<!\\)"/).map{ |v| unescape_string(v[0]) })
51
51
  texts.concat(string.scan(/\bI18n\.screw\(?\s*(?<!\\)'(.*?)(?<!\\)'/).map{ |v| unescape_string(v[0]) })
52
+ texts.concat(string.scan(/\bI18n\.screw\(?\s*(?<!\\)`(.*?)(?<!\\)`/).map{ |v| unescape_string(v[0]) })
52
53
  end
53
54
  end
54
55
 
@@ -14,6 +14,11 @@ describe I18nScrewdriver do
14
14
  expect(I18nScrewdriver.grab_js_texts_to_be_translated(%|=I18n.screw('Hi %{name}!', name: "gucki")|)).to eq(["Hi %{name}!"])
15
15
  expect(I18nScrewdriver.grab_js_texts_to_be_translated(%|=I18n.screw 'test!'|)).to eq(["test!"])
16
16
  expect(I18nScrewdriver.grab_js_texts_to_be_translated(%|=I18n.screw 'Hi %{name}!', name: "gucki"|)).to eq(["Hi %{name}!"])
17
+
18
+ expect(I18nScrewdriver.grab_js_texts_to_be_translated(%|=I18n.screw(`test!`)|)).to eq(["test!"])
19
+ expect(I18nScrewdriver.grab_js_texts_to_be_translated(%|=I18n.screw( `test!`)|)).to eq(["test!"])
20
+ expect(I18nScrewdriver.grab_js_texts_to_be_translated(%|=I18n.screw(`Hi ${name}!`)"|)).to eq(["Hi ${name}!"])
21
+ expect(I18nScrewdriver.grab_js_texts_to_be_translated(%|=I18n.screw(`Hi %{name}!`, name: "gucki")|)).to eq(["Hi %{name}!"])
17
22
  end
18
23
  end
19
24
  end
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: '9.1'
4
+ version: '9.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Miesel