From 510307b0bd96e283fae8e5ca79b7c78c788bd8ce Mon Sep 17 00:00:00 2001 From: taitus Date: Fri, 24 May 2019 15:24:16 +0200 Subject: [PATCH] Add SentencesParser to new namespace Add to new name space RemoteTranslations::Microsoft --- lib/remote_translations/microsoft/client.rb | 2 +- lib/{ => remote_translations/microsoft}/sentences_parser.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename lib/{ => remote_translations/microsoft}/sentences_parser.rb (93%) diff --git a/lib/remote_translations/microsoft/client.rb b/lib/remote_translations/microsoft/client.rb index c9808595c..22f4906b3 100644 --- a/lib/remote_translations/microsoft/client.rb +++ b/lib/remote_translations/microsoft/client.rb @@ -1,5 +1,5 @@ require "translator-text" -include SentencesParser +include RemoteTranslations::Microsoft::SentencesParser include RemoteTranslations::Microsoft::AvailableLocales class RemoteTranslations::Microsoft::Client diff --git a/lib/sentences_parser.rb b/lib/remote_translations/microsoft/sentences_parser.rb similarity index 93% rename from lib/sentences_parser.rb rename to lib/remote_translations/microsoft/sentences_parser.rb index 1403b0698..792d5e75f 100644 --- a/lib/sentences_parser.rb +++ b/lib/remote_translations/microsoft/sentences_parser.rb @@ -1,4 +1,4 @@ -module SentencesParser +module RemoteTranslations::Microsoft::SentencesParser def detect_split_position(text) minimum_valid_index = text.size - RemoteTranslations::Microsoft::Client::CHARACTERS_LIMIT_PER_REQUEST