r18n-rails 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  R18n-rails is a gem to add out-of-box R18n support to Rails I18n.
4
4
 
5
- It is just a wrapper for R18n Rails API and R18n core libraries. See R18n core
5
+ It is a wrapper for R18n Rails API and R18n core libraries. See R18n core
6
6
  documentation for more information.
7
7
 
8
8
  == Features
9
9
 
10
- R18n for Rails has full compatibility with Rails I18n, but add extra features:
10
+ R18n for Rails is fully compatibile with Rails I18n, and add extra features:
11
11
 
12
12
  === R18n Syntax
13
13
 
@@ -22,7 +22,7 @@ Translations in R18n format will be loaded from <tt>app/i18n/_locale_.yml</tt>:
22
22
  1: 1 user
23
23
  n: %1 users
24
24
 
25
- R18n extend +t+ helper to add optional R18n syntax:
25
+ R18n extends +t+ helper to add optional R18n syntax:
26
26
 
27
27
  t.user.name('John') #=> "User name is John"
28
28
  t.user.count(5) #=> "5 users"
@@ -31,7 +31,7 @@ R18n extend +t+ helper to add optional R18n syntax:
31
31
  === Filters
32
32
 
33
33
  R18n has flexible architecture based on filters. Variables, pluralization,
34
- untranslated are a common filters, and you can change all of them. For example,
34
+ untranslated are common filters, and you can change them all. For example,
35
35
  write untranslated keys to file:
36
36
 
37
37
  R18n::Filters.add(::R18n::Untranslated, :write_untranslated) do
@@ -55,7 +55,7 @@ R18n already has filters for HTML escaping, lambdas, Textile and Markdown:
55
55
 
56
56
  R18n can add i18n support for your ActiveRecord model and any other class:
57
57
 
58
- 1. Add separated column for all supported translations:
58
+ 1. Add separate columns for all supported translations:
59
59
 
60
60
  def self.up
61
61
  create_table :posts do |t|
@@ -78,7 +78,7 @@ R18n can add i18n support for your ActiveRecord model and any other class:
78
78
  post.title_ru = 'Запись'
79
79
  post.title = 'Запись'
80
80
 
81
- post.title = 'Другая' # will user title_ru, by user first locale
81
+ post.title = 'Другая' # will use title_ru, by first user's locale
82
82
 
83
83
  === Time Fomatters
84
84
 
@@ -92,8 +92,8 @@ R18n add +full+ time formatter based on locale info:
92
92
 
93
93
  === Locales
94
94
 
95
- R18n contain locales info, so it out-of-box support locale plural and fallback
96
- rules for non-English locales:
95
+ R18n contains locales info, so it supports locale pluralization and fallback
96
+ rules for non-English locales out-of-box:
97
97
 
98
98
  # Russian have different plural rules:
99
99
  user:
@@ -108,9 +108,9 @@ rules for non-English locales:
108
108
 
109
109
  === Autodetect User Locales
110
110
 
111
- R18n automatically generate fallback for current user, based on
112
- user locales list from HTTP_ACCEPT_LANGUAGE, locale info (in some country people
113
- know several languages) and default locale.
111
+ R18n automatically generate fallbacks for current user, based on
112
+ user locales list from HTTP_ACCEPT_LANGUAGE, locale info (in some countries
113
+ people know several languages), and default locale.
114
114
 
115
115
  For example, if user know Kazakh and German, R18n will try find translations in:
116
116
  Kazakh → German → Russian (second language in Kazakhstan) → English (default
@@ -121,7 +121,7 @@ locale).
121
121
  You can create another R18n I18n instance with another languages. For example,
122
122
  to send e-mail for English admin on error with French user:
123
123
 
124
- puts I18n.t :error # Show error on French
124
+ puts I18n.t :error # Show error in French
125
125
 
126
126
  admin_i18n = R18n::I18n.new(@admin_locales, Rails.root + 'app/i18n')
127
127
  send_email(admin_i18n.error_messages)
@@ -132,15 +132,16 @@ to send e-mail for English admin on error with French user:
132
132
 
133
133
  config.gem 'r18n-rails'
134
134
 
135
- Now R18n will be autodetect user locales.
136
- 2. Add your way to set locale manually. R18n will find it in
135
+ Now R18n will autodetect user locales.
136
+ 2. Define your way to set locale manually. R18n will find it in
137
137
  <tt>params[:locale]</tt> or <tt>session[:locale]</tt>. Best way is a put
138
138
  optional locale prefix to URLs:
139
139
 
140
140
  map.connect ':controller/:action'
141
141
  map.connect ':locale/:controller/:action'
142
142
 
143
- 3. Print available translations, to choise it manually (and to search engines):
143
+ 3. Print available translations, to choose from them manually (and to helpsearch
144
+ engines):
144
145
 
145
146
  <ul>
146
147
  <% r18n.available_locales.each do |locale| %>
@@ -150,17 +151,18 @@ to send e-mail for English admin on error with French user:
150
151
  <% end %>
151
152
  </ul>
152
153
 
153
- 4. Translations with I18n format put to <tt>config/locales/_locale_.yml</tt>:
154
+ 4. Translations in I18n format are stored in
155
+ <tt>config/locales/_locale_.yml</tt>:
154
156
 
155
157
  en:
156
158
  user:
157
- name: "User name is {{name}}"
159
+ name: "User name is %{name}"
158
160
  count:
159
161
  zero: "No users"
160
162
  one: "One user"
161
- many: "{{count}} users"
163
+ many: "%{count} users"
162
164
 
163
- Translations with R18n format put to <tt>app/i18n/_locale_.yml</tt>:
165
+ Translations in R18n format go to <tt>app/i18n/_locale_.yml</tt>:
164
166
 
165
167
  user:
166
168
  name: User name is %1
@@ -174,13 +176,13 @@ to send e-mail for English admin on error with French user:
174
176
  t 'user.name', :name => 'John'
175
177
  t 'user.count', :count => 5
176
178
 
177
- Or R18n syntax:
179
+ or R18n syntax:
178
180
 
179
181
  t.user.name(:name => 'John') # for Rails I18n named variables
180
182
  t.user.name('John') # for R18n variables
181
183
  t.user.count(5)
182
184
 
183
- 6. Print dates and numbers in user tradition:
185
+ 6. Print dates and numbers in user’s tradition:
184
186
 
185
187
  l Date.today, :standard #=> "20/12/2009"
186
188
  l Time.now, :full #=> "20th of December, 2009 12:00"
@@ -188,7 +190,7 @@ to send e-mail for English admin on error with French user:
188
190
 
189
191
  7. Translate models:
190
192
 
191
- 1. Add to migration columns for each supported locales, with name
193
+ 1. Add to migration columns for each of the supported locales, named as
192
194
  <tt><i>name</i>_<i>locale</i></tt>:
193
195
 
194
196
  t.string :title_en
@@ -202,11 +204,11 @@ to send e-mail for English admin on error with French user:
202
204
  class Post < ActiveRecord::Base
203
205
  include R18n::Translated
204
206
 
205
- 3. Call +translations+ method in model with all columns to translated:
207
+ 3. Call +translations+ method in model with all columns to be translated:
206
208
 
207
209
  translations :title, :text
208
210
 
209
- Now model will be have virtual methods +title+, +text+, <tt>title=</tt>
211
+ Now model will have virtual methods +title+, +text+, <tt>title=</tt>
210
212
  and <tt>text=</tt>, which will call +title_ru+ or +title_en+ and etc based
211
213
  on current user locales.
212
214
 
@@ -9,7 +9,7 @@ class TestController < ApplicationController
9
9
  end
10
10
 
11
11
  def available
12
- render :text => R18n.get.available_locales.map { |i| i.code }.join(', ')
12
+ render :text => R18n.get.available_locales.map { |i| i.code }.sort.join(' ')
13
13
  end
14
14
 
15
15
  def helpers
@@ -1,5 +1,3 @@
1
- RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
2
-
3
1
  require File.join(File.dirname(__FILE__), 'boot')
4
2
 
5
3
  Rails::Initializer.run do |config|
@@ -6291,3 +6291,696 @@ Completed in 66ms (View: 0, DB: 0) | 200 OK [http://test.host/en/human_time]
6291
6291
  
6292
6292
  SQL (0.1ms) SELECT version FROM "schema_migrations"
6293
6293
  SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')
6294
+
6295
+
6296
+ Processing TestController#locales (for 0.0.0.0 at 2010-04-19 20:04:26) [GET]
6297
+ Completed in 25ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6298
+
6299
+
6300
+ Processing TestController#locales (for 0.0.0.0 at 2010-04-19 20:04:26) [GET]
6301
+ Parameters: {"locale"=>"ru"}
6302
+ Completed in 13ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
6303
+
6304
+
6305
+ Processing TestController#locales (for 0.0.0.0 at 2010-04-19 20:04:26) [GET]
6306
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6307
+
6308
+
6309
+ Processing TestController#locales (for 0.0.0.0 at 2010-04-19 20:04:26) [GET]
6310
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6311
+
6312
+
6313
+ Processing TestController#translations (for 0.0.0.0 at 2010-04-19 20:04:26) [GET]
6314
+ Parameters: {"locale"=>"en"}
6315
+ Completed in 18ms (View: 0, DB: 0) | 200 OK [http://test.host/en/translations]
6316
+
6317
+
6318
+ Processing TestController#available (for 0.0.0.0 at 2010-04-19 20:04:26) [GET]
6319
+ Completed in 8ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
6320
+
6321
+
6322
+ Processing TestController#helpers (for 0.0.0.0 at 2010-04-19 20:04:26) [GET]
6323
+ Parameters: {"locale"=>"en"}
6324
+ Rendering test/helpers
6325
+ Completed in 84ms (View: 73, DB: 0) | 200 OK [http://test.host/en/helpers]
6326
+
6327
+
6328
+ Processing TestController#untranslated (for 0.0.0.0 at 2010-04-19 20:04:26) [GET]
6329
+ Completed in 11ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
6330
+
6331
+
6332
+ Processing TestController#controller (for 0.0.0.0 at 2010-04-19 20:04:26) [GET]
6333
+ Parameters: {"locale"=>"en"}
6334
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/controller]
6335
+
6336
+
6337
+ Processing TestController#time (for 0.0.0.0 at 2010-04-19 20:04:26) [GET]
6338
+ Parameters: {"locale"=>"en"}
6339
+ Completed in 19ms (View: 0, DB: 0) | 200 OK [http://test.host/en/time]
6340
+
6341
+
6342
+ Processing TestController#human_time (for 0.0.0.0 at 2010-04-19 20:04:26) [GET]
6343
+ Parameters: {"locale"=>"en"}
6344
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/human_time]
6345
+ SQL (0.4ms) select sqlite_version(*)
6346
+ SQL (0.5ms)  SELECT name
6347
+ FROM sqlite_master
6348
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6349
+ 
6350
+ SQL (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title_en" varchar(255), "title_ru" varchar(255)) 
6351
+ SQL (0.2ms)  SELECT name
6352
+ FROM sqlite_master
6353
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6354
+ 
6355
+ SQL (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
6356
+ SQL (0.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6357
+ SQL (0.2ms)  SELECT name
6358
+ FROM sqlite_master
6359
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6360
+ 
6361
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
6362
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')
6363
+
6364
+
6365
+ Processing TestController#locales (for 0.0.0.0 at 2010-04-30 21:44:38) [GET]
6366
+ Completed in 25ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6367
+
6368
+
6369
+ Processing TestController#locales (for 0.0.0.0 at 2010-04-30 21:44:38) [GET]
6370
+ Parameters: {"locale"=>"ru"}
6371
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
6372
+
6373
+
6374
+ Processing TestController#locales (for 0.0.0.0 at 2010-04-30 21:44:38) [GET]
6375
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6376
+
6377
+
6378
+ Processing TestController#locales (for 0.0.0.0 at 2010-04-30 21:44:38) [GET]
6379
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6380
+
6381
+
6382
+ Processing TestController#translations (for 0.0.0.0 at 2010-04-30 21:44:38) [GET]
6383
+ Parameters: {"locale"=>"en"}
6384
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/translations]
6385
+
6386
+
6387
+ Processing TestController#available (for 0.0.0.0 at 2010-04-30 21:44:38) [GET]
6388
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
6389
+
6390
+
6391
+ Processing TestController#helpers (for 0.0.0.0 at 2010-04-30 21:44:38) [GET]
6392
+ Parameters: {"locale"=>"en"}
6393
+ Rendering test/helpers
6394
+ Completed in 62ms (View: 50, DB: 0) | 200 OK [http://test.host/en/helpers]
6395
+
6396
+
6397
+ Processing TestController#untranslated (for 0.0.0.0 at 2010-04-30 21:44:38) [GET]
6398
+ Completed in 10ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
6399
+
6400
+
6401
+ Processing TestController#controller (for 0.0.0.0 at 2010-04-30 21:44:38) [GET]
6402
+ Parameters: {"locale"=>"en"}
6403
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/controller]
6404
+
6405
+
6406
+ Processing TestController#time (for 0.0.0.0 at 2010-04-30 21:44:38) [GET]
6407
+ Parameters: {"locale"=>"en"}
6408
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/time]
6409
+
6410
+
6411
+ Processing TestController#human_time (for 0.0.0.0 at 2010-04-30 21:44:38) [GET]
6412
+ Parameters: {"locale"=>"en"}
6413
+ Completed in 13ms (View: 0, DB: 0) | 200 OK [http://test.host/en/human_time]
6414
+ SQL (0.3ms) select sqlite_version(*)
6415
+ SQL (19.5ms)  SELECT name
6416
+ FROM sqlite_master
6417
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6418
+ 
6419
+ SQL (46.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title_en" varchar(255), "title_ru" varchar(255)) 
6420
+ SQL (0.3ms)  SELECT name
6421
+ FROM sqlite_master
6422
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6423
+ 
6424
+ SQL (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
6425
+ SQL (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6426
+ SQL (0.3ms)  SELECT name
6427
+ FROM sqlite_master
6428
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6429
+ 
6430
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
6431
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')
6432
+
6433
+
6434
+ Processing TestController#locales (for 0.0.0.0 at 2010-05-09 05:37:38) [GET]
6435
+ Completed in 24ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6436
+
6437
+
6438
+ Processing TestController#locales (for 0.0.0.0 at 2010-05-09 05:37:38) [GET]
6439
+ Parameters: {"locale"=>"ru"}
6440
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
6441
+
6442
+
6443
+ Processing TestController#locales (for 0.0.0.0 at 2010-05-09 05:37:38) [GET]
6444
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6445
+
6446
+
6447
+ Processing TestController#locales (for 0.0.0.0 at 2010-05-09 05:37:38) [GET]
6448
+ Completed in 11ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6449
+
6450
+
6451
+ Processing TestController#translations (for 0.0.0.0 at 2010-05-09 05:37:38) [GET]
6452
+ Parameters: {"locale"=>"en"}
6453
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/translations]
6454
+
6455
+
6456
+ Processing TestController#available (for 0.0.0.0 at 2010-05-09 05:37:38) [GET]
6457
+ Completed in 10ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
6458
+
6459
+
6460
+ Processing TestController#helpers (for 0.0.0.0 at 2010-05-09 05:37:38) [GET]
6461
+ Parameters: {"locale"=>"en"}
6462
+ Rendering test/helpers
6463
+ Completed in 53ms (View: 42, DB: 0) | 200 OK [http://test.host/en/helpers]
6464
+
6465
+
6466
+ Processing TestController#untranslated (for 0.0.0.0 at 2010-05-09 05:37:38) [GET]
6467
+ Completed in 10ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
6468
+
6469
+
6470
+ Processing TestController#controller (for 0.0.0.0 at 2010-05-09 05:37:38) [GET]
6471
+ Parameters: {"locale"=>"en"}
6472
+ Completed in 16ms (View: 0, DB: 0) | 200 OK [http://test.host/en/controller]
6473
+
6474
+
6475
+ Processing TestController#time (for 0.0.0.0 at 2010-05-09 05:37:38) [GET]
6476
+ Parameters: {"locale"=>"en"}
6477
+ Completed in 14ms (View: 0, DB: 0) | 200 OK [http://test.host/en/time]
6478
+
6479
+
6480
+ Processing TestController#human_time (for 0.0.0.0 at 2010-05-09 05:37:38) [GET]
6481
+ Parameters: {"locale"=>"en"}
6482
+ Completed in 68ms (View: 0, DB: 0) | 200 OK [http://test.host/en/human_time]
6483
+ SQL (0.3ms) select sqlite_version(*)
6484
+ SQL (0.4ms)  SELECT name
6485
+ FROM sqlite_master
6486
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6487
+ 
6488
+ SQL (11.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title_en" varchar(255), "title_ru" varchar(255)) 
6489
+ SQL (0.2ms)  SELECT name
6490
+ FROM sqlite_master
6491
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6492
+ 
6493
+ SQL (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
6494
+ SQL (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6495
+ SQL (0.3ms)  SELECT name
6496
+ FROM sqlite_master
6497
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6498
+ 
6499
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
6500
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')
6501
+
6502
+
6503
+ Processing TestController#locales (for 0.0.0.0 at 2010-05-09 05:38:48) [GET]
6504
+ Completed in 22ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6505
+
6506
+
6507
+ Processing TestController#locales (for 0.0.0.0 at 2010-05-09 05:38:48) [GET]
6508
+ Parameters: {"locale"=>"ru"}
6509
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
6510
+
6511
+
6512
+ Processing TestController#locales (for 0.0.0.0 at 2010-05-09 05:38:48) [GET]
6513
+ Completed in 11ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6514
+
6515
+
6516
+ Processing TestController#locales (for 0.0.0.0 at 2010-05-09 05:38:48) [GET]
6517
+ Completed in 11ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6518
+
6519
+
6520
+ Processing TestController#translations (for 0.0.0.0 at 2010-05-09 05:38:49) [GET]
6521
+ Parameters: {"locale"=>"en"}
6522
+ Completed in 11ms (View: 0, DB: 0) | 200 OK [http://test.host/en/translations]
6523
+
6524
+
6525
+ Processing TestController#available (for 0.0.0.0 at 2010-05-09 05:38:49) [GET]
6526
+
6527
+
6528
+ Processing TestController#helpers (for 0.0.0.0 at 2010-05-09 05:38:49) [GET]
6529
+ Parameters: {"locale"=>"en"}
6530
+ Rendering test/helpers
6531
+ Completed in 21ms (View: 10, DB: 0) | 200 OK [http://test.host/en/helpers]
6532
+
6533
+
6534
+ Processing TestController#untranslated (for 0.0.0.0 at 2010-05-09 05:38:49) [GET]
6535
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
6536
+
6537
+
6538
+ Processing TestController#controller (for 0.0.0.0 at 2010-05-09 05:38:49) [GET]
6539
+ Parameters: {"locale"=>"en"}
6540
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/controller]
6541
+
6542
+
6543
+ Processing TestController#time (for 0.0.0.0 at 2010-05-09 05:38:49) [GET]
6544
+ Parameters: {"locale"=>"en"}
6545
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/time]
6546
+
6547
+
6548
+ Processing TestController#human_time (for 0.0.0.0 at 2010-05-09 05:38:49) [GET]
6549
+ Parameters: {"locale"=>"en"}
6550
+ Completed in 67ms (View: 0, DB: 0) | 200 OK [http://test.host/en/human_time]
6551
+ SQL (0.3ms) select sqlite_version(*)
6552
+ SQL (0.4ms)  SELECT name
6553
+ FROM sqlite_master
6554
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6555
+ 
6556
+ SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title_en" varchar(255), "title_ru" varchar(255)) 
6557
+ SQL (0.2ms)  SELECT name
6558
+ FROM sqlite_master
6559
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6560
+ 
6561
+ SQL (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
6562
+ SQL (0.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6563
+ SQL (0.3ms)  SELECT name
6564
+ FROM sqlite_master
6565
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6566
+ 
6567
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
6568
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')
6569
+
6570
+
6571
+ Processing TestController#locales (for 0.0.0.0 at 2010-05-09 05:39:01) [GET]
6572
+ Completed in 22ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6573
+
6574
+
6575
+ Processing TestController#locales (for 0.0.0.0 at 2010-05-09 05:39:01) [GET]
6576
+ Parameters: {"locale"=>"ru"}
6577
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
6578
+
6579
+
6580
+ Processing TestController#locales (for 0.0.0.0 at 2010-05-09 05:39:01) [GET]
6581
+ Completed in 11ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6582
+
6583
+
6584
+ Processing TestController#locales (for 0.0.0.0 at 2010-05-09 05:39:01) [GET]
6585
+ Completed in 11ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6586
+
6587
+
6588
+ Processing TestController#translations (for 0.0.0.0 at 2010-05-09 05:39:01) [GET]
6589
+ Parameters: {"locale"=>"en"}
6590
+ Completed in 11ms (View: 0, DB: 0) | 200 OK [http://test.host/en/translations]
6591
+
6592
+
6593
+ Processing TestController#available (for 0.0.0.0 at 2010-05-09 05:39:01) [GET]
6594
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
6595
+
6596
+
6597
+ Processing TestController#helpers (for 0.0.0.0 at 2010-05-09 05:39:01) [GET]
6598
+ Parameters: {"locale"=>"en"}
6599
+ Rendering test/helpers
6600
+ Completed in 21ms (View: 10, DB: 0) | 200 OK [http://test.host/en/helpers]
6601
+
6602
+
6603
+ Processing TestController#untranslated (for 0.0.0.0 at 2010-05-09 05:39:01) [GET]
6604
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
6605
+
6606
+
6607
+ Processing TestController#controller (for 0.0.0.0 at 2010-05-09 05:39:01) [GET]
6608
+ Parameters: {"locale"=>"en"}
6609
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/controller]
6610
+
6611
+
6612
+ Processing TestController#time (for 0.0.0.0 at 2010-05-09 05:39:01) [GET]
6613
+ Parameters: {"locale"=>"en"}
6614
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/time]
6615
+
6616
+
6617
+ Processing TestController#human_time (for 0.0.0.0 at 2010-05-09 05:39:01) [GET]
6618
+ Parameters: {"locale"=>"en"}
6619
+ Completed in 67ms (View: 0, DB: 0) | 200 OK [http://test.host/en/human_time]
6620
+ SQL (0.3ms) select sqlite_version(*)
6621
+ SQL (0.3ms)  SELECT name
6622
+ FROM sqlite_master
6623
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6624
+ 
6625
+ SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title_en" varchar(255), "title_ru" varchar(255)) 
6626
+ SQL (0.2ms)  SELECT name
6627
+ FROM sqlite_master
6628
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6629
+ 
6630
+ SQL (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
6631
+ SQL (0.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6632
+ SQL (0.3ms)  SELECT name
6633
+ FROM sqlite_master
6634
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6635
+ 
6636
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
6637
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')
6638
+
6639
+
6640
+ Processing TestController#locales (for 0.0.0.0 at 2010-05-09 05:39:24) [GET]
6641
+ Completed in 22ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6642
+
6643
+
6644
+ Processing TestController#locales (for 0.0.0.0 at 2010-05-09 05:39:24) [GET]
6645
+ Parameters: {"locale"=>"ru"}
6646
+ Completed in 11ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
6647
+
6648
+
6649
+ Processing TestController#locales (for 0.0.0.0 at 2010-05-09 05:39:24) [GET]
6650
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6651
+
6652
+
6653
+ Processing TestController#locales (for 0.0.0.0 at 2010-05-09 05:39:25) [GET]
6654
+ Completed in 11ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6655
+
6656
+
6657
+ Processing TestController#translations (for 0.0.0.0 at 2010-05-09 05:39:25) [GET]
6658
+ Parameters: {"locale"=>"en"}
6659
+ Completed in 11ms (View: 0, DB: 0) | 200 OK [http://test.host/en/translations]
6660
+
6661
+
6662
+ Processing TestController#available (for 0.0.0.0 at 2010-05-09 05:39:25) [GET]
6663
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
6664
+
6665
+
6666
+ Processing TestController#helpers (for 0.0.0.0 at 2010-05-09 05:39:25) [GET]
6667
+ Parameters: {"locale"=>"en"}
6668
+ Rendering test/helpers
6669
+ Completed in 20ms (View: 9, DB: 0) | 200 OK [http://test.host/en/helpers]
6670
+
6671
+
6672
+ Processing TestController#untranslated (for 0.0.0.0 at 2010-05-09 05:39:25) [GET]
6673
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
6674
+
6675
+
6676
+ Processing TestController#controller (for 0.0.0.0 at 2010-05-09 05:39:25) [GET]
6677
+ Parameters: {"locale"=>"en"}
6678
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/controller]
6679
+
6680
+
6681
+ Processing TestController#time (for 0.0.0.0 at 2010-05-09 05:39:25) [GET]
6682
+ Parameters: {"locale"=>"en"}
6683
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/time]
6684
+
6685
+
6686
+ Processing TestController#human_time (for 0.0.0.0 at 2010-05-09 05:39:25) [GET]
6687
+ Parameters: {"locale"=>"en"}
6688
+ Completed in 66ms (View: 0, DB: 0) | 200 OK [http://test.host/en/human_time]
6689
+ SQL (0.3ms) select sqlite_version(*)
6690
+ SQL (0.3ms)  SELECT name
6691
+ FROM sqlite_master
6692
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6693
+ 
6694
+ SQL (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title_en" varchar(255), "title_ru" varchar(255)) 
6695
+ SQL (0.2ms)  SELECT name
6696
+ FROM sqlite_master
6697
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6698
+ 
6699
+ SQL (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
6700
+ SQL (0.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6701
+ SQL (0.2ms)  SELECT name
6702
+ FROM sqlite_master
6703
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6704
+ 
6705
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
6706
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')
6707
+
6708
+
6709
+ Processing TestController#locales (for 0.0.0.0 at 2010-06-17 21:09:32) [GET]
6710
+ Completed in 23ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6711
+
6712
+
6713
+ Processing TestController#locales (for 0.0.0.0 at 2010-06-17 21:09:32) [GET]
6714
+ Parameters: {"locale"=>"ru"}
6715
+ Completed in 11ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
6716
+
6717
+
6718
+ Processing TestController#locales (for 0.0.0.0 at 2010-06-17 21:09:32) [GET]
6719
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6720
+
6721
+
6722
+ Processing TestController#locales (for 0.0.0.0 at 2010-06-17 21:09:32) [GET]
6723
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6724
+
6725
+
6726
+ Processing TestController#translations (for 0.0.0.0 at 2010-06-17 21:09:32) [GET]
6727
+ Parameters: {"locale"=>"en"}
6728
+ Completed in 11ms (View: 0, DB: 0) | 200 OK [http://test.host/en/translations]
6729
+
6730
+
6731
+ Processing TestController#available (for 0.0.0.0 at 2010-06-17 21:09:32) [GET]
6732
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
6733
+
6734
+
6735
+ Processing TestController#helpers (for 0.0.0.0 at 2010-06-17 21:09:32) [GET]
6736
+ Parameters: {"locale"=>"en"}
6737
+ Rendering test/helpers
6738
+ Completed in 14ms (View: 3, DB: 0) | 200 OK [http://test.host/en/helpers]
6739
+
6740
+
6741
+ Processing TestController#untranslated (for 0.0.0.0 at 2010-06-17 21:09:32) [GET]
6742
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
6743
+
6744
+
6745
+ Processing TestController#controller (for 0.0.0.0 at 2010-06-17 21:09:32) [GET]
6746
+ Parameters: {"locale"=>"en"}
6747
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/controller]
6748
+
6749
+
6750
+ Processing TestController#time (for 0.0.0.0 at 2010-06-17 21:09:32) [GET]
6751
+ Parameters: {"locale"=>"en"}
6752
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/time]
6753
+
6754
+
6755
+ Processing TestController#human_time (for 0.0.0.0 at 2010-06-17 21:09:32) [GET]
6756
+ Parameters: {"locale"=>"en"}
6757
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/human_time]
6758
+ SQL (0.2ms) select sqlite_version(*)
6759
+ SQL (0.3ms)  SELECT name
6760
+ FROM sqlite_master
6761
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6762
+ 
6763
+ SQL (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title_en" varchar(255), "title_ru" varchar(255)) 
6764
+ SQL (0.1ms)  SELECT name
6765
+ FROM sqlite_master
6766
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6767
+ 
6768
+ SQL (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
6769
+ SQL (0.1ms) PRAGMA index_list("schema_migrations")
6770
+ SQL (0.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6771
+ SQL (0.1ms)  SELECT name
6772
+ FROM sqlite_master
6773
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6774
+ 
6775
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
6776
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')
6777
+
6778
+
6779
+ Processing TestController#locales (for 0.0.0.0 at 2010-06-17 21:09:44) [GET]
6780
+ Completed in 74ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6781
+
6782
+
6783
+ Processing TestController#locales (for 0.0.0.0 at 2010-06-17 21:09:44) [GET]
6784
+ Parameters: {"locale"=>"ru"}
6785
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
6786
+
6787
+
6788
+ Processing TestController#locales (for 0.0.0.0 at 2010-06-17 21:09:44) [GET]
6789
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6790
+
6791
+
6792
+ Processing TestController#locales (for 0.0.0.0 at 2010-06-17 21:09:44) [GET]
6793
+ Completed in 11ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6794
+
6795
+
6796
+ Processing TestController#translations (for 0.0.0.0 at 2010-06-17 21:09:44) [GET]
6797
+ Parameters: {"locale"=>"en"}
6798
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/translations]
6799
+
6800
+
6801
+ Processing TestController#available (for 0.0.0.0 at 2010-06-17 21:09:44) [GET]
6802
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
6803
+
6804
+
6805
+ Processing TestController#helpers (for 0.0.0.0 at 2010-06-17 21:09:44) [GET]
6806
+ Parameters: {"locale"=>"en"}
6807
+ Rendering test/helpers
6808
+ Completed in 14ms (View: 3, DB: 0) | 200 OK [http://test.host/en/helpers]
6809
+
6810
+
6811
+ Processing TestController#untranslated (for 0.0.0.0 at 2010-06-17 21:09:44) [GET]
6812
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
6813
+
6814
+
6815
+ Processing TestController#controller (for 0.0.0.0 at 2010-06-17 21:09:44) [GET]
6816
+ Parameters: {"locale"=>"en"}
6817
+ Completed in 14ms (View: 0, DB: 0) | 200 OK [http://test.host/en/controller]
6818
+
6819
+
6820
+ Processing TestController#time (for 0.0.0.0 at 2010-06-17 21:09:45) [GET]
6821
+ Parameters: {"locale"=>"en"}
6822
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/time]
6823
+
6824
+
6825
+ Processing TestController#human_time (for 0.0.0.0 at 2010-06-17 21:09:45) [GET]
6826
+ Parameters: {"locale"=>"en"}
6827
+ Completed in 13ms (View: 0, DB: 0) | 200 OK [http://test.host/en/human_time]
6828
+ SQL (0.2ms) select sqlite_version(*)
6829
+ SQL (0.3ms)  SELECT name
6830
+ FROM sqlite_master
6831
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6832
+ 
6833
+ SQL (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title_en" varchar(255), "title_ru" varchar(255)) 
6834
+ SQL (0.1ms)  SELECT name
6835
+ FROM sqlite_master
6836
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6837
+ 
6838
+ SQL (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
6839
+ SQL (0.1ms) PRAGMA index_list("schema_migrations")
6840
+ SQL (0.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6841
+ SQL (0.1ms)  SELECT name
6842
+ FROM sqlite_master
6843
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6844
+ 
6845
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
6846
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')
6847
+
6848
+
6849
+ Processing TestController#locales (for 0.0.0.0 at 2010-06-17 21:09:55) [GET]
6850
+ Completed in 22ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6851
+
6852
+
6853
+ Processing TestController#locales (for 0.0.0.0 at 2010-06-17 21:09:55) [GET]
6854
+ Parameters: {"locale"=>"ru"}
6855
+ Completed in 11ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
6856
+
6857
+
6858
+ Processing TestController#locales (for 0.0.0.0 at 2010-06-17 21:09:55) [GET]
6859
+ Completed in 11ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6860
+
6861
+
6862
+ Processing TestController#locales (for 0.0.0.0 at 2010-06-17 21:09:55) [GET]
6863
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6864
+
6865
+
6866
+ Processing TestController#translations (for 0.0.0.0 at 2010-06-17 21:09:55) [GET]
6867
+ Parameters: {"locale"=>"en"}
6868
+ Completed in 12ms (View: 1, DB: 0) | 200 OK [http://test.host/en/translations]
6869
+
6870
+
6871
+ Processing TestController#available (for 0.0.0.0 at 2010-06-17 21:09:55) [GET]
6872
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
6873
+
6874
+
6875
+ Processing TestController#helpers (for 0.0.0.0 at 2010-06-17 21:09:55) [GET]
6876
+ Parameters: {"locale"=>"en"}
6877
+ Rendering test/helpers
6878
+ Completed in 13ms (View: 3, DB: 0) | 200 OK [http://test.host/en/helpers]
6879
+
6880
+
6881
+ Processing TestController#untranslated (for 0.0.0.0 at 2010-06-17 21:09:55) [GET]
6882
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
6883
+
6884
+
6885
+ Processing TestController#controller (for 0.0.0.0 at 2010-06-17 21:09:55) [GET]
6886
+ Parameters: {"locale"=>"en"}
6887
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/controller]
6888
+
6889
+
6890
+ Processing TestController#time (for 0.0.0.0 at 2010-06-17 21:09:55) [GET]
6891
+ Parameters: {"locale"=>"en"}
6892
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/time]
6893
+
6894
+
6895
+ Processing TestController#human_time (for 0.0.0.0 at 2010-06-17 21:09:55) [GET]
6896
+ Parameters: {"locale"=>"en"}
6897
+ Completed in 11ms (View: 0, DB: 0) | 200 OK [http://test.host/en/human_time]
6898
+ SQL (0.2ms) select sqlite_version(*)
6899
+ SQL (0.3ms)  SELECT name
6900
+ FROM sqlite_master
6901
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6902
+ 
6903
+ SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title_en" varchar(255), "title_ru" varchar(255)) 
6904
+ SQL (0.1ms)  SELECT name
6905
+ FROM sqlite_master
6906
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6907
+ 
6908
+ SQL (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
6909
+ SQL (0.1ms) PRAGMA index_list("schema_migrations")
6910
+ SQL (0.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6911
+ SQL (0.1ms)  SELECT name
6912
+ FROM sqlite_master
6913
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6914
+ 
6915
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
6916
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')
6917
+
6918
+
6919
+ Processing TestController#locales (for 0.0.0.0 at 2010-06-22 21:58:54) [GET]
6920
+ Completed in 30ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6921
+
6922
+
6923
+ Processing TestController#locales (for 0.0.0.0 at 2010-06-22 21:58:54) [GET]
6924
+ Parameters: {"locale"=>"ru"}
6925
+ Completed in 13ms (View: 0, DB: 0) | 200 OK [http://test.host/ru/locales]
6926
+
6927
+
6928
+ Processing TestController#locales (for 0.0.0.0 at 2010-06-22 21:58:54) [GET]
6929
+ Completed in 15ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6930
+
6931
+
6932
+ Processing TestController#locales (for 0.0.0.0 at 2010-06-22 21:58:54) [GET]
6933
+ Completed in 11ms (View: 0, DB: 0) | 200 OK [http://test.host/locales]
6934
+
6935
+
6936
+ Processing TestController#translations (for 0.0.0.0 at 2010-06-22 21:58:54) [GET]
6937
+ Parameters: {"locale"=>"en"}
6938
+ Completed in 14ms (View: 0, DB: 0) | 200 OK [http://test.host/en/translations]
6939
+
6940
+
6941
+ Processing TestController#available (for 0.0.0.0 at 2010-06-22 21:58:54) [GET]
6942
+ Completed in 9ms (View: 0, DB: 0) | 200 OK [http://test.host/available]
6943
+
6944
+
6945
+ Processing TestController#helpers (for 0.0.0.0 at 2010-06-22 21:58:54) [GET]
6946
+ Parameters: {"locale"=>"en"}
6947
+ Rendering test/helpers
6948
+ Completed in 38ms (View: 20, DB: 0) | 200 OK [http://test.host/en/helpers]
6949
+
6950
+
6951
+ Processing TestController#untranslated (for 0.0.0.0 at 2010-06-22 21:58:54) [GET]
6952
+ Completed in 10ms (View: 0, DB: 0) | 200 OK [http://test.host/untranslated]
6953
+
6954
+
6955
+ Processing TestController#controller (for 0.0.0.0 at 2010-06-22 21:58:54) [GET]
6956
+ Parameters: {"locale"=>"en"}
6957
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/controller]
6958
+
6959
+
6960
+ Processing TestController#time (for 0.0.0.0 at 2010-06-22 21:58:54) [GET]
6961
+ Parameters: {"locale"=>"en"}
6962
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/time]
6963
+
6964
+
6965
+ Processing TestController#human_time (for 0.0.0.0 at 2010-06-22 21:58:54) [GET]
6966
+ Parameters: {"locale"=>"en"}
6967
+ Completed in 12ms (View: 0, DB: 0) | 200 OK [http://test.host/en/human_time]
6968
+ SQL (0.2ms) select sqlite_version(*)
6969
+ SQL (0.8ms)  SELECT name
6970
+ FROM sqlite_master
6971
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6972
+ 
6973
+ SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title_en" varchar(255), "title_ru" varchar(255)) 
6974
+ SQL (0.1ms)  SELECT name
6975
+ FROM sqlite_master
6976
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6977
+ 
6978
+ SQL (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
6979
+ SQL (0.1ms) PRAGMA index_list("schema_migrations")
6980
+ SQL (0.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6981
+ SQL (0.1ms)  SELECT name
6982
+ FROM sqlite_master
6983
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6984
+ 
6985
+ SQL (0.1ms) SELECT version FROM "schema_migrations"
6986
+ SQL (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20091218130034')
data/spec/rails_spec.rb CHANGED
@@ -40,7 +40,7 @@ describe 'R18n for Rails', :type => :controller do
40
40
  it 'should return available translations' do
41
41
  get :available
42
42
  response.should be_success
43
- response.body.should == 'ru, en'
43
+ response.body.should == 'en ru'
44
44
  end
45
45
 
46
46
  it 'should add helpers' do
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 5
9
- version: 0.4.5
8
+ - 6
9
+ version: 0.4.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Andrey "A.I." Sitnik
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-19 00:00:00 +04:00
17
+ date: 2010-06-22 00:00:00 +04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -39,9 +39,9 @@ extra_rdoc_files:
39
39
  - README.rdoc
40
40
  - LICENSE
41
41
  files:
42
+ - lib/r18n-rails.rb
42
43
  - lib/r18n-rails/helpers.rb
43
44
  - lib/r18n-rails/controller.rb
44
- - lib/r18n-rails.rb
45
45
  - LICENSE
46
46
  - README.rdoc
47
47
  has_rdoc: true
@@ -75,25 +75,25 @@ signing_key:
75
75
  specification_version: 3
76
76
  summary: R18n for Rails
77
77
  test_files:
78
- - spec/rails_spec.rb
79
78
  - spec/spec_helper.rb
80
- - spec/app/db/migrate/20091218123631_create_posts.rb
81
79
  - spec/app/db/test.sqlite3
82
- - spec/app/config/routes.rb
83
- - spec/app/config/environment.rb
84
- - spec/app/config/locales/en.yml
85
- - spec/app/config/boot.rb
86
- - spec/app/config/database.yml
87
- - spec/app/config/initializers/session_store.rb
88
- - spec/app/config/environments/development.rb
89
- - spec/app/config/environments/production.rb
90
- - spec/app/config/environments/test.rb
91
- - spec/app/app/views/test/helpers.html.erb
80
+ - spec/app/db/migrate/20091218123631_create_posts.rb
81
+ - spec/app/app/models/post.rb
92
82
  - spec/app/app/helpers/application_helper.rb
93
- - spec/app/app/i18n/ru.yml
83
+ - spec/app/app/views/test/helpers.html.erb
94
84
  - spec/app/app/i18n/en.yml
95
- - spec/app/app/controllers/test_controller.rb
85
+ - spec/app/app/i18n/ru.yml
96
86
  - spec/app/app/controllers/application_controller.rb
97
- - spec/app/app/models/post.rb
98
- - spec/app/log/test.log
87
+ - spec/app/app/controllers/test_controller.rb
88
+ - spec/app/config/environments/development.rb
89
+ - spec/app/config/environments/test.rb
90
+ - spec/app/config/environments/production.rb
91
+ - spec/app/config/initializers/session_store.rb
92
+ - spec/app/config/database.yml
93
+ - spec/app/config/environment.rb
94
+ - spec/app/config/locales/en.yml
95
+ - spec/app/config/boot.rb
96
+ - spec/app/config/routes.rb
99
97
  - spec/app/script/server
98
+ - spec/app/log/test.log
99
+ - spec/rails_spec.rb