gengo 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/gengo-ruby/api_handler.rb +8 -0
  2. metadata +116 -117
  3. data/Gemfile.lock +0 -48
@@ -239,6 +239,14 @@ module Gengo
239
239
  self.get_from_gengo('account/balance', params)
240
240
  end
241
241
 
242
+ # Returns an array of preferred translators for the current account by language pair. No args required!
243
+ #
244
+ # Options:
245
+ # <tt>None</tt> - N/A
246
+ def getAccountPreferredTranslators(params = {})
247
+ self.get_from_gengo('account/preferred_translators', params)
248
+ end
249
+
242
250
  # Much like the above, but takes a hash titled "jobs" that is multiple jobs, each with their own unique key.
243
251
  #
244
252
  # Options:
metadata CHANGED
@@ -1,172 +1,171 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: gengo
3
- version: !ruby/object:Gem::Version
4
- hash: 25
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.4
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 3
10
- version: 0.0.3
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Matthew Romaine
14
9
  - Shawn Smith
15
10
  - Issam Zeibak
11
+ - Alexander Lidé
16
12
  autorequire:
17
13
  bindir: bin
18
14
  cert_chain: []
19
-
20
- date: 2013-04-17 00:00:00 Z
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
15
+ date: 2013-09-03 00:00:00.000000000 Z
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
23
18
  name: json
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
19
+ requirement: !ruby/object:Gem::Requirement
26
20
  none: false
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- hash: 3
31
- segments:
32
- - 0
33
- version: "0"
21
+ requirements:
22
+ - - ! '>='
23
+ - !ruby/object:Gem::Version
24
+ version: '0'
34
25
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: multipart-post
38
26
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: multipart-post
35
+ requirement: !ruby/object:Gem::Requirement
40
36
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 0
47
- version: "0"
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
48
41
  type: :runtime
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: mime-types
52
42
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
43
+ version_requirements: !ruby/object:Gem::Requirement
54
44
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- hash: 3
59
- segments:
60
- - 0
61
- version: "0"
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ - !ruby/object:Gem::Dependency
50
+ name: mime-types
51
+ requirement: !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
62
57
  type: :runtime
63
- version_requirements: *id003
64
- - !ruby/object:Gem::Dependency
65
- name: rspec
66
58
  prerelease: false
67
- requirement: &id004 !ruby/object:Gem::Requirement
59
+ version_requirements: !ruby/object:Gem::Requirement
68
60
  none: false
69
- requirements:
61
+ requirements:
62
+ - - ! '>='
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
65
+ - !ruby/object:Gem::Dependency
66
+ name: rspec
67
+ requirement: !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
70
  - - ~>
71
- - !ruby/object:Gem::Version
72
- hash: 13
73
- segments:
74
- - 2
75
- - 7
76
- version: "2.7"
71
+ - !ruby/object:Gem::Version
72
+ version: '2.7'
77
73
  type: :development
78
- version_requirements: *id004
79
- - !ruby/object:Gem::Dependency
80
- name: rack-test
81
74
  prerelease: false
82
- requirement: &id005 !ruby/object:Gem::Requirement
75
+ version_requirements: !ruby/object:Gem::Requirement
83
76
  none: false
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- hash: 3
88
- segments:
89
- - 0
90
- version: "0"
77
+ requirements:
78
+ - - ~>
79
+ - !ruby/object:Gem::Version
80
+ version: '2.7'
81
+ - !ruby/object:Gem::Dependency
82
+ name: rack-test
83
+ requirement: !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
91
89
  type: :development
92
- version_requirements: *id005
93
- - !ruby/object:Gem::Dependency
94
- name: simplecov
95
90
  prerelease: false
96
- requirement: &id006 !ruby/object:Gem::Requirement
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ none: false
93
+ requirements:
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
97
100
  none: false
98
- requirements:
99
- - - ">="
100
- - !ruby/object:Gem::Version
101
- hash: 3
102
- segments:
103
- - 0
104
- version: "0"
101
+ requirements:
102
+ - - ! '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
105
  type: :development
106
- version_requirements: *id006
107
- - !ruby/object:Gem::Dependency
108
- name: webmock
109
106
  prerelease: false
