translator-text 0.1.0 → 0.2.0

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
- SHA1:
3
- metadata.gz: 2a23c9076d2e91225a46124d809eb0acf0b3513b
4
- data.tar.gz: ef82b1270172a0ef04f5b83b5e15317b5de61383
2
+ SHA256:
3
+ metadata.gz: beb931c696d3d7ccbcafa3ff1fdfbfad976be0f2c31b54d87f71d61e980ddaa4
4
+ data.tar.gz: 8cd04286399ee904a25a81af6ebc941c8b187c894848cef65b9ec489678db68c
5
5
  SHA512:
6
- metadata.gz: 4552b5d7a357a5f013a0a3a36aaf9ee9d63b54a42ce3f92451ddc312e6a8a52ed239250f4289c2070b346c11a1fe43e747fe5887c08e43113352e51ad7417d6a
7
- data.tar.gz: 44ff8cb26e0d4ff5f99a9f52276847cc7fbd7e31c40cb1e6a604f996227e607d8b385c0f0bd2948d90c0be5455d72e8a24d13cf9d8478ca343d03a0139e160ae
6
+ metadata.gz: 9f8573a6969215b1bfb8fe325d4cd818f99a84d8e4d85fc84bfbef6d8f88f5350ae8097b0d3ff9c6c0727f76cf6ef129b426f808cd7a92e7778defda69b01638
7
+ data.tar.gz: d91a8916221f79605592e75dbf6e72cce5e0f9e0122e4038e6daf79be144eb0001a9d5b9fa0a065e411915083b68fa7dbe570817ab065a80557c208362770764
data/.travis.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.4.4
5
- before_install: gem install bundler -v 1.16.2
4
+ - 3.1.4
5
+ before_install: gem install bundler -v 2.3.26
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ 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.2.0 (2023-04-19)
8
+ ### Changed
9
+ - Use dry-struct 1+
10
+ - Switch to ruby 3.1 as default ruby version
11
+
7
12
  ## 0.1.0 (2018-08-28)
8
13
  ### Added
9
14
  - Initial release
data/Gemfile CHANGED
@@ -3,10 +3,9 @@ source 'https://rubygems.org'
3
3
  # git_source(:github) {|repo_name| 'https://github.com/#{repo_name}' }
4
4
 
5
5
  group :test do
6
- gem 'bundler', '~> 1.16'
7
6
  gem 'dotenv'
8
- gem 'rake', '~> 10.0'
9
- gem 'rspec', '~> 3.0'
7
+ gem 'rake', '~> 12'
8
+ gem 'rspec', '~> 3'
10
9
  gem 'rubocop'
11
10
  gem 'simplecov', require: false
12
11
  gem 'webmock'
data/Gemfile.lock CHANGED
@@ -1,104 +1,104 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- translator-text (0.1.0)
5
- dry-struct (~> 0.5.0)
6
- httparty (~> 0.15)
4
+ translator-text (0.2.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.2)
12
- public_suffix (>= 2.0.2, < 4.0)
13
- ast (2.4.0)
14
- concurrent-ruby (1.0.5)
15
- crack (0.4.3)
16
- safe_yaml (~> 1.0.0)
17
- diff-lcs (1.3)
18
- docile (1.3.1)
19
- dotenv (2.5.0)
20
- dry-configurable (0.7.0)
11
+ addressable (2.8.4)
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.0)
21
21
  concurrent-ruby (~> 1.0)
22
- dry-container (0.6.0)
22
+ zeitwerk (~> 2.6)
23
+ dry-inflector (1.0.0)
24
+ dry-logic (1.5.0)
23
25
  concurrent-ruby (~> 1.0)
24
- dry-configurable (~> 0.1, >= 0.1.3)
25
- dry-core (0.4.7)
26
- concurrent-ruby (~> 1.0)
27
- dry-equalizer (0.2.1)
28
- dry-inflector (0.1.2)
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
- dry-types (0.13.2)
32
+ zeitwerk (~> 2.6)
33
+ dry-types (1.7.1)
39
34
  concurrent-ruby (~> 1.0)
40
- dry-container (~> 0.3)
41
- dry-core (~> 0.4, >= 0.4.4)
42
- dry-equalizer (~> 0.2)
43
- dry-inflector (~> 0.1, >= 0.1.2)
44
- dry-logic (~> 0.4, >= 0.4.2)
45
- hashdiff (0.3.7)
46
- httparty (0.16.2)
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
- jaro_winkler (1.5.1)
50
- json (2.1.0)
44
+ json (2.6.3)
45
+ mini_mime (1.1.2)
51
46
  multi_xml (0.6.0)
52
- parallel (1.12.1)
53
- parser (2.5.1.2)
54
- ast (~> 2.4.0)
55
- powerpack (0.1.2)
56
- public_suffix (3.0.3)
57
- rainbow (3.0.0)
58
- rake (10.5.0)
59
- rspec (3.8.0)
60
- rspec-core (~> 3.8.0)
61
- rspec-expectations (~> 3.8.0)
62
- rspec-mocks (~> 3.8.0)
63
- rspec-core (3.8.0)
64
- rspec-support (~> 3.8.0)
65
- rspec-expectations (3.8.1)
47
+ parallel (1.23.0)
48
+ parser (3.2.2.0)
49
+ ast (~> 2.4.1)
50
+ public_suffix (5.0.1)
51
+ rainbow (3.1.1)
52
+ rake (12.3.3)
53
+ regexp_parser (2.8.0)
54
+ rexml (3.2.5)
55
+ rspec (3.12.0)
56
+ rspec-core (~> 3.12.0)
57
+ rspec-expectations (~> 3.12.0)
58
+ rspec-mocks (~> 3.12.0)
59
+ rspec-core (3.12.2)
60
+ rspec-support (~> 3.12.0)
61
+ rspec-expectations (3.12.2)
66
62
  diff-lcs (>= 1.2.0, < 2.0)
