tr4n5l4te 0.1.9 → 0.1.10

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: 45d5c65129cb215f8944b57099506e55d8d52de535b72aaad71d2307a3fda211
4
- data.tar.gz: 6a6415d824135ab7135799dc94ac67df1643a00ec942b5ac72df56fb4fa5e5ec
3
+ metadata.gz: 5628a5c8a6bdbe6d6ace4af5ae7219aca724ab217578bda9266381cedc7b5359
4
+ data.tar.gz: fce1e1f205dfaf0054eadcc79b9c6add8607e84d384b94247305806ae8e757bc
5
5
  SHA512:
6
- metadata.gz: f7e4c5013a566196776e9baf20aa9aa9b901dd941c80098a591cd5c8bf14a521aa057ab536822af225a6939ebd7c87dd8339feb2a2b2385fe84d220e0fad591f
7
- data.tar.gz: 5d6b0d6f2d60d048c3136155bafba29620a959dcafc2f3b02d0ba624a962580b8654f3036572a25fe1507fab44a8b6dab1cc421cb405fb70d793c291b6f24d6b
6
+ metadata.gz: c7884c55e6723c27eb2cb74107bec48b1dbbeca9a2386562ae94052f798d53d4315d73356002353259ed7c48497a481cb62b4888088992ac86723ab1e4e3042f
7
+ data.tar.gz: 9878365b79bb5c5c4c680e2077fb2c0a967d5ac708ba4e031f03f16fc712d6c099e55122beb3003ed6e1f9d803223d9311d969a65d2b93c030e6f03f66eef3ba
data/.gitignore CHANGED
@@ -9,3 +9,5 @@
9
9
  test.html
10
10
  /vendor
11
11
  /stubs
12
+ /node_modules/
13
+ yarn.lock
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ *0.1.10* (March 09, 2021)
2
+
3
+ * Accomodate latest changes to the web interface.
4
+
1
5
  *0.1.9* (March 05, 2020)
2
6
 
3
7
  * The top-level primary language key was being propagated from the source .yml file to the translated target .yml file. That is now fixed.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tr4n5l4te (0.1.9)
4
+ tr4n5l4te (0.1.10)
5
5
  capybara (~> 2.6)
6
6
  colored (~> 1)
7
7
  midwire_common (~> 0.1)
@@ -13,7 +13,7 @@ GEM
13
13
  specs:
14
14
  addressable (2.7.0)
15
15
  public_suffix (>= 2.0.2, < 5.0)
16
- ast (2.4.0)
16
+ ast (2.4.2)
17
17
  capybara (2.18.0)
18
18
  addressable
19
19
  mini_mime (>= 0.1.3)
@@ -22,23 +22,20 @@ GEM
22
22
  rack-test (>= 0.5.4)
23
23
  xpath (>= 2.0, < 4.0)
24
24
  cliver (0.3.2)
25
- coderay (1.1.2)
25
+ coderay (1.1.3)
26
26
  colored (1.2)
27
- diff-lcs (1.3)
28
- docile (1.3.2)
29
- jaro_winkler (1.5.4)
30
- json (2.3.0)
27
+ diff-lcs (1.4.4)
28
+ docile (1.3.5)
31
29
  method_source (0.9.2)
32
30
  midwire_common (0.3.0)
33
31
  thor (~> 0.19)
34
32
  mini_mime (1.0.2)
35
- mini_portile2 (2.4.0)
36
- nokogiri (1.10.8)
37
- mini_portile2 (~> 2.4.0)
38
- optimist (3.0.0)
39
- parallel (1.19.1)
40
- parser (2.7.0.2)
41
- ast (~> 2.4.0)
33
+ nokogiri (1.11.1-x86_64-darwin)
34
+ racc (~> 1.4)
35
+ optimist (3.0.1)
36
+ parallel (1.20.1)
37
+ parser (3.0.0.0)
38
+ ast (~> 2.4.1)
42
39
  poltergeist (1.18.1)
43
40
  capybara (>= 2.1, < 4)
44
41
  cliver (~> 0.3.1)
@@ -48,43 +45,51 @@ GEM
48
45
  method_source (~> 0.9.0)
49
46
  pry-nav (0.3.0)
50
47
  pry (>= 0.9.10, < 0.13.0)
51
- public_suffix (4.0.3)
52
- rack (2.1.1)
48
+ public_suffix (4.0.6)
49
+ racc (1.5.2)
50
+ rack (2.2.3)
53
51
  rack-test (1.1.0)
54
52
  rack (>= 1.0, < 3)
55
53
  rainbow (3.0.0)
56
- rake (13.0.1)
57
- rspec (3.9.0)
58
- rspec-core (~> 3.9.0)
59
- rspec-expectations (~> 3.9.0)
60
- rspec-mocks (~> 3.9.0)
61
- rspec-core (3.9.1)
62
- rspec-support (~> 3.9.1)
63
- rspec-expectations (3.9.0)
54
+ rake (13.0.3)
55
+ regexp_parser (2.1.1)
56
+ rexml (3.2.4)
57
+ rspec (3.10.0)
58
+ rspec-core (~> 3.10.0)
59
+ rspec-expectations (~> 3.10.0)
60
+ rspec-mocks (~> 3.10.0)
61
+ rspec-core (3.10.1)
62
+ rspec-support (~> 3.10.0)
63
+ rspec-expectations (3.10.1)
64
64
  diff-lcs (>= 1.2.0, < 2.0)
65
- rspec-support (~> 3.9.0)
66
- rspec-mocks (3.9.1)
65
+ rspec-support (~> 3.10.0)
66
+ rspec-mocks (3.10.2)
67
67
  diff-lcs (>= 1.2.0, < 2.0)
