tr4n5l4te 0.1.10 → 0.1.12

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: 5628a5c8a6bdbe6d6ace4af5ae7219aca724ab217578bda9266381cedc7b5359
4
- data.tar.gz: fce1e1f205dfaf0054eadcc79b9c6add8607e84d384b94247305806ae8e757bc
3
+ metadata.gz: 954010f8de8d82aea0e42aff158589f845ce7c90ad62070823f2237e83445620
4
+ data.tar.gz: 4590211be6847e3727577e40f4f1528c6b42e1013d6e55152797b958044436ee
5
5
  SHA512:
6
- metadata.gz: c7884c55e6723c27eb2cb74107bec48b1dbbeca9a2386562ae94052f798d53d4315d73356002353259ed7c48497a481cb62b4888088992ac86723ab1e4e3042f
7
- data.tar.gz: 9878365b79bb5c5c4c680e2077fb2c0a967d5ac708ba4e031f03f16fc712d6c099e55122beb3003ed6e1f9d803223d9311d969a65d2b93c030e6f03f66eef3ba
6
+ metadata.gz: f11f27204c1e2e85ff05c88e243653a883fcfefb207c13f75aca511298a204999e2172c0e1eed8d50fffe4c16a7c5608003571d4ca0c5d3289ca2e435f5ad7d9
7
+ data.tar.gz: e8532e8eb379618167df35341ac713fd48e40686e6b3a0a8a084909563fe46b44af981c9d40d5dd0dbfc2d0e51b9177a0525e4cf1ba5351b5f894365b6c57c6f
data/CHANGELOG CHANGED
@@ -1,3 +1,11 @@
1
+ *0.1.12* (March 11, 2021)
2
+
3
+ * Dump console message into oblivion, do we don't see stupid warning messages like "Using this console may allow attackers to impersonate you and steal your information using an attack called Self-XSS"
4
+
5
+ *0.1.11* (March 09, 2021)
6
+
7
+ * Disregard case when using variable interpolation.
8
+
1
9
  *0.1.10* (March 09, 2021)
2
10
 
3
11
  * Accomodate latest changes to the web interface.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tr4n5l4te (0.1.10)
4
+ tr4n5l4te (0.1.12)
5
5
  capybara (~> 2.6)
6
6
  colored (~> 1)
7
7
  midwire_common (~> 0.1)
@@ -30,7 +30,9 @@ GEM
30
30
  midwire_common (0.3.0)
31
31
  thor (~> 0.19)
32
32
  mini_mime (1.0.2)
33
- nokogiri (1.11.1-x86_64-darwin)
33
+ mini_portile2 (2.5.0)
34
+ nokogiri (1.11.2)
35
+ mini_portile2 (~> 2.5.0)
34
36
  racc (~> 1.4)
35
37
  optimist (3.0.1)
36
38
  parallel (1.20.1)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Tr4n5l4te
2
2
 
3
- **Version: 0.1.10**
3
+ **Version: 0.1.12**
4
4
 
5
5
  Use Google Translate without an API key.
6
6
 
@@ -31,7 +31,7 @@ In your code:
31
31
  ```ruby
32
32
  translator = Tr4n5l4te::Translator.new
33
33
  english_strings = [
34
- 'hello'
34
+ 'hello',
35
35
  'how are you'
36
36
  ]
37
37
  english_strings.each do |text|
@@ -10,7 +10,9 @@ module Tr4n5l4te
10
10
  app,
11
11
  js_errors: false,
12
12
  timeout: Tr4n5l4te.configuration.timeout,
13
- phantomjs_options: ['--load-images=no']
13
+ phantomjs_options: ['--load-images=no', '--ignore-ssl-errors=yes', '--web-security=false'],
14
+ phantomjs_logger: StringIO.new,
15
+ logger: StringIO.new
14
16
  )
15
17
  end
16
18
  Capybara.default_driver = :poltergeist
@@ -40,7 +40,7 @@ module Tr4n5l4te
40
40
 
41
41
  def postprocess(text)
42
42
  @interpolations.each_with_index do |interp, ndx|
43
- stub = /VAR#{ndx}/
43
+ stub = /VAR#{ndx}/i
44
44
  text.gsub!(stub, interp)
45
45
  end
46
46
  text
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tr4n5l4te
4
- VERSION = '0.1.10'.freeze
4
+ VERSION = '0.1.12'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tr4n5l4te
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Blackburn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-09 00:00:00.000000000 Z
11
+ date: 2021-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler