r18n-core 3.1.1 → 5.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog.md +398 -0
  3. data/README.md +63 -47
  4. data/base/cy.yml +34 -0
  5. data/lib/r18n-core.rb +37 -38
  6. data/lib/r18n-core/filter_list.rb +21 -13
  7. data/lib/r18n-core/filters.rb +43 -48
  8. data/lib/r18n-core/helpers.rb +2 -2
  9. data/lib/r18n-core/i18n.rb +70 -78
  10. data/lib/r18n-core/locale.rb +137 -107
  11. data/lib/r18n-core/locales/af.rb +36 -0
  12. data/lib/r18n-core/locales/az.rb +38 -0
  13. data/lib/r18n-core/locales/bg.rb +29 -0
  14. data/{locales → lib/r18n-core/locales}/ca.rb +9 -6
  15. data/{locales → lib/r18n-core/locales}/cs.rb +15 -11
  16. data/lib/r18n-core/locales/cy.rb +50 -0
  17. data/{locales → lib/r18n-core/locales}/da.rb +10 -7
  18. data/lib/r18n-core/locales/de.rb +33 -0
  19. data/{locales → lib/r18n-core/locales}/en-au.rb +2 -2
  20. data/{locales → lib/r18n-core/locales}/en-gb.rb +2 -2
  21. data/{locales → lib/r18n-core/locales}/en-us.rb +4 -3
  22. data/lib/r18n-core/locales/en.rb +51 -0
  23. data/{locales → lib/r18n-core/locales}/eo.rb +6 -4
  24. data/lib/r18n-core/locales/es-cl.rb +16 -0
  25. data/{locales → lib/r18n-core/locales}/es-us.rb +5 -4
  26. data/{locales → lib/r18n-core/locales}/es.rb +7 -3
  27. data/{locales → lib/r18n-core/locales}/fa.rb +2 -2
  28. data/lib/r18n-core/locales/fi.rb +39 -0
  29. data/lib/r18n-core/locales/fr.rb +39 -0
  30. data/{locales → lib/r18n-core/locales}/gl.rb +5 -3
  31. data/{locales → lib/r18n-core/locales}/hr.rb +13 -10
  32. data/{locales → lib/r18n-core/locales}/hu.rb +10 -7
  33. data/{locales → lib/r18n-core/locales}/id.rb +8 -4
  34. data/lib/r18n-core/locales/it.rb +37 -0
  35. data/{locales → lib/r18n-core/locales}/ja.rb +5 -4
  36. data/{locales → lib/r18n-core/locales}/kk.rb +12 -8
  37. data/{locales → lib/r18n-core/locales}/ko.rb +0 -0
  38. data/lib/r18n-core/locales/lv.rb +46 -0
  39. data/lib/r18n-core/locales/mn.rb +30 -0
  40. data/{locales → lib/r18n-core/locales}/nb.rb +6 -4
  41. data/lib/r18n-core/locales/nl.rb +31 -0
  42. data/{locales → lib/r18n-core/locales}/no.rb +0 -0
  43. data/lib/r18n-core/locales/pl.rb +45 -0
  44. data/{locales → lib/r18n-core/locales}/pt-br.rb +1 -1
  45. data/lib/r18n-core/locales/pt.rb +37 -0
  46. data/lib/r18n-core/locales/ru.rb +46 -0
  47. data/{locales → lib/r18n-core/locales}/sk.rb +13 -9
  48. data/{locales → lib/r18n-core/locales}/sr-latn.rb +10 -8
  49. data/{locales → lib/r18n-core/locales}/sv-se.rb +7 -5
  50. data/lib/r18n-core/locales/th.rb +41 -0
  51. data/{locales → lib/r18n-core/locales}/tr.rb +7 -6
  52. data/lib/r18n-core/locales/uk.rb +31 -0
  53. data/lib/r18n-core/locales/vi.rb +37 -0
  54. data/{locales → lib/r18n-core/locales}/zh-cn.rb +2 -2
  55. data/{locales → lib/r18n-core/locales}/zh-tw.rb +4 -4
  56. data/{locales → lib/r18n-core/locales}/zh.rb +7 -4
  57. data/lib/r18n-core/translated.rb +38 -37
  58. data/lib/r18n-core/translated_string.rb +19 -8
  59. data/lib/r18n-core/translation.rb +24 -19
  60. data/lib/r18n-core/unsupported_locale.rb +14 -6
  61. data/lib/r18n-core/untranslated.rb +23 -7
  62. data/lib/r18n-core/utils.rb +19 -23
  63. data/lib/r18n-core/version.rb +1 -1
  64. data/lib/r18n-core/yaml_loader.rb +17 -13
  65. data/lib/r18n-core/yaml_methods.rb +3 -1
  66. metadata +245 -118
  67. data/.rspec +0 -1
  68. data/Rakefile +0 -13
  69. data/locales/af.rb +0 -32
  70. data/locales/az.rb +0 -34
  71. data/locales/bg.rb +0 -25
  72. data/locales/de.rb +0 -29
  73. data/locales/en.rb +0 -48
  74. data/locales/fi.rb +0 -35
  75. data/locales/fr.rb +0 -35
  76. data/locales/it.rb +0 -34
  77. data/locales/lv.rb +0 -41
  78. data/locales/mn.rb +0 -27
  79. data/locales/nl.rb +0 -28
  80. data/locales/pl.rb +0 -40
  81. data/locales/pt.rb +0 -29
  82. data/locales/ru.rb +0 -41
  83. data/locales/th.rb +0 -37
  84. data/locales/uk.rb +0 -27
  85. data/locales/vi.rb +0 -33
  86. data/r18n-core.gemspec +0 -29
  87. data/spec/filters_spec.rb +0 -324
  88. data/spec/i18n_spec.rb +0 -260
  89. data/spec/locale_spec.rb +0 -216
  90. data/spec/locales/cs_spec.rb +0 -23
  91. data/spec/locales/en-us_spec.rb +0 -13
  92. data/spec/locales/en_spec.rb +0 -13
  93. data/spec/locales/fa_spec.rb +0 -10
  94. data/spec/locales/fr_spec.rb +0 -9
  95. data/spec/locales/hu_spec.rb +0 -17
  96. data/spec/locales/it_spec.rb +0 -10
  97. data/spec/locales/no_spec.rb +0 -9
  98. data/spec/locales/pl_spec.rb +0 -23
  99. data/spec/locales/ru_spec.rb +0 -23
  100. data/spec/locales/sk_spec.rb +0 -23
  101. data/spec/locales/th_spec.rb +0 -9
  102. data/spec/locales/vi_spec.rb +0 -8
  103. data/spec/r18n_spec.rb +0 -172
  104. data/spec/spec_helper.rb +0 -41
  105. data/spec/translated_spec.rb +0 -163
  106. data/spec/translation_spec.rb +0 -164
  107. data/spec/translations/extension/deep/en.yml +0 -1
  108. data/spec/translations/extension/en.yml +0 -2
  109. data/spec/translations/extension/notransl.yml +0 -1
  110. data/spec/translations/general/en.yml +0 -47
  111. data/spec/translations/general/nolocale.yml +0 -6
  112. data/spec/translations/general/ru.yml +0 -7
  113. data/spec/translations/two/en.yml +0 -2
  114. data/spec/translations/two/fr.yml +0 -0
  115. data/spec/yaml_loader_spec.rb +0 -61
