ibm_watson 0.19.0 → 0.19.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ibm_watson/assistant_v1.rb +1 -1
- data/lib/ibm_watson/assistant_v2.rb +1 -1
- data/lib/ibm_watson/compare_comply_v1.rb +1 -1
- data/lib/ibm_watson/discovery_v1.rb +1 -1
- data/lib/ibm_watson/language_translator_v3.rb +1 -1
- data/lib/ibm_watson/natural_language_classifier_v1.rb +1 -1
- data/lib/ibm_watson/natural_language_understanding_v1.rb +1 -1
- data/lib/ibm_watson/personality_insights_v3.rb +1 -1
- data/lib/ibm_watson/speech_to_text_v1.rb +1 -1
- data/lib/ibm_watson/text_to_speech_v1.rb +1 -1
- data/lib/ibm_watson/tone_analyzer_v3.rb +1 -1
- data/lib/ibm_watson/version.rb +1 -1
- data/lib/ibm_watson/visual_recognition_v3.rb +1 -1
- data/test/unit/test_watson_service.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79b4d610d9d4589e18ca59f522e03f0131e122c53cde220dd48df396d55a3831
|
4
|
+
data.tar.gz: 3dabd52392ae6bb0961b406396f6a5986d0355e505722bc9df3dd7bce88f678a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bc97b824388996c87d0d5d00203dc0eab6dd3538ea295e7e8a18e69ec312cd272051c569fdf2cbc4575f5d51b9d7410cb7d0a9c9faa40aecb85458018b78e46
|
7
|
+
data.tar.gz: 02c7ad5710c4b83d24324b6c0ac573940dfd9cd727d4251278e594f60ab8a271ba53e1a21e3f3d14dfb709f91abdb4f8cd693d35aec1aef7b5070b56a52fc9e8
|
@@ -94,9 +94,9 @@ module IBMWatson
|
|
94
94
|
defaults[:authentication_type] = nil
|
95
95
|
args = defaults.merge(args)
|
96
96
|
args[:vcap_services_name] = "conversation"
|
97
|
+
args[:display_name] = "Assistant"
|
97
98
|
super
|
98
99
|
@version = args[:version]
|
99
|
-
args[:display_name] = "Assistant"
|
100
100
|
end
|
101
101
|
|
102
102
|
#########################
|
@@ -94,9 +94,9 @@ module IBMWatson
|
|
94
94
|
defaults[:authentication_type] = nil
|
95
95
|
args = defaults.merge(args)
|
96
96
|
args[:vcap_services_name] = "conversation"
|
97
|
+
args[:display_name] = "Assistant"
|
97
98
|
super
|
98
99
|
@version = args[:version]
|
99
|
-
args[:display_name] = "Assistant"
|
100
100
|
end
|
101
101
|
|
102
102
|
#########################
|
@@ -93,9 +93,9 @@ module IBMWatson
|
|
93
93
|
defaults[:authentication_type] = nil
|
94
94
|
args = defaults.merge(args)
|
95
95
|
args[:vcap_services_name] = "compare-comply"
|
96
|
+
args[:display_name] = "Compare Comply"
|
96
97
|
super
|
97
98
|
@version = args[:version]
|
98
|
-
args[:display_name] = "Compare Comply"
|
99
99
|
end
|
100
100
|
|
101
101
|
#########################
|
@@ -96,9 +96,9 @@ module IBMWatson
|
|
96
96
|
defaults[:authentication_type] = nil
|
97
97
|
args = defaults.merge(args)
|
98
98
|
args[:vcap_services_name] = "discovery"
|
99
|
+
args[:display_name] = "Discovery"
|
99
100
|
super
|
100
101
|
@version = args[:version]
|
101
|
-
args[:display_name] = "Discovery"
|
102
102
|
end
|
103
103
|
|
104
104
|
#########################
|
@@ -96,9 +96,9 @@ module IBMWatson
|
|
96
96
|
defaults[:authentication_type] = nil
|
97
97
|
args = defaults.merge(args)
|
98
98
|
args[:vcap_services_name] = "language_translator"
|
99
|
+
args[:display_name] = "Language Translator"
|
99
100
|
super
|
100
101
|
@version = args[:version]
|
101
|
-
args[:display_name] = "Language Translator"
|
102
102
|
end
|
103
103
|
|
104
104
|
#########################
|
@@ -84,8 +84,8 @@ module IBMWatson
|
|
84
84
|
defaults[:authentication_type] = nil
|
85
85
|
args = defaults.merge(args)
|
86
86
|
args[:vcap_services_name] = "natural_language_classifier"
|
87
|
-
super
|
88
87
|
args[:display_name] = "Natural Language Classifier"
|
88
|
+
super
|
89
89
|
end
|
90
90
|
|
91
91
|
#########################
|
@@ -100,9 +100,9 @@ module IBMWatson
|
|
100
100
|
defaults[:authentication_type] = nil
|
101
101
|
args = defaults.merge(args)
|
102
102
|
args[:vcap_services_name] = "natural-language-understanding"
|
103
|
+
args[:display_name] = "Natural Language Understanding"
|
103
104
|
super
|
104
105
|
@version = args[:version]
|
105
|
-
args[:display_name] = "Natural Language Understanding"
|
106
106
|
end
|
107
107
|
|
108
108
|
#########################
|
@@ -111,9 +111,9 @@ module IBMWatson
|
|
111
111
|
defaults[:authentication_type] = nil
|
112
112
|
args = defaults.merge(args)
|
113
113
|
args[:vcap_services_name] = "personality_insights"
|
114
|
+
args[:display_name] = "Personality Insights"
|
114
115
|
super
|
115
116
|
@version = args[:version]
|
116
|
-
args[:display_name] = "Personality Insights"
|
117
117
|
end
|
118
118
|
|
119
119
|
#########################
|
@@ -102,9 +102,9 @@ module IBMWatson
|
|
102
102
|
defaults[:authentication_type] = nil
|
103
103
|
args = defaults.merge(args)
|
104
104
|
args[:vcap_services_name] = "tone_analyzer"
|
105
|
+
args[:display_name] = "Tone Analyzer"
|
105
106
|
super
|
106
107
|
@version = args[:version]
|
107
|
-
args[:display_name] = "Tone Analyzer"
|
108
108
|
end
|
109
109
|
|
110
110
|
#########################
|
data/lib/ibm_watson/version.rb
CHANGED
@@ -82,9 +82,9 @@ module IBMWatson
|
|
82
82
|
defaults[:authentication_type] = nil
|
83
83
|
args = defaults.merge(args)
|
84
84
|
args[:vcap_services_name] = "watson_vision_combined"
|
85
|
+
args[:display_name] = "Visual Recognition"
|
85
86
|
super
|
86
87
|
@version = args[:version]
|
87
|
-
args[:display_name] = "Visual Recognition"
|
88
88
|
end
|
89
89
|
|
90
90
|
#########################
|
@@ -45,14 +45,14 @@ class WatsonServiceTest < Minitest::Test
|
|
45
45
|
def test_set_credentials_from_path_in_env
|
46
46
|
file_path = File.join(File.dirname(__FILE__), "../../resources/ibm-credentials.env")
|
47
47
|
ENV["IBM_CREDENTIALS_FILE"] = file_path
|
48
|
-
service = IBMWatson::
|
48
|
+
service = IBMWatson::VisualRecognitionV3.new
|
49
49
|
assert_equal(service.url, "https://gateway.ronaldo.com")
|
50
50
|
refute_nil(service)
|
51
51
|
ENV.delete("IBM_CREDENTIALS_FILE")
|
52
52
|
end
|
53
53
|
|
54
54
|
def test_set_credentials_when_no_file
|
55
|
-
service = IBMWatson::AssistantV1.new
|
55
|
+
service = IBMWatson::AssistantV1.new
|
56
56
|
assert_equal(service.url, "https://gateway.watsonplatform.net/assistant/api")
|
57
57
|
refute_nil(service)
|
58
58
|
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.19.
|
4
|
+
version: 0.19.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: 2019-
|
11
|
+
date: 2019-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.3.
|
75
|
+
version: 0.3.2
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.3.
|
82
|
+
version: 0.3.2
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: jwt
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|