google_web_translate 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.travis.yml +1 -1
- data/lib/google_web_translate/api.rb +1 -3
- data/lib/google_web_translate/version.rb +1 -1
- data/lib/js/window.js +5 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 84a0b1e937d840bb96a8f007512e1e5bfa1c7526
|
4
|
+
data.tar.gz: 46b98b62a305a6e723f0e28e26c4829bb5f27d42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b79ccc6480fa43057717ce0005204a50a3089b932a04af5a11190dc8cd1c49e0d10fa834f222a41608221730fbaf973e8396fd3c6c642b20c3a17c91cd2eb3a7
|
7
|
+
data.tar.gz: c47de7745b5e92e91cc5cfca84c2ae5c06c2174106a9c4c682874fbc5bff1ee9887e15da49bf130666cc506fe0f5d7404da0f209298dbc1cb5bcc206f508a780
|
data/.travis.yml
CHANGED
@@ -103,9 +103,7 @@ module GoogleWebTranslate
|
|
103
103
|
|
104
104
|
def tk(string)
|
105
105
|
update_token unless valid_token?
|
106
|
-
@js_context.call('
|
107
|
-
# tk = @js_context.call("wq", string)
|
108
|
-
tk = @js_context.call(@tk_function, string)
|
106
|
+
tk = @js_context.call('generateToken', @tk_function, @tkk, string)
|
109
107
|
(tk.split('=') || [])[1]
|
110
108
|
end
|
111
109
|
|
data/lib/js/window.js
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_web_translate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
174
174
|
version: '0'
|
175
175
|
requirements: []
|
176
176
|
rubyforge_project:
|
177
|
-
rubygems_version: 2.
|
177
|
+
rubygems_version: 2.6.11
|
178
178
|
signing_key:
|
179
179
|
specification_version: 4
|
180
180
|
summary: Text translation using the google web interface
|