ibm_watson 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02b9a374cec465603fa4b16fed7dafdc2a2282fa928c4f3609ded4ad7b37f9d7
4
- data.tar.gz: aa3773cedacb514da7f7ecc838e5d1263f55649b23b872049b95a697d73e928d
3
+ metadata.gz: cf8a43fdfbace0a7f6718700990e2fa10a0cc1f5b1914f0612cda793060dad12
4
+ data.tar.gz: e62aab095b1541fc2226ade4591fd3f6a47bfd67487c7721c33dcc2a740f7f7a
5
5
  SHA512:
6
- metadata.gz: 4d88024b3b18c0e91b6d36014832b14eba4c6a716a924a6dc3843fa91516dff028486984428c141376ff615995feb0e198425363aebd25633a18508984e1cb4f
7
- data.tar.gz: 5d943c0f6509a7beeb16cd417f3cab1203687a0be47d00fb8271eaeec38f4498d4f428c31cf2f9acbbe0b1aa2da722afa3c2dbf7bb3abbb3f16536388245c49b
6
+ metadata.gz: 7518225b4a7cad2ccfdc83f4ac5b8ed4c5a376c07b13fb3e7d636d3a79abd8e82a943413737a99e922150e6e2e4109e0da1c6bb52b353dd756513523eec066ea
7
+ data.tar.gz: d7af5413d872fff10b901a2fb38571b0c7b2d78c6fdb7d9f622f51619603c4c475959e1bdf6bb0d99092be41edc6812e9df7f293d6e8e22074a7a803187ee97b
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IBMWatson
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  end
@@ -3,7 +3,7 @@
3
3
  require_relative("./../test_helper.rb")
4
4
  SimpleCov.command_name "test:integration"
5
5
 
6
- unless ENV["ASSISTANT_USERNAME"].nil? || ENV["ASSISTANT_PASSWORD"].nil?
6
+ if !ENV["ASSISTANT_USERNAME"].nil? && !ENV["ASSISTANT_PASSWORD"].nil?
7
7
  # Integration tests for the Watson Assistant V1 Service
8
8
  class AssistantV1Test < Minitest::Test
9
9
  def test_create_update_delete_workspace
@@ -652,4 +652,10 @@ unless ENV["ASSISTANT_USERNAME"].nil? || ENV["ASSISTANT_PASSWORD"].nil?
652
652
  assert(service_response.nil?)
653
653
  end
654
654
  end
655
+ else
656
+ class AssistantV1Test < Minitest::Test
657
+ def test_missing_credentials_skip_integration
658
+ skip "Skip assistant integration tests because credentials have not been provided"
659
+ end
660
+ end
655
661
  end
@@ -3,7 +3,7 @@
3
3
  require_relative("./../test_helper.rb")
4
4
  require("minitest/hooks/test")
5
5
 
6
- unless ENV["DISCOVERY_USERNAME"].nil? || ENV["DISCOVERY_PASSWORD"].nil?
6
+ if !ENV["DISCOVERY_USERNAME"].nil? && !ENV["DISCOVERY_PASSWORD"].nil?
7
7
  # Integration tests for the Discovery V1 Service
8
8
  class DiscoveryV1Test < Minitest::Test
9
9
  include Minitest::Hooks
@@ -208,4 +208,10 @@ unless ENV["DISCOVERY_USERNAME"].nil? || ENV["DISCOVERY_PASSWORD"].nil?
208
208
  refute(credentials.nil?)
209
209
  end
210
210
  end
211
+ else
212
+ class DiscoveryV1Test < Minitest::Test
213
+ def test_missing_credentials_skip_integration
214
+ skip "Skip discovery integration tests because credentials have not been provided"
215
+ end
216
+ end
211
217
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require_relative("./../test_helper.rb")
4
4
 
5
- unless ENV["ASSISTANT_IAM_URL"].nil? || ENV["ASSISTANT_IAM_APIKEY"].nil?
5
+ if !ENV["ASSISTANT_IAM_URL"].nil? && !ENV["ASSISTANT_IAM_APIKEY"].nil?
6
6
  # Integration tests for the Watson Assistant V1 Service
7
7
  class IAMAssistantV1Test < Minitest::Test
8
8
  def test_create_update_delete_workspace
@@ -715,4 +715,10 @@ unless ENV["ASSISTANT_IAM_URL"].nil? || ENV["ASSISTANT_IAM_APIKEY"].nil?
715
715
  assert(error_received)
716
716
  end
717
717
  end
718
+ else
719
+ class IAMAssistantV1Test < Minitest::Test
720
+ def test_missing_credentials_skip_integration
721
+ skip "Skip iam assistant integration tests because credentials have not been provided"
722
+ end
723
+ end
718
724
  end
@@ -4,7 +4,7 @@ require("json")
4
4
  require_relative("./../test_helper.rb")
