rs_russian 0.8.1 → 0.9.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
  SHA1:
3
- metadata.gz: 1115b061a56c17e49b2669ebed20e3e1c3204598
4
- data.tar.gz: daac96ea23fb9044af33f4d1629daca1289e9d4e
3
+ metadata.gz: 3d29ba0aad8e1037fe23c69e7bdd42b62c0273de
4
+ data.tar.gz: dc9541d3549adb7d64dbd26bda4bbd94dac6fe92
5
5
  SHA512:
6
- metadata.gz: 554ca6cc31d9403ddfd36c09eb5dd56785e706c95517c034a99ea716ac616f61d819d031eec5f735c57f570aeccaebbbbc052e222365a67a589eba6ba8143b5d
7
- data.tar.gz: 4612f146f776c494ba2f4dba4526df6c50bf502667e36204de079153f9cfea5b88aab3fe2d370475932c3ce2049380fe87d67873709a7bfd8c1b775be6c98d72
6
+ metadata.gz: e2856114e600cb2533091b17975786ec172200eab9208faee58d695580cfdcf985a69922bc1bf341b27c71f90b5ebe7266883cbdc4b9354219c086220a14bcc1
7
+ data.tar.gz: fbcaa835ce4163f32c1b24cbf5fe3d5083ff937510ce7f036d273bd61ad7feedc918943035b279c06a8201376f13ef083bb9aed23454f3d01b03e7b3bacb2d82
data/Gemfile CHANGED
@@ -1,3 +1,4 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
+
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rs_russian (0.8.1)
4
+ rs_russian (0.9.0)
5
5
  activesupport (>= 3.0.0, < 5.0.0)
6
6
  i18n (>= 0.6.0, < 0.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 (4.2.0)
12
+ activesupport (4.2.1)
13
13
  i18n (~> 0.7)
14
14
  json (~> 1.7, >= 1.7.7)
15
15
  minitest (~> 5.1)
@@ -17,8 +17,8 @@ GEM
17
17
  tzinfo (~> 1.1)
18
18
  diff-lcs (1.2.5)
19
19
  i18n (0.7.0)
20
- json (1.8.1)
21
- minitest (5.5.0)
20
+ json (1.8.2)
21
+ minitest (5.6.1)
22
22
  rake (10.4.2)
23
23
  rspec (2.99.0)
24
24
  rspec-core (~> 2.99.0)
@@ -27,8 +27,8 @@ GEM
27
27
  rspec-core (2.99.2)
28
28
  rspec-expectations (2.99.2)
29
29
  diff-lcs (>= 1.1.3, < 2.0)
30
- rspec-mocks (2.99.2)
31
- thread_safe (0.3.4)
30
+ rspec-mocks (2.99.3)
31
+ thread_safe (0.3.5)
32
32
  tzinfo (1.2.2)
33
33
  thread_safe (~> 0.1)
34
34
  unicode (0.4.4.2)
@@ -9,7 +9,7 @@ module RailsAdmin
9
9
  class << self
10
10
  alias_method :normalize_without_russian, :normalize
11
11
  def normalize(date_string, format)
12
- unless I18n.locale == "en"
12
+ unless I18n.locale == :en
13
13
  format.to_s.scan(/%[AaBbp]/) do |match|
14
14
  case match
15
15
  when '%B'
@@ -1,3 +1,3 @@
1
1
  module Russian
2
- VERSION = "0.8.1"
3
- end
2
+ VERSION = "0.9.0"
3
+ end
data/spec/locale_spec.rb CHANGED
@@ -33,12 +33,12 @@ describe Russian, "loading locales" do
33
33
 
34
34
  it "should load pluralization rules" do
35
35
  lookup(:'i18n.plural.rule').should_not be_nil
36
- lookup(:'i18n.plural.rule').is_a?(Proc).should be_true
36
+ lookup(:'i18n.plural.rule').is_a?(Proc).should be true
37
37
  end
38
38
 
39
39
  it "should load transliteration rule" do
40
40
  lookup(:'i18n.transliterate.rule').should_not be_nil
41
- lookup(:'i18n.transliterate.rule').is_a?(Proc).should be_true
41
+ lookup(:'i18n.transliterate.rule').is_a?(Proc).should be true
42
42
  end
43
43
 
44
44
  def lookup(*args)
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.8.1
4
+ version: 0.9.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: 2014-12-30 00:00:00.000000000 Z
12
+ date: 2015-05-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  version: '0'
172
172
  requirements: []
173
173
  rubyforge_project:
174
- rubygems_version: 2.2.2
174
+ rubygems_version: 2.4.5
175
175
  signing_key:
176
176
  specification_version: 4
177
177
  summary: Russian language support for Ruby and Rails