From cad6178f44502613c947f542e8d40aa0de152f3b Mon Sep 17 00:00:00 2001 From: Chris Park Date: Wed, 14 Feb 2018 15:47:28 +0000 Subject: [PATCH] Version 1.9.2 --- lib/rosette_api.rb | 2 +- rosette_api.gemspec | 2 +- tests/tests_spec.rb | 42 +++++++++++++++++++++--------------------- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/lib/rosette_api.rb b/lib/rosette_api.rb index 7e7e117..5d1de43 100644 --- a/lib/rosette_api.rb +++ b/lib/rosette_api.rb @@ -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 diff --git a/rosette_api.gemspec b/rosette_api.gemspec index e6f1d21..3c9b138 100644 --- a/rosette_api.gemspec +++ b/rosette_api.gemspec @@ -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.' diff --git a/tests/tests_spec.rb b/tests/tests_spec.rb index a9e00b0..e1b1e57 100644 --- a/tests/tests_spec.rb +++ b/tests/tests_spec.rb @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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