67
- rspec-support (~> 3.8.0)
68
- rspec-mocks (3.8.0)
63
+ rspec-support (~> 3.12.0)
64
+ rspec-mocks (3.12.5)
69
65
  diff-lcs (>= 1.2.0, < 2.0)
70
- rspec-support (~> 3.8.0)
71
- rspec-support (3.8.0)
72
- rubocop (0.58.2)
73
- jaro_winkler (~> 1.5.1)
66
+ rspec-support (~> 3.12.0)
67
+ rspec-support (3.12.0)
68
+ rubocop (1.50.2)
69
+ json (~> 2.3)
74
70
  parallel (~> 1.10)
75
- parser (>= 2.5, != 2.5.1.1)
76
- powerpack (~> 0.1)
71
+ parser (>= 3.2.0.0)
77
72
  rainbow (>= 2.2.2, < 4.0)
73
+ regexp_parser (>= 1.8, < 3.0)
74
+ rexml (>= 3.2.5, < 4.0)
75
+ rubocop-ast (>= 1.28.0, < 2.0)
78
76
  ruby-progressbar (~> 1.7)
79
- unicode-display_width (~> 1.0, >= 1.0.1)
80
- ruby-progressbar (1.10.0)
81
- safe_yaml (1.0.4)
82
- simplecov (0.16.1)
77
+ unicode-display_width (>= 2.4.0, < 3.0)
78
+ rubocop-ast (1.28.0)
79
+ parser (>= 3.2.1.0)
80
+ ruby-progressbar (1.13.0)
81
+ simplecov (0.22.0)
83
82
  docile (~> 1.1)
84
- json (>= 1.8, < 3)
85
- simplecov-html (~> 0.10.0)
86
- simplecov-html (0.10.2)
87
- unicode-display_width (1.4.0)
88
- webmock (3.4.2)
89
- addressable (>= 2.3.6)
83
+ simplecov-html (~> 0.11)
84
+ simplecov_json_formatter (~> 0.1)
85
+ simplecov-html (0.12.3)
86
+ simplecov_json_formatter (0.1.4)
87
+ unicode-display_width (2.4.2)
88
+ webmock (3.18.1)
89
+ addressable (>= 2.8.0)
90
90
  crack (>= 0.3.2)
91
- hashdiff
92
- yard (0.9.16)
91
+ hashdiff (>= 0.4.0, < 2.0.0)
92
+ yard (0.9.34)
93
+ zeitwerk (2.6.7)
93
94
 
94
95
  PLATFORMS
95
96
  ruby
96
97
 
97
98
  DEPENDENCIES
98
- bundler (~> 1.16)
99
99
  dotenv
100
- rake (~> 10.0)
101
- rspec (~> 3.0)
100
+ rake (~> 12)
101
+ rspec (~> 3)
102
102
  rubocop
103
103
  simplecov
104
104
  translator-text!
@@ -106,4 +106,4 @@ DEPENDENCIES
106
106
  yard
107
107
 
108
108
  BUNDLED WITH
109
- 1.16.2
109
+ 2.3.26
@@ -9,8 +9,6 @@ module TranslatorText
9
9
  attribute :score, Types::Float
10
10
  attribute :isTranslationSupported, Types::Bool
11
11
  attribute :isTransliterationSupported, Types::Bool
12
-
13
- attribute :alternatives, Types::Array.of(Alternative)
14
12
  end
15
13
  end
16
14
  end
@@ -3,7 +3,7 @@ require 'dry-struct'
3
3
  module TranslatorText
4
4
  # Includes all the types for the exchanges with the API
5
5
  module Types
6
- include Dry::Types.module
6
+ include Dry.Types
7
7
 
8
8
  Symbol = Types::Symbol.constructor do |str|
9
9
  str ? str.to_sym : str
@@ -1,3 +1,3 @@
1
1
  module TranslatorText
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.2.0'.freeze
3
3
  end
@@ -21,6 +21,6 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.require_paths = ['lib']
23
23
 
24
- spec.add_dependency 'dry-struct', '~> 0.5.0'
25
- spec.add_dependency 'httparty', '~> 0.15'
24
+ spec.add_dependency 'dry-struct', '~> 1'
25
+ spec.add_dependency 'httparty', '~> 0.21'
26
26
  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.1.0
4
+ version: 0.2.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: 2018-08-28 00:00:00.000000000 Z
11
+ date: 2023-04-19 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: 0.5.0
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: 0.5.0
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.15'
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.15'
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
@@ -88,8 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []
91
- rubyforge_project:
92
- rubygems_version: 2.6.14.1
91
+ rubygems_version: 3.3.26
93
92
  signing_key:
94
93
  specification_version: 4
95
94
  summary: API Wrapper for the Microsoft Translator Text API