mygengo 1.7 → 1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mygengo-ruby/api_handler.rb +4 -3
- data/lib/mygengo.rb +1 -1
- metadata +21 -30
@@ -28,7 +28,7 @@ module MyGengo
|
|
28
28
|
:private_key => '',
|
29
29
|
:api_version => '1.1',
|
30
30
|
:sandbox => false,
|
31
|
-
:user_agent => "myGengo Ruby Library
|
31
|
+
:user_agent => "myGengo Ruby Library; Version #{MyGengo::Config::VERSION}; http://mygengo.com/;",
|
32
32
|
:debug => false,
|
33
33
|
}.merge(opts)
|
34
34
|
|
@@ -229,9 +229,10 @@ module MyGengo
|
|
229
229
|
def getTranslationJobs(params = {})
|
230
230
|
if params[:ids] and params[:ids].kind_of?(Array)
|
231
231
|
params[:ids] = params[:ids].map { |i| i.to_s() }.join(',')
|
232
|
+
self.get_from_mygengo('translate/jobs/:ids'.gsub(':ids', params.delete(:ids)))
|
233
|
+
else
|
234
|
+
self.get_from_mygengo('translate/jobs', params)
|
232
235
|
end
|
233
|
-
|
234
|
-
self.get_from_mygengo('translate/jobs', params)
|
235
236
|
end
|
236
237
|
|
237
238
|
# Pulls a group of jobs that were previously submitted together.
|
data/lib/mygengo.rb
CHANGED
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mygengo
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '1.8'
|
4
5
|
prerelease:
|
5
|
-
version: "1.7"
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Ryan McGrath <ryan@mygengo.com>
|
9
9
|
- Matthew Romaine
|
10
10
|
- Kim Alhstrom
|
@@ -12,53 +12,44 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
|
16
|
-
date: 2012-01-05 00:00:00 -05:00
|
17
|
-
default_executable:
|
15
|
+
date: 2012-04-09 00:00:00.000000000 Z
|
18
16
|
dependencies: []
|
19
|
-
|
20
|
-
|
17
|
+
description: myGengo is a service that offers various translation APIs, both machine
|
18
|
+
and high quality human-sourced. The mygengo gem lets you interface with the myGengo
|
19
|
+
REST API (http://mygengo.com/services/api/dev-docs/).
|
21
20
|
email: ryan@mygengo.com
|
22
21
|
executables: []
|
23
|
-
|
24
22
|
extensions: []
|
25
|
-
|
26
23
|
extra_rdoc_files: []
|
27
|
-
|
28
|
-
files:
|
24
|
+
files:
|
29
25
|
- lib/mygengo-ruby/api_handler.rb
|
30
26
|
- lib/mygengo-ruby/mygengo_exception.rb
|
31
27
|
- lib/mygengo.rb
|
32
28
|
- licenses/LICENSE.txt
|
33
29
|
- Rakefile
|
34
30
|
- README.md
|
35
|
-
has_rdoc: true
|
36
31
|
homepage: http://mygengo.com/services/api/dev-docs/
|
37
32
|
licenses: []
|
38
|
-
|
39
33
|
post_install_message:
|
40
34
|
rdoc_options: []
|
41
|
-
|
42
|
-
require_paths:
|
35
|
+
require_paths:
|
43
36
|
- lib
|
44
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
37
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
45
38
|
none: false
|
46
|
-
requirements:
|
47
|
-
- -
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version:
|
50
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ! '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
43
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
44
|
none: false
|
52
|
-
requirements:
|
53
|
-
- -
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version:
|
45
|
+
requirements:
|
46
|
+
- - ! '>='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
56
49
|
requirements: []
|
57
|
-
|
58
50
|
rubyforge_project:
|
59
|
-
rubygems_version: 1.
|
51
|
+
rubygems_version: 1.8.21
|
60
52
|
signing_key:
|
61
53
|
specification_version: 3
|
62
54
|
summary: A library for interfacing with the myGengo Translation API.
|
63
55
|
test_files: []
|
64
|
-
|