Skip to content

Commit 4c1cafe

Browse files
author
Chris Park
committed
Version 1.8.0
1 parent ad3c8b4 commit 4c1cafe

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

lib/rosette_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# This class allows you to access all Rosette API endpoints.
1111
class RosetteAPI
1212
# Version of Ruby binding
13-
BINDING_VERSION = '1.7.0'
13+
BINDING_VERSION = '1.8.0'
1414
# Rosette API language endpoint
1515
LANGUAGE_ENDPOINT = '/language'.freeze
1616
# Rosette API morphology endpoint

rosette_api.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
88
s.required_ruby_version = '>= 2.0.0'
99

1010
s.name = 'rosette_api'
11-
s.version = '1.7.0'
11+
s.version = '1.8.0'
1212
s.license = 'MIT'
1313

1414
s.summary = 'Rosette API gem that supports multilingual text-analytics.'
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
1919
s.authors = ['Basis Technology Corp']
2020
s.email = %q{[email protected]}
2121
s.homepage = %q{https://developer.rosette.com/}
22-
s.date = %q{2017-06-14}
22+
s.date = %q{2017-10-24}
2323

2424
all_files = `git ls-files -z`.split("\x0")
2525
s.files = all_files.grep(%r{^(bin|lib)/|^.rubocop.yml$})

tests/tests_spec.rb

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
'User-Agent' => 'Ruby',
2222
'X-Rosetteapi-Key' => '0123456789',
2323
'X-Rosetteapi-Binding' => 'ruby',
24-
'X-Rosetteapi-Binding-Version' => '1.7.0' })
24+
'X-Rosetteapi-Binding-Version' => '1.8.0' })
2525
.to_return(status: 200, body: '{"test": "language"}', headers: {})
2626
end
2727
it 'test language' do
@@ -55,7 +55,7 @@
5555
'User-Agent' => 'Ruby',
5656
'X-Rosetteapi-Key' => '0123456789',
5757
'X-Rosetteapi-Binding' => 'ruby',
58-
'X-Rosetteapi-Binding-Version' => '1.7.0' })
58+
'X-Rosetteapi-Binding-Version' => '1.8.0' })
5959
.to_return(status: 200, body: '{"test": "morphology/complete"}', headers: {})
6060
end
6161
it 'test morphology complete' do
@@ -76,7 +76,7 @@
7676
'User-Agent' => 'Ruby',
7777
'X-Rosetteapi-Key' => '0123456789',
7878
'X-Rosetteapi-Binding' => 'ruby',
79-
'X-Rosetteapi-Binding-Version' => '1.7.0' })
79+
'X-Rosetteapi-Binding-Version' => '1.8.0' })
8080
.to_return(status: 200, body: '{"test": "morphology/compound-components"}', headers: {})
8181
end
8282
it 'test morphology compound components' do
@@ -97,7 +97,7 @@
9797
'User-Agent' => 'Ruby',
9898
'X-Rosetteapi-Key' => '0123456789',
9999
'X-Rosetteapi-Binding' => 'ruby',
100-
'X-Rosetteapi-Binding-Version' => '1.7.0' })
100+
'X-Rosetteapi-Binding-Version' => '1.8.0' })
101101
.to_return(status: 200, body: '{"test": "morphology/han-readings"}', headers: {})
102102
end
103103
it 'test morphology han readings' do
@@ -118,7 +118,7 @@
118118
'User-Agent' => 'Ruby',
119119
'X-Rosetteapi-Key' => '0123456789',
120120
'X-Rosetteapi-Binding' => 'ruby',
121-
'X-Rosetteapi-Binding-Version' => '1.7.0' })
121+
'X-Rosetteapi-Binding-Version' => '1.8.0' })
122122
.to_return(status: 200, body: '{"test": "morphology/parts-of-speech"}', headers: {})
123123
end
124124
it 'test morphology parts of speech' do
@@ -139,7 +139,7 @@
139139
'User-Agent' => 'Ruby',
140140
'X-Rosetteapi-Key' => '0123456789',
141141
'X-Rosetteapi-Binding' => 'ruby',
142-
'X-Rosetteapi-Binding-Version' => '1.7.0' })
142+
'X-Rosetteapi-Binding-Version' => '1.8.0' })
143143
.to_return(status: 200, body: '{"test": "morphology/lemmas"}', headers: {})
144144
end
145145
it 'test morphology lemmas' do
@@ -160,7 +160,7 @@
160160
'User-Agent' => 'Ruby',
161161
'X-Rosetteapi-Key' => '0123456789',
162162
'X-Rosetteapi-Binding' => 'ruby',
163-
'X-Rosetteapi-Binding-Version' => '1.7.0' })
163+
'X-Rosetteapi-Binding-Version' => '1.8.0' })
164164
.to_return(status: 200, body: '{"test": "entities"}', headers: {})
165165
end
166166
it 'test entities' do
@@ -182,7 +182,7 @@
182182
'User-Agent' => 'Ruby',
183183
'X-Rosetteapi-Key' => '0123456789',
184184
'X-Rosetteapi-Binding' => 'ruby',
185-
'X-Rosetteapi-Binding-Version' => '1.7.0' })
185+
'X-Rosetteapi-Binding-Version' => '1.8.0' })
186186
.to_return(status: 200, body: '{"test": "entities"}', headers: {})
187187
end
188188
it 'test entities without qids' do
@@ -213,7 +213,7 @@
213213
'User-Agent' => 'Ruby',
214214
'X-Rosetteapi-Key' => '0123456789',
215215
'X-Rosetteapi-Binding' => 'ruby',
216-
'X-Rosetteapi-Binding-Version' => '1.7.0' })
216+
'X-Rosetteapi-Binding-Version' => '1.8.0' })
217217
.to_return(status: 200, body: '{"test": "categories"}', headers: {})
218218
end
219219
it 'test categories' do
@@ -234,7 +234,7 @@
234234
'User-Agent' => 'Ruby',
235235
'X-Rosetteapi-Key' => '0123456789',
236236
'X-Rosetteapi-Binding' => 'ruby',
237-
'X-Rosetteapi-Binding-Version' => '1.7.0' })
237+
'X-Rosetteapi-Binding-Version' => '1.8.0' })
238238
.to_return(status: 200, body: '{"test": "relationships"}', headers: {})
239239
end
240240
it 'test relationships' do
@@ -256,7 +256,7 @@
256256
'User-Agent' => 'Ruby',
257257
'X-Rosetteapi-Key' => '0123456789',
258258
'X-Rosetteapi-Binding' => 'ruby',
259-
'X-Rosetteapi-Binding-Version' => '1.7.0' })
259+
'X-Rosetteapi-Binding-Version' => '1.8.0' })
260260
.to_return(status: 200, body: '{"test": "name-translation"}', headers: {})
261261
end
262262
it 'test name translation' do
@@ -283,7 +283,7 @@
283283
'User-Agent' => 'Ruby',
284284
'X-Rosetteapi-Key' => '0123456789',
285285
'X-Rosetteapi-Binding' => 'ruby',
286-
'X-Rosetteapi-Binding-Version' => '1.7.0' })
286+
'X-Rosetteapi-Binding-Version' => '1.8.0' })
287287
.to_return(status: 200, body: '{"test": "name-similarity"}', headers: {})
288288
end
289289
it 'test name similarity' do
@@ -321,7 +321,7 @@
321321
'User-Agent' => 'Ruby',
322322
'X-Rosetteapi-Key' => '0123456789',
323323
'X-Rosetteapi-Binding' => 'ruby',
324-
'X-Rosetteapi-Binding-Version' => '1.7.0' })
324+
'X-Rosetteapi-Binding-Version' => '1.8.0' })
325325
.to_return(status: 200, body: '{"test": "name-deduplication"}', headers: {})
326326