@@ -17,43 +17,39 @@
17
17
  # You should have received a copy of the GNU Lesser General Public License
18
18
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
- # Common methods for another R18n code.
21
20
  module R18n
21
+ # Common methods for another R18n code.
22
22
  module Utils
23
- HTML_ENTRIES = { '&' => '&amp;', '<' => '&lt;', '>' => '&gt;' }.freeze
24
-
25
23
  # Escape HTML entries (<, >, &). Copy from HAML helper.
26
24
  def self.escape_html(content)
27
25
  if defined? ActiveSupport::SafeBuffer
28
26
  ActiveSupport::SafeBuffer.new + content
29
27
  else
30
- content.to_s.gsub(/[><&]/) { |s| HTML_ENTRIES[s] }
31
- end
32
- end
33
-
34
- # Invokes +block+ once for each key and value of +hash+. Creates a new hash
35
- # with the keys and values returned by the +block+.
36
- def self.hash_map(hash, &block)
37
- result = {}
38
- hash.each_pair do |key, val|
39
- new_key, new_value = block.call(key, val)
40
- result[new_key] = new_value
28
+ CGI.escapeHTML content
41
29
  end
42
- result
43
30
  end
44
31
 
45
32
  # Recursively hash merge.
46
- def self.deep_merge!(a, b)
47
- b.each_pair do |key, value|
48
- another = a[key]
49
- a[key] =
50
- if another.is_a?(Hash) && value.is_a?(Hash)
51
- deep_merge!(another, value)
33
+ def self.deep_merge!(one, another)
34
+ another.each_pair do |key, another_value|
35
+ value = one[key]
36
+ one[key] =
37
+ if value.is_a?(Hash) && another_value.is_a?(Hash)
38
+ deep_merge!(value, another_value)
52
39
  else
