Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Park committed Feb 14, 2018
2 parents ad42f15 + cad6178 commit 26700e7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion lib/rosette_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# This class allows you to access all Rosette API endpoints.
class RosetteAPI
# Version of Ruby binding
BINDING_VERSION = '1.9.1'
BINDING_VERSION = '1.9.2'
# Rosette API language endpoint
LANGUAGE_ENDPOINT = '/language'.freeze
# Rosette API morphology endpoint
Expand Down
2 changes: 1 addition & 1 deletion rosette_api.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Gem::Specification.new do |s|
s.required_ruby_version = '>= 2.0.0'

s.name = 'rosette_api'
s.version = '1.9.1'
s.version = '1.9.2'
s.license = 'MIT'

s.summary = 'Rosette API gem that supports multilingual text-analytics.'
Expand Down
42 changes: 21 additions & 21 deletions tests/tests_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1' })
'X-Rosetteapi-Binding-Version' => '1.9.2' })
.to_return(status: 200, body: '{"test": "language"}', headers: {})
end
it 'test language' do
Expand Down Expand Up @@ -63,7 +63,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1' })
'X-Rosetteapi-Binding-Version' => '1.9.2' })
.to_return(status: 200, body: '{"test": "morphology/complete"}', headers: {})
end
it 'test morphology complete' do
Expand All @@ -84,7 +84,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1' })
'X-Rosetteapi-Binding-Version' => '1.9.2' })
.to_return(status: 200, body: '{"test": "morphology/compound-components"}', headers: {})
end
it 'test morphology compound components' do
Expand All @@ -105,7 +105,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1' })
'X-Rosetteapi-Binding-Version' => '1.9.2' })
.to_return(status: 200, body: '{"test": "morphology/han-readings"}', headers: {})
end
it 'test morphology han readings' do
Expand All @@ -126,7 +126,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1' })
'X-Rosetteapi-Binding-Version' => '1.9.2' })
.to_return(status: 200, body: '{"test": "morphology/parts-of-speech"}', headers: {})
end
it 'test morphology parts of speech' do
Expand All @@ -147,7 +147,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1' })
'X-Rosetteapi-Binding-Version' => '1.9.2' })
.to_return(status: 200, body: '{"test": "morphology/lemmas"}', headers: {})
end
it 'test morphology lemmas' do
Expand All @@ -168,7 +168,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1' })
'X-Rosetteapi-Binding-Version' => '1.9.2' })
.to_return(status: 200, body: '{"test": "entities"}', headers: {})
end
it 'test entities' do
Expand All @@ -190,7 +190,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1' })
'X-Rosetteapi-Binding-Version' => '1.9.2' })
.to_return(status: 200, body: '{"test": "entities"}', headers: {})
end
it 'test entities without qids' do
Expand Down Expand Up @@ -221,7 +221,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1' })
'X-Rosetteapi-Binding-Version' => '1.9.2' })
.to_return(status: 200, body: '{"test": "categories"}', headers: {})
end
it 'test categories' do
Expand All @@ -242,7 +242,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1' })
'X-Rosetteapi-Binding-Version' => '1.9.2' })
.to_return(status: 200, body: '{"test": "relationships"}', headers: {})
end
it 'test relationships' do
Expand All @@ -264,7 +264,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1' })
'X-Rosetteapi-Binding-Version' => '1.9.2' })
.to_return(status: 200, body: '{"test": "name-translation"}', headers: {})
end
it 'test name translation' do
Expand All @@ -291,7 +291,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1' })
'X-Rosetteapi-Binding-Version' => '1.9.2' })
.to_return(status: 200, body: '{"test": "name-similarity"}', headers: {})
end
it 'test name similarity' do
Expand Down Expand Up @@ -329,7 +329,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1' })
'X-Rosetteapi-Binding-Version' => '1.9.2' })
.to_return(status: 200, body: '{"test": "name-deduplication"}', headers: {})

nothresh_json = { names: names.map(&:load_param) }.to_json
Expand All @@ -342,7 +342,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1' })
'X-Rosetteapi-Binding-Version' => '1.9.2' })
.to_return(status: 200, body: '{"test": "name-deduplication"}', headers: {})
end
it 'test name deduplication' do
Expand Down Expand Up @@ -393,7 +393,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1' })
'X-Rosetteapi-Binding-Version' => '1.9.2' })
.to_return(status: 200, body: '{"test": "transliteration"}', headers: {})
end
it 'test transliteration' do
Expand Down Expand Up @@ -426,7 +426,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1' })
'X-Rosetteapi-Binding-Version' => '1.9.2' })
.to_return(status: 200, body: '{"test": "tokens"}', headers: {})
end
it 'test tokens' do
Expand All @@ -447,7 +447,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1' })
'X-Rosetteapi-Binding-Version' => '1.9.2' })
.to_return(status: 200, body: '{"test": "topics"}', headers: {})
end
it 'test topics' do
Expand All @@ -468,7 +468,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1' })
'X-Rosetteapi-Binding-Version' => '1.9.2' })
.to_return(status: 200, body: '{"test": "sentences"}', headers: {})
end
it 'test sentences' do
Expand Down Expand Up @@ -519,7 +519,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1',
'X-Rosetteapi-Binding-Version' => '1.9.2',
'X-RosetteApi-App' => 'ruby-app' })
.to_return(status: 200, body: '{"test": "language"}', headers: {})
end
Expand Down Expand Up @@ -556,7 +556,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1' })
'X-Rosetteapi-Binding-Version' => '1.9.2' })
.to_return(status: 200, body: '{"test": "language"}', headers: {})
end
it 'test text_embedding' do
Expand All @@ -577,7 +577,7 @@
'User-Agent' => @user_agent,
'X-Rosetteapi-Key' => '0123456789',
'X-Rosetteapi-Binding' => 'ruby',
'X-Rosetteapi-Binding-Version' => '1.9.1' })
'X-Rosetteapi-Binding-Version' => '1.9.2' })
.to_return(status: 200, body: '{"test": "language"}', headers: {})
end
it 'test syntax_dependencies' do
Expand Down

0 comments on commit 26700e7

Please sign in to comment.