aac_translation 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 143ebd88d046a9f5241242029d5687b6eca88873
4
- data.tar.gz: 60fca469cdaa7f0e1537f218530b4dec81d671c7
3
+ metadata.gz: c428d3487e619a028cbc1131b5275d2d10b8d510
4
+ data.tar.gz: a7813610508f13f14cc9b5c19271ea5d9fb03c0c
5
5
  SHA512:
6
- metadata.gz: 4502ce69ef515702b9758d97e34875e104fa64ea20021efd8658560aa69a341b1cca07c226ef0d959714825a3c80fa385600f0f6cecad1d814d9561bad84ba8d
7
- data.tar.gz: e4a47d3d891e92a1c470a7564944f365a97fe02a9f1fb997851cf79f97aa5a584be1d4d22db92c526300337707deb87b71cb59e627052ab807bb3f36765744a8
6
+ metadata.gz: d897c08d2d3e4d49f49e54f072ca50177fc3dfe18d03e1501ebb3ac7fbb2545d8aa12c4068af23aa05fade85fecac3bdd545f4174d3e787d16d55d94cc49a0a3
7
+ data.tar.gz: 170a6f44c547b19f034fa4ea82ea5ae906baf84b410d6be126e0e6f48b4108032f453291069d56e3a5ddeca1ec532929109c09ea0994bd26666af70168f2984d
@@ -1,3 +1,3 @@
1
1
  module AacTranslation
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
Binary file
@@ -1,23 +1,134 @@
1
-  (1.1ms) CREATE TABLE "translation_keys" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar NOT NULL, "created_at" datetime, "updated_at" datetime) 
2
-  (0.1ms) select sqlite_version(*)
3
-  (0.9ms) CREATE INDEX "index_translation_keys_on_key" ON "translation_keys" ("key")
4
-  (1.0ms) CREATE TABLE "translation_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "locale" varchar, "translation_key_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
5
-  (0.8ms) CREATE INDEX "index_translation_texts_on_translation_key_id" ON "translation_texts" ("translation_key_id")
6
-  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
7
-  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8
-  (0.1ms) SELECT version FROM "schema_migrations"
9
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20151013115212')
1
+  (1.6ms) CREATE TABLE "translation_keys" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar NOT NULL, "created_at" datetime, "updated_at" datetime) 
2
+  (0.4ms) select sqlite_version(*)
3
+  (1.3ms) CREATE INDEX "index_translation_keys_on_key" ON "translation_keys" ("key")
4
+  (1.2ms) CREATE TABLE "translation_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "locale" varchar, "translation_key_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
5
+  (1.3ms) CREATE INDEX "index_translation_texts_on_translation_key_id" ON "translation_texts" ("translation_key_id")
6
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
7
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8
+  (0.2ms) SELECT version FROM "schema_migrations"
9
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20151013115212')
10
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11
+  (0.1ms) begin transaction
12
+ -------------------------------------------------------------------------------------
13
+ AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
14
+ -------------------------------------------------------------------------------------
15
+  (0.1ms) SAVEPOINT active_record_1
16
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17
+  (0.1ms) SAVEPOINT active_record_1
18
+ TranslationKey Load (0.3ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
19
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
20
+  (0.1ms) rollback transaction
21
+  (0.1ms) begin transaction
22
+ --------------------------------------------------
23
+ AacTranslationTest: test_Return_value_from_fixture
24
+ --------------------------------------------------
25
+  (0.1ms) SAVEPOINT active_record_1
26
+  (0.1ms) RELEASE SAVEPOINT active_record_1
27
+  (0.1ms) SAVEPOINT active_record_1
28
+ TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.title"]]
29
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
30
+  (0.1ms) rollback transaction
31
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
32
+  (0.1ms) begin transaction
33
+ Fixture Delete (1.1ms) DELETE FROM "translation_keys"
34
+ Fixture Insert (0.4ms) INSERT INTO "translation_keys" ("id", "locale", "translation_text", "created_at", "updated_at") VALUES (1, 'en', 'main_title', '2015-10-15 08:16:22', '2015-10-15 08:16:22')
35
+ SQLite3::SQLException: table translation_keys has no column named locale: INSERT INTO "translation_keys" ("id", "locale", "translation_text", "created_at", "updated_at") VALUES (1, 'en', 'main_title', '2015-10-15 08:16:22', '2015-10-15 08:16:22')
36
+  (0.6ms) rollback transaction
37
+  (0.2ms) begin transaction
38
+ Fixture Delete (0.3ms) DELETE FROM "translation_keys"
39
+ Fixture Insert (0.2ms) INSERT INTO "translation_keys" ("id", "locale", "translation_text", "created_at", "updated_at") VALUES (1, 'en', 'main_title', '2015-10-15 08:16:22', '2015-10-15 08:16:22')
40
+ SQLite3::SQLException: table translation_keys has no column named locale: INSERT INTO "translation_keys" ("id", "locale", "translation_text", "created_at", "updated_at") VALUES (1, 'en', 'main_title', '2015-10-15 08:16:22', '2015-10-15 08:16:22')
41
+  (0.6ms) rollback transaction
42
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
43
+  (0.1ms) begin transaction
44
+ Fixture Delete (1.1ms) DELETE FROM "translation_keys"
45
+ Fixture Insert (0.6ms) INSERT INTO "translation_keys" ("id", "key", "created_at", "updated_at") VALUES (1, 'main.title', '2015-10-15 08:17:26', '2015-10-15 08:17:26')
46
+ Fixture Delete (0.8ms) DELETE FROM "translation_texts"
47
+ Fixture Insert (0.2ms) INSERT INTO "translation_texts" ("id", "locale", "translation_text", "created_at", "updated_at") VALUES (1, 'en', 'main_title', '2015-10-15 08:17:26', '2015-10-15 08:17:26')
48
+ SQLite3::SQLException: table translation_texts has no column named translation_text: INSERT INTO "translation_texts" ("id", "locale", "translation_text", "created_at", "updated_at") VALUES (1, 'en', 'main_title', '2015-10-15 08:17:26', '2015-10-15 08:17:26')
49
+  (0.5ms) rollback transaction
50
+  (0.1ms) begin transaction
51
+ Fixture Delete (0.2ms) DELETE FROM "translation_keys"
52
+ Fixture Insert (0.1ms) INSERT INTO "translation_keys" ("id", "key", "created_at", "updated_at") VALUES (1, 'main.title', '2015-10-15 08:17:26', '2015-10-15 08:17:26')
53
+ Fixture Delete (0.1ms) DELETE FROM "translation_texts"
54
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("id", "locale", "translation_text", "created_at", "updated_at") VALUES (1, 'en', 'main_title', '2015-10-15 08:17:26', '2015-10-15 08:17:26')
55
+ SQLite3::SQLException: table translation_texts has no column named translation_text: INSERT INTO "translation_texts" ("id", "locale", "translation_text", "created_at", "updated_at") VALUES (1, 'en', 'main_title', '2015-10-15 08:17:26', '2015-10-15 08:17:26')
56
+  (0.4ms) rollback transaction
10
57
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11
58
   (0.1ms) begin transaction
59
+ Fixture Delete (0.3ms) DELETE FROM "translation_keys"
60
+ Fixture Insert (0.1ms) INSERT INTO "translation_keys" ("id", "key", "created_at", "updated_at") VALUES (1, 'main.title', '2015-10-15 08:19:33', '2015-10-15 08:19:33')
61
+ Fixture Delete (0.1ms) DELETE FROM "translation_texts"
62
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("id", "locale", "text", "created_at", "updated_at", "translation_key_id") VALUES (1, 'en', 'My title', '2015-10-15 08:19:33', '2015-10-15 08:19:33', 141216559)
63
+  (9.2ms) commit transaction
64
+  (0.1ms) begin transaction
12
65
  --------------------------------------------------
13
66
  AacTranslationTest: test_Return_value_from_fixture
14
67
  --------------------------------------------------
68
+  (0.2ms) SAVEPOINT active_record_1
69
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15
70
   (0.1ms) SAVEPOINT active_record_1
16
-  (0.0ms) RELEASE SAVEPOINT active_record_1
17
-  (0.0ms) SAVEPOINT active_record_1
18
- TranslationKey Load (0.2ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.title"]]
71
+ TranslationText Load (0.3ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 1]]
72
+ TranslationKey Load (0.2ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.title"]]
73
+ TranslationText Load (0.2ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 1], ["locale", "en"]]
74
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
75
+  (0.1ms) rollback transaction
76
+  (0.0ms) begin transaction
77
+ -------------------------------------------------------------------------------------
78
+ AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
79
+ -------------------------------------------------------------------------------------
80
+  (0.1ms) SAVEPOINT active_record_1
81
+  (0.0ms) RELEASE SAVEPOINT active_record_1
82
+  (0.1ms) SAVEPOINT active_record_1
83
+ TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
84
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
85
+  (0.1ms) rollback transaction
86
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
87
+  (0.1ms) begin transaction
88
+ Fixture Delete (1.2ms) DELETE FROM "translation_keys"
89
+ Fixture Insert (0.2ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:20:54', '2015-10-15 08:20:54', 141216559)
90
+ Fixture Delete (0.1ms) DELETE FROM "translation_texts"
91
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:20:54', '2015-10-15 08:20:54', 141216559, 141216559)
92
+  (9.0ms) commit transaction
93
+  (0.1ms) begin transaction
94
+ -------------------------------------------------------------------------------------
95
+ AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
96
+ -------------------------------------------------------------------------------------
97
+  (0.1ms) SAVEPOINT active_record_1
98
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99
+  (0.1ms) SAVEPOINT active_record_1
100
+ TranslationKey Load (0.3ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
101
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
102
+  (0.1ms) rollback transaction
103
+  (0.1ms) begin transaction
104
+ --------------------------------------------------
105
+ AacTranslationTest: test_Return_value_from_fixture
106
+ --------------------------------------------------
107
+  (0.0ms) SAVEPOINT active_record_1
108
+  (0.0ms) RELEASE SAVEPOINT active_record_1
109
+  (0.0ms) SAVEPOINT active_record_1
110
+ TranslationText Load (0.3ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
111
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
112
+  (0.2ms) rollback transaction
113
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
114
+  (0.1ms) begin transaction
115
+ Fixture Delete (0.3ms) DELETE FROM "translation_keys"
116
+ Fixture Insert (0.1ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:21:01', '2015-10-15 08:21:01', 141216559)
117
+ Fixture Delete (0.1ms) DELETE FROM "translation_texts"
118
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:21:01', '2015-10-15 08:21:01', 141216559, 141216559)
119
+  (9.3ms) commit transaction
120
+  (0.1ms) begin transaction
121
+ --------------------------------------------------
122
+ AacTranslationTest: test_Return_value_from_fixture
123
+ --------------------------------------------------
124
+  (0.1ms) SAVEPOINT active_record_1
125
+  (0.1ms) RELEASE SAVEPOINT active_record_1
126
+  (0.1ms) SAVEPOINT active_record_1
127
+ TranslationText Load (0.3ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
128
+ TranslationKey Load (0.2ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.title"]]
129
+ TranslationText Load (0.2ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
19
130
   (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
20
-  (0.0ms) rollback transaction
131
+  (0.1ms) rollback transaction
21
132
   (0.0ms) begin transaction
22
133
  -------------------------------------------------------------------------------------
23
134
  AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
@@ -28,48 +139,425 @@ AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_t
28
139
  TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
29
140
   (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
30
141
   (0.0ms) rollback transaction
31
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
32
-  (0.1ms) begin transaction
33
- Fixture Delete (1.0ms) DELETE FROM "translation_keys"
34
- Fixture Insert (0.4ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 12:13:53', '2015-10-15 12:13:53', 141216559)
35
- Fixture Insert (0.1ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('html.title', '2015-10-15 12:13:53', '2015-10-15 12:13:53', 89783586)
36
- Fixture Delete (0.8ms) DELETE FROM "translation_texts"
37
- Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 12:13:53', '2015-10-15 12:13:53', 141216559, 141216559)
38
- Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', '<strong>My title</strong>2', '2015-10-15 12:13:53', '2015-10-15 12:13:53', 89783586, 89783586)
39
-  (2.3ms) commit transaction
40
-  (0.0ms) begin transaction
41
- ---------------------------------------
42
- AacTranslationTest: test_Sanitizes_HTML
43
- ---------------------------------------
142
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
143
+  (0.1ms) begin transaction
144
+ Fixture Delete (0.3ms) DELETE FROM "translation_keys"
145
+ Fixture Insert (0.1ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:21:27', '2015-10-15 08:21:27', 141216559)
146
+ Fixture Delete (0.1ms) DELETE FROM "translation_texts"
147
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:21:27', '2015-10-15 08:21:27', 141216559, 141216559)
148
+  (8.1ms) commit transaction
149
+  (0.1ms) begin transaction
150
+ --------------------------------------------------
151
+ AacTranslationTest: test_Return_value_from_fixture
152
+ --------------------------------------------------
44
153
   (0.1ms) SAVEPOINT active_record_1
45
154
   (0.1ms) RELEASE SAVEPOINT active_record_1
155
+  (0.1ms) SAVEPOINT active_record_1
156
+ TranslationText Load (0.3ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
157
+ TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.title"]]
158
+ TranslationText Load (0.1ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
159
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
160
+  (0.1ms) rollback transaction
161
+  (0.1ms) begin transaction
162
+ -------------------------------------------------------------------------------------
163
+ AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
164
+ -------------------------------------------------------------------------------------
165
+  (0.1ms) SAVEPOINT active_record_1
166
+  (0.0ms) RELEASE SAVEPOINT active_record_1
167
+  (0.0ms) SAVEPOINT active_record_1
168
+ TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
169
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
170
+  (0.0ms) rollback transaction
171
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
172
+  (0.1ms) begin transaction
173
+ Fixture Delete (0.3ms) DELETE FROM "translation_keys"
174
+ Fixture Insert (0.1ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:22:21', '2015-10-15 08:22:21', 141216559)
175
+ Fixture Delete (0.1ms) DELETE FROM "translation_texts"
176
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:22:21', '2015-10-15 08:22:21', 141216559, 141216559)
177
+  (9.4ms) commit transaction
178
+  (0.1ms) begin transaction
179
+ --------------------------------------------------
180
+ AacTranslationTest: test_Return_value_from_fixture
181
+ --------------------------------------------------
182
+  (0.1ms) SAVEPOINT active_record_1
183
+  (0.1ms) RELEASE SAVEPOINT active_record_1
184
+  (0.1ms) SAVEPOINT active_record_1
185
+ TranslationText Load (0.3ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
186
+ TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.title"]]
187
+ TranslationText Load (0.2ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
188
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
189
+  (0.1ms) rollback transaction
190
+  (0.0ms) begin transaction
191
+ -------------------------------------------------------------------------------------
192
+ AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
193
+ -------------------------------------------------------------------------------------
194
+  (0.0ms) SAVEPOINT active_record_1
195
+  (0.0ms) RELEASE SAVEPOINT active_record_1
196
+  (0.0ms) SAVEPOINT active_record_1
197
+ TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
198
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
199
+  (0.0ms) rollback transaction
200
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
201
+  (0.1ms) begin transaction
202
+ Fixture Delete (0.3ms) DELETE FROM "translation_keys"
203
+ Fixture Insert (0.1ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:22:37', '2015-10-15 08:22:37', 141216559)
204
+ Fixture Delete (0.1ms) DELETE FROM "translation_texts"
205
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:22:37', '2015-10-15 08:22:37', 141216559, 141216559)
206
+  (9.4ms) commit transaction
207
+  (0.1ms) begin transaction
208
+ --------------------------------------------------
209
+ AacTranslationTest: test_Return_value_from_fixture
210
+ --------------------------------------------------
211
+  (0.1ms) SAVEPOINT active_record_1
212
+  (0.1ms) RELEASE SAVEPOINT active_record_1
213
+  (0.1ms) SAVEPOINT active_record_1
214
+ TranslationText Load (0.4ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
215
+ TranslationKey Load (0.2ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.title"]]
216
+ TranslationText Load (0.2ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
217
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
218
+  (0.1ms) rollback transaction
219
+  (0.0ms) begin transaction
220
+ -------------------------------------------------------------------------------------
221
+ AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
222
+ -------------------------------------------------------------------------------------
223
+  (0.0ms) SAVEPOINT active_record_1
224
+  (0.0ms) RELEASE SAVEPOINT active_record_1
225
+  (0.0ms) SAVEPOINT active_record_1
226
+ TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
227
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
228
+  (0.0ms) rollback transaction
229
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
230
+  (0.2ms) begin transaction
231
+ Fixture Delete (1.2ms) DELETE FROM "translation_keys"
232
+ Fixture Insert (0.6ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:39:29', '2015-10-15 08:39:29', 141216559)
233
+ Fixture Delete (0.9ms) DELETE FROM "translation_texts"
234
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:39:29', '2015-10-15 08:39:29', 141216559, 141216559)
235
+  (1.2ms) commit transaction
236
+  (0.1ms) begin transaction
237
+ -------------------------------------------------------------------------------------
238
+ AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
239
+ -------------------------------------------------------------------------------------
240
+  (0.1ms) SAVEPOINT active_record_1
241
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46
242
   (0.0ms) SAVEPOINT active_record_1
47
- TranslationText Load (0.2ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 89783586]]
48
- TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."id" = ? LIMIT 1 [["id", 89783586]]
49
- TranslationKey Load (0.2ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "html.title"]]
243
+ TranslationKey Load (0.3ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
244
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
245
+  (0.1ms) rollback transaction
246
+  (0.0ms) begin transaction
247
+ --------------------------------------------------
248
+ AacTranslationTest: test_Return_value_from_fixture
249
+ --------------------------------------------------
250
+  (0.0ms) SAVEPOINT active_record_1
251
+  (0.0ms) RELEASE SAVEPOINT active_record_1
252
+  (0.0ms) SAVEPOINT active_record_1
253
+ TranslationText Load (0.2ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
254
+ TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.title"]]
255
+ TranslationText Load (0.3ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
256
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
257
+  (0.1ms) rollback transaction
258
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
259
+  (0.1ms) begin transaction
260
+ Fixture Delete (0.4ms) DELETE FROM "translation_keys"
261
+ Fixture Insert (0.2ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:43:03', '2015-10-15 08:43:03', 141216559)
262
+ Fixture Insert (0.1ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('html.title', '2015-10-15 08:43:03', '2015-10-15 08:43:03', 89783586)
263
+ Fixture Delete (0.1ms) DELETE FROM "translation_texts"
264
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:43:03', '2015-10-15 08:43:03', 141216559, 141216559)
265
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', '<strong>My title</strong>', '2015-10-15 08:43:03', '2015-10-15 08:43:03', 89783586, 89783586)
266
+  (1.2ms) commit transaction
267
+  (0.1ms) begin transaction
268
+ -------------------------------------------------------------------------------------
269
+ AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
270
+ -------------------------------------------------------------------------------------
271
+  (0.1ms) SAVEPOINT active_record_1
272
+  (0.1ms) RELEASE SAVEPOINT active_record_1
273
+  (0.1ms) SAVEPOINT active_record_1
274
+ TranslationKey Load (0.3ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
275
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
276
+  (0.1ms) rollback transaction
277
+  (0.1ms) begin transaction
278
+ ----------------------------------------------------
279
+ AacTranslationTest: test_Sanitizes_html_from_fixture
280
+ ----------------------------------------------------
281
+  (0.1ms) SAVEPOINT active_record_1
282
+  (0.1ms) RELEASE SAVEPOINT active_record_1
283
+  (0.0ms) SAVEPOINT active_record_1
284
+ TranslationText Load (0.2ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 89783586]]
285
+ TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "html.title"]]
50
286
  TranslationText Load (0.2ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 89783586], ["locale", "en"]]
51
287
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
288
+  (0.1ms) rollback transaction
289
+  (0.0ms) begin transaction
290
+ --------------------------------------------------
291
+ AacTranslationTest: test_Return_value_from_fixture
292
+ --------------------------------------------------
293
+  (0.1ms) SAVEPOINT active_record_1
294
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295
+  (0.0ms) SAVEPOINT active_record_1
296
+ TranslationText Load (0.1ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
297
+ TranslationKey Load (0.0ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.title"]]
298
+ TranslationText Load (0.1ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
299
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
300
+  (0.1ms) rollback transaction
301
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
302
+  (0.1ms) begin transaction
303
+ Fixture Delete (0.3ms) DELETE FROM "translation_keys"
304
+ Fixture Insert (0.1ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:43:13', '2015-10-15 08:43:13', 141216559)
305
+ Fixture Insert (0.1ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('html.title', '2015-10-15 08:43:13', '2015-10-15 08:43:13', 89783586)
306
+ Fixture Delete (0.1ms) DELETE FROM "translation_texts"
307
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:43:13', '2015-10-15 08:43:13', 141216559, 141216559)
308
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', '<strong>My title</strong>', '2015-10-15 08:43:13', '2015-10-15 08:43:13', 89783586, 89783586)
309
+  (8.7ms) commit transaction
310
+  (0.2ms) begin transaction
311
+ --------------------------------------------------
312
+ AacTranslationTest: test_Return_value_from_fixture
313
+ --------------------------------------------------
314
+  (0.1ms) SAVEPOINT active_record_1
315
+  (0.1ms) RELEASE SAVEPOINT active_record_1
316
+  (0.1ms) SAVEPOINT active_record_1
317
+ TranslationText Load (0.3ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
318
+ TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.title"]]
319
+ TranslationText Load (0.2ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
320
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
321
+  (0.1ms) rollback transaction
322
+  (0.0ms) begin transaction
323
+ ----------------------------------------------------
324
+ AacTranslationTest: test_Sanitizes_html_from_fixture
325
+ ----------------------------------------------------
326
+  (0.0ms) SAVEPOINT active_record_1
327
+  (0.0ms) RELEASE SAVEPOINT active_record_1
328
+  (0.0ms) SAVEPOINT active_record_1
329
+ TranslationText Load (0.1ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 89783586]]
330
+ TranslationKey Load (0.0ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "html.title"]]
331
+ TranslationText Load (0.0ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 89783586], ["locale", "en"]]
332
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
52
333
   (0.0ms) rollback transaction
334
+  (0.0ms) begin transaction
335
+ -------------------------------------------------------------------------------------
336
+ AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
337
+ -------------------------------------------------------------------------------------
338
+  (0.0ms) SAVEPOINT active_record_1
339
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340
+  (0.0ms) SAVEPOINT active_record_1
341
+ TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
342
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
343
+  (0.0ms) rollback transaction
344
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
345
+  (0.1ms) begin transaction
346
+ Fixture Delete (0.9ms) DELETE FROM "translation_keys"
347
+ Fixture Insert (0.1ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:44:45', '2015-10-15 08:44:45', 141216559)
348
+ Fixture Insert (0.1ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('html.title', '2015-10-15 08:44:45', '2015-10-15 08:44:45', 89783586)
349
+ Fixture Delete (0.1ms) DELETE FROM "translation_texts"
350
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:44:45', '2015-10-15 08:44:45', 141216559, 141216559)
351
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', '<strong>My title</strong>', '2015-10-15 08:44:45', '2015-10-15 08:44:45', 89783586, 89783586)
352
+  (8.3ms) commit transaction
353
+  (0.1ms) begin transaction
354
+ --------------------------------------------------
355
+ AacTranslationTest: test_Return_value_from_fixture
356
+ --------------------------------------------------
357
+  (0.1ms) SAVEPOINT active_record_1
358
+  (0.1ms) RELEASE SAVEPOINT active_record_1
359
+  (0.1ms) SAVEPOINT active_record_1
360
+ TranslationText Load (0.3ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
361
+ TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.title"]]
362
+ TranslationText Load (0.3ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
363
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
364
+  (0.1ms) rollback transaction
365
+  (0.1ms) begin transaction
366
+ ----------------------------------------------------
367
+ AacTranslationTest: test_Sanitizes_html_from_fixture
368
+ ----------------------------------------------------
369
+  (0.1ms) SAVEPOINT active_record_1
370
+  (0.1ms) RELEASE SAVEPOINT active_record_1
371
+  (0.2ms) SAVEPOINT active_record_1
372
+ TranslationText Load (0.3ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 89783586]]
373
+ TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "html.title"]]
374
+ TranslationText Load (0.1ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 89783586], ["locale", "en"]]
375
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
376
+  (0.1ms) rollback transaction
377
+  (0.1ms) begin transaction
378
+ -------------------------------------------------------------------------------------
379
+ AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
380
+ -------------------------------------------------------------------------------------
381
+  (0.1ms) SAVEPOINT active_record_1
382
+  (0.0ms) RELEASE SAVEPOINT active_record_1
383
+  (0.1ms) SAVEPOINT active_record_1
384
+ TranslationKey Load (0.2ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
385
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
386
+  (0.1ms) rollback transaction
387
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
388
+  (0.1ms) begin transaction
389
+ Fixture Delete (0.3ms) DELETE FROM "translation_keys"
390
+ Fixture Insert (0.1ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:45:34', '2015-10-15 08:45:34', 141216559)
391
+ Fixture Insert (0.1ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('html.title', '2015-10-15 08:45:34', '2015-10-15 08:45:34', 89783586)
392
+ Fixture Delete (0.1ms) DELETE FROM "translation_texts"
393
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:45:34', '2015-10-15 08:45:34', 141216559, 141216559)
394
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', '<strong>My title</strong>2', '2015-10-15 08:45:34', '2015-10-15 08:45:34', 89783586, 89783586)
395
+  (8.3ms) commit transaction
53
396
   (0.1ms) begin transaction
54
397
  --------------------------------------------------
55
398
  AacTranslationTest: test_Return_value_from_fixture
56
399
  --------------------------------------------------
400
+  (0.1ms) SAVEPOINT active_record_1
401
+  (0.1ms) RELEASE SAVEPOINT active_record_1
402
+  (0.1ms) SAVEPOINT active_record_1
403
+ TranslationText Load (0.5ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
404
+ TranslationKey Load (0.2ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.title"]]
405
+ TranslationText Load (0.1ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
406
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
407
+  (0.0ms) rollback transaction
408
+  (0.0ms) begin transaction
409
+ ----------------------------------------------------
410
+ AacTranslationTest: test_Sanitizes_html_from_fixture
411
+ ----------------------------------------------------
412
+  (0.0ms) SAVEPOINT active_record_1
413
+  (0.0ms) RELEASE SAVEPOINT active_record_1
414
+  (0.0ms) SAVEPOINT active_record_1
415
+ TranslationText Load (0.1ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 89783586]]
416
+ TranslationKey Load (0.0ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "html.title"]]
417
+ TranslationText Load (0.0ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 89783586], ["locale", "en"]]
418
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
419
+  (0.0ms) rollback transaction
420
+  (0.0ms) begin transaction
421
+ -------------------------------------------------------------------------------------
422
+ AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
423
+ -------------------------------------------------------------------------------------
57
424
   (0.0ms) SAVEPOINT active_record_1
58
425
   (0.0ms) RELEASE SAVEPOINT active_record_1
59
426
   (0.0ms) SAVEPOINT active_record_1
60
- TranslationText Load (0.1ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
61
- TranslationKey Load (0.0ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."id" = ? LIMIT 1 [["id", 141216559]]
62
- TranslationKey Load (0.0ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.title"]]
63
- TranslationText Load (0.0ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
427
+ TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
428
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
429
+  (0.0ms) rollback transaction
430
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
431
+  (0.1ms) begin transaction
432
+ Fixture Delete (0.3ms) DELETE FROM "translation_keys"
433
+ Fixture Insert (0.1ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:47:04', '2015-10-15 08:47:04', 141216559)
434
+ Fixture Insert (0.1ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('html.title', '2015-10-15 08:47:04', '2015-10-15 08:47:04', 89783586)
435
+ Fixture Delete (0.3ms) DELETE FROM "translation_texts"
436
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:47:04', '2015-10-15 08:47:04', 141216559, 141216559)
437
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', '<strong>My title</strong>2', '2015-10-15 08:47:04', '2015-10-15 08:47:04', 89783586, 89783586)
438
+  (1.0ms) commit transaction
439
+  (0.1ms) begin transaction
440
+ -------------------------------------------------------------------------------------
441
+ AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
442
+ -------------------------------------------------------------------------------------
443
+  (0.1ms) SAVEPOINT active_record_1
444
+  (0.1ms) RELEASE SAVEPOINT active_record_1
445
+  (0.1ms) SAVEPOINT active_record_1
446
+ TranslationKey Load (0.3ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
447
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
448
+  (0.2ms) rollback transaction
449
+  (0.1ms) begin transaction
450
+ --------------------------------------------------
451
+ AacTranslationTest: test_Return_value_from_fixture
452
+ --------------------------------------------------
453
+  (0.1ms) SAVEPOINT active_record_1
454
+  (0.1ms) RELEASE SAVEPOINT active_record_1
455
+  (0.1ms) SAVEPOINT active_record_1
456
+ TranslationText Load (0.2ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
457
+ TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.title"]]
458
+ TranslationText Load (0.2ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
64
459
   (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
65
460
   (0.0ms) rollback transaction
66
461
   (0.1ms) begin transaction
462
+ ---------------------------------------
463
+ AacTranslationTest: test_Sanitizes_HTML
464
+ ---------------------------------------
465
+  (0.0ms) SAVEPOINT active_record_1
466
+  (0.0ms) RELEASE SAVEPOINT active_record_1
467
+  (0.0ms) SAVEPOINT active_record_1
468
+ TranslationText Load (0.1ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 89783586]]
469
+ TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."id" = ? LIMIT 1 [["id", 89783586]]
470
+ TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "html.title"]]
471
+ TranslationText Load (0.0ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 89783586], ["locale", "en"]]
472
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
473
+  (0.0ms) rollback transaction
474
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
475
+  (0.1ms) begin transaction
476
+ Fixture Delete (0.4ms) DELETE FROM "translation_keys"
477
+ Fixture Insert (0.2ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:47:32', '2015-10-15 08:47:32', 141216559)
478
+ Fixture Insert (0.1ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('html.title', '2015-10-15 08:47:32', '2015-10-15 08:47:32', 89783586)
479
+ Fixture Delete (0.1ms) DELETE FROM "translation_texts"
480
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:47:32', '2015-10-15 08:47:32', 141216559, 141216559)
481
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', '<strong>My title</strong>2', '2015-10-15 08:47:32', '2015-10-15 08:47:32', 89783586, 89783586)
482
+  (1.2ms) commit transaction
483
+  (0.1ms) begin transaction
484
+ --------------------------------------------------
485
+ AacTranslationTest: test_Return_value_from_fixture
486
+ --------------------------------------------------
487
+  (0.1ms) SAVEPOINT active_record_1
488
+  (0.1ms) RELEASE SAVEPOINT active_record_1
489
+  (0.1ms) SAVEPOINT active_record_1
490
+ TranslationText Load (0.3ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
491
+ TranslationKey Load (0.2ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."id" = ? LIMIT 1 [["id", 141216559]]
492
+ TranslationKey Load (0.2ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.title"]]
493
+ TranslationText Load (0.3ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
494
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
495
+  (0.1ms) rollback transaction
496
+  (0.0ms) begin transaction
497
+ ---------------------------------------
498
+ AacTranslationTest: test_Sanitizes_HTML
499
+ ---------------------------------------
500
+  (0.1ms) SAVEPOINT active_record_1
501
+  (0.0ms) RELEASE SAVEPOINT active_record_1
502
+  (0.0ms) SAVEPOINT active_record_1
503
+ TranslationText Load (0.1ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 89783586]]
504
+ TranslationKey Load (0.0ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."id" = ? LIMIT 1 [["id", 89783586]]
505
+ TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "html.title"]]
506
+ TranslationText Load (0.1ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 89783586], ["locale", "en"]]
507
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
508
+  (0.1ms) rollback transaction
509
+  (0.0ms) begin transaction
67
510
  -------------------------------------------------------------------------------------
68
511
  AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
69
512
  -------------------------------------------------------------------------------------
513
+  (0.1ms) SAVEPOINT active_record_1
514
+  (0.0ms) RELEASE SAVEPOINT active_record_1
70
515
   (0.0ms) SAVEPOINT active_record_1
516
+ TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
517
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
518
+  (0.0ms) rollback transaction
519
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
520
+  (0.2ms) begin transaction
521
+ Fixture Delete (1.2ms) DELETE FROM "translation_keys"
522
+ Fixture Insert (0.6ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 10:22:29', '2015-10-15 10:22:29', 141216559)
523
+ Fixture Insert (0.1ms) INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('html.title', '2015-10-15 10:22:29', '2015-10-15 10:22:29', 89783586)
524
+ Fixture Delete (1.1ms) DELETE FROM "translation_texts"
525
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 10:22:29', '2015-10-15 10:22:29', 141216559, 141216559)
526
+ Fixture Insert (0.1ms) INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', '<strong>My title</strong>2', '2015-10-15 10:22:29', '2015-10-15 10:22:29', 89783586, 89783586)
527
+  (1.4ms) commit transaction
528
+  (0.1ms) begin transaction
529
+ --------------------------------------------------
530
+ AacTranslationTest: test_Return_value_from_fixture
531
+ --------------------------------------------------
532
+  (0.1ms) SAVEPOINT active_record_1
71
533
   (0.0ms) RELEASE SAVEPOINT active_record_1
72
534
   (0.0ms) SAVEPOINT active_record_1
535
+ TranslationText Load (0.3ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
536
+ TranslationKey Load (0.2ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."id" = ? LIMIT 1 [["id", 141216559]]
537
+ TranslationKey Load (0.3ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.title"]]
538
+ TranslationText Load (0.2ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
539
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
540
+  (0.1ms) rollback transaction
541
+  (0.1ms) begin transaction
542
+ -------------------------------------------------------------------------------------
543
+ AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
544
+ -------------------------------------------------------------------------------------
545
+  (0.1ms) SAVEPOINT active_record_1
546
+  (0.0ms) RELEASE SAVEPOINT active_record_1
547
+  (0.1ms) SAVEPOINT active_record_1
73
548
  TranslationKey Load (0.1ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
74
549
   (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
75
550
   (0.0ms) rollback transaction
551
+  (0.0ms) begin transaction
552
+ ---------------------------------------
553
+ AacTranslationTest: test_Sanitizes_HTML
554
+ ---------------------------------------
555
+  (0.0ms) SAVEPOINT active_record_1
556
+  (0.0ms) RELEASE SAVEPOINT active_record_1
557
+  (0.0ms) SAVEPOINT active_record_1
558
+ TranslationText Load (0.1ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 89783586]]
559
+ TranslationKey Load (0.0ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."id" = ? LIMIT 1 [["id", 89783586]]
560
+ TranslationKey Load (0.0ms) SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "html.title"]]
561
+ TranslationText Load (0.0ms) SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 89783586], ["locale", "en"]]
562
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
563
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aac_translation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Haris
@@ -15,87 +15,73 @@ dependencies:
15
15
  name: rails
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ~>
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
20
  version: '4.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ~>
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: '4.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: fast_gettext
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ~>
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '1.0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ~>
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '1.0'
42
- - !ruby/object:Gem::Dependency
43
- name: protected_attributes
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - '>='
47
- - !ruby/object:Gem::Version
48
- version: '0'
49
- type: :runtime
50
- prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - '>='
54
- - !ruby/object:Gem::Version
55
- version: '0'
56
42
  - !ruby/object:Gem::Dependency
57
43
  name: sqlite3
58
44
  requirement: !ruby/object:Gem::Requirement
59
45
  requirements:
60
- - - '>='
46
+ - - ">="
61
47
  - !ruby/object:Gem::Version
62
48
  version: '0'
63
49
  type: :development
64
50
  prerelease: false
65
51
  version_requirements: !ruby/object:Gem::Requirement
66
52
  requirements:
67
- - - '>='
53
+ - - ">="
68
54
  - !ruby/object:Gem::Version
69
55
  version: '0'
70
56
  - !ruby/object:Gem::Dependency
71
57
  name: factory_girl
72
58
  requirement: !ruby/object:Gem::Requirement
73
59
  requirements:
74
- - - '>='
60
+ - - ">="
75
61
  - !ruby/object:Gem::Version
76
62
  version: '0'
77
63
  type: :development
78
64
  prerelease: false
79
65
  version_requirements: !ruby/object:Gem::Requirement
80
66
  requirements:
81
- - - '>='
67
+ - - ">="
82
68
  - !ruby/object:Gem::Version
83
69
  version: '0'
84
70
  - !ruby/object:Gem::Dependency
85
71
  name: database_cleaner
86
72
  requirement: !ruby/object:Gem::Requirement
87
73
  requirements:
88
- - - '>='
74
+ - - ">="
89
75
  - !ruby/object:Gem::Version
90
76
  version: '0'
91
77
  type: :development
92
78
  prerelease: false
93
79
  version_requirements: !ruby/object:Gem::Requirement
94
80
  requirements:
95
- - - '>='
81
+ - - ">="
96
82
  - !ruby/object:Gem::Version
97
83
  version: '0'
98
- description: Gem is for providing db based transitions
84
+ description: Simple Rails engine to manage your translations in a db.
99
85
  email:
100
86
  - iamadamharis@gmail.com
101
87
  - tothpeter08@gmail.com
@@ -103,6 +89,8 @@ executables: []
103
89
  extensions: []
104
90
  extra_rdoc_files: []
105
91
  files:
92
+ - MIT-LICENSE
93
+ - Rakefile
106
94
  - app/assets/javascripts/aac_translation/application.js
107
95
  - app/assets/stylesheets/aac_translation/application.css
108
96
  - app/helpers/aac_translation/application_helper.rb
@@ -110,13 +98,13 @@ files:
110
98
  - config/initializers/fast_get_text.rb
111
99
  - config/routes.rb
112
100
  - db/migrate/20151013115212_create_translation_tables.rb
101
+ - lib/aac_translation.rb
113
102
  - lib/aac_translation/engine.rb
114
103
  - lib/aac_translation/version.rb
115
- - lib/aac_translation.rb
116
104
  - lib/tasks/aac_translation_tasks.rake
117
- - MIT-LICENSE
118
- - Rakefile
119
105
  - test/aac_translation_test.rb
106
+ - test/dummy/README.rdoc
107
+ - test/dummy/Rakefile
120
108
  - test/dummy/app/assets/javascripts/application.js
121
109
  - test/dummy/app/assets/stylesheets/application.css
122
110
  - test/dummy/app/controllers/application_controller.rb
@@ -126,6 +114,7 @@ files:
126
114
  - test/dummy/bin/rails
127
115
  - test/dummy/bin/rake
128
116
  - test/dummy/bin/setup
117
+ - test/dummy/config.ru
129
118
  - test/dummy/config/application.rb
130
119
  - test/dummy/config/boot.rb
131
120
  - test/dummy/config/database.yml
@@ -144,7 +133,6 @@ files:
144
133
  - test/dummy/config/locales/en.yml
145
134
  - test/dummy/config/routes.rb
146
135
  - test/dummy/config/secrets.yml
147
- - test/dummy/config.ru
148
136
  - test/dummy/db/schema.rb
149
137
  - test/dummy/db/test.sqlite3
150
138
  - test/dummy/log/test.log
@@ -152,8 +140,6 @@ files:
152
140
  - test/dummy/public/422.html
153
141
  - test/dummy/public/500.html
154
142
  - test/dummy/public/favicon.ico
155
- - test/dummy/Rakefile
156
- - test/dummy/README.rdoc
157
143
  - test/fixtures/translation_keys.yml
158
144
  - test/fixtures/translation_texts.yml
159
145
  - test/test_helper.rb
@@ -167,20 +153,20 @@ require_paths:
167
153
  - lib
168
154
  required_ruby_version: !ruby/object:Gem::Requirement
169
155
  requirements:
170
- - - '>='
156
+ - - ">="
171
157
  - !ruby/object:Gem::Version
172
158
  version: '0'
173
159
  required_rubygems_version: !ruby/object:Gem::Requirement
174
160
  requirements:
175
- - - '>='
161
+ - - ">="
176
162
  - !ruby/object:Gem::Version
177
163
  version: '0'
178
164
  requirements: []
179
165
  rubyforge_project:
180
- rubygems_version: 2.0.14
166
+ rubygems_version: 2.4.6
181
167
  signing_key:
182
168
  specification_version: 4
183
- summary: Gem is for providing db based transitions
169
+ summary: Simple Rails engine to manage your translations in a db.
184
170
  test_files:
185
171
  - test/aac_translation_test.rb
186
172
  - test/dummy/app/assets/javascripts/application.js