53
- value
40
+ another_value
54
41
  end
55
42
  end
56
- a
43
+ one
44
+ end
45
+
46
+ def self.underscore(string)
47
+ string
48
+ .gsub(/::/, '/')
49
+ .gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2')
50
+ .gsub(/([a-z\d])([A-Z])/, '\1_\2')
51
+ .tr('-', '_')
52
+ .downcase
57
53
  end
58
54
  end
59
55
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Version of R18n Core
4
4
  module R18n
5
- VERSION = '3.1.1'.freeze unless defined? R18n::VERSION
5
+ VERSION = '5.0.1'
6
6
  end
@@ -20,69 +20,73 @@
20
20
  module R18n
21
21
  module Loader
22
22
  # Loader for translations in YAML format. Them should have name like
23
- # +en.yml+ (English) or en-US.yml (USA English dialect) with
23
+ # `en.yml` (English) or en-US.yml (USA English dialect) with
24
24
  # language/country code (RFC 3066).
25
25
  #
26
26
  # R18n::I18n.new('en', R18n::Loader::YAML.new('dir/with/translations'))
27
27
  #
28
28
  # YAML loader is default loader, so you can just set constructor parameter
29
- # to <tt>R18n::I18n.new</tt>:
29
+ # to `R18n::I18n.new`:
30
30
  #
31
31
  # R18n::I18n.new('en', 'dir/with/translations')
32
32
  class YAML
33
33
  include ::R18n::YamlMethods
34
34
 
35
+ FILE_EXT = 'y{,a}ml'
36
+
35
37
  # Dir with translations.
36
38
  attr_reader :dir
37
39
 
38
- # Create new loader for +dir+ with YAML translations.
40
+ # Create new loader for `dir` with YAML translations.
39
41
  def initialize(dir)
40
42
  @dir = File.expand_path(dir)
41
43
  detect_yaml_private_type
42
44
  end
43
45
 
44
- # Array of locales, which has translations in +dir+.
46
+ # `Array` of locales, which has translations in `dir`.
45
47
  def available
46
- Dir.glob(File.join(@dir, '**/*.yml'))
47
- .map { |i| File.basename(i, '.yml') }.uniq
48
+ Dir.glob(File.join(@dir, "**/*.#{FILE_EXT}"))
49
+ .map { |i| File.basename(i, '.*').downcase }.uniq
48
50
  .map { |i| R18n.locale(i) }
49
51
  end
50
52
 
51
- # Return Hash with translations for +locale+.
53
+ # Return `Hash` with translations for `locale`.
52
54
  def load(locale)
53
55
  initialize_types
54
56
 
55
57
  translations = {}
56
- Dir.glob(File.join(@dir, "**/#{locale.code.downcase}.yml")).each do |i|
58
+ Dir.glob(
59
+ File.join(@dir, "**/#{locale.code}.#{FILE_EXT}"), File::FNM_CASEFOLD
60
+ ).each do |i|
57
61
  Utils.deep_merge!(translations, ::YAML.load_file(i) || {})
58
62
  end
59
63
  transform(translations)
60
64
  end
61
65
 
62
- # YAML loader with same +dir+ will be have same +hash+.
66
+ # YAML loader with same `dir` will be have same `hash`.
63
67
  def hash
64
68
  self.class.hash + @dir.hash
65
69
  end
66
70
 
67
- # Is another +loader+ load YAML translations from same +dir+.
71
+ # Is another `loader` load YAML translations from same `dir`.
68
72
  def ==(other)
69
73
  self.class == other.class && dir == other.dir
70
74
  end
71
75
 
72
76
  # Wrap YAML private types to Typed.
73
77
  def transform(a_hash)
74
- R18n::Utils.hash_map(a_hash) do |key, value|
78
+ a_hash.transform_values do |value|
75
79
  if value.is_a? Hash
76
80
  value = transform(value)
77
81
  elsif defined?(@private_type_class) &&
78
- value.is_a?(@private_type_class)
82
+ value.is_a?(@private_type_class)
79
83
  v = value.value
