i18n-inflector 2.0.1 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.yardopts CHANGED
@@ -5,6 +5,7 @@
5
5
  --hide-void-return
6
6
  -
7
7
  docs/RELATIONS
8
+ docs/EXAMPLES
8
9
  docs/HISTORY
9
10
  ChangeLog
10
11
  docs/COPYING
data/ChangeLog CHANGED
@@ -1,3 +1,415 @@
1
+ commit abe5a4570b80924c323dde65e30ba30be50446ce
2
+ Author: Paweł Wilk <siefca@gnu.org>
3
+ Date: Thu Jan 27 01:30:54 2011 +0100
4
+
5
+ Release 2.1.0
6
+
7
+ commit 72a808453e71b18c696943b37d8bd07c3f5c6c93
8
+ Author: Paweł Wilk <siefca@gnu.org>
9
+ Date: Thu Jan 27 01:29:55 2011 +0100
10
+
11
+ Tested with Ruby 1.8 and 1.9, with Rails app, with i18n-inflector-rails, with I18n v4.1 and v5.0
12
+
13
+ commit f8c13ef824d68bed04a96d52a8be8399d21617f1
14
+ Author: Paweł Wilk <siefca@gnu.org>
15
+ Date: Thu Jan 27 01:27:11 2011 +0100
16
+
17
+ Added some tests for multiple patterns in one translation data
18
+
19
+ commit becf2f23bd41e7902d2510531e9383abb310a861
20
+ Author: Paweł Wilk <siefca@gnu.org>
21
+ Date: Thu Jan 27 01:26:47 2011 +0100
22
+
23
+ Ideas reorganized in TODO
24
+
25
+ commit 44fce7b2959040657d5d52f21a1c1a3c63a80921
26
+ Author: Paweł Wilk <siefca@gnu.org>
27
+ Date: Thu Jan 27 01:26:17 2011 +0100
28
+
29
+ Added EXAMPLES
30
+
31
+ commit b43472f4d4433b1d1cc7001b8bec9844f9a6b6f4
32
+ Author: Paweł Wilk <siefca@gnu.org>
33
+ Date: Wed Jan 26 22:29:20 2011 +0100
34
+
35
+ Ideas updated
36
+
37
+ commit bcc5c7994867e784bcb6950db18021a82a1a9daf
38
+ Author: Paweł Wilk <siefca@gnu.org>
39
+ Date: Wed Jan 26 22:26:54 2011 +0100
40
+
41
+ Added a test that verifies whether original translate eats options and impacts interpolation
42
+
43
+ commit 7c274ca8a6192495c4b3bfa2edc99339d01a4308
44
+ Author: Paweł Wilk <siefca@gnu.org>
45
+ Date: Wed Jan 26 20:45:25 2011 +0100
46
+
47
+ Options for translate are now duplicated before calling the original version
48
+
49
+ commit 138273a0780289ec7b330c8f54090bb72b0e9d82
50
+ Author: Paweł Wilk <siefca@gnu.org>
51
+ Date: Wed Jan 26 20:19:08 2011 +0100
52
+
53
+ Manifest.txt regenerated
54
+
55
+ commit 5c47868b4a51012e8a722a66a383b014eb9e959e
56
+ Author: Paweł Wilk <siefca@gnu.org>
57
+ Date: Wed Jan 26 19:36:33 2011 +0100
58
+
59
+ Added LazyHashEnumerator#keys for dumping keys of a resulting hash
60
+
61
+ commit 831eff126f9d233c75e3793798f20ae23d7de6db
62
+ Author: Paweł Wilk <siefca@gnu.org>
63
+ Date: Wed Jan 26 19:33:16 2011 +0100
64
+
65
+ File RELATIONS updated
66
+
67
+ commit c3c3cdf4abd57631b52bb3b960bd08289bf6edc9
68
+ Author: Paweł Wilk <siefca@gnu.org>
69
+ Date: Wed Jan 26 17:37:40 2011 +0100
70
+
71
+ Added some extra tests for InflectionData#add_token and InflectionData_Strict#add_token
72
+
73
+ commit df4675d463fc9b405077282bd474671b80b65656
74
+ Author: Paweł Wilk <siefca@gnu.org>
75
+ Date: Wed Jan 26 17:37:04 2011 +0100
76
+
77
+ Documentation for InflectionDataStrict updated
78
+
79
+ commit b764b00b1c5de5d377a064404c3a3dc45864e1a9
80
+ Author: Paweł Wilk <siefca@gnu.org>
81
+ Date: Wed Jan 26 17:15:32 2011 +0100
82
+
83
+ Documentation updates
84
+
85
+ commit ff581f4dd2e0ea9ee2f19474f84b10fc79b8b0c2
86
+ Author: Paweł Wilk <siefca@gnu.org>
87
+ Date: Wed Jan 26 16:45:45 2011 +0100
88
+
89
+ Method API_Strict#inflected_locales fixed; verifies results with InflectionData_Strict#empty?
90
+
91
+ commit 1f270ea082729c30c9851fa519e0f1c07ca39528
92
+ Author: Paweł Wilk <siefca@gnu.org>
93
+ Date: Wed Jan 26 16:42:03 2011 +0100
94
+
95
+ Added some tests for getting inflections
96
+
97
+ commit 26cea141be36b443f866d04a04bd57941bc02bb0
98
+ Author: Paweł Wilk <siefca@gnu.org>
99
+ Date: Wed Jan 26 16:41:36 2011 +0100
100
+
101
+ Documentation updates
102
+
103
+ commit e9646adb37bde86f9131f3be8e5e1faef292fb84
104
+ Author: Paweł Wilk <siefca@gnu.org>
105
+ Date: Wed Jan 26 03:30:33 2011 +0100
106
+
107
+ Documentation updated for the class InflectionData
108
+
109
+ commit 739c724cbfc452925c0ad74dd1ede66f5e495804
110
+ Author: Paweł Wilk <siefca@gnu.org>
111
+ Date: Wed Jan 26 03:29:51 2011 +0100
112
+
113
+ Added EXAMPLES file to documentation
114
+
115
+ commit d27b9d5457872dbdd66d14611b1016e2fb5e2ecf
116
+ Author: Paweł Wilk <siefca@gnu.org>
117
+ Date: Wed Jan 26 02:55:23 2011 +0100
118
+
119
+ TODO updated
120
+
121
+ commit 4a052f86d488c37f1c4c70a716bc4d5fc3a507fc
122
+ Author: Paweł Wilk <siefca@gnu.org>
123
+ Date: Wed Jan 26 02:54:53 2011 +0100
124
+
125
+ Documentation for class API_Strict updated
126
+
127
+ commit d9c380cb22848e001de5eb98f9103950dd470d61
128
+ Author: Paweł Wilk <siefca@gnu.org>
129
+ Date: Wed Jan 26 01:55:54 2011 +0100
130
+
131
+ Class LazyEnumerator cleaned and renamed to LazyHashEnumerator
132
+
133
+ commit 5dff82b62eefa0ecefbb2109870f5d27ad4b867b
134
+ Author: Paweł Wilk <siefca@gnu.org>
135
+ Date: Wed Jan 26 01:08:58 2011 +0100
136
+
137
+ Strict kinds described
138
+
139
+ commit 14d91e3eb09eccfddbc9e73f97c8d715f158c4eb
140
+ Author: Paweł Wilk <siefca@gnu.org>
141
+ Date: Wed Jan 26 01:08:33 2011 +0100
142
+
143
+ Added RELATIONS documentation to compat gemspec
144
+
145
+ commit 70d0f47ead977140ec0e87aa1e28f06f2b652040
146
+ Author: Paweł Wilk <siefca@gnu.org>
147
+ Date: Wed Jan 26 01:08:03 2011 +0100
148
+
149
+ Improvements of interpolation routine, error reporting and arguments validation
150
+
151
+ commit ce54b7309fef659b8a06e6f011d30a4dc15587e5
152
+ Author: Paweł Wilk <siefca@gnu.org>
153
+ Date: Wed Jan 26 01:04:59 2011 +0100
154
+
155
+ Added tests for named patterns, some tests fixed
156
+
157
+ commit 5d81d7514ad94a12b72e7ffcb2f2168511a52f2f
158
+ Author: Paweł Wilk <siefca@gnu.org>
159
+ Date: Wed Jan 26 01:04:27 2011 +0100
160
+
161
+ Added new error classes InflectionOptionNotFound and InflectionOptionIncorrect
162
+
163
+ commit 2d0d2f041798681ce598f95bfa2847e7c86e8fef
164
+ Author: Paweł Wilk <siefca@gnu.org>
165
+ Date: Tue Jan 25 04:10:18 2011 +0100
166
+
167
+ Added note about named patterns to README
168
+
169
+ commit 663aedad35b98c6aac08073ef13f6145041eb431
170
+ Author: Paweł Wilk <siefca@gnu.org>
171
+ Date: Tue Jan 25 04:00:47 2011 +0100
172
+
173
+ Documentation updated
174
+
175
+ commit 0658fe79eaa385ca058ed29e4cc8a18007875a11
176
+ Author: Paweł Wilk <siefca@gnu.org>
177
+ Date: Tue Jan 25 03:36:24 2011 +0100
178
+
179
+ Added tests for easy API calls with @kind in arguments
180
+
181
+ commit aa9dd4a1133eeb50dfe5237f142350fb6e0609d9
182
+ Author: Paweł Wilk <siefca@gnu.org>
183
+ Date: Tue Jan 25 03:35:04 2011 +0100
184
+
185
+ Documentation fixes
186
+
187
+ commit 3b241abe7ae39219a0e847bddc65e76f89590055
188
+ Author: Paweł Wilk <siefca@gnu.org>
189
+ Date: Tue Jan 25 03:34:29 2011 +0100
190
+
191
+ Fixed bug in typing that caused some API calls to has_kind? and default_token to be erroneus
192
+
193
+ commit 71600f1056aa3e89fe2f5c21982bca5f5379ec50
194
+ Author: Paweł Wilk <siefca@gnu.org>
195
+ Date: Tue Jan 25 03:32:43 2011 +0100
196
+
197
+ Documentation for API updated and corrected
198
+
199
+ commit e007ce75e59bbb42f2d6474d8fbfd0888937bd1b
200
+ Author: Paweł Wilk <siefca@gnu.org>
201
+ Date: Tue Jan 25 03:32:05 2011 +0100
202
+
203
+ Fixed bug that caused some aliases for strict kinds to not be loaded because of missing @
204
+
205
+ commit 25303663e091123e1820b33f2c3e670c054fc25f
206
+ Author: Paweł Wilk <siefca@gnu.org>
207
+ Date: Mon Jan 24 18:31:09 2011 +0100
208
+
209
+ Documentation updated, tests fixed
210
+
211
+ commit 370ad6e4e5f1ab6dcbe7b9a7edd703064ee708a9
212
+ Author: Paweł Wilk <siefca@gnu.org>
213
+ Date: Mon Jan 24 18:29:53 2011 +0100
214
+
215
+ API_Named calls changed to API_Strict, documentation updated
216
+
217
+ commit d95b43f359b438e4a1fef4907545dae4ec7abe9d
218
+ Author: Paweł Wilk <siefca@gnu.org>
219
+ Date: Mon Jan 24 18:29:01 2011 +0100
220
+
221
+ API_Named renamed to API_Strict
222
+
223
+ commit a5c1467e931279022173e86e5e05992a30768334
224
+ Author: Paweł Wilk <siefca@gnu.org>
225
+ Date: Mon Jan 24 14:38:59 2011 +0100
226
+
227
+ Fixes: slow blocks removed, magic @kind interpreting finished, Ruby's version test improved
228
+
229
+ commit fbdd10ae7ff73ceb5b5697f138f2e02deee8bb5e
230
+ Author: Paweł Wilk <siefca@gnu.org>
231
+ Date: Mon Jan 24 13:02:52 2011 +0100
232
+
233
+ Removed backport.rb, added some backporting code directly to LazyEnumerator class
234
+
235
+ commit 570709c07a293b4a1cd4e1b864744ac38f12f2ee
236
+ Author: Paweł Wilk <siefca@gnu.org>
237
+ Date: Mon Jan 24 11:32:01 2011 +0100
238
+
239
+ Manifest.txt and ChangeLog regenerated
240
+
241
+ commit 691d74f506c78566f2d5d04d55f0381a0a2209a6
242
+ Author: Paweł Wilk <siefca@gnu.org>
243
+ Date: Mon Jan 24 11:31:31 2011 +0100
244
+
245
+ Added backport methods for lazy enumerators to work with Ruby 1.8 and some tests
246
+
247
+ commit 65c6c73e263f6e8e655921fcea78e6237d3a438f
248
+ Author: Paweł Wilk <siefca@gnu.org>
249
+ Date: Mon Jan 24 03:07:26 2011 +0100
250
+
251
+ Documentation updated
252
+
253
+ commit cc3d99c2b869cd8ee467ffd97d286850f0763125
254
+ Author: Paweł Wilk <siefca@gnu.org>
255
+ Date: Mon Jan 24 02:58:39 2011 +0100
256
+
257
+ Tokens querying methods of InflectionData and InflectionData_Strict are based on lazy enumerators
258
+
259
+ commit 90bcb046711fcce1d0302bc4de3cb5caf728518c
260
+ Author: Paweł Wilk <siefca@gnu.org>
261
+ Date: Sun Jan 23 21:04:07 2011 +0100
262
+
263
+ Added lazy enumerators class
264
+
265
+ commit 869810b79278843efe712580589e69676a230cf4
266
+ Author: Paweł Wilk <siefca@gnu.org>
267
+ Date: Sun Jan 23 21:03:41 2011 +0100
268
+
269
+ Important fix to @kind-style tokens parsing
270
+
271
+ commit a17a2a86839e6ef969ca0672648423c65ee5f28d
272
+ Author: Paweł Wilk <siefca@gnu.org>
273
+ Date: Sun Jan 23 21:02:53 2011 +0100
274
+
275
+ Documentation fixes
276
+
277
+ commit 354ae5dd247a5d0b9c3a15ae226757c215c8335a
278
+ Author: Paweł Wilk <siefca@gnu.org>
279
+ Date: Sun Jan 23 21:01:15 2011 +0100
280
+
281
+ Added lazy enumeration while loading tokens
282
+
283
+ commit 2a853fad411a2fb1cabb18eaf0b594486cbbfa71
284
+ Author: Paweł Wilk <siefca@gnu.org>
285
+ Date: Sun Jan 23 04:41:07 2011 +0100
286
+
287
+ Added magic to API; kinds with names containing @ marker are now parsed by methods from @named
288
+
289
+ commit 5a0894ee65bb08732186e1cae0e0e32311144621
290
+ Author: Paweł Wilk <siefca@gnu.org>
291
+ Date: Sun Jan 23 04:17:16 2011 +0100
292
+
293
+ Loading inflection tokens cleaned up, documentation updated
294
+
295
+ commit 377d8e6077bba885885ae3fda441935b88137365
296
+ Author: Paweł Wilk <siefca@gnu.org>
297
+ Date: Sat Jan 22 23:07:29 2011 +0100
298
+
299
+ Fixed databases loading, API unified, InflectionData and InflectionData_Strict databases split
300
+
301
+ commit 7a6401eefa879905b40181f44a95fcfcb916c3c0
302
+ Author: Paweł Wilk <siefca@gnu.org>
303
+ Date: Sat Jan 22 18:57:12 2011 +0100
304
+
305
+ Documentation updated
306
+
307
+ commit 4d076ecf54f195755c560ecac0370eddc4624111
308
+ Author: Paweł Wilk <siefca@gnu.org>
309
+ Date: Sat Jan 22 18:16:25 2011 +0100
310
+
311
+ Reader for @locale moved to base class (InflectionData_Strict) from InflectionData
312
+
313
+ commit 8b2c38a5151ae4fc66dfbf98533be816fa7400f6
314
+ Author: Paweł Wilk <siefca@gnu.org>
315
+ Date: Sat Jan 22 18:12:14 2011 +0100
316
+
317
+ Removed InflectionStore class, moved logic to InflectionData and InflectionData_Strict
318
+
319
+ commit afd1dee0fc460d433fb7235148ef53d780952481
320
+ Author: Paweł Wilk <siefca@gnu.org>
321
+ Date: Sat Jan 22 17:25:30 2011 +0100
322
+
323
+ I18n::Inflector::API is now major class for using inflections
324
+
325
+ commit 593ae7ff42fcdac1fa5951f0324990d3caa2d31f
326
+ Author: Paweł Wilk <siefca@gnu.org>
327
+ Date: Sat Jan 22 14:39:17 2011 +0100
328
+
329
+ Class API removed and methods joined to Core class. Class API::Named moved to NamedAPI
330
+
331
+ commit 8eef8a5bc39ce202332a53f659ff6593f0d29ace
332
+ Author: Paweł Wilk <siefca@gnu.org>
333
+ Date: Sat Jan 22 02:00:46 2011 +0100
334
+
335
+ Documentation updates
336
+
337
+ commit c77c841aed0dbc19ef26ce1c44fe38b74fe46e2f
338
+ Author: Paweł Wilk <siefca@gnu.org>
339
+ Date: Thu Jan 20 23:21:44 2011 +0100
340
+
341
+ Added tests to cover public API, database management methods moved to InflectionStore
342
+
343
+ commit 61b0e11d895de3284eab73805c471505b1fdc0a9
344
+ Author: Paweł Wilk <siefca@gnu.org>
345
+ Date: Thu Jan 20 18:13:12 2011 +0100
346
+
347
+ Dummy whitespaces removed
348
+
349
+ commit d7fcb11585469b40c2a03e03d70d3382d30efa50
350
+ Author: Paweł Wilk <siefca@gnu.org>
351
+ Date: Thu Jan 20 16:52:41 2011 +0100
352
+
353
+ Added named patterns support, I18n::Inflector::Core refactored
354
+
355
+ commit a358abde6191cb48d80a087a3b4da58f8cb4166e
356
+ Author: Paweł Wilk <siefca@gnu.org>
357
+ Date: Thu Jan 20 05:37:24 2011 +0100
358
+
359
+ Internal classes seriously refactored
360
+
361
+ New class I18n::Inflector::InflectionStore that is a child class of I18n::Inflector::InflectionData
362
+ New class I18n::Inflector::InflectionData::Strict which instance is in InflectionStore
363
+ Reader strict for InflectionStore to access inflection data for named patterns (strict kinds)
364
+
365
+ commit 599aed89b85f72274d6e4f9e9efd4c11ba863026
366
+ Author: Paweł Wilk <siefca@gnu.org>
367
+ Date: Wed Jan 19 15:50:07 2011 +0100
368
+
369
+ Added support for loading named patterns and partial support for interpolating strict kinds
370
+
371
+ commit 7818644eee848f3c2d744b41240f00486822a319
372
+ Author: Paweł Wilk <siefca@gnu.org>
373
+ Date: Wed Jan 19 15:46:13 2011 +0100
374
+
375
+ Error messages corrected
376
+
377
+ commit be0c88a74f18575932663c4822c3d45e46442eab
378
+ Author: Paweł Wilk <siefca@gnu.org>
379
+ Date: Tue Jan 18 12:24:04 2011 +0100
380
+
381
+ Default rake task now runs tests for inflector with both: i18n and i18n version 4
382
+
383
+ commit c5ce5658d45b867ed3f0157c1f45a2b60d4f50b6
384
+ Author: Paweł Wilk <siefca@gnu.org>
385
+ Date: Mon Jan 17 23:08:03 2011 +0100
386
+
387
+ Manifest.txt updated, ChangeLog updated
388
+
389
+ commit 481ffa6a961bc4713c75fefd7e2dd48b3fa8668b
390
+ Author: Paweł Wilk <siefca@gnu.org>
391
+ Date: Mon Jan 17 23:06:09 2011 +0100
392
+
393
+ Added rake test for i18n in version 4
394
+
395
+ commit 498b2b78908a2b1173360034bafa265cac67002f
396
+ Author: Paweł Wilk <siefca@gnu.org>
397
+ Date: Mon Jan 17 15:25:52 2011 +0100
398
+
399
+ RESERVED_KEYS fetching improved
400
+
401
+ commit 4dbdc4b1fb569f7239157aa19b8db8a0ec964d64
402
+ Author: Paweł Wilk <siefca@gnu.org>
403
+ Date: Mon Jan 17 15:03:19 2011 +0100
404
+
405
+ Documentation updated
406
+
407
+ commit bb0670ef630cab63736145b3554739be6630f307
408
+ Author: Paweł Wilk <siefca@gnu.org>
409
+ Date: Mon Jan 17 15:02:50 2011 +0100
410
+
411
+ Fixes in README
412
+
1
413
  commit e8ada4542f3ec98a669a39443c7e556a61894e44
