translator-text 0.1.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +6 -1
- data/.ruby-version +1 -0
- data/.travis.yml +2 -2
- data/CHANGELOG.md +14 -1
- data/Gemfile +6 -4
- data/Gemfile.lock +88 -75
- data/README.md +24 -8
- data/Rakefile +2 -0
- data/bin/console +1 -0
- data/lib/translator-text.rb +6 -1
- data/lib/translator_text/client.rb +17 -6
- data/lib/translator_text/exceptions.rb +2 -0
- data/lib/translator_text/types/alternative.rb +2 -0
- data/lib/translator_text/types/detection_result.rb +2 -2
- data/lib/translator_text/types/sentence.rb +2 -0
- data/lib/translator_text/types/translation.rb +2 -0
- data/lib/translator_text/types/translation_result.rb +5 -3
- data/lib/translator_text/types.rb +3 -1
- data/lib/translator_text/version.rb +3 -1
- data/translator-text.gemspec +6 -2
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8632db69acab569b667be95a710ddfb4063475a820160008248099d36d0b42fc
|
4
|
+
data.tar.gz: d0bc41f634efd36ed604f439036188e70f3a1952d79952f650449a448c0cb535
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2286a74057def86c7fae4ed2f6e8e9b4ebb15e3d23a38a6dbf74533ac6e079fc023764270cb8f3930e2803d8d17e4b9505a7396d3c02ac78c6a843f2241e759b
|
7
|
+
data.tar.gz: 5edd026d712c585b93e170644424f73da279c1dad6314250a99a153a4fcca9d1ea2c7216c02bed6f068d7c6864400c4ad164035586d46ad47d79efd4682259e0
|
data/.rubocop.yml
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
---
|
2
|
+
require:
|
3
|
+
- rubocop-rspec
|
4
|
+
|
1
5
|
LineLength:
|
2
6
|
Max: 130
|
3
7
|
|
@@ -8,7 +12,8 @@ Metrics/ParameterLists:
|
|
8
12
|
CountKeywordArgs: false
|
9
13
|
|
10
14
|
AllCops:
|
11
|
-
TargetRubyVersion:
|
15
|
+
TargetRubyVersion: 3.1
|
16
|
+
NewCops: enable
|
12
17
|
|
13
18
|
EndAlignment:
|
14
19
|
EnforcedStyleAlignWith: variable
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.1
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -4,7 +4,20 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
-
## 0.
|
7
|
+
## [0.3.0] - 2023-11-15
|
8
|
+
### Changed
|
9
|
+
- Add support of the COGNITIVE_SUBSCRIPTION_REGION
|
10
|
+
- Target ruby 3.1+
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
- Upgrade Client array queries normalization
|
14
|
+
|
15
|
+
## [0.2.0] - 2023-04-19
|
16
|
+
### Changed
|
17
|
+
- Use dry-struct 1+
|
18
|
+
- Switch to ruby 3.1 as default ruby version
|
19
|
+
|
20
|
+
## [0.1.0] - 2018-08-28
|
8
21
|
### Added
|
9
22
|
- Initial release
|
10
23
|
- Support of <translation> service
|
data/Gemfile
CHANGED
@@ -1,13 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
source 'https://rubygems.org'
|
2
4
|
|
3
5
|
# git_source(:github) {|repo_name| 'https://github.com/#{repo_name}' }
|
4
6
|
|
5
|
-
group :test do
|
6
|
-
gem 'bundler', '~> 1.16'
|
7
|
+
group :test, :development do
|
7
8
|
gem 'dotenv'
|
8
|
-
gem 'rake', '~>
|
9
|
-
gem 'rspec', '~> 3
|
9
|
+
gem 'rake', '~> 12'
|
10
|
+
gem 'rspec', '~> 3'
|
10
11
|
gem 'rubocop'
|
12
|
+
gem 'rubocop-rspec'
|
11
13
|
gem 'simplecov', require: false
|
12
14
|
gem 'webmock'
|
13
15
|
gem 'yard'
|
data/Gemfile.lock
CHANGED
@@ -1,109 +1,122 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
translator-text (0.
|
5
|
-
dry-struct (~>
|
6
|
-
httparty (~> 0.
|
4
|
+
translator-text (0.3.0)
|
5
|
+
dry-struct (~> 1)
|
6
|
+
httparty (~> 0.21)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
addressable (2.5
|
12
|
-
public_suffix (>= 2.0.2, <
|
13
|
-
ast (2.4.
|
14
|
-
concurrent-ruby (1.
|
15
|
-
crack (0.4.
|
16
|
-
|
17
|
-
diff-lcs (1.
|
18
|
-
docile (1.
|
19
|
-
dotenv (2.
|
20
|
-
dry-
|
11
|
+
addressable (2.8.5)
|
12
|
+
public_suffix (>= 2.0.2, < 6.0)
|
13
|
+
ast (2.4.2)
|
14
|
+
concurrent-ruby (1.2.2)
|
15
|
+
crack (0.4.5)
|
16
|
+
rexml
|
17
|
+
diff-lcs (1.5.0)
|
18
|
+
docile (1.4.0)
|
19
|
+
dotenv (2.8.1)
|
20
|
+
dry-core (1.0.1)
|
21
21
|
concurrent-ruby (~> 1.0)
|
22
|
-
|
22
|
+
zeitwerk (~> 2.6)
|
23
|
+
dry-inflector (1.0.0)
|
24
|
+
dry-logic (1.5.0)
|
23
25
|
concurrent-ruby (~> 1.0)
|
24
|
-
dry-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
dry-logic (0.4.2)
|
30
|
-
dry-container (~> 0.2, >= 0.2.6)
|
31
|
-
dry-core (~> 0.2)
|
32
|
-
dry-equalizer (~> 0.2)
|
33
|
-
dry-struct (0.5.1)
|
34
|
-
dry-core (~> 0.4, >= 0.4.3)
|
35
|
-
dry-equalizer (~> 0.2)
|
36
|
-
dry-types (~> 0.13)
|
26
|
+
dry-core (~> 1.0, < 2)
|
27
|
+
zeitwerk (~> 2.6)
|
28
|
+
dry-struct (1.6.0)
|
29
|
+
dry-core (~> 1.0, < 2)
|
30
|
+
dry-types (>= 1.7, < 2)
|
37
31
|
ice_nine (~> 0.11)
|
38
|
-
|
32
|
+
zeitwerk (~> 2.6)
|
33
|
+
dry-types (1.7.1)
|
39
34
|
concurrent-ruby (~> 1.0)
|
40
|
-
dry-
|
41
|
-
dry-
|
42
|
-
dry-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
35
|
+
dry-core (~> 1.0)
|
36
|
+
dry-inflector (~> 1.0)
|
37
|
+
dry-logic (~> 1.4)
|
38
|
+
zeitwerk (~> 2.6)
|
39
|
+
hashdiff (1.0.1)
|
40
|
+
httparty (0.21.0)
|
41
|
+
mini_mime (>= 1.0.0)
|
47
42
|
multi_xml (>= 0.5.2)
|
48
43
|
ice_nine (0.11.2)
|
49
|
-
|
50
|
-
|
44
|
+
json (2.6.3)
|
45
|
+
language_server-protocol (3.17.0.3)
|
46
|
+
mini_mime (1.1.5)
|
51
47
|
multi_xml (0.6.0)
|
52
|
-
parallel (1.
|
53
|
-
parser (2.
|
54
|
-
ast (~> 2.4.
|
55
|
-
|
56
|
-
public_suffix (
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
rspec-
|
65
|
-
|
48
|
+
parallel (1.23.0)
|
49
|
+
parser (3.2.2.4)
|
50
|
+
ast (~> 2.4.1)
|
51
|
+
racc
|
52
|
+
public_suffix (5.0.3)
|
53
|
+
racc (1.7.3)
|
54
|
+
rainbow (3.1.1)
|
55
|
+
rake (12.3.3)
|
56
|
+
regexp_parser (2.8.2)
|
57
|
+
rexml (3.2.6)
|
58
|
+
rspec (3.12.0)
|
59
|
+
rspec-core (~> 3.12.0)
|
60
|
+
rspec-expectations (~> 3.12.0)
|
61
|
+
rspec-mocks (~> 3.12.0)
|
62
|
+
rspec-core (3.12.2)
|
63
|
+
rspec-support (~> 3.12.0)
|
64
|
+
rspec-expectations (3.12.3)
|
66
65
|
diff-lcs (>= 1.2.0, < 2.0)
|
67
|
-
rspec-support (~> 3.
|
68
|
-
rspec-mocks (3.
|
66
|
+
rspec-support (~> 3.12.0)
|
67
|
+
rspec-mocks (3.12.6)
|
69
68
|
diff-lcs (>= 1.2.0, < 2.0)
|
70
|
-
rspec-support (~> 3.
|
71
|
-
rspec-support (3.
|
72
|
-
rubocop (
|
73
|
-
|
69
|
+
rspec-support (~> 3.12.0)
|
70
|
+
rspec-support (3.12.1)
|
71
|
+
rubocop (1.57.2)
|
72
|
+
json (~> 2.3)
|
73
|
+
language_server-protocol (>= 3.17.0)
|
74
74
|
parallel (~> 1.10)
|
75
|
-
parser (>= 2.
|
76
|
-
powerpack (~> 0.1)
|
75
|
+
parser (>= 3.2.2.4)
|
77
76
|
rainbow (>= 2.2.2, < 4.0)
|
77
|
+
regexp_parser (>= 1.8, < 3.0)
|
78
|
+
rexml (>= 3.2.5, < 4.0)
|
79
|
+
rubocop-ast (>= 1.28.1, < 2.0)
|
78
80
|
ruby-progressbar (~> 1.7)
|
79
|
-
unicode-display_width (
|
80
|
-
|
81
|
-
|
82
|
-
|
81
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
82
|
+
rubocop-ast (1.30.0)
|
83
|
+
parser (>= 3.2.1.0)
|
84
|
+
rubocop-capybara (2.19.0)
|
85
|
+
rubocop (~> 1.41)
|
86
|
+
rubocop-factory_bot (2.24.0)
|
87
|
+
rubocop (~> 1.33)
|
88
|
+
rubocop-rspec (2.25.0)
|
89
|
+
rubocop (~> 1.40)
|
90
|
+
rubocop-capybara (~> 2.17)
|
91
|
+
rubocop-factory_bot (~> 2.22)
|
92
|
+
ruby-progressbar (1.13.0)
|
93
|
+
simplecov (0.22.0)
|
83
94
|
docile (~> 1.1)
|
84
|
-
|
85
|
-
|
86
|
-
simplecov-html (0.
|
87
|
-
|
88
|
-
|
89
|
-
|
95
|
+
simplecov-html (~> 0.11)
|
96
|
+
simplecov_json_formatter (~> 0.1)
|
97
|
+
simplecov-html (0.12.3)
|
98
|
+
simplecov_json_formatter (0.1.4)
|
99
|
+
unicode-display_width (2.5.0)
|
100
|
+
webmock (3.19.1)
|
101
|
+
addressable (>= 2.8.0)
|
90
102
|
crack (>= 0.3.2)
|
91
|
-
hashdiff
|
92
|
-
yard (0.9.
|
103
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
104
|
+
yard (0.9.34)
|
105
|
+
zeitwerk (2.6.12)
|
93
106
|
|
94
107
|
PLATFORMS
|
95
108
|
ruby
|
96
109
|
|
97
110
|
DEPENDENCIES
|
98
|
-
bundler (~> 1.16)
|
99
111
|
dotenv
|
100
|
-
rake (~>
|
101
|
-
rspec (~> 3
|
112
|
+
rake (~> 12)
|
113
|
+
rspec (~> 3)
|
102
114
|
rubocop
|
115
|
+
rubocop-rspec
|
103
116
|
simplecov
|
104
117
|
translator-text!
|
105
118
|
webmock
|
106
119
|
yard
|
107
120
|
|
108
121
|
BUNDLED WITH
|
109
|
-
|
122
|
+
2.3.26
|
data/README.md
CHANGED
@@ -29,15 +29,34 @@ Or install it yourself as:
|
|
29
29
|
|
30
30
|
## Usage
|
31
31
|
|
32
|
-
###
|
32
|
+
### Client
|
33
|
+
|
34
|
+
You can instanciate your own client by passing the [Azure authentication](https://learn.microsoft.com/en-us/azure/ai-services/translator/reference/v3-0-reference#authentication) parameters.
|
33
35
|
|
34
36
|
```ruby
|
35
37
|
require 'translator-text'
|
36
38
|
|
37
|
-
|
38
|
-
|
39
|
+
client = TranslatorText::Client.new(api_key, api_region)
|
40
|
+
```
|
41
|
+
|
42
|
+
Or use the built-in that uses the following environment variables:
|
43
|
+
|
44
|
+
* `COGNITIVE_SUBSCRIPTION_KEY`: The value is the Azure secret key for your subscription to Translator.
|
45
|
+
* `COGNITIVE_SUBSCRIPTION_REGION`: The value is the region of the multi-service or regional translator resource. This value is optional when using a global translator resource.
|
39
46
|
|
40
|
-
|
47
|
+
```ruby
|
48
|
+
require 'translator-text'
|
49
|
+
|
50
|
+
client = TranslatorText.client
|
51
|
+
```
|
52
|
+
|
53
|
+
|
54
|
+
### Translation
|
55
|
+
|
56
|
+
```ruby
|
57
|
+
require 'translator-text'
|
58
|
+
|
59
|
+
results = TranslatorText.client.translate(
|
41
60
|
['something to translate', 'another something to translate'],
|
42
61
|
to: [:fr, :es]
|
43
62
|
)
|
@@ -58,10 +77,7 @@ results = client.translate(
|
|
58
77
|
```ruby
|
59
78
|
require 'translator-text'
|
60
79
|
|
61
|
-
|
62
|
-
client = TranslatorText::Client.new(api_key)
|
63
|
-
|
64
|
-
results = client.detect(['some unknown language', 'quelque chose à détecter'])
|
80
|
+
results = TranslatorText.client.detect(['some unknown language', 'quelque chose à détecter'])
|
65
81
|
|
66
82
|
# Returns
|
67
83
|
# [
|
data/Rakefile
CHANGED
data/bin/console
CHANGED
data/lib/translator-text.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require_relative 'translator_text/version'
|
2
4
|
require_relative 'translator_text/exceptions'
|
3
5
|
require_relative 'translator_text/client'
|
@@ -14,7 +16,10 @@ module TranslatorText
|
|
14
16
|
private
|
15
17
|
|
16
18
|
def build_client
|
17
|
-
TranslatorText::Client.new(
|
19
|
+
TranslatorText::Client.new(
|
20
|
+
ENV.fetch('COGNITIVE_SUBSCRIPTION_KEY'),
|
21
|
+
ENV.fetch('COGNITIVE_SUBSCRIPTION_REGION', nil)
|
22
|
+
)
|
18
23
|
end
|
19
24
|
end
|
20
25
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'json'
|
2
4
|
require 'securerandom'
|
3
5
|
require 'httparty'
|
@@ -7,15 +9,23 @@ module TranslatorText
|
|
7
9
|
include HTTParty
|
8
10
|
format :json
|
9
11
|
|
10
|
-
base_uri 'https://api.cognitive.microsofttranslator.com'
|
11
|
-
API_VERSION = '3.0'
|
12
|
+
base_uri 'https://api.cognitive.microsofttranslator.com'
|
13
|
+
API_VERSION = '3.0'
|
14
|
+
|
15
|
+
query_string_normalizer proc { |query|
|
16
|
+
query.map do |key, value|
|
17
|
+
Array(value).map { |v| "#{key}=#{v}" }
|
18
|
+
end.join('&')
|
19
|
+
}
|
12
20
|
|
13
21
|
# Initialize the client
|
14
22
|
# @since 1.0.0
|
15
23
|
#
|
16
24
|
# @param api_key [String] the Cognitive Services API Key
|
17
|
-
|
25
|
+
# @param api_region [String] the Cognitive Services API Region
|
26
|
+
def initialize(api_key, api_region = nil)
|
18
27
|
@api_key = api_key
|
28
|
+
@api_region = api_region
|
19
29
|
end
|
20
30
|
|
21
31
|
# Translate a group of sentences.
|
@@ -33,7 +43,7 @@ module TranslatorText
|
|
33
43
|
results = post(
|
34
44
|
'/translate',
|
35
45
|
body: build_sentences(sentences).to_json,
|
36
|
-
query:
|
46
|
+
query: { to:, **options }
|
37
47
|
)
|
38
48
|
|
39
49
|
results.map { |r| Types::TranslationResult.new(r) }
|
@@ -68,7 +78,7 @@ module TranslatorText
|
|
68
78
|
|
69
79
|
def post(path, params)
|
70
80
|
options = {
|
71
|
-
headers
|
81
|
+
headers:,
|
72
82
|
query: {}
|
73
83
|
}.merge(params)
|
74
84
|
|
@@ -104,9 +114,10 @@ module TranslatorText
|
|
104
114
|
def headers
|
105
115
|
{
|
106
116
|
'Ocp-Apim-Subscription-Key' => @api_key,
|
117
|
+
'Ocp-Apim-Subscription-Region' => @api_region,
|
107
118
|
'X-ClientTraceId' => SecureRandom.uuid,
|
108
119
|
'Content-type' => 'application/json'
|
109
|
-
}
|
120
|
+
}.compact
|
110
121
|
end
|
111
122
|
end
|
112
123
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module TranslatorText
|
2
4
|
module Types
|
3
5
|
class DetectionResult < Dry::Struct
|
@@ -9,8 +11,6 @@ module TranslatorText
|
|
9
11
|
attribute :score, Types::Float
|
10
12
|
attribute :isTranslationSupported, Types::Bool
|
11
13
|
attribute :isTransliterationSupported, Types::Bool
|
12
|
-
|
13
|
-
attribute :alternatives, Types::Array.of(Alternative)
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module TranslatorText
|
2
4
|
module Types
|
3
5
|
class TranslationResult < Dry::Struct
|
@@ -12,9 +14,9 @@ module TranslatorText
|
|
12
14
|
#
|
13
15
|
# @return [Symbol] the language
|
14
16
|
def detected_language
|
15
|
-
|
16
|
-
|
17
|
-
|
17
|
+
return unless (h = detectedLanguage['language'])
|
18
|
+
|
19
|
+
h.to_sym
|
18
20
|
end
|
19
21
|
end
|
20
22
|
end
|
@@ -1,9 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'dry-struct'
|
2
4
|
|
3
5
|
module TranslatorText
|
4
6
|
# Includes all the types for the exchanges with the API
|
5
7
|
module Types
|
6
|
-
include Dry
|
8
|
+
include Dry.Types
|
7
9
|
|
8
10
|
Symbol = Types::Symbol.constructor do |str|
|
9
11
|
str ? str.to_sym : str
|
data/translator-text.gemspec
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
lib = File.expand_path('lib', __dir__)
|
2
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
5
|
require 'translator_text/version'
|
@@ -21,6 +23,8 @@ Gem::Specification.new do |spec|
|
|
21
23
|
|
22
24
|
spec.require_paths = ['lib']
|
23
25
|
|
24
|
-
spec.
|
25
|
-
spec.add_dependency '
|
26
|
+
spec.required_ruby_version = '>= 3.1'
|
27
|
+
spec.add_dependency 'dry-struct', '~> 1'
|
28
|
+
spec.add_dependency 'httparty', '~> 0.21'
|
29
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
26
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: translator-text
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aymeric Brisse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: httparty
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.21'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
40
|
+
version: '0.21'
|
41
41
|
description: API Wrapper for the Microsoft Translator Text API (Cognitive Services)
|
42
42
|
email:
|
43
43
|
- aymeric.brisse@perfect-memory.com
|
@@ -48,6 +48,7 @@ files:
|
|
48
48
|
- ".gitignore"
|
49
49
|
- ".rspec"
|
50
50
|
- ".rubocop.yml"
|
51
|
+
- ".ruby-version"
|
51
52
|
- ".travis.yml"
|
52
53
|
- CHANGELOG.md
|
53
54
|
- CODE_OF_CONDUCT.md
|
@@ -72,7 +73,8 @@ files:
|
|
72
73
|
homepage: https://github.com/PerfectMemory/translator-text
|
73
74
|
licenses:
|
74
75
|
- MIT
|
75
|
-
metadata:
|
76
|
+
metadata:
|
77
|
+
rubygems_mfa_required: 'true'
|
76
78
|
post_install_message:
|
77
79
|
rdoc_options: []
|
78
80
|
require_paths:
|
@@ -81,15 +83,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
81
83
|
requirements:
|
82
84
|
- - ">="
|
83
85
|
- !ruby/object:Gem::Version
|
84
|
-
version: '
|
86
|
+
version: '3.1'
|
85
87
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
88
|
requirements:
|
87
89
|
- - ">="
|
88
90
|
- !ruby/object:Gem::Version
|
89
91
|
version: '0'
|
90
92
|
requirements: []
|
91
|
-
|
92
|
-
rubygems_version: 2.6.14.1
|
93
|
+
rubygems_version: 3.3.26
|
93
94
|
signing_key:
|
94
95
|
specification_version: 4
|
95
96
|
summary: API Wrapper for the Microsoft Translator Text API
|