lokalise_manager 3.3.0 → 4.0.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
2
  SHA256:
3
- metadata.gz: eec5391729d2e75849846e323f88ca9817b01b0fa67c3293c7a14a23edbfea7a
4
- data.tar.gz: 8ce91e9c150e5a7c93c7009f027160ceeab4b3e5ebcec3928cf4cfd51476bfc8
3
+ metadata.gz: e050488025db0f9c199092084e0b7925ffe56de86ea958f5647c073d396a1bc4
4
+ data.tar.gz: a172734358df197f42c6c1f54c12de213bd5cb76537bb75167d69fca9ea81e90
5
5
  SHA512:
6
- metadata.gz: cb1433d03eb8c52017600dd6833c8cb0214de4ffdaf0215c4bbe700794f3a10ea260f787e56a6393796943d48973e93161314e78f0f330120f3e0478b8895a07
7
- data.tar.gz: f109171b02e72eee8ded4aa43c549815170903e0dd6a4b14cc37b20a2b93282dc1f588e8be75c5cceb0e92ac77ec41ee1ad9888e65009d7997d1c61938bf73da
6
+ metadata.gz: 73721527aed2b9fcfcdcf54c2475b6f9cc51307f82ab5c32a2736b6c909c48187d04c72ebfab1cd616293562a5c0bbbbc47dd41cd8e37d7eef83527c3452f86f
7
+ data.tar.gz: f42762cc96263e83c84be880678914265eb43dcd595050fa63d17f7e72bdb566af27185874ff1b135964cb8ce33e6ba61be2d2e2d321137c99777ab2e33b5374
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.0.0 (27-Jul-2023)
4
+
5
+ * **Use ruby-lokalise-api version 8**. It should not introduce any breaking changes (as main methods have similar signatures) but you should be aware that v8 is a complete rewrite of the original SDK so please make sure your tests pass.
6
+ * Replace VCR with WebMock in tests
7
+ * Various minor updates
8
+ * Do not test with Ruby 2.7 (EOL)
9
+
3
10
  ## 3.3.0 (18-Nov-22)
4
11
 