2
414
  Author: Paweł Wilk <siefca@gnu.org>
3
415
  Date: Sat Jan 15 14:46:09 2011 +0100
data/Gemfile CHANGED
@@ -9,6 +9,7 @@ gem "test_declarative", ">=0.0.4", :group => [:development, :test]
9
9
  gem "yard", ">=0.6.4", :group => [:development, :test]
10
10
  gem "bundler", ">=1.0.7", :group => [:development, :test]
11
11
  gem "hoe-bundler", ">=1.0.0", :group => [:development, :test]
12
+ gem "hoe-yard", ">=0.1.2", :group => [:development, :test]
12
13
  gem "hoe", ">=2.8.0", :group => [:development, :test]
13
14
 
14
15
  # vim: syntax=ruby
data/Manifest.txt CHANGED
@@ -6,7 +6,9 @@ Manifest.txt
6
6
  README.rdoc
7
7
  Rakefile
8
8
  ci/i18n-inflector.gemspec
9
+ ci/i18nv4-Gemfile
9
10
  docs/COPYING
11
+ docs/EXAMPLES
10
12
  docs/HISTORY
11
13
  docs/LEGAL
12
14
  docs/LGPL
@@ -14,13 +16,16 @@ docs/RELATIONS
14
16
  docs/TODO
