mini_i18n 0.8.0 → 0.9.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
- SHA1:
3
- metadata.gz: ef2a53042e3999db594b7dc77b9e7a90ad6b5f74
4
- data.tar.gz: 2893c26ab80b3dca7e2605a1d012089b74c4ac32
2
+ SHA256:
3
+ metadata.gz: c9f1764e408c5192196c7630a410f22139768cbfb72a315e662e0c66911eec89
4
+ data.tar.gz: 4410a333ad7565dcf86f6c85186b6e557343a17d2f3b4b71ef727ed2f891f048
5
5
  SHA512:
6
- metadata.gz: 0151a62d4cdd3dda83766ddc688ef7472b543fc4a88e2c46f7df6750346abdc5dbb24370383cdf01b2cd2644dad153e299f2215b7656b8770505e1bef20474b5
7
- data.tar.gz: d71c64a9fa707378ea398b9e3fc93a2447596121df8dc9dc1fc53011612896997a43b85db78ca442d7e6122dbaacfa4d0aad783408cff7d35163cf6991f9e26e
6
+ metadata.gz: 685f079c4337705b59026bf88beb330c88d662ec111c1af8ea5a029638d143c47c2521975c9d8fa8e1db6796ddf7e0a9b6a0d15693a9ae1077cde466e3cc69c5
7
+ data.tar.gz: cc0357f872d83ab2cd0523d8c3a8f7c265e59f30a4b82d97afeb1ad71f6b85eaf7f73c02154f42edb327904883ee710eede3ddb3e78b549f963728a59edb425b
@@ -1,3 +1,3 @@
1
1
  module MiniI18n
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
3
3
  end
data/lib/mini_i18n.rb CHANGED
@@ -62,7 +62,7 @@ module MiniI18n
62
62
  end
63
63
 
64
64
  def load_translations(path)
65
- Dir[path.to_s].each do |file|
65
+ Dir[path.to_s].sort.each do |file|
66
66
  YAML.load_file(file).each do |locale, new_translations|
67
67
  add_translations(locale.to_s, new_translations)
68
68
  end
@@ -46,8 +46,8 @@ RSpec.describe MiniI18n do
46
46
  MiniI18n.separator = ' '
47
47
  expect(MiniI18n.t('second_level hello')).to eq 'hello 2'
48
48
 
49
- MiniI18n.separator = '::'
50
- expect(MiniI18n.t('second_level::hello')).to eq 'hello 2'
49
+ MiniI18n.separator = '/'
50
+ expect(MiniI18n.t('second_level/hello')).to eq 'hello 2'
51
51
  end
52
52
  end
53
53
 
metadata CHANGED
@@ -1,59 +1,45 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - markets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-11 00:00:00.000000000 Z
11
+ date: 2022-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: '0'
20
20
  type: :development
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.16'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '3.7'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '3.7'
55
- - !ruby/object:Gem::Dependency
56
- name: byebug
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - ">="
@@ -119,8 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
105
  - !ruby/object:Gem::Version
120
106
  version: '0'
121
107
  requirements: []
122
- rubyforge_project:
123
- rubygems_version: 2.6.13
108
+ rubygems_version: 3.1.4
124
109
  signing_key:
125
110
  specification_version: 4
126
111
  summary: Minimalistic I18n library for Ruby