gengo 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0ff0f3938fa56369d49bd3d1b433cf89df456a30
4
+ data.tar.gz: 393640dd5d5048c6cb0d6019da56ac8bb5e386c8
5
+ SHA512:
6
+ metadata.gz: 2afd41658a2d4e95d723c26b1e7e05dc5e5cdbe915640f9d122337556c1384392efaaf0a737ece1fdc79d481cebe9bef969fb9f570174321960e2700adbfeae1
7
+ data.tar.gz: 8ca39ce90ba3c64f7127083e98ae3c051e555d62a14fa74d3d42d0d235e0f2f98f5fced6e431c28a6625f4f1cb096bfed2e85ed10e75111e7b597f126abfb004
@@ -0,0 +1,56 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ gengo (0.0.6)
5
+ json
6
+ mime-types
7
+ multipart-post
8
+
9
+ GEM
10
+ remote: http://rubygems.org/
11
+ specs:
12
+ addressable (2.3.8)
13
+ crack (0.4.2)
14
+ safe_yaml (~> 1.0.0)
15
+ diff-lcs (1.2.5)
16
+ docile (1.1.5)
17
+ json (1.8.2)
18
+ mime-types (2.5)
19
+ multipart-post (2.0.0)
20
+ rack (1.6.0)
21
+ rack-test (0.6.3)
22
+ rack (>= 1.0)
23
+ rake (10.4.2)
24
+ rspec (3.2.0)
25
+ rspec-core (~> 3.2.0)
26
+ rspec-expectations (~> 3.2.0)
27
+ rspec-mocks (~> 3.2.0)
28
+ rspec-core (3.2.3)
29
+ rspec-support (~> 3.2.0)
30
+ rspec-expectations (3.2.1)
31
+ diff-lcs (>= 1.2.0, < 2.0)
32
+ rspec-support (~> 3.2.0)
33
+ rspec-mocks (3.2.1)
34
+ diff-lcs (>= 1.2.0, < 2.0)
35
+ rspec-support (~> 3.2.0)
36
+ rspec-support (3.2.2)
37
+ safe_yaml (1.0.4)
38
+ simplecov (0.10.0)
39
+ docile (~> 1.1.0)
40
+ json (~> 1.8)
41
+ simplecov-html (~> 0.10.0)
42
+ simplecov-html (0.10.0)
43
+ webmock (1.21.0)
44
+ addressable (>= 2.3.6)
45
+ crack (>= 0.3.2)
46
+
47
+ PLATFORMS
48
+ ruby
49
+
50
+ DEPENDENCIES
51
+ gengo!
52
+ rack-test
53
+ rake
54
+ rspec
55
+ simplecov
56
+ webmock
@@ -0,0 +1,32 @@
1
+ # encoding: UTF-8
2
+
3
+ require File.join(File.dirname(__FILE__), 'lib/gengo-ruby/version')
4
+
5
+ Gem::Specification.new do |gs|
6
+ gs.name = "gengo"
7
+ gs.version = Gengo::Config::VERSION
8
+ gs.authors = [
9
+ "Matthew Romaine",
10
+ "Shawn Smith",
11
+ "Issam Zeibak",
12
+ "Alexander Lidé",
13
+ ]
14
+ gs.date = "2015-04-27"
15
+ gs.summary = "A library for interfacing with the Gengo Translation API."
16
+ gs.description = "Gengo is a service that offers various translation APIs, both machine and high quality human-sourced. The Gengo gem lets you interface with the Gengo REST API (http://developers.gengo.com/).Note: previous version of this library can be found at https://rubygems.org/gems/mygengo. All further updates will be made here."
17
+ gs.email = "api@gengo.com"
18
+ gs.homepage = "http://developers.gengo.com"
19
+ gs.files = Dir['lib/**/*.rb', 'licenses/*', 'bin/*', '[A-Z]*', 'test/**/*'].to_a
20
+ gs.has_rdoc = true
21
+ gs.license = 'New BSD'
22
+
23
+ gs.add_dependency('json')
24
+ gs.add_dependency('multipart-post')
25
+ gs.add_dependency('mime-types')
26
+ gs.add_development_dependency 'rspec', '~> 2.7'
27
+ gs.add_development_dependency 'rack-test'
28
+ gs.add_development_dependency 'simplecov'
29
+ gs.add_development_dependency 'webmock'
30
+ end
31
+
32
+ # vim: set fileencoding=utf-8 :
@@ -297,13 +297,6 @@ module Gengo
297
297
  end
