Skip to content

Commit e692874

Browse files
committed
refactor(service patches): Automate service patches elsewhere
1 parent 54f7421 commit e692874

12 files changed

+142
-443
lines changed

lib/ibm_watson/assistant_v1.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ module IBMWatson
3030
##
3131
# The Assistant V1 service.
3232
class AssistantV1
33-
if File.exist?(Dir.getwd + "/lib/ibm_watson/service_extensions/patch_assistant_v1.rb")
34-
require_relative("./service_extensions/patch_assistant_v1.rb")
35-
AssistantV1.prepend AssistantV1Patch
36-
end
3733
include Concurrent::Async
3834
##
3935
# @!method initialize(args)

lib/ibm_watson/discovery_v1.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ module IBMWatson
3232
##
3333
# The Discovery V1 service.
3434
class DiscoveryV1
35-
if File.exist?(Dir.getwd + "/lib/ibm_watson/service_extensions/patch_discovery_v1.rb")
36-
require_relative("./service_extensions/patch_discovery_v1.rb")
37-
DiscoveryV1.prepend DiscoveryV1Patch
38-
end
3935
include Concurrent::Async
4036
##
4137
# @!method initialize(args)

lib/ibm_watson/language_translator_v3.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ module IBMWatson
3232
##
3333
# The Language Translator V3 service.
3434
class LanguageTranslatorV3
35-
if File.exist?(Dir.getwd + "/lib/ibm_watson/service_extensions/patch_language_translator_v3.rb")
36-
require_relative("./service_extensions/patch_language_translator_v3.rb")
37-
LanguageTranslatorV3.prepend LanguageTranslatorV3Patch
38-
end
3935
include Concurrent::Async
4036
##
4137
# @!method initialize(args)

lib/ibm_watson/natural_language_classifier_v1.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ module IBMWatson
3131
##
3232
# The Natural Language Classifier V1 service.
3333
class NaturalLanguageClassifierV1
34-
if File.exist?(Dir.getwd + "/lib/ibm_watson/service_extensions/patch_natural_language_classifier_v1.rb")
35-
require_relative("./service_extensions/patch_natural_language_classifier_v1.rb")
36-
NaturalLanguageClassifierV1.prepend NaturalLanguageClassifierV1Patch
37-
end
3834
include Concurrent::Async
3935
##
4036
# @!method initialize(args)

lib/ibm_watson/natural_language_understanding_v1.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ module IBMWatson
3636
##
3737
# The Natural Language Understanding V1 service.
3838
class NaturalLanguageUnderstandingV1
39-
if File.exist?(Dir.getwd + "/lib/ibm_watson/service_extensions/patch_natural_language_understanding_v1.rb")
40-
require_relative("./service_extensions/patch_natural_language_understanding_v1.rb")
41-
NaturalLanguageUnderstandingV1.prepend NaturalLanguageUnderstandingV1Patch
42-
end
4339
include Concurrent::Async
4440
##
4541
# @!method initialize(args)

lib/ibm_watson/personality_insights_v3.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ module IBMWatson
4747
##
4848
# The Personality Insights V3 service.
4949
class PersonalityInsightsV3
50-
if File.exist?(Dir.getwd + "/lib/ibm_watson/service_extensions/patch_personality_insights_v3.rb")
51-
require_relative("./service_extensions/patch_personality_insights_v3.rb")
52-
PersonalityInsightsV3.prepend PersonalityInsightsV3Patch
53-
end
5450
include Concurrent::Async
5551
##
5652
# @!method initialize(args)

lib/ibm_watson/service_extensions/patch_speech_to_text_v1.rb

Lines changed: 0 additions & 178 deletions
This file was deleted.

0 commit comments

Comments
 (0)