327327
nothresh_json = { names: names.map(&:load_param) }.to_json
@@ -334,7 +334,7 @@
334334
'User-Agent' => 'Ruby',
335335
'X-Rosetteapi-Key' => '0123456789',
336336
'X-Rosetteapi-Binding' => 'ruby',
337-
'X-Rosetteapi-Binding-Version' => '1.7.0' })
337+
'X-Rosetteapi-Binding-Version' => '1.8.0' })
338338
.to_return(status: 200, body: '{"test": "name-deduplication"}', headers: {})
339339
end
340340
it 'test name deduplication' do
@@ -385,7 +385,7 @@
385385
'User-Agent' => 'Ruby',
386386
'X-Rosetteapi-Key' => '0123456789',
387387
'X-Rosetteapi-Binding' => 'ruby',
388-
'X-Rosetteapi-Binding-Version' => '1.7.0' })
388+
'X-Rosetteapi-Binding-Version' => '1.8.0' })
389389
.to_return(status: 200, body: '{"test": "transliteration"}', headers: {})
390390
end
391391
it 'test transliteration' do
@@ -418,7 +418,7 @@
418418
'User-Agent' => 'Ruby',
419419
'X-Rosetteapi-Key' => '0123456789',
420420
'X-Rosetteapi-Binding' => 'ruby',
421-
'X-Rosetteapi-Binding-Version' => '1.7.0' })
421+
'X-Rosetteapi-Binding-Version' => '1.8.0' })
422422
.to_return(status: 200, body: '{"test": "tokens"}', headers: {})
423423
end
424424
it 'test tokens' do
@@ -439,7 +439,7 @@
439439
'User-Agent' => 'Ruby',
440440
'X-Rosetteapi-Key' => '0123456789',
441441
'X-Rosetteapi-Binding' => 'ruby',
442-
'X-Rosetteapi-Binding-Version' => '1.7.0' })
442+
'X-Rosetteapi-Binding-Version' => '1.8.0' })
443443
.to_return(status: 200, body: '{"test": "topics"}', headers: {})
444444
end
445445
it 'test topics' do
@@ -460,7 +460,7 @@
460460
'User-Agent' => 'Ruby',
461461
'X-Rosetteapi-Key' => '0123456789',
462462
'X-Rosetteapi-Binding' => 'ruby',
463-
'X-Rosetteapi-Binding-Version' => '1.7.0' })
463+
'X-Rosetteapi-Binding-Version' => '1.8.0' })
464464
.to_return(status: 200, body: '{"test": "sentences"}', headers: {})
465465
end
466466
it 'test sentences' do
@@ -511,7 +511,7 @@
511511
'User-Agent' => 'Ruby',
512512
'X-Rosetteapi-Key' => '0123456789',
513513
'X-Rosetteapi-Binding' => 'ruby',
514-
'X-Rosetteapi-Binding-Version' => '1.7.0',
514+
'X-Rosetteapi-Binding-Version' => '1.8.0',
515515
'X-RosetteApi-App' => 'ruby-app' })
516516
.to_return(status: 200, body: '{"test": "language"}', headers: {})
517517
end
@@ -548,7 +548,7 @@
548548
'User-Agent' => 'Ruby',
549549
'X-Rosetteapi-Key' => '0123456789',
550550
'X-Rosetteapi-Binding' => 'ruby',
551-
'X-Rosetteapi-Binding-Version' => '1.7.0' })
551+
'X-Rosetteapi-Binding-Version' => '1.8.0' })
552552
.to_return(status: 200, body: '{"test": "language"}', headers: {})
553553
end
554554
it 'test text_embedding' do
@@ -569,7 +569,7 @@
569569
'User-Agent' => 'Ruby',
570570
'X-Rosetteapi-Key' => '0123456789',
571571
'X-Rosetteapi-Binding' => 'ruby',
572-
'X-Rosetteapi-Binding-Version' => '1.7.0' })
572+
'X-Rosetteapi-Binding-Version' => '1.8.0' })
573573
.to_return(status: 200, body: '{"test": "language"}', headers: {})
574574
end
575575
it 'test syntax_dependencies' do

0 commit comments

Comments
 (0)