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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f14ba82beb4e952129fd0b2e4301aea11e6d89b9bc2b817b24cdd26aa4d9d82
4
- data.tar.gz: c8f01ecae6ef28809b577266b222420c018eb3a84c3ee65f9b997006a19959de
3
+ metadata.gz: 79b4d610d9d4589e18ca59f522e03f0131e122c53cde220dd48df396d55a3831
4
+ data.tar.gz: 3dabd52392ae6bb0961b406396f6a5986d0355e505722bc9df3dd7bce88f678a
5
5
  SHA512:
6
- metadata.gz: 7142cd6b84e4bd0479b26ae573bf83642f394029c600c5879b123a44e932cc18787964b582170a8c412eff8a3e96afd2f25cebc7543ca8f80734f0c3a8e6f47b
7
- data.tar.gz: 45ec40387571c0e0fcc190441a57b7c4de2f0fcb9cce887b792cd3f2e6817794e0ff2ce7f0c07f17a2f60b6ffd42638b8bcd961325ce209ed82f08eb06254161
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
  #########################
@@ -103,8 +103,8 @@ module IBMWatson
103
103
  defaults[:authentication_type] = nil
104
104
  args = defaults.merge(args)
105
105
  args[:vcap_services_name] = "speech_to_text"
106
- super
107
106
  args[:display_name] = "Speech to Text"
107
+ super
108
108
  end
109
109
 
110
110
  #########################
@@ -97,8 +97,8 @@ module IBMWatson
97
97
  defaults[:authentication_type] = nil
98
98
  args = defaults.merge(args)
99
99
  args[:vcap_services_name] = "text_to_speech"
100
- super
101
100
  args[:display_name] = "Text to Speech"
101
+ super
102
102
  end
103
103
 
104
104
  #########################
@@ -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
  #########################
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IBMWatson
4
- VERSION = "0.19.0"
4
+ VERSION = "0.19.1"
5
5
  end
@@ -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::AssistantV1.new(display_name: "Visual Recognition")
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(display_name: "Visual Recognition")
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.0
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-07-25 00:00:00.000000000 Z
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.1
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.1
82
+ version: 0.3.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: jwt
85
85
  requirement: !ruby/object:Gem::Requirement