80
84
  if v.respond_to?(:force_encoding) && v.encoding != __ENCODING__
81
85
  v = v.force_encoding(__ENCODING__)
82
86
  end
83
87
  value = Typed.new(value.type_id, v)
84
88
  end
85
- [key, value]
89
+ value
86
90
  end
87
91
  end
88
92
  end
@@ -31,9 +31,11 @@ module R18n
31
31
  # Register global types in Psych
32
32
  def initialize_types
33
33
  return unless defined?(Psych)
34
+
34
35
  Filters.by_type.each_key do |type|
35
36
  next unless type.is_a? String
36
- # Yeah, I add R18n’s types to global, send me patch if you really
37
+
38
+ # Yeah, I add R18n's types to global, send me patch if you really
37
39
  # use YAML types too ;).
38
40
  Psych.add_domain_type('yaml.org,2002', type) do |_full_type, value|
39
41
  Typed.new(type, value)
metadata CHANGED
@@ -1,37 +1,214 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r18n-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Sitnik
8
- autorequire:
8
+ - Alexander Popov
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2018-08-20 00:00:00.000000000 Z
12
- dependencies: []
12
+ date: 2021-03-03 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: activesupport
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '5'
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '7'
24
+ type: :development
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ version: '5'
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '7'
34
+ - !ruby/object:Gem::Dependency
35
+ name: kramdown
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.3'
41
+ type: :development
42
+ prerelease: false
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.3'
48
+ - !ruby/object:Gem::Dependency
49
+ name: pry-byebug
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.9'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.9'
62
+ - !ruby/object:Gem::Dependency
63
+ name: RedCloth
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '4.3'
69
+ type: :development
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '4.3'
76
+ - !ruby/object:Gem::Dependency
77
+ name: gem_toys
78
+ requirement: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.7.1
83
+ type: :development
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.7.1
90
+ - !ruby/object:Gem::Dependency
91
+ name: toys
92
+ requirement: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.11.0
97
+ type: :development
98
+ prerelease: false
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 0.11.0
104
+ - !ruby/object:Gem::Dependency
105
+ name: rubocop
106
+ requirement: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.6'
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.6'
118
+ - !ruby/object:Gem::Dependency
119
+ name: rubocop-performance
120
+ requirement: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.9'
125
+ type: :development
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '1.9'
132
+ - !ruby/object:Gem::Dependency
133
+ name: rubocop-rake
134
+ requirement: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.5.1
139
+ type: :development
140
+ prerelease: false
141
+ version_requirements: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 0.5.1
146
+ - !ruby/object:Gem::Dependency
147
+ name: codecov
148
+ requirement: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 0.5.0
153
+ type: :development
154
+ prerelease: false
155
+ version_requirements: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 0.5.0
160
+ - !ruby/object:Gem::Dependency
161
+ name: rspec
162
+ requirement: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '3.10'
167
+ type: :development
168
+ prerelease: false
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '3.10'
174
+ - !ruby/object:Gem::Dependency
175
+ name: simplecov
176
+ requirement: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: 0.21.0
181
+ type: :development
182
+ prerelease: false
183
+ version_requirements: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: 0.21.0
13
188
  description: |2
14
189
  R18n is a i18n tool to translate your Ruby application.
15
190
  It has nice Ruby-style syntax, filters, flexible locales, custom loaders,
16
191
  translation support for any classes, time and number localization, several
17
192
  user language support, agnostic core package with out-of-box support for
18
193
  Rails, Sinatra and desktop applications.
19
- email: andrey@sitnik.ru
194
+ email:
195
+ - andrey@sitnik.ru
196
+ - alex.wayfer@gmail.com
20
197
  executables: []
21
198
  extensions: []
22
199
  extra_rdoc_files:
23
200
  - README.md
24
201
  - LICENSE
25
202
  files:
26
- - ".rspec"
203
+ - ChangeLog.md
27
204
  - LICENSE
28
205
  - README.md
29
- - Rakefile
30
206
  - base/af.yml
31
207
  - base/az.yml
32
208
  - base/bg.yml
33
209
  - base/ca.yml
34
210
  - base/cs.yml
211
+ - base/cy.yml
35
212
  - base/da.yml
36
213
  - base/de.yml
37
214
  - base/en.yml
@@ -69,6 +246,52 @@ files:
69
246
  - lib/r18n-core/helpers.rb
70
247
  - lib/r18n-core/i18n.rb
71
248
  - lib/r18n-core/locale.rb
