rs_russian 0.13.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: 195b6c1c7690d3f6eb91bb16a8613a2b1f06ecfac1a8df8f8b5733d13a8cdd55
4
- data.tar.gz: 06a85509c197f707ed6428a1a5e096d1264268f27a3f124895bc24fe7c9a3cbf
3
+ metadata.gz: 8d177382c9f6a6b6ce473b8ddc1c05c0053e9c096dd2c4355c14618006071dff
4
+ data.tar.gz: a2c6fe3ea422d77b1c29ce4a7790dc21a37119abfed001b22d5ecd9be72a00a0
5
5
  SHA512:
6
- metadata.gz: 24f7bdc8b219b004ccb20c3fc4a84910b6ec49097550e92766cfc917d9a57632b7aa46b433c085f74119afa1cc27d69de3490f2f4747ec719b07bbdabc0289fc
7
- data.tar.gz: 199f20e9ac19e95db730b91af8a6c2f2b2d7b323f60711dc4b3416be754975576f1118bc2b61610f485ad54918a3e209deb06c8ede92ddae7b9bb25bccad2b00
6
+ metadata.gz: ba571aabfcf6434d34033f3117f36c90bc6e0ab12037b39dc56f661582321a96315276121c669a7e7217bb79da56566cc929781c882dc9e75aad1d0579c4faf7
7
+ data.tar.gz: 48bc81a71b7d22b04181ca1085accbf35b8c58914d008fa4282cf78fd9705b3ce50dc3cc0c40d68888a4946d6a088efae9d829c246cca70289433ed99759a1bc
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.1.5
1
+ ruby-2.6.6
data/.travis.yml CHANGED
@@ -3,4 +3,5 @@ notifications:
3
3
 
4
4
  language: ruby
5
5
  rvm:
6
- - 2.3.3
6
+ - 2.5
7
+ - 2.6
data/Gemfile.lock CHANGED
@@ -1,24 +1,25 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rs_russian (0.13.0)
5
- activesupport (>= 3.0.0, < 6.0.0)
6
- i18n (~> 1.1.0)
4
+ rs_russian (0.18.0)
5
+ activesupport (>= 6.1.0, < 6.2.0)
6
+ i18n (~> 1.8.0)
7
7
  unicode (~> 0.4.4)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (5.2.1)
12
+ activesupport (6.1.3.2)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
- i18n (>= 0.7, < 2)
15
- minitest (~> 5.1)
16
- tzinfo (~> 1.1)
17
- concurrent-ruby (1.0.5)
18
- diff-lcs (1.3)
19
- i18n (1.1.0)
14
+ i18n (>= 1.6, < 2)
15
+ minitest (>= 5.1)
16
+ tzinfo (~> 2.0)
17
+ zeitwerk (~> 2.3)
18
+ concurrent-ruby (1.1.8)
19
+ diff-lcs (1.4.4)
20
+ i18n (1.8.10)
20
21
  concurrent-ruby (~> 1.0)
21
- minitest (5.11.3)
22
+ minitest (5.14.4)
22
23
  rake (10.5.0)
23
24
  rspec (2.99.0)
24
25
  rspec-core (~> 2.99.0)
@@ -28,19 +29,19 @@ GEM
28
29
  rspec-expectations (2.99.2)
29
30
  diff-lcs (>= 1.1.3, < 2.0)
30
31
  rspec-mocks (2.99.4)
31
- thread_safe (0.3.6)
32
- tzinfo (1.2.5)
33
- thread_safe (~> 0.1)
32
+ tzinfo (2.0.4)
33
+ concurrent-ruby (~> 1.0)
34
34
  unicode (0.4.4.4)
35
+ zeitwerk (2.4.2)
35
36
 
36
37
  PLATFORMS
37
38
  ruby
38
39
 
39
40
  DEPENDENCIES
40
- bundler (~> 1.14)
41
+ bundler
41
42
  rake (< 11.0)
42
43
  rs_russian!
43
44
  rspec (~> 2.14)
44
45
 
45
46
  BUNDLED WITH
46
- 1.16.3
47
+ 2.2.7
data/Rakefile CHANGED
@@ -1,12 +1,10 @@
1
1
  require 'bundler/setup'
2
2
  Bundler::GemHelper.install_tasks
3
3
 
4
- require 'rspec/core/rake_task'
5
-
6
- desc "Run all examples"
7
- RSpec::Core::RakeTask.new(:spec) do |t|
8
- #t.rspec_path = 'bin/rspec'
9
- t.rspec_opts = %w[--color]
4
+ begin
5
+ require 'rspec/core/rake_task'
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ rescue LoadError
10
8
  end
11
9
 