298
298
  end
299
299
 
300
- # Pulls a group of jobs that were previously submitted together.
301
- #
302
- # <tt>id</tt> - Required, the ID of a job that you want the batch/group of.
303
- def getTranslationJobBatch(params = {})
304
- self.get_from_gengo('translate/jobs/group/:group_id'.gsub(':group_id', params.delete(:group_id).to_s), params)
305
- end
306
-
307
300
  # Pulls a group of jobs that were previously submitted together.
308
301
  #
309
302
  # <tt>id</tt> - Required, the ID of a job that you want the batch/group of.
@@ -368,15 +361,6 @@ module Gengo
368
361
  self.get_from_gengo('translate/job/:id/revision/:revision_id'.gsub(':id', params.delete(:id).to_s).gsub(':revision_id', params.delete(:rev_id).to_s), params)
369
362
  end
370
363
 
371
- # Returns a preview image for a job.
372
- #
373
- # Options:
374
- # <tt>id</tt> - The ID of the job you want a preview image of.
375
- def getTranslationJobPreviewImage(params = {})
376
- params[:is_download] = true
377
- self.get_from_gengo('translate/job/:id/preview'.gsub(':id', params.delete(:id).to_s), params)
378
- end
379
-
380
364
  # Deletes an order, cancelling all available jobs.
381
365
  #
382
366
  # This method is EXPERIMENTAL
@@ -0,0 +1,5 @@
1
+ module Gengo
2
+ module Config
3
+ VERSION = '0.0.6'
4
+ end
5
+ end
@@ -1,6 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'gengo-ruby/api_handler'
3
3
  require 'gengo-ruby/gengo_exception'
4
+ require 'gengo-ruby/version'
4
5
 
5
6
  module Gengo
6
7
  # Store global config objects here - e.g, urls, etc.
@@ -9,7 +10,5 @@ module Gengo
9
10
  # allow for function-by-function differences in versioning.
10
11
  API_HOST = 'api.gengo.com'
11
12
  SANDBOX_API_HOST = 'api.sandbox.gengo.com'
12
-
13
- VERSION = '0.0.0'
14
13
  end
15
14
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gengo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
5
- prerelease:
4
+ version: 0.0.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - Matthew Romaine
@@ -12,121 +11,107 @@ authors:
12
11
  autorequire:
13
12
  bindir: bin
14
13
  cert_chain: []
15
- date: 2013-09-24 00:00:00.000000000 Z
14
+ date: 2015-04-27 00:00:00.000000000 Z
16
15
  dependencies:
17
16
  - !ruby/object:Gem::Dependency
18
17
  name: json
19
18
  requirement: !ruby/object:Gem::Requirement
20
- none: false
21
19
  requirements:
22
- - - ! '>='
20
+ - - ">="
23
21
  - !ruby/object:Gem::Version
24
22
  version: '0'
25
23
  type: :runtime
26
24
  prerelease: false
27
25
  version_requirements: !ruby/object:Gem::Requirement
28
- none: false
29
26
  requirements:
30
- - - ! '>='
27
+ - - ">="
31
28
  - !ruby/object:Gem::Version
32
29
  version: '0'
33
30
  - !ruby/object:Gem::Dependency
34
31
  name: multipart-post
35
32
  requirement: !ruby/object:Gem::Requirement
36
- none: false
37
33
  requirements:
38
- - - ! '>='
34
+ - - ">="
39
35
  - !ruby/object:Gem::Version
40
36
  version: '0'
41
37
  type: :runtime
42
38
  prerelease: false
43
39
  version_requirements: !ruby/object:Gem::Requirement
44
- none: false
45
40
  requirements:
46
- - - ! '>='
41
+ - - ">="
47
42
  - !ruby/object:Gem::Version
48
43
  version: '0'
49
44
  - !ruby/object:Gem::Dependency
50
45
  name: mime-types
51
46
  requirement: !ruby/object:Gem::Requirement
52
- none: false
53
47
  requirements:
54
- - - ! '>='
48
+ - - ">="
55
49
  - !ruby/object:Gem::Version
56
50
  version: '0'
57
51
  type: :runtime
58
52
  prerelease: false
59
53
  version_requirements: !ruby/object:Gem::Requirement
60
- none: false
61
54
  requirements:
62
- - - ! '>='
55
+ - - ">="
63
56
  - !ruby/object:Gem::Version
64
57
  version: '0'
65
58
  - !ruby/object:Gem::Dependency
66
59
  name: rspec