249
+ - lib/r18n-core/locales/af.rb
250
+ - lib/r18n-core/locales/az.rb
251
+ - lib/r18n-core/locales/bg.rb
252
+ - lib/r18n-core/locales/ca.rb
253
+ - lib/r18n-core/locales/cs.rb
254
+ - lib/r18n-core/locales/cy.rb
255
+ - lib/r18n-core/locales/da.rb
256
+ - lib/r18n-core/locales/de.rb
257
+ - lib/r18n-core/locales/en-au.rb
258
+ - lib/r18n-core/locales/en-gb.rb
259
+ - lib/r18n-core/locales/en-us.rb
260
+ - lib/r18n-core/locales/en.rb
261
+ - lib/r18n-core/locales/eo.rb
262
+ - lib/r18n-core/locales/es-cl.rb
263
+ - lib/r18n-core/locales/es-us.rb
264
+ - lib/r18n-core/locales/es.rb
265
+ - lib/r18n-core/locales/fa.rb
266
+ - lib/r18n-core/locales/fi.rb
267
+ - lib/r18n-core/locales/fr.rb
268
+ - lib/r18n-core/locales/gl.rb
269
+ - lib/r18n-core/locales/hr.rb
270
+ - lib/r18n-core/locales/hu.rb
271
+ - lib/r18n-core/locales/id.rb
272
+ - lib/r18n-core/locales/it.rb
273
+ - lib/r18n-core/locales/ja.rb
274
+ - lib/r18n-core/locales/kk.rb
275
+ - lib/r18n-core/locales/ko.rb
276
+ - lib/r18n-core/locales/lv.rb
277
+ - lib/r18n-core/locales/mn.rb
278
+ - lib/r18n-core/locales/nb.rb
279
+ - lib/r18n-core/locales/nl.rb
280
+ - lib/r18n-core/locales/no.rb
281
+ - lib/r18n-core/locales/pl.rb
282
+ - lib/r18n-core/locales/pt-br.rb
283
+ - lib/r18n-core/locales/pt.rb
284
+ - lib/r18n-core/locales/ru.rb
285
+ - lib/r18n-core/locales/sk.rb
286
+ - lib/r18n-core/locales/sr-latn.rb
287
+ - lib/r18n-core/locales/sv-se.rb
288
+ - lib/r18n-core/locales/th.rb
289
+ - lib/r18n-core/locales/tr.rb
290
+ - lib/r18n-core/locales/uk.rb
291
+ - lib/r18n-core/locales/vi.rb
292
+ - lib/r18n-core/locales/zh-cn.rb
293
+ - lib/r18n-core/locales/zh-tw.rb
294
+ - lib/r18n-core/locales/zh.rb
72
295
  - lib/r18n-core/translated.rb
73
296
  - lib/r18n-core/translated_string.rb
74
297
  - lib/r18n-core/translation.rb
@@ -78,85 +301,16 @@ files:
78
301
  - lib/r18n-core/version.rb
79
302
  - lib/r18n-core/yaml_loader.rb
80
303
  - lib/r18n-core/yaml_methods.rb