5
5
  require("minitest/hooks/test")
6
6
 
7
- unless ENV["LANGUAGE_TRANSLATOR_V3_USERNAME"].nil? || ENV["LANGUAGE_TRANSLATOR_V3_PASSWORD"].nil?
7
+ if !ENV["LANGUAGE_TRANSLATOR_V3_USERNAME"].nil? && !ENV["LANGUAGE_TRANSLATOR_V3_PASSWORD"].nil?
8
8
  # Integration tests for the Language Translator V3 Service
9
9
  class LanguageTranslatorV3Test < Minitest::Test
10
10
  include Minitest::Hooks
@@ -80,4 +80,10 @@ unless ENV["LANGUAGE_TRANSLATOR_V3_USERNAME"].nil? || ENV["LANGUAGE_TRANSLATOR_V
80
80
  assert_equal("OK", service_response["status"])
81
81
  end
82
82
  end
83
+ else
84
+ class LanguageTranslatorV3Test < Minitest::Test
85
+ def test_missing_credentials_skip_integration
86
+ skip "Skip language translator integration tests because credentials have not been provided"
87
+ end
88
+ end
83
89
  end
@@ -4,7 +4,7 @@ require("json")
4
4
  require_relative("./../test_helper.rb")
5
5
  require("minitest/hooks/test")
6
6
 
7
- unless ENV["NATURAL_LANGUAGE_CLASSIFIER_USERNAME"].nil? || ENV["NATURAL_LANGUAGE_CLASSIFIER_PASSWORD"].nil?
7
+ if !ENV["NATURAL_LANGUAGE_CLASSIFIER_USERNAME"].nil? && !ENV["NATURAL_LANGUAGE_CLASSIFIER_PASSWORD"].nil?
8
8
  # Integration tests for the Natural Language Classifier V1 Service
9
9
  class NaturalLanguageClassifierV1Test < Minitest::Test
10
10
  include Minitest::Hooks
@@ -68,4 +68,10 @@ unless ENV["NATURAL_LANGUAGE_CLASSIFIER_USERNAME"].nil? || ENV["NATURAL_LANGUAGE
68
68
  )
69
69
  end
70
70
  end
71
+ else
72
+ class NaturalLanguageClassifierV1Test < Minitest::Test
73
+ def test_missing_credentials_skip_integration
74
+ skip "Skip natural language classifier integration tests because credentials have not been provided"
75
+ end
76
+ end
71
77
  end
@@ -3,7 +3,7 @@
3
3
  require("json")
4
4
  require_relative("./../test_helper.rb")
5
5
 
6
- unless ENV["NATURAL_LANGUAGE_UNDERSTANDING_USERNAME"].nil? || ENV["NATURAL_LANGUAGE_UNDERSTANDING_PASSWORD"].nil?
6
+ if !ENV["NATURAL_LANGUAGE_UNDERSTANDING_USERNAME"].nil? && !ENV["NATURAL_LANGUAGE_UNDERSTANDING_PASSWORD"].nil?
7
7
  # Integration tests for the Natural Language Understanding V1 Service
8
8
  class NaturalLanguageUnderstandingV1Test < Minitest::Test
9
9
  def test_text_analyze
@@ -98,4 +98,10 @@ unless ENV["NATURAL_LANGUAGE_UNDERSTANDING_USERNAME"].nil? || ENV["NATURAL_LANGU
98
98
  assert((200..299).cover?(service_response.status))
99
99
  end
100
100
  end
101
+ else
102
+ class NaturalLanguageUnderstandingV1Test < Minitest::Test
103
+ def test_missing_credentials_skip_integration
104
+ skip "Skip natural language understanding integration tests because credentials have not been provided"
105
+ end
106
+ end
101
107
  end
@@ -3,7 +3,7 @@
3
3
  require("json")
4
4
  require_relative("./../test_helper.rb")
5
5
 
6
- unless ENV["PERSONALITY_INSIGHTS_USERNAME"].nil? || ENV["PERSONALITY_INSIGHTS_PASSWORD"].nil?
6
+ if !ENV["PERSONALITY_INSIGHTS_USERNAME"].nil? && !ENV["PERSONALITY_INSIGHTS_PASSWORD"].nil?
7
7
  # Integration tests for the Personality Insights V3 Service
8
8
  class PersonalityInsightsV3Test < Minitest::Test
9
9
  def test_plain_to_json
@@ -94,4 +94,10 @@ unless ENV["PERSONALITY_INSIGHTS_USERNAME"].nil? || ENV["PERSONALITY_INSIGHTS_PA
94
94
  assert((200..299).cover?(service_response.status))
95
95
  end
96
96
  end
97
+ else
98
+ class PersonalityInsightsV3Test < Minitest::Test
99
+ def test_missing_credentials_skip_integration
100
+ skip "Skip personality insights integration tests because credentials have not been provided"
101
+ end
102
+ end
97
103
  end
@@ -22,7 +22,7 @@ class MyRecognizeCallback < IBMWatson::RecognizeCallback
22
22
  end
23
23
  end
24
24
 
25
- unless ENV["SPEECH_TO_TEXT_USERNAME"].nil? || ENV["SPEECH_TO_TEXT_PASSWORD"].nil?
25
+ if !ENV["SPEECH_TO_TEXT_USERNAME"].nil? && !ENV["SPEECH_TO_TEXT_PASSWORD"].nil?
26
26
  # Integration tests for the Speech to Text V1 Service
27
27
  class SpeechToTextV1Test < Minitest::Test
28
28
  include Minitest::Hooks
@@ -250,4 +250,10 @@ unless ENV["SPEECH_TO_TEXT_USERNAME"].nil? || ENV["SPEECH_TO_TEXT_PASSWORD"].nil
250
250
  )
251
251
  end
252
252
  end
253
+ else
254
+ class SpeechToTextV1Test < Minitest::Test
255
+ def test_missing_credentials_skip_integration
256
+ skip "Skip speech to text integration tests because credentials have not been provided"
257
+ end
258
+ end
253
259
  end
@@ -3,7 +3,7 @@
3
3
  require_relative("./../test_helper.rb")
4
4
  require("minitest/hooks/test")
5
5
 
6
- unless ENV["TEXT_TO_SPEECH_USERNAME"].nil? || ENV["TEXT_TO_SPEECH_PASSWORD"].nil?
6
+ if !ENV["TEXT_TO_SPEECH_USERNAME"].nil? && !ENV["TEXT_TO_SPEECH_PASSWORD"].nil?
7
7
  # Integration tests for the Text to Speech V1 Service
8
8
  class TextToSpeechV1Test < Minitest::Test
9
9
  include Minitest::Hooks
@@ -81,4 +81,10 @@ unless ENV["TEXT_TO_SPEECH_USERNAME"].nil? || ENV["TEXT_TO_SPEECH_PASSWORD"].nil
81
81
  )
82
82
  end
83
83
  end
84
+ else
85
+ class TextToSpeechV1Test < Minitest::Test
86
+ def test_missing_credentials_skip_integration
87
+ skip "Skip text to speech integration tests because credentials have not been provided"
88
+ end
89
+ end
84
90
  end
@@ -3,7 +3,7 @@
3
3
  require("json")
4
4
  require_relative("./../test_helper.rb")
5
5
 
6
- unless ENV["TONE_ANALYZER_USERNAME"].nil? || ENV["TONE_ANALYZER_PASSWORD"].nil?
6
+ if !ENV["TONE_ANALYZER_USERNAME"].nil? && !ENV["TONE_ANALYZER_PASSWORD"].nil?
7
7
  # Integration tests for the Tone Analyzer V3 Service
8
8
  class ToneAnalyzerV3Test < Minitest::Test
9
9
  def test_tone
@@ -71,4 +71,10 @@ unless ENV["TONE_ANALYZER_USERNAME"].nil? || ENV["TONE_ANALYZER_PASSWORD"].nil?
71
71
  assert((200..299).cover?(service_response.status))
72
72
  end
73
73
  end
74
+ else
75
+ class ToneAnalyzerV3Test < Minitest::Test
76
+ def test_missing_credentials_skip_integration
77
+ skip "Skip tone analyzer integration tests because credentials have not been provided"
78
+ end
79
+ end
74
80
  end
@@ -4,7 +4,7 @@ require("json")
4
4
  require_relative("./../test_helper.rb")
5
5
  require("minitest/hooks/test")
6
6
 
7
- unless ENV["VISUAL_RECOGNITION_IAM_APIKEY"].nil? || ENV["VISUAL_RECOGNITION_IAM_URL"].nil?
7
+ if !ENV["VISUAL_RECOGNITION_IAM_APIKEY"].nil? && !ENV["VISUAL_RECOGNITION_IAM_URL"].nil?
8
8
  # Integration tests for the Visual Recognition V3 Service
9
9
  class VisualRecognitionV3Test < Minitest::Test
10
10
  include Minitest::Hooks
@@ -63,4 +63,10 @@ unless ENV["VISUAL_RECOGNITION_IAM_APIKEY"].nil? || ENV["VISUAL_RECOGNITION_IAM_
63
63
  )
64
64
  end
65
65
  end
66
+ else
67
+ class VisualRecognitionV3Test < Minitest::Test
68
+ def test_missing_credentials_skip_integration
69
+ skip "Skip visual recognition integration tests because credentials have not been provided"
70
+ end
71
+ end
66
72
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibm_watson
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Nussbaum
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-17 00:00:00.000000000 Z
11
+ date: 2018-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby