awesome_translations 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -0
- data/lib/awesome_translations/controller_translate_functionality.rb +14 -0
- data/lib/awesome_translations/version.rb +1 -1
- data/lib/awesome_translations.rb +1 -0
- data/spec/controllers/users_controller_spec.rb +8 -0
- data/spec/dummy/app/controllers/application_controller.rb +2 -0
- data/spec/dummy/log/test.log +610 -0
- data/spec/handlers/erb_handler_spec.rb +5 -5
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0db11c53b1264af880f8e3d4d85c86c5ccf45a2d
|
4
|
+
data.tar.gz: 88901c841052da30bab9aa283a3c802d815e418f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d540294ffa83b79377c910622e5e55c0322debe43903265b8bf855bf7ff14d43daeaed1072f94dce4562a10ef62600723adce1263609a168b6a00b647e100737
|
7
|
+
data.tar.gz: 420590b3144cbaa13bed7e856619ba989c4b062f621553b44be59548684f5153241955afef6adc1141785c62a449de86f340d26a77173fb5f8e9f26375cdf214
|
data/README.md
CHANGED
@@ -47,6 +47,23 @@ module ApplicationHelper
|
|
47
47
|
end
|
48
48
|
```
|
49
49
|
|
50
|
+
## Controller translations without action in key
|
51
|
+
|
52
|
+
Start by including this in your ApplicationController:
|
53
|
+
```ruby
|
54
|
+
class ApplicationController
|
55
|
+
include AwesomeTranslations::ControllerTranslateFunctionality
|
56
|
+
```
|
57
|
+
|
58
|
+
Then you can use the `controller_t`-method like this:
|
59
|
+
```ruby
|
60
|
+
class UsersController < ApplicationController
|
61
|
+
def create
|
62
|
+
flash[:notice] = controller_t('.user_was_saved')
|
63
|
+
end
|
64
|
+
end
|
65
|
+
```
|
66
|
+
|
50
67
|
This is an example of how it works and what the difference is:
|
51
68
|
```ruby
|
52
69
|
module ApplicationHelper
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Include this module to get access to the t-method.
|
2
|
+
module AwesomeTranslations::ControllerTranslateFunctionality
|
3
|
+
# Implements the method on both class- and instance-level.
|
4
|
+
def self.included(base)
|
5
|
+
base.__send__(:include, Methods)
|
6
|
+
base.extend Methods
|
7
|
+
end
|
8
|
+
|
9
|
+
module Methods
|
10
|
+
def controller_t(key, args = {}, &blk)
|
11
|
+
AwesomeTranslations::GlobalTranslator.translate(key, translation_args: [args], caller_number: 1, &blk)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/lib/awesome_translations.rb
CHANGED
@@ -5,6 +5,7 @@ module AwesomeTranslations
|
|
5
5
|
path = "#{File.dirname(__FILE__)}/awesome_translations"
|
6
6
|
|
7
7
|
autoload :Config, "#{path}/config"
|
8
|
+
autoload :ControllerTranslateFunctionality, "#{path}/controller_translate_functionality"
|
8
9
|
autoload :ErbInspector, "#{path}/erb_inspector"
|
9
10
|
autoload :GlobalTranslator, "#{path}/global_translator"
|
10
11
|
autoload :Handlers, "#{path}/handlers"
|
@@ -17,4 +17,12 @@ describe UsersController do
|
|
17
17
|
response.should be_success
|
18
18
|
assigns(:users).should include user
|
19
19
|
end
|
20
|
+
|
21
|
+
it "#update" do
|
22
|
+
patch :update, id: user.id, user: {email: "newemail@example.com"}
|
23
|
+
expect(response).to redirect_to user_url(user)
|
24
|
+
|
25
|
+
# Ensure correct key
|
26
|
+
expect(flash[:notice]).to eq 'translation missing: en.spec.dummy.app.controllers.users_controller.user_was_updated'
|
27
|
+
end
|
20
28
|
end
|
data/spec/dummy/log/test.log
CHANGED
@@ -2135,3 +2135,613 @@ Completed 302 Found in 14ms (ActiveRecord: 0.0ms)
|
|
2135
2135
|
[1m[35m (0.0ms)[0m rollback transaction
|
2136
2136
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2137
2137
|
[1m[35m (0.0ms)[0m rollback transaction
|
2138
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2139
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2140
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2141
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'cmeyer@snaptags.biz' LIMIT 1
|
2142
|
+
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?)[0m [["age", 0], ["email", "cmeyer@snaptags.biz"], ["password", "viverra eget"]]
|
2143
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2144
|
+
Processing by UsersController#index as HTML
|
2145
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users"[0m
|
2146
|
+
Rendered users/index.html.haml within layouts/application (14.5ms)
|
2147
|
+
Completed 200 OK in 121ms (Views: 120.7ms | ActiveRecord: 0.2ms)
|
2148
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2149
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2150
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2151
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'ehenry@ntags.org' LIMIT 1[0m
|
2152
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?) [["age", 8], ["email", "ehenry@ntags.org"], ["password", "vel est"]]
|
2153
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2154
|
+
Processing by UsersController#update as HTML
|
2155
|
+
Parameters: {"user"=>{"email"=>"newemail@example.com"}, "id"=>"1"}
|
2156
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2157
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2158
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE ("users"."email" = 'newemail@example.com' AND "users"."id" != 1) LIMIT 1
|
2159
|
+
[1m[36mSQL (1.2ms)[0m [1mUPDATE "users" SET "email" = ? WHERE "users"."id" = 1[0m [["email", "newemail@example.com"]]
|
2160
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2161
|
+
Completed 500 Internal Server Error in 5ms
|
2162
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2163
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2164
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2165
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2166
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'bbailey@twimbo.biz' LIMIT 1
|
2167
|
+
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?)[0m [["age", 10], ["email", "bbailey@twimbo.biz"], ["password", "ipsum praesent"]]
|
2168
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2169
|
+
Processing by UsersController#update as HTML
|
2170
|
+
Parameters: {"user"=>{"email"=>"newemail@example.com"}, "id"=>"1"}
|
2171
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2172
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2173
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE ("users"."email" = 'newemail@example.com' AND "users"."id" != 1) LIMIT 1[0m
|
2174
|
+
[1m[35mSQL (1.1ms)[0m UPDATE "users" SET "email" = ? WHERE "users"."id" = 1 [["email", "newemail@example.com"]]
|
2175
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2176
|
+
Completed 500 Internal Server Error in 5ms
|
2177
|
+
[1m[35m (7.1ms)[0m rollback transaction
|
2178
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2179
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2180
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'amendoza@edgepulse.info' LIMIT 1[0m
|
2181
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?) [["age", 10], ["email", "amendoza@edgepulse.info"], ["password", "primis in"]]
|
2182
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2183
|
+
Processing by UsersController#index as HTML
|
2184
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2185
|
+
Completed 200 OK in 142ms (Views: 141.7ms | ActiveRecord: 0.1ms)
|
2186
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2187
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2188
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2189
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2190
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2191
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'dcox@linklinks.info' LIMIT 1
|
2192
|
+
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?)[0m [["age", 10], ["email", "dcox@linklinks.info"], ["password", "justo in"]]
|
2193
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2194
|
+
Processing by UsersController#index as HTML
|
2195
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
2196
|
+
Rendered users/index.html.haml within layouts/application (8.5ms)
|
2197
|
+
Completed 200 OK in 108ms (Views: 107.2ms | ActiveRecord: 0.1ms)
|
2198
|
+
[1m[35m (6.7ms)[0m rollback transaction
|
2199
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2200
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2201
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'larmstrong@browsecat.net' LIMIT 1[0m
|
2202
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?) [["age", 1], ["email", "larmstrong@browsecat.net"], ["password", "potenti cras"]]
|
2203
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2204
|
+
Processing by UsersController#update as HTML
|
2205
|
+
Parameters: {"user"=>{"email"=>"newemail@example.com"}, "id"=>"1"}
|
2206
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2207
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2208
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE ("users"."email" = 'newemail@example.com' AND "users"."id" != 1) LIMIT 1
|
2209
|
+
[1m[36mSQL (1.3ms)[0m [1mUPDATE "users" SET "email" = ? WHERE "users"."id" = 1[0m [["email", "newemail@example.com"]]
|
2210
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2211
|
+
Redirected to http://test.host/users/1
|
2212
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.5ms)
|
2213
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2214
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2215
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2216
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2217
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'rfisher@browsecat.com' LIMIT 1
|
2218
|
+
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?)[0m [["age", 5], ["email", "rfisher@browsecat.com"], ["password", "congue risus"]]
|
2219
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2220
|
+
Processing by UsersController#update as HTML
|
2221
|
+
Parameters: {"user"=>{"email"=>"newemail@example.com"}, "id"=>"1"}
|
2222
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2223
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2224
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE ("users"."email" = 'newemail@example.com' AND "users"."id" != 1) LIMIT 1[0m
|
2225
|
+
[1m[35mSQL (1.2ms)[0m UPDATE "users" SET "email" = ? WHERE "users"."id" = 1 [["email", "newemail@example.com"]]
|
2226
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2227
|
+
Redirected to http://test.host/users/1
|
2228
|
+
Completed 302 Found in 13ms (ActiveRecord: 1.5ms)
|
2229
|
+
[1m[35m (6.8ms)[0m rollback transaction
|
2230
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2231
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2232
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'cmartin@meezzy.gov' LIMIT 1[0m
|
2233
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?) [["age", 2], ["email", "cmartin@meezzy.gov"], ["password", "ligula in"]]
|
2234
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2235
|
+
Processing by UsersController#index as HTML
|
2236
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2237
|
+
Completed 200 OK in 108ms (Views: 107.9ms | ActiveRecord: 0.1ms)
|
2238
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2239
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2240
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2241
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2242
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'jlynch@zooxo.mil' LIMIT 1
|
2243
|
+
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?)[0m [["age", 1], ["email", "jlynch@zooxo.mil"], ["password", "dictumst morbi"]]
|
2244
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2245
|
+
Processing by UsersController#index as HTML
|
2246
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
2247
|
+
Rendered users/index.html.haml within layouts/application (11.1ms)
|
2248
|
+
Completed 200 OK in 112ms (Views: 112.0ms | ActiveRecord: 0.1ms)
|
2249
|
+
[1m[35m (6.7ms)[0m rollback transaction
|
2250
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2251
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2252
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'mwatkins@thoughtbridge.biz' LIMIT 1[0m
|
2253
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?) [["age", 8], ["email", "mwatkins@thoughtbridge.biz"], ["password", "ac diam"]]
|
2254
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2255
|
+
Processing by UsersController#update as HTML
|
2256
|
+
Parameters: {"user"=>{"email"=>"newemail@example.com"}, "id"=>"1"}
|
2257
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2258
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2259
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE ("users"."email" = 'newemail@example.com' AND "users"."id" != 1) LIMIT 1
|
2260
|
+
[1m[36mSQL (1.1ms)[0m [1mUPDATE "users" SET "email" = ? WHERE "users"."id" = 1[0m [["email", "newemail@example.com"]]
|
2261
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2262
|
+
Redirected to http://test.host/users/1
|
2263
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
|
2264
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2265
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2266
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2267
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2268
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'apayne@flashspan.edu' LIMIT 1
|
2269
|
+
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?)[0m [["age", 0], ["email", "apayne@flashspan.edu"], ["password", "ut odio"]]
|
2270
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2271
|
+
Processing by UsersController#index as HTML
|
2272
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
2273
|
+
Rendered users/index.html.haml within layouts/application (11.0ms)
|
2274
|
+
Completed 200 OK in 118ms (Views: 117.5ms | ActiveRecord: 0.1ms)
|
2275
|
+
[1m[35m (6.6ms)[0m rollback transaction
|
2276
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2277
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2278
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'sgonzales@omba.edu' LIMIT 1[0m
|
2279
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?) [["age", 5], ["email", "sgonzales@omba.edu"], ["password", "semper est"]]
|
2280
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2281
|
+
Processing by UsersController#update as HTML
|
2282
|
+
Parameters: {"user"=>{"email"=>"newemail@example.com"}, "id"=>"1"}
|
2283
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
2284
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2285
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE ("users"."email" = 'newemail@example.com' AND "users"."id" != 1) LIMIT 1
|
2286
|
+
[1m[36mSQL (1.1ms)[0m [1mUPDATE "users" SET "email" = ? WHERE "users"."id" = 1[0m [["email", "newemail@example.com"]]
|
2287
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2288
|
+
Redirected to http://test.host/users/1
|
2289
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.3ms)
|
2290
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2291
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2292
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2293
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2294
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2295
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2296
|
+
Processing by AwesomeTranslations::HandlersController#index as HTML
|
2297
|
+
Completed 200 OK in 113ms (Views: 112.3ms | ActiveRecord: 0.0ms)
|
2298
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2299
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2300
|
+
Processing by AwesomeTranslations::HandlersController#show as HTML
|
2301
|
+
Parameters: {"id"=>"model_handler"}
|
2302
|
+
Completed 200 OK in 22ms (Views: 21.4ms | ActiveRecord: 0.0ms)
|
2303
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2304
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2305
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2306
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2307
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2308
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2309
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2310
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2311
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2312
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2313
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2314
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2315
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2316
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2317
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2318
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2319
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2320
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2321
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2322
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2323
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2324
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2325
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2326
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2327
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2328
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2329
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2330
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2331
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2332
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2333
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2334
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2335
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2336
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2337
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2338
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2339
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2340
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2341
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2342
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2343
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2344
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2345
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2346
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2347
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2348
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2349
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2350
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2351
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2352
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2353
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2354
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2355
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2356
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2357
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2358
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2359
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2360
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2361
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2362
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2363
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2364
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2365
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2366
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2367
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
2368
|
+
Parameters: {"handler_id"=>"rails_handler", "id"=>"date_time", "t"=>{"date.day_names"=>{"1"=>{"da"=>"Mandag"}, "4"=>{"da"=>"Torsdag"}}}}
|
2369
|
+
Redirected to http://test.host/handlers/rails_handler/groups/date_time
|
2370
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.0ms)
|
2371
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2372
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2373
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
2374
|
+
Parameters: {"handler_id"=>"model_handler", "id"=>"User", "t"=>{"activerecord.attributes.user.password"=>"[FILTERED]"}}
|
2375
|
+
Redirected to http://test.host/handlers/model_handler/groups/User
|
2376
|
+
Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
|
2377
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2378
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2379
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
2380
|
+
Parameters: {"handler_id"=>"model_handler", "id"=>"Role", "t"=>{"activerecord.attributes.role.role"=>{"da"=>"Rolle", "de"=>"Die type", "en"=>"Role"}}}
|
2381
|
+
Redirected to http://test.host/handlers/model_handler/groups/Role
|
2382
|
+
Completed 302 Found in 47ms (ActiveRecord: 0.0ms)
|
2383
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2384
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2385
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2386
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2387
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2388
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2389
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2390
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2391
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2392
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2393
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2394
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2395
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2396
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2397
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2398
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2399
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2400
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2401
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2402
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2403
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2404
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2405
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2406
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2407
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2408
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2409
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2410
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2411
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2412
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2413
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2414
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2415
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2416
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2417
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2418
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2419
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2420
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2421
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2422
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2423
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2424
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2425
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2426
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2427
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2428
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2429
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2430
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2431
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2432
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2433
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2434
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2435
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2436
|
+
Processing by AwesomeTranslations::HandlersController#show as HTML
|
2437
|
+
Parameters: {"id"=>"model_handler"}
|
2438
|
+
Rendered /Users/kaspernj/Dev/Rails/awesome_translations/app/views/awesome_translations/handlers/show.html.haml within layouts/awesome_translations/application (19.0ms)
|
2439
|
+
Completed 200 OK in 240ms (Views: 239.8ms | ActiveRecord: 0.0ms)
|
2440
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2441
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2442
|
+
Processing by AwesomeTranslations::HandlersController#index as HTML
|
2443
|
+
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)
|
2444
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2445
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2446
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2447
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2448
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2449
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2450
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2451
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2452
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2453
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2454
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2455
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2456
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2457
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2458
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2459
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2460
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2461
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2462
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2463
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2464
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2465
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2466
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2467
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2468
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2469
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2470
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2471
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2472
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2473
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2474
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2475
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2476
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2477
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2478
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2479
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2480
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2481
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2482
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2483
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2484
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2485
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2486
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2487
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2488
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2489
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2490
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2491
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2492
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2493
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2494
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2495
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2496
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2497
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2498
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2499
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2500
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2501
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2502
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2503
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2504
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
2505
|
+
Parameters: {"handler_id"=>"model_handler", "id"=>"Role", "t"=>{"activerecord.attributes.role.role"=>{"da"=>"Rolle", "de"=>"Die type", "en"=>"Role"}}}
|
2506
|
+
Redirected to http://test.host/handlers/model_handler/groups/Role
|
2507
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
|
2508
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2509
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2510
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
2511
|
+
Parameters: {"handler_id"=>"rails_handler", "id"=>"date_time", "t"=>{"date.day_names"=>{"1"=>{"da"=>"Mandag"}, "4"=>{"da"=>"Torsdag"}}}}
|
2512
|
+
Redirected to http://test.host/handlers/rails_handler/groups/date_time
|
2513
|
+
Completed 302 Found in 39ms (ActiveRecord: 0.0ms)
|
2514
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2515
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2516
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
2517
|
+
Parameters: {"handler_id"=>"model_handler", "id"=>"User", "t"=>{"activerecord.attributes.user.password"=>"[FILTERED]"}}
|
2518
|
+
Redirected to http://test.host/handlers/model_handler/groups/User
|
2519
|
+
Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
|
2520
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2521
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2522
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2523
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2524
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2525
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2526
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2527
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2528
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2529
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2530
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2531
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2532
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2533
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2534
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2535
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2536
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2537
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2538
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2539
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2540
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2541
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2542
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2543
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2544
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2545
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2546
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2547
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2548
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2549
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2550
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2551
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2552
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2553
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2554
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2555
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2556
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2557
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2558
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2559
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2560
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2561
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2562
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2563
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2564
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2565
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'jperkins@browsebug.mil' LIMIT 1
|
2566
|
+
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?)[0m [["age", 8], ["email", "jperkins@browsebug.mil"], ["password", "adipiscing lorem"]]
|
2567
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2568
|
+
Processing by UsersController#update as HTML
|
2569
|
+
Parameters: {"user"=>{"email"=>"newemail@example.com"}, "id"=>"1"}
|
2570
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2571
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2572
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE ("users"."email" = 'newemail@example.com' AND "users"."id" != 1) LIMIT 1[0m
|
2573
|
+
[1m[35mSQL (1.2ms)[0m UPDATE "users" SET "email" = ? WHERE "users"."id" = 1 [["email", "newemail@example.com"]]
|
2574
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2575
|
+
Redirected to http://test.host/users/1
|
2576
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.4ms)
|
2577
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2578
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2579
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2580
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'awebb@brainlounge.gov' LIMIT 1[0m
|
2581
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?) [["age", 2], ["email", "awebb@brainlounge.gov"], ["password", "sit amet"]]
|
2582
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2583
|
+
Processing by UsersController#index as HTML
|
2584
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2585
|
+
Completed 200 OK in 15ms (Views: 14.4ms | ActiveRecord: 0.1ms)
|
2586
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2587
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2588
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2589
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2590
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2591
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2592
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2593
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2594
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2595
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2596
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2597
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2598
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2599
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2600
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2601
|
+
Processing by AwesomeTranslations::HandlersController#show as HTML
|
2602
|
+
Parameters: {"id"=>"model_handler"}
|
2603
|
+
Rendered /Users/kaspernj/Dev/Rails/awesome_translations/app/views/awesome_translations/handlers/show.html.haml within layouts/awesome_translations/application (28.3ms)
|
2604
|
+
Completed 200 OK in 231ms (Views: 230.5ms | ActiveRecord: 0.0ms)
|
2605
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2606
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2607
|
+
Processing by AwesomeTranslations::HandlersController#index as HTML
|
2608
|
+
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)
|
2609
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2610
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2611
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2612
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2613
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2614
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2615
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2616
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2617
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2618
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2619
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2620
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2621
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2622
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2623
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2624
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2625
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2626
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2627
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2628
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2629
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2630
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2631
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2632
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2633
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2634
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2635
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2636
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2637
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2638
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2639
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2640
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2641
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2642
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2643
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2644
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2645
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2646
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2647
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2648
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2649
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2650
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2651
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2652
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2653
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2654
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2655
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2656
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2657
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2658
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2659
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2660
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2661
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2662
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2663
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2664
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2665
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2666
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'manderson@gevee.mil' LIMIT 1
|
2667
|
+
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?)[0m [["age", 1], ["email", "manderson@gevee.mil"], ["password", "morbi a"]]
|
2668
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2669
|
+
Processing by UsersController#update as HTML
|
2670
|
+
Parameters: {"user"=>{"email"=>"newemail@example.com"}, "id"=>"1"}
|
2671
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
2672
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2673
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE ("users"."email" = 'newemail@example.com' AND "users"."id" != 1) LIMIT 1[0m
|
2674
|
+
[1m[35mSQL (1.2ms)[0m UPDATE "users" SET "email" = ? WHERE "users"."id" = 1 [["email", "newemail@example.com"]]
|
2675
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2676
|
+
Redirected to http://test.host/users/1
|
2677
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
|
2678
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2679
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2680
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2681
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'hrobinson@avamba.name' LIMIT 1[0m
|
2682
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?) [["age", 2], ["email", "hrobinson@avamba.name"], ["password", "nibh fusce"]]
|
2683
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2684
|
+
Processing by UsersController#index as HTML
|
2685
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
2686
|
+
Completed 200 OK in 22ms (Views: 21.6ms | ActiveRecord: 0.1ms)
|
2687
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2688
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2689
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2690
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2691
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2692
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2693
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2694
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2695
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2696
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2697
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2698
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2699
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2700
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2701
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2702
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2703
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2704
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2705
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2706
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2707
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2708
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2709
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2710
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2711
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2712
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2713
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2714
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2715
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
2716
|
+
Parameters: {"handler_id"=>"rails_handler", "id"=>"date_time", "t"=>{"date.day_names"=>{"1"=>{"da"=>"Mandag"}, "4"=>{"da"=>"Torsdag"}}}}
|
2717
|
+
Redirected to http://test.host/handlers/rails_handler/groups/date_time
|
2718
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.0ms)
|
2719
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2720
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2721
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
2722
|
+
Parameters: {"handler_id"=>"model_handler", "id"=>"Role", "t"=>{"activerecord.attributes.role.role"=>{"da"=>"Rolle", "de"=>"Die type", "en"=>"Role"}}}
|
2723
|
+
Redirected to http://test.host/handlers/model_handler/groups/Role
|
2724
|
+
Completed 302 Found in 13ms (ActiveRecord: 0.0ms)
|
2725
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2726
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2727
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
2728
|
+
Parameters: {"handler_id"=>"model_handler", "id"=>"User", "t"=>{"activerecord.attributes.user.password"=>"[FILTERED]"}}
|
2729
|
+
Redirected to http://test.host/handlers/model_handler/groups/User
|
2730
|
+
Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
|
2731
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2732
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2733
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2734
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2735
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2736
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2737
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2738
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2739
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2740
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2741
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2742
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2743
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2744
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2745
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2746
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2747
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
@@ -10,26 +10,26 @@ describe AwesomeTranslations::Handlers::ErbHandler do
|
|
10
10
|
|
11
11
|
it "finds translations made with the t method" do
|
12
12
|
hello_world_translations = users_index_translations.select { |t| t.key == "users.index.hello_world" }
|
13
|
-
hello_world_translations.length.should eq 1
|
13
|
+
hello_world_translations.to_a.length.should eq 1
|
14
14
|
end
|
15
15
|
|
16
16
|
it "finds translations in the layout" do
|
17
17
|
danish_translations = layout_translations.select { |t| t.key == "layouts.application.danish" }
|
18
|
-
danish_translations.length.should eq 1
|
18
|
+
danish_translations.to_a.length.should eq 1
|
19
19
|
end
|
20
20
|
|
21
21
|
it "doesnt include _ in partial keys" do
|
22
22
|
partial_test = users_partial_test_translations.select { |t| t.key == "users.partial_test.partial_test" }
|
23
|
-
partial_test.length.should eq 1
|
23
|
+
partial_test.to_a.length.should eq 1
|
24
24
|
end
|
25
25
|
|
26
26
|
it "removes special characters when using the custom method" do
|
27
27
|
current_language_translation = layout_translations.select { |t| t.key == "layouts.application.the_current_language_is" }
|
28
|
-
current_language_translation.length.should eq 1
|
28
|
+
current_language_translation.to_a.length.should eq 1
|
29
29
|
end
|
30
30
|
|
31
31
|
it "has unique translations" do
|
32
|
-
expect(layout_translations.select { |t| t.key == "layouts.application.hello_world" }.length).to eq 1
|
32
|
+
expect(layout_translations.select { |t| t.key == "layouts.application.hello_world" }.to_a.length).to eq 1
|
33
33
|
end
|
34
34
|
|
35
35
|
it "sets the correct translation path" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awesome_translations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kasper Johansen
|
@@ -228,6 +228,7 @@ files:
|
|
228
228
|
- config/routes.rb
|
229
229
|
- lib/awesome_translations.rb
|
230
230
|
- lib/awesome_translations/config.rb
|
231
|
+
- lib/awesome_translations/controller_translate_functionality.rb
|
231
232
|
- lib/awesome_translations/engine.rb
|
232
233
|
- lib/awesome_translations/erb_inspector.rb
|
233
234
|
- lib/awesome_translations/erb_inspector/file_inspector.rb
|