r18n-core 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.rspec +1 -1
- data/ChangeLog +5 -0
- data/Rakefile +0 -5
- data/base/{nb-no.yml → nb.yml} +0 -0
- data/lib/r18n-core/filters.rb +1 -1
- data/lib/r18n-core/utils.rb +0 -16
- data/lib/r18n-core/version.rb +1 -1
- data/lib/r18n-core/yaml_methods.rb +0 -1
- data/locales/en.rb +1 -1
- data/locales/hu.rb +2 -3
- data/locales/{nb-no.rb → nb.rb} +4 -4
- data/locales/no.rb +21 -0
- data/spec/filters_spec.rb +1 -1
- data/spec/i18n_spec.rb +19 -17
- data/spec/locale_spec.rb +10 -10
- data/spec/r18n_spec.rb +2 -2
- data/spec/spec_helper.rb +0 -4
- data/spec/translated_spec.rb +2 -2
- data/spec/translation_spec.rb +5 -5
- data/spec/translations/extension/{no-tr.yml → notransl.yml} +0 -0
- data/spec/translations/general/{no-lc.yml → nolocale.yml} +0 -0
- data/spec/yaml_loader_spec.rb +7 -5
- metadata +54 -53
data/.rspec
CHANGED
@@ -1 +1 @@
|
|
1
|
-
--format documentation --colour
|
1
|
+
--format documentation --colour
|
data/ChangeLog
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
== 1.1.4 (Bokmål)
|
2
|
+
* Add Norwegian “no” locale as gateway to Bokmål or Nynorsk.
|
3
|
+
* Fix Norwegian Bokmål locale code.
|
4
|
+
* Fix hungarian time format (Kővágó Zoltán).
|
5
|
+
|
1
6
|
== 1.1.3 (Saint Petersburg)
|
2
7
|
* Fix memory leak from cache key missmatch in Rails plugin (by silentshade).
|
3
8
|
|
data/Rakefile
CHANGED
@@ -16,11 +16,6 @@ require 'rspec/core/rake_task'
|
|
16
16
|
|
17
17
|
RSpec::Core::RakeTask.new
|
18
18
|
|
19
|
-
task :spec_syck do
|
20
|
-
ENV['test_syck'] = '1'
|
21
|
-
Rake::Task['spec'].execute
|
22
|
-
end
|
23
|
-
|
24
19
|
require 'yard'
|
25
20
|
YARD::Rake::YardocTask.new do |yard|
|
26
21
|
yard.options << "--title='R18n #{R18n::VERSION}'"
|
data/base/{nb-no.yml → nb.yml}
RENAMED
File without changes
|
data/lib/r18n-core/filters.rb
CHANGED
data/lib/r18n-core/utils.rb
CHANGED
@@ -65,21 +65,5 @@ module R18n
|
|
65
65
|
end
|
66
66
|
a
|
67
67
|
end
|
68
|
-
|
69
|
-
# Call +block+ with Syck yamler. It used to load RedCloth, which isn’t
|
70
|
-
# support Psych.
|
71
|
-
def self.use_syck(&block)
|
72
|
-
if RUBY_PLATFORM == 'java' && defined?(YAML::ENGINE)
|
73
|
-
YAML::ENGINE.yamler = 'psych'
|
74
|
-
yield
|
75
|
-
elsif '1.8.' == RUBY_VERSION[0..3]
|
76
|
-
yield
|
77
|
-
else
|
78
|
-
origin_yamler = YAML::ENGINE.yamler
|
79
|
-
YAML::ENGINE.yamler = 'syck'
|
80
|
-
yield
|
81
|
-
YAML::ENGINE.yamler = origin_yamler
|
82
|
-
end
|
83
|
-
end
|
84
68
|
end
|
85
69
|
end
|
data/lib/r18n-core/version.rb
CHANGED
data/locales/en.rb
CHANGED
data/locales/hu.rb
CHANGED
@@ -14,7 +14,6 @@ module R18n
|
|
14
14
|
:date_format => '%Y. %m. %d.',
|
15
15
|
:full_format => '%B %e.',
|
16
16
|
:year_format => '%Y. _',
|
17
|
-
:time_format => '%H:%M',
|
18
17
|
|
19
18
|
:number_decimal => ",",
|
20
19
|
:number_group => " "
|
@@ -36,11 +35,11 @@ module R18n
|
|
36
35
|
end
|
37
36
|
|
38
37
|
def format_time_standard(time, *params)
|
39
|
-
format_date_standard(time) + ',
|
38
|
+
format_date_standard(time) + ',' + format_time(time)
|
40
39
|
end
|
41
40
|
|
42
41
|
def format_time_full(time, *params)
|
43
|
-
format_date_full(time) + ',
|
42
|
+
format_date_full(time) + ',' + format_time(time)
|
44
43
|
end
|
45
44
|
end
|
46
45
|
end
|
data/locales/{nb-no.rb → nb.rb}
RENAMED
@@ -1,8 +1,8 @@
|
|
1
1
|
#encoding: utf-8
|
2
2
|
module R18n
|
3
|
-
class Locales::
|
4
|
-
set :title => 'Norsk',
|
5
|
-
:sublocales => %w{no nn
|
3
|
+
class Locales::Nb < Locale
|
4
|
+
set :title => 'Norsk (bokmål)',
|
5
|
+
:sublocales => %w{no nn en},
|
6
6
|
|
7
7
|
:week_start => :monday,
|
8
8
|
:wday_names => %w{søndag mandag tirsdag onsdag torsdag fredag lørdag},
|
@@ -16,6 +16,6 @@ module R18n
|
|
16
16
|
:full_format => '%e. %B %Y',
|
17
17
|
|
18
18
|
:number_decimal => ",",
|
19
|
-
:number_group
|
19
|
+
:number_group => " "
|
20
20
|
end
|
21
21
|
end
|
data/locales/no.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
#encoding: utf-8
|
2
|
+
module R18n
|
3
|
+
class Locales::No < Locale
|
4
|
+
set :title => 'Norsk',
|
5
|
+
:sublocales => %w{nb nn en},
|
6
|
+
|
7
|
+
:week_start => :monday,
|
8
|
+
:wday_names => %w{søndag mandag tirsdag onsdag torsdag fredag lørdag},
|
9
|
+
:wday_abbrs => %w{søn man tir ons tor fre lør},
|
10
|
+
|
11
|
+
:month_names => %w{januar februar mars april mai juni juli august
|
12
|
+
september oktober november desember},
|
13
|
+
:month_abbrs => %w{jan feb mar apr mai jun jul aug sep okt nov des},
|
14
|
+
|
15
|
+
:date_format => '%d.%m.%Y',
|
16
|
+
:full_format => '%e. %B %Y',
|
17
|
+
|
18
|
+
:number_decimal => ",",
|
19
|
+
:number_group => " "
|
20
|
+
end
|
21
|
+
end
|
data/spec/filters_spec.rb
CHANGED
@@ -164,7 +164,7 @@ describe R18n::Filters do
|
|
164
164
|
end
|
165
165
|
|
166
166
|
it "should pluralize translation without locale" do
|
167
|
-
i18n = R18n::I18n.new('
|
167
|
+
i18n = R18n::I18n.new('nolocale', DIR)
|
168
168
|
i18n.entries(1).should == 'ONE'
|
169
169
|
i18n.entries(5).should == 'N'
|
170
170
|
end
|
data/spec/i18n_spec.rb
CHANGED
@@ -28,10 +28,10 @@ describe R18n::I18n do
|
|
28
28
|
i18n = R18n::I18n.new('en', DIR)
|
29
29
|
i18n.locales.should == [R18n.locale('en')]
|
30
30
|
|
31
|
-
i18n = R18n::I18n.new(['ru', '
|
31
|
+
i18n = R18n::I18n.new(['ru', 'nolocale-DL'], DIR)
|
32
32
|
i18n.locales.should == [R18n.locale('ru'),
|
33
|
-
R18n::UnsupportedLocale.new('
|
34
|
-
R18n::UnsupportedLocale.new('
|
33
|
+
R18n::UnsupportedLocale.new('nolocale-DL'),
|
34
|
+
R18n::UnsupportedLocale.new('nolocale'),
|
35
35
|
R18n.locale('en')]
|
36
36
|
end
|
37
37
|
|
@@ -60,14 +60,14 @@ describe R18n::I18n do
|
|
60
60
|
|
61
61
|
it "should load translations" do
|
62
62
|
i18n = R18n::I18n.new(['ru', 'en'], DIR)
|
63
|
-
i18n.one.should
|
64
|
-
i18n[:one].should
|
63
|
+
i18n.one.should == 'Один'
|
64
|
+
i18n[:one].should == 'Один'
|
65
65
|
i18n['one'].should == 'Один'
|
66
66
|
i18n.only.english.should == 'Only in English'
|
67
67
|
end
|
68
68
|
|
69
69
|
it "should load translations from several dirs" do
|
70
|
-
i18n = R18n::I18n.new(['
|
70
|
+
i18n = R18n::I18n.new(['nolocale', 'en'], [TWO, DIR])
|
71
71
|
i18n.in.two.should == 'Two'
|
72
72
|
i18n.in.another.level.should == 'Hierarchical'
|
73
73
|
end
|
@@ -83,26 +83,26 @@ describe R18n::I18n do
|
|
83
83
|
it "shouldn't use extension without app translations with same locale" do
|
84
84
|
R18n.extension_places << EXT
|
85
85
|
|
86
|
-
i18n = R18n::I18n.new(['
|
86
|
+
i18n = R18n::I18n.new(['notransl', 'en'], DIR)
|
87
87
|
i18n.ext.should == 'Extension'
|
88
88
|
end
|
89
89
|
|
90
90
|
it "should ignore case on loading" do
|
91
|
-
i18n = R18n::I18n.new('
|
91
|
+
i18n = R18n::I18n.new('nolocale', [DIR])
|
92
92
|
i18n.one.should == 'ONE'
|
93
93
|
|
94
|
-
i18n = R18n::I18n.new('
|
94
|
+
i18n = R18n::I18n.new('nolocale', [DIR])
|
95
95
|
i18n.one.should == 'ONE'
|
96
96
|
end
|
97
97
|
|
98
98
|
it "should load default translation" do
|
99
|
-
i18n = R18n::I18n.new('
|
99
|
+
i18n = R18n::I18n.new('nolocale', DIR)
|
100
100
|
i18n.one.should == 'ONE'
|
101
101
|
i18n.two.should == 'Two'
|
102
102
|
end
|
103
103
|
|
104
104
|
it "should load sublocales for first locale" do
|
105
|
-
R18n::I18n.default = '
|
105
|
+
R18n::I18n.default = 'notransl'
|
106
106
|
|
107
107
|
i18n = R18n::I18n.new('ru', DIR)
|
108
108
|
i18n.one.should == 'Один'
|
@@ -111,7 +111,7 @@ describe R18n::I18n do
|
|
111
111
|
|
112
112
|
it "should return available translations" do
|
113
113
|
i18n = R18n::I18n.new('en', DIR)
|
114
|
-
i18n.available_locales.should =~ [R18n.locale('
|
114
|
+
i18n.available_locales.should =~ [R18n.locale('nolocale'),
|
115
115
|
R18n.locale('ru'),
|
116
116
|
R18n.locale('en')]
|
117
117
|
end
|
@@ -182,15 +182,17 @@ describe R18n::I18n do
|
|
182
182
|
|
183
183
|
it "should reload translations" do
|
184
184
|
loader = Class.new do
|
185
|
-
@@answer = 1
|
186
185
|
def available; [R18n.locale('en')]; end
|
187
|
-
def load(locale);
|
186
|
+
def load(locale);
|
187
|
+
@answer ||= 0
|
188
|
+
@answer += 1
|
189
|
+
{ 'one' => @answer }
|
190
|
+
end
|
188
191
|
end
|
189
192
|
|
190
193
|
i18n = R18n::I18n.new('en', loader.new)
|
191
194
|
i18n.one.should == 1
|
192
195
|
|
193
|
-
loader.class_eval { @@answer = 2 }
|
194
196
|
i18n.reload!
|
195
197
|
i18n.one.should == 2
|
196
198
|
end
|
@@ -202,8 +204,8 @@ describe R18n::I18n do
|
|
202
204
|
end
|
203
205
|
|
204
206
|
it "should return first locale with locale file" do
|
205
|
-
i18n = R18n::I18n.new(['
|
206
|
-
i18n.locale.should == R18n.locale('
|
207
|
+
i18n = R18n::I18n.new(['notransl', 'nolocale', 'ru', 'en'], DIR)
|
208
|
+
i18n.locale.should == R18n.locale('nolocale')
|
207
209
|
i18n.locale.base.should == R18n.locale('ru')
|
208
210
|
end
|
209
211
|
|
data/spec/locale_spec.rb
CHANGED
@@ -14,7 +14,7 @@ describe R18n::Locale do
|
|
14
14
|
|
15
15
|
it "should check is locale exists" do
|
16
16
|
R18n::Locale.exists?('ru').should be_true
|
17
|
-
R18n::Locale.exists?('
|
17
|
+
R18n::Locale.exists?('nolocale').should be_false
|
18
18
|
end
|
19
19
|
|
20
20
|
it "should set locale properties" do
|
@@ -55,16 +55,16 @@ describe R18n::Locale do
|
|
55
55
|
it "should use UnsupportedLocale if locale file isn't exists" do
|
56
56
|
@en.should be_supported
|
57
57
|
|
58
|
-
unsupported = R18n.locale('
|
58
|
+
unsupported = R18n.locale('nolocale-DL')
|
59
59
|
unsupported.should_not be_supported
|
60
60
|
unsupported.should be_a(R18n::UnsupportedLocale)
|
61
61
|
|
62
|
-
unsupported.code.downcase.should
|
63
|
-
unsupported.title.downcase.should == '
|
62
|
+
unsupported.code.downcase.should == 'nolocale-dl'
|
63
|
+
unsupported.title.downcase.should == 'nolocale-dl'
|
64
64
|
unsupported.ltr?.should be_true
|
65
65
|
|
66
66
|
unsupported.pluralize(5).should == 'n'
|
67
|
-
unsupported.inspect.downcase.should == 'unsupported locale
|
67
|
+
unsupported.inspect.downcase.should == 'unsupported locale nolocale-dl'
|
68
68
|
end
|
69
69
|
|
70
70
|
it "should format number in local traditions" do
|
@@ -157,15 +157,15 @@ describe R18n::Locale do
|
|
157
157
|
upcase.code.should == 'ru'
|
158
158
|
downcase.code.should == 'ru'
|
159
159
|
|
160
|
-
upcase = R18n.locale('
|
161
|
-
downcase = R18n.locale('
|
160
|
+
upcase = R18n.locale('nolocale')
|
161
|
+
downcase = R18n.locale('nolocale')
|
162
162
|
upcase.should == downcase
|
163
|
-
upcase.code.should == '
|
164
|
-
downcase.code.should == '
|
163
|
+
upcase.code.should == 'nolocale'
|
164
|
+
downcase.code.should == 'nolocale'
|
165
165
|
end
|
166
166
|
|
167
167
|
it "should load locale with underscore" do
|
168
|
-
R18n.locale('
|
168
|
+
R18n.locale('nolocale-DL').code.should == 'nolocale-dl'
|
169
169
|
end
|
170
170
|
|
171
171
|
end
|
data/spec/r18n_spec.rb
CHANGED
@@ -140,7 +140,7 @@ describe R18n do
|
|
140
140
|
end
|
141
141
|
|
142
142
|
it "should return available translations" do
|
143
|
-
R18n.available_locales(DIR).should =~ [R18n.locale('
|
143
|
+
R18n.available_locales(DIR).should =~ [R18n.locale('nolocale'),
|
144
144
|
R18n.locale('ru'),
|
145
145
|
R18n.locale('en')]
|
146
146
|
end
|
@@ -151,7 +151,7 @@ describe R18n do
|
|
151
151
|
t.one.should == 'One'
|
152
152
|
R18n.available_locales.should =~ [R18n.locale('ru'),
|
153
153
|
R18n.locale('en'),
|
154
|
-
R18n.locale('
|
154
|
+
R18n.locale('nolocale')]
|
155
155
|
end
|
156
156
|
|
157
157
|
it "should set default places by block" do
|
data/spec/spec_helper.rb
CHANGED
@@ -37,10 +37,6 @@ class CounterLoader
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
-
if '1.8.' != RUBY_VERSION[0..3]
|
41
|
-
YAML::ENGINE.yamler = ENV['test_syck'] ? 'syck' : 'psych'
|
42
|
-
end
|
43
|
-
|
44
40
|
RSpec.configure do |c|
|
45
41
|
c.filter_run_excluding :not_ruby => lambda { |version|
|
46
42
|
RUBY_VERSION.to_s.start_with? version.to_s
|
data/spec/translated_spec.rb
CHANGED
@@ -58,7 +58,7 @@ describe R18n::Translated do
|
|
58
58
|
@user_class.translation :name
|
59
59
|
user = @user_class.new
|
60
60
|
|
61
|
-
R18n.set(['
|
61
|
+
R18n.set(['nolocale', 'ru', 'en'])
|
62
62
|
user.name_ru = 'Иван'
|
63
63
|
user.name.locale.should == R18n.locale('ru')
|
64
64
|
end
|
@@ -67,7 +67,7 @@ describe R18n::Translated do
|
|
67
67
|
@user_class.translation :name
|
68
68
|
user = @user_class.new
|
69
69
|
|
70
|
-
R18n.set('
|
70
|
+
R18n.set('nolocale')
|
71
71
|
user.name_en = 'John'
|
72
72
|
user.name.locale.should == R18n.locale('en')
|
73
73
|
end
|
data/spec/translation_spec.rb
CHANGED
@@ -58,8 +58,8 @@ describe R18n::Translation do
|
|
58
58
|
end
|
59
59
|
|
60
60
|
it "should return string with locale info" do
|
61
|
-
i18n = R18n::I18n.new(['
|
62
|
-
i18n.one.locale.should == R18n::UnsupportedLocale.new('
|
61
|
+
i18n = R18n::I18n.new(['nolocale', 'en'], DIR)
|
62
|
+
i18n.one.locale.should == R18n::UnsupportedLocale.new('nolocale')
|
63
63
|
i18n.two.locale.should == R18n.locale('en')
|
64
64
|
end
|
65
65
|
|
@@ -84,9 +84,9 @@ describe R18n::Translation do
|
|
84
84
|
translation = R18n::Translation.new(en, '',
|
85
85
|
:locale => en, :translations => { 'a' => 'A' })
|
86
86
|
|
87
|
-
translation.a.
|
88
|
-
translation.a.
|
89
|
-
translation.a.
|
87
|
+
translation.a.no_tr.should be_a(R18n::Untranslated)
|
88
|
+
translation.a.no_tr.translated_path.should == 'a.'
|
89
|
+
translation.a.no_tr.untranslated_path.should == 'no_tr'
|
90
90
|
end
|
91
91
|
|
92
92
|
it "should inspect translation" do
|
File without changes
|
File without changes
|
data/spec/yaml_loader_spec.rb
CHANGED
@@ -26,13 +26,15 @@ describe R18n::Loader::YAML do
|
|
26
26
|
it "should return all available translations" do
|
27
27
|
@loader.available.should =~ [R18n.locale('ru'),
|
28
28
|
R18n.locale('en'),
|
29
|
-
R18n.locale('
|
29
|
+
R18n.locale('nolocale')]
|
30
30
|
end
|
31
31
|
|
32
32
|
it "should load translation" do
|
33
33
|
@loader.load(R18n.locale('ru')).should == {
|
34
|
-
'one'
|
35
|
-
'
|
34
|
+
'one' => 'Один',
|
35
|
+
'in' => { 'another' => { 'level' => 'Иерархический' } },
|
36
|
+
'typed' => R18n::Typed.new('my', 'value')
|
37
|
+
}
|
36
38
|
end
|
37
39
|
|
38
40
|
it "should return hash by dir" do
|
@@ -44,8 +46,8 @@ describe R18n::Loader::YAML do
|
|
44
46
|
loader.available.should =~ [R18n.locale('ru'),
|
45
47
|
R18n.locale('en'),
|
46
48
|
R18n.locale('fr'),
|
47
|
-
R18n.locale('
|
48
|
-
R18n.locale('
|
49
|
+
R18n.locale('notransl'),
|
50
|
+
R18n.locale('nolocale')]
|
49
51
|
|
50
52
|
translation = loader.load(R18n.locale('en'))
|
51
53
|
translation['two'].should == 'Two'
|
metadata
CHANGED
@@ -1,50 +1,53 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: r18n-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.3
|
5
4
|
prerelease:
|
5
|
+
version: 1.1.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Andrey "A.I." Sitnik
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
|
15
|
+
type: :development
|
16
|
+
name: bundler
|
17
|
+
version_requirements: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
16
19
|
requirements:
|
17
20
|
- - ! '>='
|
18
21
|
- !ruby/object:Gem::Version
|
19
22
|
version: 1.0.10
|
23
|
+
requirement: !ruby/object:Gem::Requirement
|
20
24
|
none: false
|
21
|
-
type: :development
|
22
|
-
name: bundler
|
23
|
-
version_requirements: !ruby/object:Gem::Requirement
|
24
25
|
requirements:
|
25
26
|
- - ! '>='
|
26
27
|
- !ruby/object:Gem::Version
|
27
28
|
version: 1.0.10
|
28
|
-
none: false
|
29
29
|
prerelease: false
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
|
-
|
31
|
+
type: :development
|
32
|
+
name: yard
|
33
|
+
version_requirements: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
32
35
|
requirements:
|
33
36
|
- - ! '>='
|
34
37
|
- !ruby/object:Gem::Version
|
35
38
|
version: '0'
|
39
|
+
requirement: !ruby/object:Gem::Requirement
|
36
40
|
none: false
|
37
|
-
type: :development
|
38
|
-
name: yard
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
40
41
|
requirements:
|
41
42
|
- - ! '>='
|
42
43
|
- !ruby/object:Gem::Version
|
43
44
|
version: '0'
|
44
|
-
none: false
|
45
45
|
prerelease: false
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
|
-
|
47
|
+
type: :development
|
48
|
+
name: rake
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
48
51
|
requirements:
|
49
52
|
- - ! '>='
|
50
53
|
- !ruby/object:Gem::Version
|
@@ -52,10 +55,8 @@ dependencies:
|
|
52
55
|
- - ! '!='
|
53
56
|
- !ruby/object:Gem::Version
|
54
57
|
version: 0.9.0
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
55
59
|
none: false
|
56
|
-
type: :development
|
57
|
-
name: rake
|
58
|
-
version_requirements: !ruby/object:Gem::Requirement
|
59
60
|
requirements:
|
60
61
|
- - ! '>='
|
61
62
|
- !ruby/object:Gem::Version
|
@@ -63,103 +64,102 @@ dependencies:
|
|
63
64
|
- - ! '!='
|
64
65
|
- !ruby/object:Gem::Version
|
65
66
|
version: 0.9.0
|
66
|
-
none: false
|
67
67
|
prerelease: false
|
68
68
|
- !ruby/object:Gem::Dependency
|
69
|
-
requirement: !ruby/object:Gem::Requirement
|
70
|
-
requirements:
|
71
|
-
- - ! '>='
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
version: '0'
|
74
|
-
none: false
|
75
69
|
type: :development
|
76
70
|
name: rspec-core
|
77
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
78
73
|
requirements:
|
79
74
|
- - ! '>='
|
80
75
|
- !ruby/object:Gem::Version
|
81
76
|
version: '0'
|
82
|
-
none: false
|
83
|
-
prerelease: false
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
77
|
requirement: !ruby/object:Gem::Requirement
|
78
|
+
none: false
|
86
79
|
requirements:
|
87
80
|
- - ! '>='
|
88
81
|
- !ruby/object:Gem::Version
|
89
82
|
version: '0'
|
90
|
-
|
83
|
+
prerelease: false
|
84
|
+
- !ruby/object:Gem::Dependency
|
91
85
|
type: :development
|
92
86
|
name: rspec-expectations
|
93
87
|
version_requirements: !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
94
89
|
requirements:
|
95
90
|
- - ! '>='
|
96
91
|
- !ruby/object:Gem::Version
|
97
92
|
version: '0'
|
98
|
-
none: false
|
99
|
-
prerelease: false
|
100
|
-
- !ruby/object:Gem::Dependency
|
101
93
|
requirement: !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
102
95
|
requirements:
|
103
96
|
- - ! '>='
|
104
97
|
- !ruby/object:Gem::Version
|
105
98
|
version: '0'
|
106
|
-
|
99
|
+
prerelease: false
|
100
|
+
- !ruby/object:Gem::Dependency
|
107
101
|
type: :development
|
108
102
|
name: rspec-mocks
|
109
103
|
version_requirements: !ruby/object:Gem::Requirement
|
104
|
+
none: false
|
110
105
|
requirements:
|
111
106
|
- - ! '>='
|
112
107
|
- !ruby/object:Gem::Version
|
113
108
|
version: '0'
|
114
|
-
none: false
|
115
|
-
prerelease: false
|
116
|
-
- !ruby/object:Gem::Dependency
|
117
109
|
requirement: !ruby/object:Gem::Requirement
|
110
|
+
none: false
|
118
111
|
requirements:
|
119
112
|
- - ! '>='
|
120
113
|
- !ruby/object:Gem::Version
|
121
114
|
version: '0'
|
122
|
-
|
115
|
+
prerelease: false
|
116
|
+
- !ruby/object:Gem::Dependency
|
123
117
|
type: :development
|
124
118
|
name: kramdown
|
125
119
|
version_requirements: !ruby/object:Gem::Requirement
|
120
|
+
none: false
|
126
121
|
requirements:
|
127
122
|
- - ! '>='
|
128
123
|
- !ruby/object:Gem::Version
|
129
124
|
version: '0'
|
130
|
-
none: false
|
131
|
-
prerelease: false
|
132
|
-
- !ruby/object:Gem::Dependency
|
133
125
|
requirement: !ruby/object:Gem::Requirement
|
126
|
+
none: false
|
134
127
|
requirements:
|
135
128
|
- - ! '>='
|
136
129
|
- !ruby/object:Gem::Version
|
137
130
|
version: '0'
|
138
|
-
|
131
|
+
prerelease: false
|
132
|
+
- !ruby/object:Gem::Dependency
|
139
133
|
type: :development
|
140
134
|
name: RedCloth
|
141
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
none: false
|
142
137
|
requirements:
|
143
138
|
- - ! '>='
|
144
139
|
- !ruby/object:Gem::Version
|
145
140
|
version: '0'
|
146
|
-
none: false
|
147
|
-
prerelease: false
|
148
|
-
- !ruby/object:Gem::Dependency
|
149
141
|
requirement: !ruby/object:Gem::Requirement
|
142
|
+
none: false
|
150
143
|
requirements:
|
151
144
|
- - ! '>='
|
152
145
|
- !ruby/object:Gem::Version
|
153
146
|
version: '0'
|
154
|
-
|
147
|
+
prerelease: false
|
148
|
+
- !ruby/object:Gem::Dependency
|
155
149
|
type: :development
|
156
150
|
name: redcarpet
|
157
151
|
version_requirements: !ruby/object:Gem::Requirement
|
152
|
+
none: false
|
158
153
|
requirements:
|
159
154
|
- - ! '>='
|
160
155
|
- !ruby/object:Gem::Version
|
161
156
|
version: '0'
|
157
|
+
requirement: !ruby/object:Gem::Requirement
|
162
158
|
none: false
|
159
|
+
requirements:
|
160
|
+
- - ! '>='
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: '0'
|
163
163
|
prerelease: false
|
164
164
|
description: ! " R18n is a i18n tool to translate your Ruby application.\n It
|
165
165
|
has nice Ruby-style syntax, filters, flexible locales, custom loaders,\n translation
|
@@ -197,7 +197,7 @@ files:
|
|
197
197
|
- base/kk.yml
|
198
198
|
- base/lv.yml
|
199
199
|
- base/mn.rb
|
200
|
-
- base/nb
|
200
|
+
- base/nb.yml
|
201
201
|
- base/nl.yml
|
202
202
|
- base/pl.yml
|
203
203
|
- base/pt.yml
|
@@ -243,8 +243,9 @@ files:
|
|
243
243
|
- locales/kk.rb
|
244
244
|
- locales/lv.rb
|
245
245
|
- locales/mn.rb
|
246
|
-
- locales/nb
|
246
|
+
- locales/nb.rb
|
247
247
|
- locales/nl.rb
|
248
|
+
- locales/no.rb
|
248
249
|
- locales/pl.rb
|
249
250
|
- locales/pt-br.rb
|
250
251
|
- locales/pt.rb
|
@@ -277,9 +278,9 @@ files:
|
|
277
278
|
- spec/translation_spec.rb
|
278
279
|
- spec/translations/extension/deep/en.yml
|
279
280
|
- spec/translations/extension/en.yml
|
280
|
-
- spec/translations/extension/
|
281
|
+
- spec/translations/extension/notransl.yml
|
281
282
|
- spec/translations/general/en.yml
|
282
|
-
- spec/translations/general/
|
283
|
+
- spec/translations/general/nolocale.yml
|
283
284
|
- spec/translations/general/ru.yml
|
284
285
|
- spec/translations/two/en.yml
|
285
286
|
- spec/translations/two/fr.yml
|
@@ -291,23 +292,23 @@ rdoc_options: []
|
|
291
292
|
require_paths:
|
292
293
|
- lib
|
293
294
|
required_ruby_version: !ruby/object:Gem::Requirement
|
295
|
+
none: false
|
294
296
|
requirements:
|
295
297
|
- - ! '>='
|
296
298
|
- !ruby/object:Gem::Version
|
297
|
-
hash: -2892883410893894166
|
298
|
-
version: '0'
|
299
299
|
segments:
|
300
300
|
- 0
|
301
|
-
|
301
|
+
hash: -3448094811323145834
|
302
|
+
version: '0'
|
302
303
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
304
|
+
none: false
|
303
305
|
requirements:
|
304
306
|
- - ! '>='
|
305
307
|
- !ruby/object:Gem::Version
|
306
|
-
hash: -2892883410893894166
|
307
|
-
version: '0'
|
308
308
|
segments:
|
309
309
|
- 0
|
310
|
-
|
310
|
+
hash: -3448094811323145834
|
311
|
+
version: '0'
|
311
312
|
requirements: []
|
312
313
|
rubyforge_project:
|
313
314
|
rubygems_version: 1.8.23
|