15
17
  docs/rdoc.css
16
18
  lib/i18n-inflector.rb
19
+ lib/i18n-inflector/api.rb
20
+ lib/i18n-inflector/api_strict.rb
17
21
  lib/i18n-inflector/backend.rb
18
22
  lib/i18n-inflector/errors.rb
19
23
  lib/i18n-inflector/inflection_data.rb
24
+ lib/i18n-inflector/inflection_data_strict.rb
20
25
  lib/i18n-inflector/inflector.rb
26
+ lib/i18n-inflector/lazy_enum.rb
21
27
  lib/i18n-inflector/long_comments.rb
22
28
  lib/i18n-inflector/options.rb
23
- lib/i18n-inflector/util.rb
24
29
  lib/i18n-inflector/version.rb
25
30
  test/inflector_test.rb
26
31
  test/test_helper.rb
data/README.rdoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = Simple Inflector for I18n
2
2
 
3
- <b>i18n-inflector version <tt>2.0</tt></b> (<b><tt>Harvester</tt></b>)
3
+ <b>i18n-inflector version <tt>2.1</tt></b> (<b><tt>Anand</tt></b>)
4
4
 
5
5
 
6
6
 
@@ -41,7 +41,13 @@ Example translation data:
41
41
  default: neuter
42
42
 
