rs_russian 0.17.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77208ae20cfea9699cc1370376bcd01da986535ff1c0da4274753ff3962d9561
4
- data.tar.gz: 1ae1f3f25195fadf0827e578495cee2d155e9f68bbcda6d5b6716371399623e3
3
+ metadata.gz: 8d177382c9f6a6b6ce473b8ddc1c05c0053e9c096dd2c4355c14618006071dff
4
+ data.tar.gz: a2c6fe3ea422d77b1c29ce4a7790dc21a37119abfed001b22d5ecd9be72a00a0
5
5
  SHA512:
6
- metadata.gz: 42824bc6669736faa73588cd4f4d8fdd070d26423bc53fc9024bcf91207c1033aed2c07ac9a778e4d351dd176e7c7ec4c795865227bd0bde2552c047c444162c
7
- data.tar.gz: fa6bc663850c4c31b9a38c7ce291729a69e31e78b8ccdf7a292f4cfb46ce5f8d2b2c654bc61c321db0d0e2d07cc703b9d9edbf64fb92a0509e9eebaf2e9f1aa0
6
+ metadata.gz: ba571aabfcf6434d34033f3117f36c90bc6e0ab12037b39dc56f661582321a96315276121c669a7e7217bb79da56566cc929781c882dc9e75aad1d0579c4faf7
7
+ data.tar.gz: 48bc81a71b7d22b04181ca1085accbf35b8c58914d008fa4282cf78fd9705b3ce50dc3cc0c40d68888a4946d6a088efae9d829c246cca70289433ed99759a1bc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rs_russian (0.17.0)
4
+ rs_russian (0.18.0)
5
5
  activesupport (>= 6.1.0, < 6.2.0)
6
6
  i18n (~> 1.8.0)
7
7
  unicode (~> 0.4.4)
@@ -9,7 +9,7 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (6.1.3)
12
+ activesupport (6.1.3.2)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
14
  i18n (>= 1.6, < 2)
15
15
  minitest (>= 5.1)
@@ -17,9 +17,9 @@ GEM
17
17
  zeitwerk (~> 2.3)
18
18
  concurrent-ruby (1.1.8)
19
19
  diff-lcs (1.4.4)
20
- i18n (1.8.9)
20
+ i18n (1.8.10)
21
21
  concurrent-ruby (~> 1.0)
22
- minitest (5.14.3)
22
+ minitest (5.14.4)
23
23
  rake (10.5.0)
24
24
  rspec (2.99.0)
25
25
  rspec-core (~> 2.99.0)
@@ -38,10 +38,10 @@ PLATFORMS
38
38
  ruby
39
39
 
40
40
  DEPENDENCIES
41
- bundler (~> 1.14)
41
+ bundler
42
42
  rake (< 11.0)
43
43
  rs_russian!
44
44
  rspec (~> 2.14)
45
45
 
46
46
  BUNDLED WITH
47
- 1.17.3
47
+ 2.2.7
data/lib/russian.rb CHANGED
@@ -52,13 +52,13 @@ module Russian
52
52
 
53
53
  # See I18n::translate
54
54
  def translate(key, options = {})
55
- I18n.translate(key, options.merge({ :locale => LOCALE }))
55
+ I18n.translate(key, **options.merge({ :locale => LOCALE }))
56
56
  end
57
57
  alias :t :translate
58
58
 
59
59
  # See I18n::localize
60
60
  def localize(object, options = {})
61
- I18n.localize(object, options.merge({ :locale => LOCALE }))
61
+ I18n.localize(object, **options.merge({ :locale => LOCALE }))
62
62
  end
63
63
  alias :l :localize
64
64
 
@@ -1,3 +1,3 @@
1
1
  module Russian
2
- VERSION = "0.17.0"
2
+ VERSION = "0.18.0"
3
3
  end
data/russian.gemspec CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_dependency 'unicode', '~> 0.4.4'
23
23
  spec.add_dependency 'activesupport', ['>= 6.1.0', '< 6.2.0']
24
24
 
25
- spec.add_development_dependency 'bundler', '~> 1.14'
25
+ spec.add_development_dependency 'bundler'
26
26
  spec.add_development_dependency 'rake', '< 11.0'
27
27
  spec.add_development_dependency 'rspec', '~> 2.14'
28
28
  end
@@ -115,6 +115,6 @@ describe I18n, "Russian Date/Time localization" do
115
115
 
116
116
  protected
117
117
  def l(object, options = {})
118
- I18n.l(object, options.merge( { :locale => Russian.locale }))
118
+ I18n.l(object, **options.merge( { :locale => Russian.locale }))
119
119
  end
120
120
  end
data/spec/russian_spec.rb CHANGED
@@ -124,9 +124,9 @@ describe Russian do
124
124
  lambda { Russian.send(method, 1) }.should raise_error(ArgumentError)
125
125
  lambda { Russian.send(method, 1, "вещь") }.should raise_error(ArgumentError)
126
126
  lambda { Russian.send(method, 1, "вещь", "вещи") }.should raise_error(ArgumentError)
127
- lambda { Russian.send(method, 1, "вещь", "вещи", "вещей") }.should_not raise_error(ArgumentError)
127
+ expect { Russian.send(method, 1, "вещь", "вещи", "вещей") }.not_to raise_error
128
128
  lambda { Russian.send(method, 3.14, "вещь", "вещи", "вещей") }.should raise_error(ArgumentError)
129
- lambda { Russian.send(method, 3.14, "вещь", "вещи", "вещей", "вещи") }.should_not raise_error(ArgumentError)
129
+ expect { Russian.send(method, 3.14, "вещь", "вещи", "вещей", "вещи") }.not_to raise_error
130
130
  end
131
131
  end
132
132
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rs_russian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-02-20 00:00:00.000000000 Z
12
+ date: 2021-05-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
@@ -63,16 +63,16 @@ dependencies:
63
63
  name: bundler
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '1.14'
68
+ version: '0'
69
69
  type: :development
70
70
  prerelease: false
71
71
  version_requirements: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '1.14'
75
+ version: '0'
76
76
  - !ruby/object:Gem::Dependency
77
77
  name: rake
78
78
  requirement: !ruby/object:Gem::Requirement
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
- rubygems_version: 3.0.3
168
+ rubygems_version: 3.2.13
169
169
  signing_key:
170
170
  specification_version: 4
171
171
  summary: Russian language support for Ruby and Rails