gettext_simple_rails 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/config/default.po +11 -0
  3. data/config/poedit_ruby_parser.conf +6 -0
  4. data/lib/gettext_simple_rails/cache_handler.rb +45 -0
  5. data/lib/gettext_simple_rails/i18n_injector.rb +22 -3
  6. data/lib/gettext_simple_rails/model_inspector.rb +1 -5
  7. data/lib/gettext_simple_rails/setup_helper.rb +50 -0
  8. data/lib/gettext_simple_rails/version.rb +1 -1
  9. data/lib/gettext_simple_rails.rb +18 -0
  10. data/lib/tasks/gettext_simple_rails_tasks.rake +53 -3
  11. data/spec/active_record_spec.rb +8 -12
  12. data/spec/cache_handler_spec.rb +26 -0
  13. data/spec/date_translator_spec.rb +8 -12
  14. data/spec/dummy/config/locales_gettext/da/LC_MESSAGES/default.mo +0 -0
  15. data/spec/dummy/config/locales_gettext/da/LC_MESSAGES/default.po +361 -0
  16. data/spec/dummy/config/locales_gettext/en/LC_MESSAGES/default.po +11 -0
  17. data/spec/dummy/config/locales_gettext/static_translation_file.json +1 -0
  18. data/spec/dummy/lib/gettext_simple_rails/models/role_model_translations.rb +21 -0
  19. data/spec/dummy/lib/gettext_simple_rails/models/user_model_translations.rb +22 -0
  20. data/spec/dummy/log/test.log +193 -0
  21. data/spec/gettext_simple_rails_spec.rb +8 -12
  22. data/spec/poedit_config_with_ruby.conf +116 -0
  23. data/spec/poedit_config_without_ruby.conf +101 -0
  24. data/spec/setup_helper_spec.rb +41 -0
  25. metadata +25 -7
  26. data/spec/dummy/lib/gettext_simple_rails/active_record_translator_translations.rb +0 -18
  27. data/spec/dummy/lib/gettext_simple_rails/date_translator_translations.rb +0 -60
  28. data/spec/dummy/lib/gettext_simple_rails/number_translator_translations.rb +0 -48