43
43
 
44
- welcome: "Dear {f:Lady|m:Sir|n:You|All}"
44
+ welcome: "Dear @{f:Lady|m:Sir|n:You|All}"
45
+
46
+ From version 2.1.0 Inflector supports so called named patterns,
47
+ which can be used if there is a need to be strict and/or to
48
+ use the same token names but assigned to different kinds. Example:
49
+
50
+ welcome: "Dear @gender{f:Lady|m:Sir|n:You|All}"
45
51
 
46
52
  == Why?
47
53
 
@@ -122,6 +128,13 @@ Detailed example:
122
128
  I18n.t('welcome', :gender => :o)
123
129
  # => "Dear You"
124
130
 
131
+ == More information
132
+
133
+ * See {I18n::Inflector} module documentation for detailed information about the usage.
134
+ * See {I18n::Backend::Inflector} module documentation for detailed information about the internals.
135
+ * See {I18n::Backend::Inflector::API} class documentation for detailed information about the API.
136
+ * See {whole documentation}[http://rubydoc.info/gems/i18n-inflector/] to browse all documents.
137
+
125
138
  == Tests
126
139
 
127
140
  You can run tests both with
@@ -129,17 +142,9 @@ You can run tests both with
129
142
  * <tt>rake test</tt> or just <tt>rake</tt>
130
143
  * run a test file directly, e.g. <tt>ruby -Ilib -Itest test/inflector_test.rb</tt>
131
144
 
132
- == More information
133
-
134
- See {whole documentation}[http://rubydoc.info/gems/i18n-inflector/] for more info about usage.
135
-
136
- See {I18n::Inflector} module documentation for information about API and detailed usage.
137
-
138
- See {I18n::Backend::Inflector} module documentation for detailed information about internals.
139
-
140
145
  == See also
141
146
 
142
- See {i18n-inflector-rails}[https://rubygems.org/gems/i18n-inflector-rails/file/README.rdoc] if you need
147
+ See {i18n-inflector-rails}[https://rubygems.org/gems/i18n-inflector-rails/] if you need
143
148
  the Rails plug-in that integrates this module with ActionController.
144
149
 
145
150
  == Credits
data/Rakefile CHANGED
@@ -14,7 +14,20 @@ require 'i18n-inflector/version'
14
14
 
15
15
  require 'hoe'
16
16
 
17
- task :default => [:test]
17
+ task :default do
18
+ Rake::Task[:test].invoke
19
+ Rake::Task[:test].reenable
20
+ Rake::Task[:testv4].invoke
21
+ end
22
+
23
+ # Tests for I18n in version 4
24
+ task :testv4 do
25
+ gemprev = ENV['BUNDLE_GEMFILE']
26
+ ENV['BUNDLE_GEMFILE'] = 'ci/i18nv4-Gemfile'
27
+ `bundle install`
28
+ Rake::Task[:test].invoke
29
+ ENV['BUNDLE_GEMFILE'] = gemprev
30
+ end
18
31
 
19
32
  desc "install by setup.rb"
20
33
  task :install do
@@ -35,7 +48,7 @@ Hoe.spec 'i18n-inflector' do
35
48
  self.description = I18n::Inflector::DESCRIPTION
36
49
  self.url = I18n::Inflector::URL
37
50
 
38
- self.test_globs = %w(test/**/*_test.rb)
51
+ self.test_globs = %w(test/**/*_test.rb)
39
52
 
40
53
  self.remote_rdoc_dir = ''
41
54
  self.rsync_args << '--chmod=a+rX'
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
  s.description = I18n::Inflector::DESCRIPTION
15
15
 
16
16
  s.files = Dir.glob("{ci,lib,spec,docs}/**/**") + %w(Gemfile .rspec .yardopts README.rdoc LGPL-LICENSE ChangeLog Manifest.txt)
17
- s.extra_rdoc_files = ["README.rdoc", "docs/TODO", "docs/HISTORY", "docs/LGPL", "docs/COPYING"]
17
+ s.extra_rdoc_files = ["README.rdoc", "docs/RELATIONS", "docs/EXAMPLES", "docs/TODO", "docs/HISTORY", "docs/LEGAL", "docs/LGPL", "docs/COPYING"]
18
18
  s.rdoc_options = ["--main", "README.rdoc"]
19
19
  s.platform = Gem::Platform::RUBY
20
20
  s.require_path = 'lib'
data/ci/i18nv4-Gemfile ADDED
@@ -0,0 +1,15 @@
1
+ # -*- ruby -*-
2
+
3
+ source :gemcutter
4
+
5
+ gem "i18n", ">=0.4.1", "<0.5.0"
6
+
7
+ gem "hoe-yard", ">=0.1.2", :group => [:development, :test]
8
+ gem "test_declarative", ">=0.0.4", :group => [:development, :test]
9
+ gem "yard", ">=0.6.4", :group => [:development, :test]
10
+ gem "bundler", ">=1.0.7", :group => [:development, :test]
11
+ gem "hoe-bundler", ">=1.0.0", :group => [:development, :test]
12
+ gem "hoe-yard", ">=0.1.2", :group => [:development, :test]
13
+ gem "hoe", ">=2.8.0", :group => [:development, :test]
14
+
15
+ # vim: syntax=ruby