5
12
  * Use newer ruby-lokalise-api
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 Lokalise team, Ilya Krukowski
3
+ Copyright (c) 2023 Ilya Krukowski
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ![Gem](https://img.shields.io/gem/v/lokalise_manager)
4
4
  ![CI](https://github.com/bodrovis/lokalise_manager/actions/workflows/ci.yml/badge.svg)
5
- [![Test Coverage](https://codecov.io/gh/bodrovis/lokalise_manager/graph/badge.svg)](https://codecov.io/gh/bodrovis/lokalise_manager)
5
+ [![Coverage Status](https://coveralls.io/repos/github/bodrovis/lokalise_manager/badge.svg?branch=master)](https://coveralls.io/github/bodrovis/lokalise_manager?branch=master)
6
6
  ![Downloads total](https://img.shields.io/gem/dt/lokalise_manager)
7
7
 
8
8
  This gem provides [Lokalise](http://lokalise.com) integration for Ruby and allows to exchange translation files between your project and TMS easily. It relies on [ruby-lokalise-api](https://lokalise.github.io/ruby-lokalise-api) to send APIv2 requests.
@@ -297,9 +297,9 @@ importer.import!
297
297
 
298
298
  ## Running tests
299
299
 
300
- 1. Copypaste `.env.example` file as `.env`. Put your Lokalise API token and project ID inside. The `.env` file is excluded from version control so your data is safe. All in all, we use pre-recorded VCR cassettes, so the actual API requests won’t be sent. However, providing at least some values is required.
300
+ 1. Copypaste `.env.example` file as `.env`. Put your Lokalise API token and project ID inside. The `.env` file is excluded from version control so your data is safe. All in all, we use stubs, so the actual API requests won’t be sent. However, providing at least some values is required.
301
301
  2. Run `rspec .`. Observe test results and code coverage.
302
302
 
303
303
  ## License
304
304
 
305
- Copyright (c) [Lokalise team](http://lokalise.com), [Ilya Krukowski](http://bodrovis.tech). License type is [MIT](https://github.com/bodrovis/lokalise_manager/blob/master/LICENSE).
305
+ Copyright (c) [Ilya Krukowski](http://bodrovis.tech). License type is [MIT](https://github.com/bodrovis/lokalise_manager/blob/master/LICENSE).
@@ -95,7 +95,7 @@ module LokaliseManager
95
95
 
96
96
  # Converts translations data to the proper format
97
97
  def translations_converter
98
- @translations_converter || ->(raw_data) { YAML.dump(raw_data).gsub(/\\\\n/, '\n') }
98
+ @translations_converter || ->(raw_data) { YAML.dump(raw_data).gsub('\\\\n', '\n') }
99
99
  end
100
100
 
101
101
  # Infers lang ISO for the given translation file
@@ -17,10 +17,10 @@ module LokaliseManager
17
17
  # @param custom_opts [Hash]
18
18
  # @param global_config [Object]
19
19
  def initialize(custom_opts = {}, global_config = LokaliseManager::GlobalConfig)
20
- primary_opts = global_config.
21
- singleton_methods.
22
- filter { |m| m.to_s.end_with?('=') }.
23
- each_with_object({}) do |method, opts|
20
+ primary_opts = global_config
21
+ .singleton_methods
22
+ .filter { |m| m.to_s.end_with?('=') }
23
+ .each_with_object({}) do |method, opts|
24
24
  reader = method.to_s.delete_suffix('=')
25
25
  opts[reader.to_sym] = global_config.send(reader)
26
26
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LokaliseManager
4
- VERSION = '3.3.0'
4
+ VERSION = '4.0.0'
5
5
  end
@@ -8,7 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ['Ilya Krukowski']
9
9
  spec.email = ['golosizpru@gmail.com']
10
10
  spec.summary = 'Lokalise integration for Ruby'
11
- spec.description = 'This gem contains a collection of some common tasks for Lokalise. Specifically, it allows to import/export translation files from/to Lokalise TMS.'
11
+ spec.description = 'This gem contains a collection of some common tasks for Lokalise. Specifically, ' \
12
+ 'it allows to import/export translation files from/to Lokalise TMS.'
12
13
  spec.homepage = 'https://github.com/bodrovis/lokalise_manager'
13
14
  spec.license = 'MIT'
14
15
  spec.platform = Gem::Platform::RUBY
@@ -22,11 +23,10 @@ Gem::Specification.new do |spec|
22
23
  spec.extra_rdoc_files = ['README.md']
23
24
  spec.require_paths = ['lib']
24
25
 
25
- spec.add_dependency 'ruby-lokalise-api', '~> 7'
26
+ spec.add_dependency 'ruby-lokalise-api', '~> 8.0'
26
27
  spec.add_dependency 'rubyzip', '~> 2.3'
27
28
  spec.add_dependency 'zeitwerk', '~> 2.4'
28
29
 
29
- spec.add_development_dependency 'codecov', '~> 0.2'
30
30
  spec.add_development_dependency 'dotenv', '~> 2.5'
31
31
  spec.add_development_dependency 'rake', '~> 13.0'
32
32
  spec.add_development_dependency 'rspec', '~> 3.6'
@@ -35,7 +35,8 @@ Gem::Specification.new do |spec|
35
35
  spec.add_development_dependency 'rubocop-rake', '~> 0.6'
36
36
  spec.add_development_dependency 'rubocop-rspec', '~> 2.6'
37
37
  spec.add_development_dependency 'simplecov', '~> 0.16'
38
- spec.add_development_dependency 'vcr', '~> 6.0'
38
+ spec.add_development_dependency 'simplecov-lcov', '~> 0.8'
39
+ spec.add_development_dependency 'webmock', '~> 3.18'
39
40
  spec.metadata = {
40
41
  'rubygems_mfa_required' => 'true'
41
42
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lokalise_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Krukowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-18 00:00:00.000000000 Z
11
+ date: 2023-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-lokalise-api
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '7'
19
+ version: '8.0'
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: '7'
26
+ version: '8.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubyzip
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.4'
55
- - !ruby/object:Gem::Dependency
56
- name: codecov
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '0.2'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '0.2'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: dotenv
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -179,19 +165,33 @@ dependencies:
179
165
  - !ruby/object:Gem::Version
180
166
  version: '0.16'
181
167
  - !ruby/object:Gem::Dependency
182
- name: vcr
168
+ name: simplecov-lcov
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '0.8'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '0.8'
181
+ - !ruby/object:Gem::Dependency
182
+ name: webmock
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '6.0'
187
+ version: '3.18'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: '6.0'
194
+ version: '3.18'
195
195
  description: This gem contains a collection of some common tasks for Lokalise. Specifically,
196
196
  it allows to import/export translation files from/to Lokalise TMS.
197
197
  email:
@@ -238,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
238
  - !ruby/object:Gem::Version
239
239
  version: '0'
240
240
  requirements: []
241
- rubygems_version: 3.3.26
241
+ rubygems_version: 3.4.17
242
242
  signing_key:
243
243
  specification_version: 4
244
244
  summary: Lokalise integration for Ruby