81
- - locales/af.rb
82
- - locales/az.rb
83
- - locales/bg.rb
84
- - locales/ca.rb
85
- - locales/cs.rb
86
- - locales/da.rb
87
- - locales/de.rb
88
- - locales/en-au.rb
89
- - locales/en-gb.rb
90
- - locales/en-us.rb
91
- - locales/en.rb
92
- - locales/eo.rb
93
- - locales/es-us.rb
94
- - locales/es.rb
95
- - locales/fa.rb
96
- - locales/fi.rb
97
- - locales/fr.rb
98
- - locales/gl.rb
99
- - locales/hr.rb
100
- - locales/hu.rb
101
- - locales/id.rb
102
- - locales/it.rb
103
- - locales/ja.rb
104
- - locales/kk.rb
105
- - locales/ko.rb
106
- - locales/lv.rb
107
- - locales/mn.rb
108
- - locales/nb.rb
109
- - locales/nl.rb
110
- - locales/no.rb
111
- - locales/pl.rb
112
- - locales/pt-br.rb
113
- - locales/pt.rb
114
- - locales/ru.rb
115
- - locales/sk.rb
116
- - locales/sr-latn.rb
117
- - locales/sv-se.rb
118
- - locales/th.rb
119
- - locales/tr.rb
120
- - locales/uk.rb
121
- - locales/vi.rb
122
- - locales/zh-cn.rb
123
- - locales/zh-tw.rb
124
- - locales/zh.rb
125
- - r18n-core.gemspec
126
- - spec/filters_spec.rb
127
- - spec/i18n_spec.rb
128
- - spec/locale_spec.rb
129
- - spec/locales/cs_spec.rb
130
- - spec/locales/en-us_spec.rb
131
- - spec/locales/en_spec.rb
132
- - spec/locales/fa_spec.rb
133
- - spec/locales/fr_spec.rb
134
- - spec/locales/hu_spec.rb
135
- - spec/locales/it_spec.rb
136
- - spec/locales/no_spec.rb
137
- - spec/locales/pl_spec.rb
138
- - spec/locales/ru_spec.rb
139
- - spec/locales/sk_spec.rb
140
- - spec/locales/th_spec.rb
141
- - spec/locales/vi_spec.rb
142
- - spec/r18n_spec.rb
143
- - spec/spec_helper.rb
144
- - spec/translated_spec.rb
145
- - spec/translation_spec.rb
146
- - spec/translations/extension/deep/en.yml
147
- - spec/translations/extension/en.yml
148
- - spec/translations/extension/notransl.yml
149
- - spec/translations/general/en.yml
150
- - spec/translations/general/nolocale.yml
151
- - spec/translations/general/ru.yml
152
- - spec/translations/two/en.yml
153
- - spec/translations/two/fr.yml
154
- - spec/yaml_loader_spec.rb
155
- homepage: https://github.com/ai/r18n
304
+ homepage: https://github.com/r18n/r18n-core
156
305
  licenses:
157
306
  - LGPL-3.0
158
- metadata: {}
159
- post_install_message:
307
+ metadata:
308
+ bug_tracker_uri: https://github.com/r18n/r18n-core/issues
309
+ changelog_uri: https://github.com/r18n/r18n-core/blob/5.0.1/ChangeLog.md
310
+ documentation_uri: http://www.rubydoc.info/gems/r18n-core/5.0.1
311
+ homepage_uri: https://github.com/r18n/r18n-core
312
+ source_code_uri: https://github.com/r18n/r18n-core
313
+ post_install_message:
160
314
  rdoc_options: []
161
315
  require_paths:
162
316
  - lib
@@ -164,45 +318,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
164
318
  requirements:
165
319
  - - ">="
166
320
  - !ruby/object:Gem::Version
167
- version: '0'
321
+ version: '2.5'
322
+ - - "<"
323
+ - !ruby/object:Gem::Version
324
+ version: '4'
168
325
  required_rubygems_version: !ruby/object:Gem::Requirement
169
326
  requirements:
170
327
  - - ">="
171
328
  - !ruby/object:Gem::Version
172
329
  version: '0'
173
330
  requirements: []
174
- rubyforge_project:
175
- rubygems_version: 2.7.6
176
- signing_key:
331
+ rubygems_version: 3.2.3
332
+ signing_key:
177
333
  specification_version: 4
178
334
  summary: I18n tool to translate your Ruby application.
179
- test_files:
180
- - spec/filters_spec.rb
181
- - spec/i18n_spec.rb
182
- - spec/locale_spec.rb
183
- - spec/locales/cs_spec.rb
184
- - spec/locales/en-us_spec.rb
185
- - spec/locales/en_spec.rb
186
- - spec/locales/fa_spec.rb
187
- - spec/locales/fr_spec.rb
188
- - spec/locales/hu_spec.rb
189
- - spec/locales/it_spec.rb
190
- - spec/locales/no_spec.rb
191
- - spec/locales/pl_spec.rb
192
- - spec/locales/ru_spec.rb
193
- - spec/locales/sk_spec.rb
194
- - spec/locales/th_spec.rb
195
- - spec/locales/vi_spec.rb
196
- - spec/r18n_spec.rb
197
- - spec/spec_helper.rb
198
- - spec/translated_spec.rb
199
- - spec/translation_spec.rb
200
- - spec/translations/extension/deep/en.yml
201
- - spec/translations/extension/en.yml
202
- - spec/translations/extension/notransl.yml
203
- - spec/translations/general/en.yml
204
- - spec/translations/general/nolocale.yml
205
- - spec/translations/general/ru.yml
206
- - spec/translations/two/en.yml
207
- - spec/translations/two/fr.yml
208
- - spec/yaml_loader_spec.rb
335
+ test_files: []