@@ -0,0 +1,361 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Dummy\n"
4
+ "POT-Creation-Date: 2014-05-13 15:41+0100\n"
5
+ "PO-Revision-Date: \n"
6
+ "Last-Translator: Kasper Johansen <k@spernj.org>\n"
7
+ "Language-Team: \n"
8
+ "Language: da\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop\n"
13
+ "X-Poedit-Basepath: ../../../../\n"
14
+ "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Generator: Poedit 1.5.4\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #. Default value: %Y-%m-%d
19
+ #: lib/gettext_simple_rails/date_translator_translations.rb:4
20
+ msgid "date.formats.default"
21
+ msgstr ""
22
+
23
+ #. Default value: %b %d
24
+ #: lib/gettext_simple_rails/date_translator_translations.rb:6
25
+ msgid "date.formats.short"
26
+ msgstr ""
27
+
28
+ #. Default value: %B %d, %Y
29
+ #: lib/gettext_simple_rails/date_translator_translations.rb:8
30
+ msgid "date.formats.long"
31
+ msgstr ""
32
+
33
+ #: lib/gettext_simple_rails/date_translator_translations.rb:9
34
+ msgid "date.day_names.0"
35
+ msgstr ""
36
+
37
+ #: lib/gettext_simple_rails/date_translator_translations.rb:10
38
+ msgid "date.day_names.1"
39
+ msgstr ""
40
+
41
+ #: lib/gettext_simple_rails/date_translator_translations.rb:11
42
+ msgid "date.day_names.2"
43
+ msgstr ""
44
+
45
+ #: lib/gettext_simple_rails/date_translator_translations.rb:12
46
+ msgid "date.day_names.3"
47
+ msgstr ""
48
+
49
+ #: lib/gettext_simple_rails/date_translator_translations.rb:13
50
+ msgid "date.day_names.4"
51
+ msgstr ""
52
+
53
+ #: lib/gettext_simple_rails/date_translator_translations.rb:14
54
+ msgid "date.day_names.5"
55
+ msgstr ""
56
+
57
+ #: lib/gettext_simple_rails/date_translator_translations.rb:15
58
+ msgid "date.day_names.6"
59
+ msgstr ""
60
+
61
+ #: lib/gettext_simple_rails/date_translator_translations.rb:16
62
+ msgid "date.abbr_day_names.0"
63
+ msgstr ""
64
+
65
+ #: lib/gettext_simple_rails/date_translator_translations.rb:17
66
+ msgid "date.abbr_day_names.1"
67
+ msgstr ""
68
+
69
+ #: lib/gettext_simple_rails/date_translator_translations.rb:18
70
+ msgid "date.abbr_day_names.2"
71
+ msgstr ""
72
+
73
+ #: lib/gettext_simple_rails/date_translator_translations.rb:19
74
+ msgid "date.abbr_day_names.3"
75
+ msgstr ""
76
+
77
+ #: lib/gettext_simple_rails/date_translator_translations.rb:20
78
+ msgid "date.abbr_day_names.4"
79
+ msgstr ""
80
+
81
+ #: lib/gettext_simple_rails/date_translator_translations.rb:21
82
+ msgid "date.abbr_day_names.5"
83
+ msgstr ""
84
+
85
+ #: lib/gettext_simple_rails/date_translator_translations.rb:22
86
+ msgid "date.abbr_day_names.6"
87
+ msgstr ""
88
+
89
+ #: lib/gettext_simple_rails/date_translator_translations.rb:23
90
+ msgid "date.month_names.0"
91
+ msgstr ""
92
+
93
+ #: lib/gettext_simple_rails/date_translator_translations.rb:24
94
+ msgid "date.month_names.1"
95
+ msgstr ""
96
+
97
+ #: lib/gettext_simple_rails/date_translator_translations.rb:25
98
+ msgid "date.month_names.2"
99
+ msgstr ""
100
+
101
+ #: lib/gettext_simple_rails/date_translator_translations.rb:26
102
+ msgid "date.month_names.3"
103
+ msgstr ""
104
+
105
+ #: lib/gettext_simple_rails/date_translator_translations.rb:27
106
+ msgid "date.month_names.4"
107
+ msgstr ""
108
+
109
+ #: lib/gettext_simple_rails/date_translator_translations.rb:28
110
+ msgid "date.month_names.5"
111
+ msgstr ""
112
+
113
+ #: lib/gettext_simple_rails/date_translator_translations.rb:29
114
+ msgid "date.month_names.6"
115
+ msgstr ""
116
+
117
+ #: lib/gettext_simple_rails/date_translator_translations.rb:30
118
+ msgid "date.month_names.7"
119
+ msgstr ""
120
+
121
+ #: lib/gettext_simple_rails/date_translator_translations.rb:31
122
+ msgid "date.month_names.8"
123
+ msgstr ""
124
+
125
+ #: lib/gettext_simple_rails/date_translator_translations.rb:32
126
+ msgid "date.month_names.9"
127
+ msgstr ""
128
+
129
+ #: lib/gettext_simple_rails/date_translator_translations.rb:33
130
+ msgid "date.month_names.10"
131
+ msgstr ""
132
+
133
+ #: lib/gettext_simple_rails/date_translator_translations.rb:34
134
+ msgid "date.month_names.11"
135
+ msgstr ""
136
+
137
+ #: lib/gettext_simple_rails/date_translator_translations.rb:35
138
+ msgid "date.month_names.12"
139
+ msgstr ""
140
+
141
+ #: lib/gettext_simple_rails/date_translator_translations.rb:36
142
+ msgid "date.abbr_month_names.0"
143
+ msgstr ""
144
+
145
+ #: lib/gettext_simple_rails/date_translator_translations.rb:37
146
+ msgid "date.abbr_month_names.1"
147
+ msgstr ""
148
+
149
+ #: lib/gettext_simple_rails/date_translator_translations.rb:38
150
+ msgid "date.abbr_month_names.2"
151
+ msgstr ""
152
+
153
+ #: lib/gettext_simple_rails/date_translator_translations.rb:39
154
+ msgid "date.abbr_month_names.3"
155
+ msgstr ""
156
+
157
+ #: lib/gettext_simple_rails/date_translator_translations.rb:40
158
+ msgid "date.abbr_month_names.4"
159
+ msgstr ""
160
+
161
+ #: lib/gettext_simple_rails/date_translator_translations.rb:41
162
+ msgid "date.abbr_month_names.5"
163
+ msgstr ""
164
+
165
+ #: lib/gettext_simple_rails/date_translator_translations.rb:42
166
+ msgid "date.abbr_month_names.6"
167
+ msgstr ""
168
+
169
+ #: lib/gettext_simple_rails/date_translator_translations.rb:43
170
+ msgid "date.abbr_month_names.7"
171
+ msgstr ""
172
+
173
+ #: lib/gettext_simple_rails/date_translator_translations.rb:44
174
+ msgid "date.abbr_month_names.8"
175
+ msgstr ""
176
+
177
+ #: lib/gettext_simple_rails/date_translator_translations.rb:45
178
+ msgid "date.abbr_month_names.9"
179
+ msgstr ""
180
+
181
+ #: lib/gettext_simple_rails/date_translator_translations.rb:46
182
+ msgid "date.abbr_month_names.10"
183
+ msgstr ""
184
+
185
+ #: lib/gettext_simple_rails/date_translator_translations.rb:47
186
+ msgid "date.abbr_month_names.11"
187
+ msgstr ""
188
+
189
+ #: lib/gettext_simple_rails/date_translator_translations.rb:48
190
+ msgid "date.abbr_month_names.12"
191
+ msgstr ""
192
+
193
+ #. Default value: %a, %d %b %Y %H:%M:%S %z
194
+ #: lib/gettext_simple_rails/date_translator_translations.rb:50
195
+ msgid "time.formats.default"
196
+ msgstr ""
197
+
198
+ #. Default value: %d %b %H:%M
199
+ #: lib/gettext_simple_rails/date_translator_translations.rb:52
200
+ msgid "time.formats.short"
201
+ msgstr ""
202
+
203
+ #. Default value: %B %d, %Y %H:%M
204
+ #: lib/gettext_simple_rails/date_translator_translations.rb:54
205
+ msgid "time.formats.long"
206
+ msgstr ""
207
+
208
+ #. Default value: am
209
+ #: lib/gettext_simple_rails/date_translator_translations.rb:56
210
+ msgid "time.am"
211
+ msgstr ""
212
+
213
+ #. Default value: pm
214
+ #: lib/gettext_simple_rails/date_translator_translations.rb:58
215
+ msgid "time.pm"
216
+ msgstr ""
217
+
218
+ #. Default value: Invalid record
219
+ #: lib/gettext_simple_rails/active_record_translator_translations.rb:4
220
+ msgid "activerecord.errors.messages.record_invalid"
221
+ msgstr ""
222
+
223
+ #. Default value: is too short. The minimum is %{count}
224
+ #: lib/gettext_simple_rails/active_record_translator_translations.rb:6
225
+ msgid "activerecord.errors.models.user.attributes.name.too_short"
226
+ msgstr "er for kort. Minimum er %{count}"
227
+
228
+ #. Default value: is too long. The maximum is %{count}
229
+ #: lib/gettext_simple_rails/active_record_translator_translations.rb:8
230
+ msgid "activerecord.errors.models.user.attributes.name.too_long"
231
+ msgstr ""
232
+
233
+ #. Default value: has already been taken
234
+ #: lib/gettext_simple_rails/active_record_translator_translations.rb:10
235
+ msgid "activerecord.errors.models.user.attributes.name.taken"
236
+ msgstr ""
237
+
238
+ #. Default value: cannot be blank
239
+ #: lib/gettext_simple_rails/active_record_translator_translations.rb:12
240
+ msgid "activerecord.errors.models.user.attributes.name.blank"
241
+ msgstr ""
242
+
243
+ #. Default value: is invalid
244
+ #: lib/gettext_simple_rails/active_record_translator_translations.rb:14
245
+ msgid "activerecord.errors.models.user.attributes.name.invalid"
246
+ msgstr ""
247
+
248
+ #. Default value: is invalid
249
+ #: lib/gettext_simple_rails/active_record_translator_translations.rb:16
250
+ msgid "activerecord.errors.models.user.attributes.email.invalid"
251
+ msgstr ""
252
+
253
+ #. Default value: ,
254
+ #: lib/gettext_simple_rails/number_translator_translations.rb:4
255
+ msgid "number.currency.format.delimiter"
256
+ msgstr ""
257
+
258
+ #. Default value: %n %u
259
+ #: lib/gettext_simple_rails/number_translator_translations.rb:6
260
+ msgid "number.currency.format.format"
261
+ msgstr ""
262
+
263
+ #. Default value: .
264
+ #: lib/gettext_simple_rails/number_translator_translations.rb:8
265
+ msgid "number.currency.format.separator"
266
+ msgstr ""
267
+
268
+ #. Default value: $
269
+ #: lib/gettext_simple_rails/number_translator_translations.rb:10
270
+ msgid "number.currency.format.unit"
271
+ msgstr ""
272
+
273
+ #. Default value: ,
274
+ #: lib/gettext_simple_rails/number_translator_translations.rb:12
275
+ msgid "number.format.delimiter"
276
+ msgstr ""
277
+
278
+ #. Default value: .
279
+ #: lib/gettext_simple_rails/number_translator_translations.rb:14
280
+ msgid "number.format.separator"
281
+ msgstr ""
282
+
283
+ #. Default value: %n %u
284
+ #: lib/gettext_simple_rails/number_translator_translations.rb:16
285
+ msgid "number.human.decimal_units.format"
286
+ msgstr ""
287
+
288
+ #. Default value: Billion
289
+ #: lib/gettext_simple_rails/number_translator_translations.rb:18
290
+ msgid "number.human.decimal_units.units.billion"
291
+ msgstr ""
292
+
293
+ #. Default value: Million
294
+ #: lib/gettext_simple_rails/number_translator_translations.rb:20
295
+ msgid "number.human.decimal_units.units.million"
296
+ msgstr ""
297
+
298
+ #. Default value: Quadrillion
299
+ #: lib/gettext_simple_rails/number_translator_translations.rb:22
300
+ msgid "number.human.decimal_units.units.quadrillion"
301
+ msgstr ""
302
+
303
+ #. Default value: Thousand
304
+ #: lib/gettext_simple_rails/number_translator_translations.rb:24
305
+ msgid "number.human.decimal_units.units.thousand"
306
+ msgstr ""
307
+
308
+ #. Default value: Trillion
309
+ #: lib/gettext_simple_rails/number_translator_translations.rb:26
310
+ msgid "number.human.decimal_units.units.trillion"
311
+ msgstr ""
312
+
313
+ #. Default value:
314
+ #: lib/gettext_simple_rails/number_translator_translations.rb:28
315
+ msgid "number.human.decimal_units.units.unit"
316
+ msgstr ""
317
+
318
+ #. Default value:
319
+ #: lib/gettext_simple_rails/number_translator_translations.rb:30
320
+ msgid "number.human.format.delimiter"
321
+ msgstr ""
322
+
323
+ #. Default value: %n %u
324
+ #: lib/gettext_simple_rails/number_translator_translations.rb:32
325
+ msgid "number.human.storage_units.format"
326
+ msgstr ""
327
+
328
+ #. Default value: Byte
329
+ #: lib/gettext_simple_rails/number_translator_translations.rb:34
330
+ msgid "number.human.storage_units.units.byte.one"
331
+ msgstr ""
332
+
333
+ #. Default value: Bytes
334
+ #: lib/gettext_simple_rails/number_translator_translations.rb:36
335
+ msgid "number.human.storage_units.units.byte.other"
336
+ msgstr ""
337
+
338
+ #. Default value: GB
339
+ #: lib/gettext_simple_rails/number_translator_translations.rb:38
340
+ msgid "number.human.storage_units.units.gb"
341
+ msgstr ""
342
+
343
+ #. Default value: KB
344
+ #: lib/gettext_simple_rails/number_translator_translations.rb:40
345
+ msgid "number.human.storage_units.units.kb"
346
+ msgstr ""
347
+
348
+ #. Default value: MB
349
+ #: lib/gettext_simple_rails/number_translator_translations.rb:42
350
+ msgid "number.human.storage_units.units.mb"
351
+ msgstr ""
352
+
353
+ #. Default value: TB
354
+ #: lib/gettext_simple_rails/number_translator_translations.rb:44
355
+ msgid "number.human.storage_units.units.tb"
356
+ msgstr ""
357
+
358
+ #. Default value:
359
+ #: lib/gettext_simple_rails/number_translator_translations.rb:46
360
+ msgid "number.percentage.format.delimiter"
361
+ msgstr ""
@@ -0,0 +1,11 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Dummy\n"
4
+ "Language: en\n"
5
+ "MIME-Version: 1.0\n"
6
+ "Content-Type: text/plain; charset=UTF-8\n"
7
+ "Content-Transfer-Encoding: 8bit\n"
8
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop\n"
9
+ "X-Poedit-Basepath: ../../../../\n"
10
+ "X-Poedit-SourceCharset: UTF-8\n"
11
+ "X-Poedit-SearchPath-0: .\n"
@@ -0,0 +1 @@
1
+ {"en":{"activerecord":{"models":{"role":{},"user":{}},"attributes":{"role":{},"user":{}}},"date":{"day_names":[],"abbr_day_names":[],"month_names":[],"abbr_month_names":[]}},"da":{"activerecord":{"models":{"role":{},"user":{}},"attributes":{"role":{},"user":{}},"errors":{"models":{"user":{"attributes":{"name":{"too_short":"er for kort. Minimum er %{count}"}}}}}},"date":{"day_names":[],"abbr_day_names":[],"month_names":[],"abbr_month_names":[]}}}
@@ -0,0 +1,21 @@
1
+ class GettextSimpleRails::UserModelTranslations
2
+ def self.attribute_translations
3
+ puts _('models.attributes.role.id')
4
+ puts _('models.attributes.role.role')
5
+ puts _('models.attributes.role.user_id')
6
+ puts _('models.attributes.role.created_at')
7
+ puts _('models.attributes.role.updated_at')
8
+ end
9
+
10
+ def self.relationship_translations
11
+ puts _('models.attributes.role.user')
12
+ end
13
+
14
+ def self.paperclip_attachments
15
+ end
16
+
17
+ def self.model_name
18
+ puts _('models.name.role.one')
19
+ puts _('models.name.role.other')
20
+ end
21
+ end
@@ -0,0 +1,22 @@
1
+ class GettextSimpleRails::UserModelTranslations
2
+ def self.attribute_translations
3
+ puts _('models.attributes.user.id')
4
+ puts _('models.attributes.user.name')
5
+ puts _('models.attributes.user.birthday_at')
6
+ puts _('models.attributes.user.age')
7
+ puts _('models.attributes.user.created_at')
8
+ puts _('models.attributes.user.updated_at')
9
+ end
10
+
11
+ def self.relationship_translations
12
+ puts _('models.attributes.user.roles')
13
+ end
14
+
15
+ def self.paperclip_attachments
16
+ end
17
+
18
+ def self.model_name
19
+ puts _('models.name.user.one')
20
+ puts _('models.name.user.other')
21
+ end
22
+ end
@@ -342,3 +342,196 @@
342
342
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
343
343
   (0.1ms) begin transaction
