r18n-rails-api 1.1.8 → 1.1.9

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
  SHA1:
3
- metadata.gz: 4d38df3a065110c2578cdbaca0df5eef43ff6449
4
- data.tar.gz: 8968c123ab9beaa2194f3e00d3ea7d8f047bd4c9
3
+ metadata.gz: bf2f696717541789764b0f3215503fc607db99d0
4
+ data.tar.gz: ffa67733f6eed1276c585e5d32660ea19bdc920e
5
5
  SHA512:
6
- metadata.gz: d56faf1b808b7b545b79a4e8d61d79713644a58c300106bc0832b9cc1e35af50c05d00abe406f173bbd7d3912941cce3d7aa2c923b17723cc193166e24a06339
7
- data.tar.gz: 4d4bc4ca85bccdb6088a6f1f721f292f3167eb0b9cb0b602a02f30f4fa130ec74e4ee4c727c9d037d9ed3be1053a149509847d526d6c961c6aa57da6c42d01df
6
+ metadata.gz: 242b89c84abc7e17701416d0874669a098c72630a848fec0f2bab8affed85f156bba49fa827e9527c44a5dabbafd861b717638ec5a7da070a8f1146141bb5316
7
+ data.tar.gz: 03062e9619f43e1b55db42b807d4e3714eb90139b6a3f80c6f6b1c0180e431456d2aac24aeae8497c09c05b1b00687fa275dee43ea17ce44a08b9d5fe21b3c45
@@ -83,7 +83,7 @@ module R18n
83
83
 
84
84
  # Return array of available locales codes.
85
85
  def available_locales
86
- R18n.get.available_locales.map { |i| i.code.to_sym }
86
+ R18n.available_locales.map { |i| i.code.to_sym }
87
87
  end
88
88
 
89
89
  # Reload R18n I18n object.
@@ -1,4 +1,4 @@
1
- require '../r18n-core/lib/r18n-core/version'
1
+ require File.expand_path('../../r18n-core/lib/r18n-core/version', __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.platform = Gem::Platform::RUBY
@@ -20,11 +20,11 @@ Gem::Specification.new do |s|
20
20
  s.extra_rdoc_files = ['README.md', 'LICENSE']
21
21
  s.require_path = 'lib'
22
22
 
23
- s.author = 'Andrey "A.I." Sitnik'
23
+ s.author = 'Andrey Sitnik'
24
24
  s.email = 'andrey@sitnik.ru'
25
25
  s.homepage = 'https://github.com/ai/r18n/tree/master/r18n-rails-api'
26
26
  s.license = 'LGPL-3'
27
27
 
28
- s.add_dependency 'r18n-core', ["= #{R18n::VERSION}"]
28
+ s.add_dependency 'r18n-core', "= #{R18n::VERSION}"
29
29
  s.add_dependency 'i18n'
30
30
  end
@@ -5,7 +5,8 @@ describe R18n::Backend do
5
5
  before do
6
6
  I18n.load_path = [GENERAL]
7
7
  I18n.backend = R18n::Backend.new
8
- R18n.set('en', R18n::Loader::Rails.new)
8
+ R18n.default_places = R18n::Loader::Rails.new
9
+ R18n.set('en')
9
10
  end
10
11
 
11
12
  it "returns available locales" do
@@ -3,6 +3,8 @@ require 'pp'
3
3
  require 'i18n'
4
4
  require 'active_support'
5
5
 
6
+ I18n.enforce_available_locales = true
7
+
6
8
  require File.join(File.dirname(__FILE__), '../lib/r18n-rails-api')
7
9
 
8
10
  EN = R18n.locale(:en)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r18n-rails-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.1.9
5
5
  platform: ruby
6
6
  authors:
7
- - Andrey "A.I." Sitnik
7
+ - Andrey Sitnik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-27 00:00:00.000000000 Z
11
+ date: 2014-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: r18n-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.1.8
19
+ version: 1.1.9
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: 1.1.8
26
+ version: 1.1.9
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: i18n
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.2.0
97
+ rubygems_version: 2.2.2
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Rails I18n compatibility for R18n