onlyoffice_language_helper 0.4.0 → 0.5.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: dd764ee21cd204cfb7d5a5043bc8dd77dd444a1155b061b121ba31c20d1070f6
4
- data.tar.gz: 6740cc29afff12e6fcebbb3ec4e0ab22a715646c1f3a5ab79305d214f6d7bb5e
3
+ metadata.gz: 23f037370c055f1bb2705656ec0b7cddd5236c0725909a5c147053c46705f80a
4
+ data.tar.gz: 6899e8b66be0f46f2ffb2edb727f66f5d008e0322c5e5d59f3a09161782019c1
5
5
  SHA512:
6
- metadata.gz: c658ea226f63814598546faf96c6e69bbcf75789b4e16140225eeeca581cd176bddf100e8023407d0224fc2d2c7a48603654ada5f649df53d2070cbe617760ab
7
- data.tar.gz: 7125cacfd2ace60894d27cdf73562d59188eb6e206fafa7c314baf818d2d3ed78fba73bc6c271fe34dcacac8f333003d5b80a0db81fe61ad80ba6a6bb133f06e
6
+ metadata.gz: 407a8dba3654b6e5a1210d0fda7027753236e0e3fb183454f4e387bfefd98013d32decc8e561d52c39c6ee111d777e10b33744def1a5709a503fb607fb9108ad
7
+ data.tar.gz: d3a308d417e561c8477abbd5eedd483acc643f893daa575d120d80016e05ca502337015d732cd6087a3bbb69370f4dc4b85c77a456d2399734d5a7a0561562fc
@@ -29,7 +29,7 @@ module OnlyofficeLanguageHelper
29
29
  # Set value to variable DetectLanguageWrapper.keys
30
30
  # @return [Array, String] list of keys
31
31
  def read_keys
32
- return [ENV['DETECT_LANGUAGE_KEY']] if ENV['DETECT_LANGUAGE_KEY']
32
+ return [ENV['DETECT_LANGUAGE_KEY']] if ENV.key?('DETECT_LANGUAGE_KEY')
33
33
 
34
34
  OnlyofficeFileHelper::FileHelper
35
35
  .read_array_from_file("#{Dir.home}/.detect_language/keys")
@@ -47,7 +47,7 @@ module OnlyofficeLanguageHelper
47
47
  end
48
48
  return true if DetectLanguage.user_status['status'] == 'ACTIVE'
49
49
  end
50
- raise 'All keys are non-active. '\
50
+ raise 'All keys are non-active. ' \
51
51
  'Please register more detectlanguage.com accounts'
52
52
  end
53
53
  end
@@ -76,7 +76,7 @@ module OnlyofficeLanguageHelper
76
76
  # @param language [String] language to get
77
77
  # @return [String] path
78
78
  def self.path_to_dic_aff(extension, language = config.expected_language)
79
- "#{config.dictionaries_path}/dictionaries/"\
79
+ "#{config.dictionaries_path}/dictionaries/" \
80
80
  "#{language}/#{language}.#{extension}"
81
81
  end
82
82
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  module OnlyofficeLanguageHelper
4
4
  # @return [String] version of gem
5
- VERSION = '0.4.0'
5
+ VERSION = '0.5.0'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onlyoffice_language_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ONLYOFFICE
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-07-01 00:00:00.000000000 Z
12
+ date: 2022-08-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: detect_language
@@ -57,16 +57,16 @@ dependencies:
57
57
  name: onlyoffice_file_helper
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - "~>"
60
+ - - "<"
61
61
  - !ruby/object:Gem::Version
62
- version: '0'
62
+ version: '2'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - "~>"
67
+ - - "<"
68
68
  - !ruby/object:Gem::Version
69
- version: '0'
69
+ version: '2'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: onlyoffice_logger_helper
72
72
  requirement: !ruby/object:Gem::Requirement
@@ -345,6 +345,7 @@ metadata:
345
345
  documentation_uri: https://www.rubydoc.info/gems/onlyoffice_language_helper
346
346
  homepage_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_language_helper
347
347
  source_code_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_language_helper
348
+ rubygems_mfa_required: 'true'
348
349
  post_install_message:
349
350
  rdoc_options: []
350
351
  require_paths:
@@ -353,14 +354,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
353
354
  requirements:
354
355
  - - ">="
355
356
  - !ruby/object:Gem::Version
356
- version: '2.5'
357
+ version: '2.7'
357
358
  required_rubygems_version: !ruby/object:Gem::Requirement
358
359
  requirements:
359
360
  - - ">="
360
361
  - !ruby/object:Gem::Version
361
362
  version: '0'
362
363
  requirements: []
363
- rubygems_version: 3.2.21
364
+ rubygems_version: 3.3.20
364
365
  signing_key:
365
366
  specification_version: 4
366
367
  summary: ONLYOFFICE Helper Gem for language operation