67
60
  requirement: !ruby/object:Gem::Requirement
68
- none: false
69
61
  requirements:
70
- - - ~>
62
+ - - "~>"
71
63
  - !ruby/object:Gem::Version
72
64
  version: '2.7'
73
65
  type: :development
74
66
  prerelease: false
75
67
  version_requirements: !ruby/object:Gem::Requirement
76
- none: false
77
68
  requirements:
78
- - - ~>
69
+ - - "~>"
79
70
  - !ruby/object:Gem::Version
80
71
  version: '2.7'
81
72
  - !ruby/object:Gem::Dependency
82
73
  name: rack-test
83
74
  requirement: !ruby/object:Gem::Requirement
84
- none: false
85
75
  requirements:
86
- - - ! '>='
76
+ - - ">="
87
77
  - !ruby/object:Gem::Version
88
78
  version: '0'
89
79
  type: :development
90
80
  prerelease: false
91
81
  version_requirements: !ruby/object:Gem::Requirement
92
- none: false
93
82
  requirements:
94
- - - ! '>='
83
+ - - ">="
95
84
  - !ruby/object:Gem::Version
96
85
  version: '0'
97
86
  - !ruby/object:Gem::Dependency
98
87
  name: simplecov
99
88
  requirement: !ruby/object:Gem::Requirement
100
- none: false
101
89
  requirements:
102
- - - ! '>='
90
+ - - ">="
103
91
  - !ruby/object:Gem::Version
104
92
  version: '0'
105
93
  type: :development
106
94
  prerelease: false
107
95
  version_requirements: !ruby/object:Gem::Requirement
108
- none: false
109
96
  requirements:
110
- - - ! '>='
97
+ - - ">="
111
98
  - !ruby/object:Gem::Version
112
99
  version: '0'
113
100
  - !ruby/object:Gem::Dependency
114
101
  name: webmock
115
102
  requirement: !ruby/object:Gem::Requirement
116
- none: false
117
103
  requirements:
118
- - - ! '>='
104
+ - - ">="
119
105
  - !ruby/object:Gem::Version
120
106
  version: '0'
121
107
  type: :development
122
108
  prerelease: false
123
109
  version_requirements: !ruby/object:Gem::Requirement
124
- none: false
125
110
  requirements:
126
- - - ! '>='
111
+ - - ">="
127
112
  - !ruby/object:Gem::Version
128
113
  version: '0'
129
- description: ! 'Gengo is a service that offers various translation APIs, both machine
114
+ description: 'Gengo is a service that offers various translation APIs, both machine
130
115
  and high quality human-sourced. The Gengo gem lets you interface with the Gengo
131
116
  REST API (http://developers.gengo.com/).Note: previous version of this library can
132
117
  be found at https://rubygems.org/gems/mygengo. All further updates will be made
@@ -136,36 +121,38 @@ executables: []
136
121
  extensions: []
137
122
  extra_rdoc_files: []
138
123
  files:
124
+ - Gemfile
125
+ - Gemfile.lock
126
+ - README.md
127
+ - Rakefile
128
+ - gengo-ruby.gemspec
139
129
  - lib/gengo-ruby/api_handler.rb
140
130
  - lib/gengo-ruby/gengo_exception.rb
131
+ - lib/gengo-ruby/version.rb
141
132
  - lib/gengo.rb
142
133
  - licenses/LICENSE.txt
143
- - Gemfile
144
- - Rakefile
145
- - README.md
146
134
  homepage: http://developers.gengo.com
147
135
  licenses:
148
136
  - New BSD
137
+ metadata: {}
149
138
  post_install_message:
150
139
  rdoc_options: []
151
140
  require_paths:
152
141
  - lib
153
142
  required_ruby_version: !ruby/object:Gem::Requirement
154
- none: false
155
143
  requirements:
156
- - - ! '>='
144
+ - - ">="
157
145
  - !ruby/object:Gem::Version
158
146
  version: '0'
159
147
  required_rubygems_version: !ruby/object:Gem::Requirement
160
- none: false
161
148
  requirements:
162
- - - ! '>='
149
+ - - ">="
163
150
  - !ruby/object:Gem::Version
164
151
  version: '0'
165
152
  requirements: []
166
153
  rubyforge_project:
167
- rubygems_version: 1.8.25
154
+ rubygems_version: 2.4.5
168
155
  signing_key:
169
- specification_version: 3
156
+ specification_version: 4
170
157
  summary: A library for interfacing with the Gengo Translation API.
171
158
  test_files: []