68
- rspec-support (~> 3.9.0)
69
- rspec-support (3.9.2)
70
- rubocop (0.79.0)
71
- jaro_winkler (~> 1.5.1)
68
+ rspec-support (~> 3.10.0)
69
+ rspec-support (3.10.2)
70
+ rubocop (1.11.0)
72
71
  parallel (~> 1.10)
73
- parser (>= 2.7.0.1)
72
+ parser (>= 3.0.0.0)
74
73
  rainbow (>= 2.2.2, < 4.0)
74
+ regexp_parser (>= 1.8, < 3.0)
75
+ rexml
76
+ rubocop-ast (>= 1.2.0, < 2.0)
75
77
  ruby-progressbar (~> 1.7)
76
- unicode-display_width (>= 1.4.0, < 1.7)
77
- ruby-progressbar (1.10.1)
78
- simplecov (0.17.1)
78
+ unicode-display_width (>= 1.4.0, < 3.0)
79
+ rubocop-ast (1.4.1)
80
+ parser (>= 2.7.1.5)
81
+ ruby-progressbar (1.11.0)
82
+ simplecov (0.21.2)
79
83
  docile (~> 1.1)
80
- json (>= 1.8, < 3)
81
- simplecov-html (~> 0.10.0)
82
- simplecov-html (0.10.2)
84
+ simplecov-html (~> 0.11)
85
+ simplecov_json_formatter (~> 0.1)
86
+ simplecov-html (0.12.3)
87
+ simplecov_json_formatter (0.1.2)
83
88
  thor (0.20.3)
84
- unicode-display_width (1.6.0)
85
- websocket-driver (0.7.1)
89
+ unicode-display_width (2.0.0)
90
+ websocket-driver (0.7.3)
86
91
  websocket-extensions (>= 0.1.0)
87
- websocket-extensions (0.1.4)
92
+ websocket-extensions (0.1.5)
88
93
  xpath (3.2.0)
89
94
  nokogiri (~> 1.8)
90
95
 
@@ -92,7 +97,7 @@ PLATFORMS
92
97
  ruby
93
98
 
94
99
  DEPENDENCIES
95
- bundler (~> 2.0.1)
100
+ bundler (~> 2.1)
96
101
  pry-nav
97
102
  rake (~> 13.0)
98
103
  rspec (~> 3.0)
@@ -101,4 +106,4 @@ DEPENDENCIES
101
106
  tr4n5l4te!
102
107
 
103
108
  BUNDLED WITH
104
- 2.0.1
109
+ 2.1.4
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Tr4n5l4te
2
2
 
3
- **Version: 0.1.9**
3
+ **Version: 0.1.10**
4
4
 
5
5
  Use Google Translate without an API key.
6
6
 
@@ -30,10 +30,10 @@ In your code:
30
30
 
31
31
  ```ruby
32
32
  translator = Tr4n5l4te::Translator.new
33
- english_strings = %w(
34
- hello
35
- how are you
36
- )
33
+ english_strings = [
34
+ 'hello'
35
+ 'how are you'
36
+ ]
37
37
  english_strings.each do |text|
38
38
  puts translator.translate(text, :en, :es)
39
39
  end
@@ -65,7 +65,7 @@ Warning: If you pass in '0' and translate a large file, it is very likely that G
65
65
 
66
66
  To list all known languages
67
67
 
68
- $ ./exe/translate -t
68
+ $ ./exe/translate --list
69
69
 
70
70
  ## Development
71
71
 
@@ -18,10 +18,10 @@ module Tr4n5l4te
18
18
  return '' if encoded_text == ''
19
19
 
20
20
  smart_visit(translator_url(encoded_text, from_lang, to_lang))
21
- result_box = browser.find('.tlid-translation')
21
+ result_box = browser.find('.JLqJ4b.ChMk0b > span:first-child')
22
22
  postprocess(result_box.text)
23
23
  rescue Capybara::Ambiguous
24
- all_translations = browser.find_all('.tlid-translation')
24
+ all_translations = browser.find_all('.JLqJ4b.ChMk0b > span:first-child')
25
25
  multiples = all_translations.collect(&:text)
26
26
  puts("WARNING: '#{text}' has multiple translations: [#{multiples.join(', ')}]")
27
27
  text
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tr4n5l4te
4
- VERSION = '0.1.9'.freeze
4
+ VERSION = '0.1.10'.freeze
5
5
  end
data/tr4n5l4te.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ['lib']
22
22
 
23
- spec.add_development_dependency 'bundler', '~> 2.0.1'
23
+ spec.add_development_dependency 'bundler', '~> 2.1'
24
24
  spec.add_development_dependency 'pry-nav'
25
25
  spec.add_development_dependency 'rake', '~> 13.0'
26
26
  spec.add_development_dependency 'rspec', '~> 3.0'
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.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Blackburn
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-06 00:00:00.000000000 Z
11
+ date: 2021-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.1
19
+ version: '2.1'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.0.1
26
+ version: '2.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pry-nav
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -203,7 +203,7 @@ homepage: https://github.com/midwire/tr4n5l4te
203
203
  licenses:
204
204
  - MIT
205
205
  metadata: {}
206
- post_install_message:
206
+ post_install_message:
207
207
  rdoc_options: []
208
208
  require_paths:
209
209
  - lib
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  version: '0'
220
220
  requirements: []
221
221
  rubygems_version: 3.0.3
222
- signing_key:
222
+ signing_key:
223
223
  specification_version: 4
224
224
  summary: Use Google Translate without an API key.
225
225
  test_files: []