12
- task :default => :spec
10
+ task :default => :spec
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
 
@@ -25,13 +25,14 @@ if defined?(ActiveModel::Errors)
25
25
  end
26
26
  end
27
27
 
28
+ alias_method :to_hash_old, :to_hash
28
29
  def to_hash(full_messages = false)
29
30
  if full_messages
30
- self.messages.each_with_object({}) do |(attribute, array), messages|
31
+ self.to_hash_old.each_with_object({}) do |(attribute, array), messages|
31
32
  messages[attribute] = array.map { |message| full_message(attribute, message) }
32
33
  end
33
34
  else
34
- self.messages.dup.map do |k, vs|
35
+ self.to_hash_old.map do |k, vs|
35
36
  m = vs.map do |v|
36
37
  if v =~ /^\^/
37
38
  v[1..-1]
@@ -1,3 +1,3 @@
1
1
  module Russian
2
- VERSION = "0.13.0"
2
+ VERSION = "0.18.0"
3
3
  end
@@ -0,0 +1,13 @@
1
+ {
2
+ "systemParams": "linux-x64-72",
3
+ "modulesFolders": [],
4
+ "flags": [],
5
+ "linkedModules": [
6
+ "extract-css-chunks-webpack-plugin",
7
+ "react-notification-system-redux"
8
+ ],
9
+ "topLevelPatterns": [],
10
+ "lockfileEntries": {},
11
+ "files": [],
12
+ "artifacts": {}
13
+ }
data/russian.gemspec CHANGED
@@ -18,11 +18,11 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency 'i18n', '~> 1.1.0'
21
+ spec.add_dependency 'i18n', '~> 1.8.0'
22
22
  spec.add_dependency 'unicode', '~> 0.4.4'
23
- spec.add_dependency 'activesupport', ['>= 3.0.0', '< 6.0.0']
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
data/yarn.lock ADDED
@@ -0,0 +1,4 @@
1
+ # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
+ # yarn lockfile v1
3
+
4
+
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rs_russian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv
8
8
  - Yaroslav Markin
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-09-07 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
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 1.1.0
20
+ version: 1.8.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 1.1.0
27
+ version: 1.8.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: unicode
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -45,34 +45,34 @@ dependencies:
45
45
  requirements:
46
46
  - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: 3.0.0
48
+ version: 6.1.0
49
49
  - - "<"
50
50
  - !ruby/object:Gem::Version
51
- version: 6.0.0
51
+ version: 6.2.0
52
52
  type: :runtime
53
53
  prerelease: false
54
54
  version_requirements: !ruby/object:Gem::Requirement
55
55
  requirements:
56
56
  - - ">="
57
57
  - !ruby/object:Gem::Version
58
- version: 3.0.0
58
+ version: 6.1.0
59
59
  - - "<"
60
60
  - !ruby/object:Gem::Version
61
- version: 6.0.0
61
+ version: 6.2.0
62
62
  - !ruby/object:Gem::Dependency
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
@@ -119,7 +119,6 @@ files:
119
119
  - LICENSE
120
120
  - README.textile
121
121
  - Rakefile
122
- - TODO
123
122
  - lib/rs_russian.rb
124
123
  - lib/russian.rb
125
124
  - lib/russian/action_view_ext/helpers/date_helper.rb
@@ -136,6 +135,7 @@ files:
136
135
  - lib/russian/russian_rails.rb
137
136
  - lib/russian/transliteration.rb
138
137
  - lib/russian/version.rb
138
+ - node_modules/.yarn-integrity
139
139
  - russian.gemspec
140
140
  - spec/fixtures/en.yml
141
141
  - spec/fixtures/ru.yml
@@ -145,11 +145,12 @@ files:
145
145
  - spec/russian_spec.rb
146
146
  - spec/spec_helper.rb
147
147
  - spec/transliteration_spec.rb
148
+ - yarn.lock
148
149
  homepage: https://github.com/rs-pro/russian
149
150
  licenses:
150
151
  - MIT
151
152
  metadata: {}
152
- post_install_message:
153
+ post_install_message:
153
154
  rdoc_options: []
154
155
  require_paths:
155
156
  - lib
@@ -164,9 +165,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
165
  - !ruby/object:Gem::Version
165
166
  version: '0'
166
167
  requirements: []
167
- rubyforge_project:
168
- rubygems_version: 2.7.7
169
- signing_key:
168
+ rubygems_version: 3.2.13
169
+ signing_key:
170
170
  specification_version: 4
171
171
  summary: Russian language support for Ruby and Rails
172
172
  test_files:
data/TODO DELETED
@@ -1,4 +0,0 @@
1
- TODO
2
- ====
3
- * RDoc
4
-