110
- requirement: &id007 !ruby/object:Gem::Requirement
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ! '>='
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ - !ruby/object:Gem::Dependency
114
+ name: webmock
115
+ requirement: !ruby/object:Gem::Requirement
111
116
  none: false
112
- requirements:
113
- - - ">="
114
- - !ruby/object:Gem::Version
115
- hash: 3
116
- segments:
117
- - 0
118
- version: "0"
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
119
121
  type: :development
120
- version_requirements: *id007
121
- 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."
122
+ prerelease: false
123
+ version_requirements: !ruby/object:Gem::Requirement
124
+ none: false
125
+ requirements:
126
+ - - ! '>='
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ description: ! 'Gengo is a service that offers various translation APIs, both machine
130
+ and high quality human-sourced. The Gengo gem lets you interface with the Gengo
131
+ REST API (http://developers.gengo.com/).Note: previous version of this library can
132
+ be found at https://rubygems.org/gems/mygengo. All further updates will be made
133
+ here.'
122
134
  email: api@gengo.com
123
135
  executables: []
124
-
125
136
  extensions: []
126
-
127
137
  extra_rdoc_files: []
128
-
129
- files:
138
+ files:
130
139
  - lib/gengo-ruby/api_handler.rb
131
140
  - lib/gengo-ruby/gengo_exception.rb
132
141
  - lib/gengo.rb
133
142
  - licenses/LICENSE.txt
134
143
  - Gemfile
135
- - Gemfile.lock
136
144
  - Rakefile
137
145
  - README.md
138
146
  homepage: http://developers.gengo.com
139
- licenses:
147
+ licenses:
140
148
  - New BSD
141
149
  post_install_message:
142
150
  rdoc_options: []
143
-
144
- require_paths:
151
+ require_paths:
145
152
  - lib
146
- required_ruby_version: !ruby/object:Gem::Requirement
153
+ required_ruby_version: !ruby/object:Gem::Requirement
147
154
  none: false
148
- requirements:
149
- - - ">="
150
- - !ruby/object:Gem::Version
151
- hash: 3
152
- segments:
153
- - 0
154
- version: "0"
155
- required_rubygems_version: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ! '>='
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ required_rubygems_version: !ruby/object:Gem::Requirement
156
160
  none: false
157
- requirements:
158
- - - ">="
159
- - !ruby/object:Gem::Version
160
- hash: 3
161
- segments:
162
- - 0
163
- version: "0"
161
+ requirements:
162
+ - - ! '>='
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
164
165
  requirements: []
165
-
166
166
  rubyforge_project:
167
- rubygems_version: 1.8.24
167
+ rubygems_version: 1.8.25
168
168
  signing_key:
169
169
  specification_version: 3
170
170
  summary: A library for interfacing with the Gengo Translation API.
171
171
  test_files: []
172
-
data/Gemfile.lock DELETED
@@ -1,48 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- gengo (0.0.2)
5
- json
6
- mime-types
7
- multipart-post
8
-
9
- GEM
10
- remote: http://rubygems.org/
11
- specs:
12
- addressable (2.3.2)
13
- crack (0.3.1)
14
- diff-lcs (1.1.3)
15
- json (1.7.5)
16
- mime-types (1.19)
17
- multi_json (1.3.6)
18
- multipart-post (1.1.5)
19
- rack (1.4.1)
20
- rack-test (0.6.1)
21
- rack (>= 1.0)
22
- rake (0.9.2.2)
23
- rspec (2.11.0)
24
- rspec-core (~> 2.11.0)
25
- rspec-expectations (~> 2.11.0)
26
- rspec-mocks (~> 2.11.0)
27
- rspec-core (2.11.1)
28
- rspec-expectations (2.11.2)
29
- diff-lcs (~> 1.1.3)
30
- rspec-mocks (2.11.2)
31
- simplecov (0.6.4)
32
- multi_json (~> 1.0)
33
- simplecov-html (~> 0.5.3)
34
- simplecov-html (0.5.3)
35
- webmock (1.8.9)
36
- addressable (>= 2.2.7)
37
- crack (>= 0.1.7)
38
-
39
- PLATFORMS
40
- ruby
41
-
42
- DEPENDENCIES
43
- gengo!
44
- rack-test
45
- rake
46
- rspec
47
- simplecov
48
- webmock