344
344
   (0.1ms) rollback transaction
345
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
346
+  (0.1ms) begin transaction
347
+  (0.1ms) rollback transaction
348
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
349
+  (0.1ms) begin transaction
350
+  (0.1ms) rollback transaction
351
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
352
+  (0.1ms) begin transaction
353
+  (0.1ms) rollback transaction
354
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
355
+  (0.1ms) begin transaction
356
+  (0.1ms) rollback transaction
357
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
358
+  (0.1ms) begin transaction
359
+  (0.1ms) rollback transaction
360
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
361
+  (0.1ms) begin transaction
362
+  (0.3ms) rollback transaction
363
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
364
+  (0.1ms) begin transaction
365
+  (0.1ms) rollback transaction
366
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
367
+  (0.1ms) begin transaction
368
+  (0.1ms) rollback transaction
369
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
370
+  (0.1ms) begin transaction
371
+  (0.4ms) rollback transaction
372
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
373
+  (0.1ms) begin transaction
374
+  (0.1ms) rollback transaction
375
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
376
+  (0.1ms) begin transaction
377
+  (0.1ms) rollback transaction
378
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
379
+  (0.1ms) begin transaction
380
+  (0.1ms) rollback transaction
381
+  (0.1ms) begin transaction
382
+  (0.1ms) rollback transaction
383
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
384
+  (0.1ms) begin transaction
385
+  (0.1ms) rollback transaction
386
+  (0.1ms) begin transaction
387
+  (0.1ms) rollback transaction
388
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
389
+  (0.1ms) begin transaction
390
+  (0.1ms) rollback transaction
391
+  (0.1ms) begin transaction
392
+  (0.1ms) rollback transaction
393
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
394
+  (0.1ms) begin transaction
395
+  (0.1ms) rollback transaction
396
+  (0.1ms) begin transaction
397
+  (0.1ms) rollback transaction
398
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
399
+  (0.1ms) begin transaction
400
+  (0.1ms) rollback transaction
401
+  (0.1ms) begin transaction
402
+  (0.1ms) rollback transaction
403
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
404
+  (0.1ms) begin transaction
405
+  (0.1ms) rollback transaction
406
+  (0.1ms) begin transaction
407
+  (0.1ms) rollback transaction
408
+  (0.1ms) begin transaction
409
+  (0.1ms) rollback transaction
410
+  (0.1ms) begin transaction
411
+  (0.1ms) rollback transaction
412
+  (0.1ms) begin transaction
413
+  (0.1ms) rollback transaction
414
+  (0.1ms) begin transaction
415
+  (0.1ms) rollback transaction
416
+  (0.1ms) begin transaction
417
+  (0.1ms) rollback transaction
418
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
419
+  (0.1ms) begin transaction
420
+  (0.1ms) rollback transaction
421
+  (0.1ms) begin transaction
422
+  (0.1ms) rollback transaction
423
+  (0.1ms) begin transaction
424
+  (0.1ms) rollback transaction
425
+  (0.1ms) begin transaction
426
+  (0.1ms) rollback transaction
427
+  (0.1ms) begin transaction
428
+  (0.1ms) rollback transaction
429
+  (0.1ms) begin transaction
430
+  (0.1ms) rollback transaction
431
+  (0.1ms) begin transaction
432
+  (0.1ms) rollback transaction
433
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
434
+  (0.1ms) begin transaction
435
+  (0.1ms) rollback transaction
436
+  (0.1ms) begin transaction
437
+  (0.1ms) rollback transaction
438
+  (0.1ms) begin transaction
439
+  (0.1ms) rollback transaction
440
+  (0.1ms) begin transaction
441
+  (0.1ms) rollback transaction
442
+  (0.1ms) begin transaction
443
+  (0.1ms) rollback transaction
444
+  (0.1ms) begin transaction
445
+  (0.1ms) rollback transaction
446
+  (0.1ms) begin transaction
447
+  (0.1ms) rollback transaction
448
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
449
+  (0.1ms) begin transaction
450
+  (0.1ms) rollback transaction
451
+  (0.1ms) begin transaction
452
+  (0.1ms) rollback transaction
453
+  (0.0ms) begin transaction
454
+  (0.0ms) rollback transaction
455
+  (0.1ms) begin transaction
456
+  (0.0ms) rollback transaction
457
+  (0.0ms) begin transaction
458
+  (0.1ms) rollback transaction
459
+  (0.1ms) begin transaction
460
+  (0.1ms) rollback transaction
461
+  (0.0ms) begin transaction
462
+  (0.1ms) rollback transaction
463
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
464
+  (0.1ms) begin transaction
465
+  (0.1ms) rollback transaction
466
+  (0.1ms) begin transaction
467
+  (0.1ms) rollback transaction
468
+  (0.1ms) begin transaction
469
+  (0.1ms) rollback transaction
470
+  (0.1ms) begin transaction
471
+  (0.1ms) rollback transaction
472
+  (0.1ms) begin transaction
473
+  (0.1ms) rollback transaction
474
+  (0.1ms) begin transaction
475
+  (0.1ms) rollback transaction
476
+  (0.1ms) begin transaction
477
+  (0.1ms) rollback transaction
478
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
479
+  (0.1ms) begin transaction
480
+  (0.1ms) rollback transaction
481
+  (0.0ms) begin transaction
482
+  (0.1ms) rollback transaction
483
+  (0.0ms) begin transaction
484
+  (0.0ms) rollback transaction
485
+  (0.0ms) begin transaction
486
+  (0.2ms) rollback transaction
487
+  (0.2ms) begin transaction
488
+  (0.1ms) rollback transaction
489
+  (0.1ms) begin transaction
490
+  (0.1ms) rollback transaction
491
+  (0.1ms) begin transaction
492
+  (0.1ms) rollback transaction
493
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
494
+  (0.1ms) begin transaction
495
+  (0.1ms) rollback transaction
496
+  (0.1ms) begin transaction
497
+  (0.1ms) rollback transaction
498
+  (0.1ms) begin transaction
499
+  (0.4ms) rollback transaction
500
+  (0.1ms) begin transaction
501
+  (0.1ms) rollback transaction
502
+  (0.1ms) begin transaction
503
+  (0.1ms) rollback transaction
504
+  (0.1ms) begin transaction
505
+  (0.1ms) rollback transaction
506
+  (0.1ms) begin transaction
507
+  (0.1ms) rollback transaction
508
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
509
+  (0.1ms) begin transaction
510
+  (0.1ms) rollback transaction
511
+  (0.1ms) begin transaction
512
+  (0.1ms) rollback transaction
513
+  (0.0ms) begin transaction
514
+  (0.1ms) rollback transaction
515
+  (0.1ms) begin transaction
516
+  (0.1ms) rollback transaction
517
+  (0.1ms) begin transaction
518
+  (0.1ms) rollback transaction
519
+  (0.1ms) begin transaction
520
+  (0.1ms) rollback transaction
521
+  (0.1ms) begin transaction
522
+  (0.1ms) rollback transaction
523
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
524
+  (0.1ms) begin transaction
525
+  (0.1ms) rollback transaction
526
+  (0.0ms) begin transaction
527
+  (0.1ms) rollback transaction
528
+  (0.0ms) begin transaction
529
+  (0.1ms) rollback transaction
530
+  (0.1ms) begin transaction
531
+  (0.1ms) rollback transaction
532
+  (0.1ms) begin transaction
533
+  (0.1ms) rollback transaction
534
+  (0.1ms) begin transaction
535
+  (0.1ms) rollback transaction
536
+  (0.0ms) begin transaction
537
+  (0.0ms) rollback transaction
@@ -3,18 +3,14 @@ require 'rake'
3
3
 
4
4
  describe GettextSimpleRails do
5
5
  before do
6
- if !$translations_generated
7
- $translations_generated = true
8
-
9
- # Make it possible to call the Rake task.
10
- ::Dummy::Application.load_tasks
11
-
12
- # Clean up any existing translations.
13
- FileUtils.rm_r(GettextSimpleRails.translation_dir) if File.exists?(GettextSimpleRails.translation_dir)
14
-
15
- # Generate model translations so we can check them.
16
- ::Rake::Task["gettext_simple_rails:generate_model_translation_files"].invoke
17
- end
6
+ # Make it possible to call the Rake task.
7
+ ::Dummy::Application.load_tasks
8
+
9
+ # Clean up any existing translations.
10
+ FileUtils.rm_r(GettextSimpleRails.translation_dir) if File.exists?(GettextSimpleRails.translation_dir)
11
+
12
+ # Generate model translations so we can check them.
13
+ ::Rake::Task["gettext_simple_rails:generate_model_translation_files"].execute
18
14
  end
19
15
 
20
16
  it "generates model translations" do