easy_translate 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/easy_translate/request.rb +1 -1
- data/lib/easy_translate/translation.rb +2 -0
- data/lib/easy_translate/version.rb +1 -1
- metadata +5 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc42a67dbc77615111fadfe7e35dc2ed65c72148
|
4
|
+
data.tar.gz: 629842ec7b8e4dd08d5a53169e29b0f7f08e80d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfe3e38981eb1003583a65720823e8160f477ebee17fad18078b936a6e8407dfb28a6ca7a491f1f02af43b914cff8aefc2c6734f7de538b8d7f8a476f6d29fe4
|
7
|
+
data.tar.gz: '0439a0871adf41762f7630f1a18ce0e110411cff3290fee0ceb76e82159d1022b1351de91c338dbe2b29afb414c09e78fc0e14b6c74f8dae8848126c4e8c0013'
|
@@ -50,6 +50,7 @@ module EasyTranslate
|
|
50
50
|
self.html = options.delete(:html)
|
51
51
|
@source = options.delete(:from)
|
52
52
|
@target = options.delete(:to)
|
53
|
+
@model = options.delete(:model)
|
53
54
|
raise ArgumentError.new('No target language provided') unless @target
|
54
55
|
raise ArgumentError.new('Support for multiple targets dropped in V2') if @target.is_a?(Array)
|
55
56
|
@http_options = http_options
|
@@ -67,6 +68,7 @@ module EasyTranslate
|
|
67
68
|
params = super || {}
|
68
69
|
params[:source] = lang(@source) unless @source.nil?
|
69
70
|
params[:target] = lang(@target) unless @target.nil?
|
71
|
+
params[:model] = @model unless @model.nil?
|
70
72
|
params[:format] = @format unless @format.nil?
|
71
73
|
params.merge! @options if @options
|
72
74
|
params
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_translate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Crepezzi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: json
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: thread
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,7 +70,8 @@ files:
|
|
84
70
|
- lib/easy_translate/version.rb
|
85
71
|
- spec/spec_helper.rb
|
86
72
|
homepage: https://github.com/seejohnrun/easy_translate
|
87
|
-
licenses:
|
73
|
+
licenses:
|
74
|
+
- MIT
|
88
75
|
metadata: {}
|
89
76
|
post_install_message:
|
90
77
|
rdoc_options: []
|
@@ -102,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
89
|
version: '0'
|
103
90
|
requirements: []
|
104
91
|
rubyforge_project:
|
105
|
-
rubygems_version: 2.
|
92
|
+
rubygems_version: 2.6.14
|
106
93
|
signing_key:
|
107
94
|
specification_version: 4
|
108
95
|
summary: Google Translate API Wrapper for Ruby
|