awesome_translations 0.0.62 → 0.0.63

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/awesome_translations/caches_controller.rb +1 -1
  3. data/app/controllers/awesome_translations/handlers_controller.rb +3 -7
  4. data/config/locales/en.yml +3 -0
  5. data/lib/awesome_translations/cache_database_generator.rb +11 -9
  6. data/lib/awesome_translations/config.rb +2 -2
  7. data/lib/awesome_translations/engine.rb +1 -1
  8. data/lib/awesome_translations/erb_inspector/file_inspector.rb +1 -1
  9. data/lib/awesome_translations/handlers/validations_handler.rb +1 -1
  10. data/lib/awesome_translations/version.rb +1 -1
  11. metadata +4 -287
  12. data/spec/controllers/groups_controller_spec.rb +0 -83
  13. data/spec/controllers/handlers_controller_spec.rb +0 -51
  14. data/spec/controllers/users_controller_spec.rb +0 -21
  15. data/spec/dummy/README.rdoc +0 -28
  16. data/spec/dummy/Rakefile +0 -6
  17. data/spec/dummy/app/assets/config/manifest.js +0 -3
  18. data/spec/dummy/app/assets/javascripts/application.js +0 -0
  19. data/spec/dummy/app/assets/javascripts/translations.js +0 -3
  20. data/spec/dummy/app/assets/stylesheets/application.css +0 -13
  21. data/spec/dummy/app/controllers/application_controller.rb +0 -15
  22. data/spec/dummy/app/controllers/locales_controller.rb +0 -6
  23. data/spec/dummy/app/controllers/users_controller.rb +0 -43
  24. data/spec/dummy/app/helpers/application_helper.rb +0 -7
  25. data/spec/dummy/app/mailers/my_mailer.rb +0 -5
  26. data/spec/dummy/app/models/application_record.rb +0 -3
  27. data/spec/dummy/app/models/role.rb +0 -17
  28. data/spec/dummy/app/models/user.rb +0 -8
  29. data/spec/dummy/app/services/application_service.rb +0 -3
  30. data/spec/dummy/app/services/test_translate_service.rb +0 -9
  31. data/spec/dummy/app/views/layouts/application.html.erb +0 -28
  32. data/spec/dummy/app/views/users/_partial_test.html.erb +0 -1
  33. data/spec/dummy/app/views/users/edit.html.liquid +0 -7
  34. data/spec/dummy/app/views/users/index.html.haml +0 -16
  35. data/spec/dummy/app/views/users/show.html.erb +0 -7
  36. data/spec/dummy/bin/bundle +0 -3
  37. data/spec/dummy/bin/rails +0 -4
  38. data/spec/dummy/bin/rake +0 -4
  39. data/spec/dummy/config/application.rb +0 -35
  40. data/spec/dummy/config/boot.rb +0 -5
  41. data/spec/dummy/config/database.yml +0 -25
  42. data/spec/dummy/config/environment.rb +0 -5
  43. data/spec/dummy/config/environments/development.rb +0 -32
  44. data/spec/dummy/config/environments/production.rb +0 -80
  45. data/spec/dummy/config/environments/test.rb +0 -39
  46. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  47. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  48. data/spec/dummy/config/initializers/inflections.rb +0 -16
  49. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  50. data/spec/dummy/config/initializers/secret_token.rb +0 -13
  51. data/spec/dummy/config/initializers/session_store.rb +0 -3
  52. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  53. data/spec/dummy/config/routes.rb +0 -7
  54. data/spec/dummy/config.ru +0 -4
  55. data/spec/dummy/db/awesome_translations.sqlite3 +0 -0
  56. data/spec/dummy/db/development.sqlite3 +0 -0
  57. data/spec/dummy/db/migrate/20141018081559_create_users.rb +0 -9
  58. data/spec/dummy/db/migrate/20141018081640_create_roles.rb +0 -10
  59. data/spec/dummy/db/migrate/20150607110245_add_price_cents_to_roles.rb +0 -5
  60. data/spec/dummy/db/schema.rb +0 -30
  61. data/spec/dummy/db/test.sqlite3 +0 -0
  62. data/spec/dummy/log/development.log +0 -52
  63. data/spec/dummy/log/test.log +0 -1188
  64. data/spec/dummy/public/404.html +0 -58
  65. data/spec/dummy/public/422.html +0 -58
  66. data/spec/dummy/public/500.html +0 -57
  67. data/spec/dummy/public/favicon.ico +0 -0
  68. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/2m/2mnPY9uUnBNkGHLxtFaWv5hB3oA7sY2K1ZtwQlZLnAY.cache +0 -2
  69. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/3N/3NnKgR2TsTI1qCXKZpts0uJzp2dRJcoYp3nnFU6YE4o.cache +0 -2
  70. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/5r/5rpKlqLSFsRCibev7g6MQkIOhWuOah-1KAN3aqV_fYI.cache +0 -0
  71. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/6E/6ExTs_VkmUe-fovt99Kw8rq-xCfx0_qGsSoldSWScZI.cache +0 -1
  72. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/8O/8OrG8phjC9s5-_7GAI2TEmRjsrGsuvq1gnJQPdMm8v8.cache +0 -0
  73. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/8f/8f4REKYOWkNfHexyAVqGXnbOP3vky_ANapWzlRMDeQ4.cache +0 -3
  74. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/8n/8n_viDw_qMQaQmqHM0ObPADed5uRyEYo3gDZIiTqUyA.cache +0 -1
  75. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/9e/9euY4B26kaHeiqfd1Qc0bsfRjpzmq36X6uqUfaRNtIs.cache +0 -1
  76. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/AB/AB5PxrhEqi8qOm7AmSf-sHDs9ffj_iTsytaHas2ryPA.cache +0 -1
  77. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/AI/AICJO1oM9dzlQ_N1QlHcCN9e8PC0wjtYk7-VmuNdfwg.cache +0 -0
  78. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Ca/CaGQBiCuFgkHQ5gw8ZnGQqO8iP1md3GcllDsmaKBFdQ.cache +0 -2
  79. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Ch/ChWez9UVXMuuBpLJMDRGuDmMuXy8gIuFo6794-wBgXc.cache +0 -1
  80. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/D9/D9eOwgl8pLlC7LJu-LL59UeHm9d-CH1mPgsA8j6xkMg.cache +0 -1
  81. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Do/Do83AoOat5W-c1g7piDGy2GMmffsY6JY0Qfuh5PY3GM.cache +0 -2
  82. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Hn/Hn53895nYKzu-g1FJKYS_yszYqCADXasTmN615R_qMQ.cache +0 -1
  83. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/It/ItV7jxV0bfHndR-H3cidDwpTFGhvs0ETLRqCTmZMXB8.cache +0 -1
  84. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/LL/LL0EenAcTXP-UNCqfcKtMF4Z8oDeWvdlwLQfuOVRPdw.cache +0 -0
  85. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Mj/MjwYGG9GkHD1fwwH2bg66EBYl3zCA_mqeDF9otey4-U.cache +0 -3
  86. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/NU/NUN9oO9gyoo-sY32AOLHdDACjLIxisCxXdKd84ou6cs.cache +0 -2
  87. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Ob/ObuKkBd-camcT52YpgeuyheU-GDFLZCJnoVtq2plgW0.cache +0 -0
  88. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Og/Og_HPfE6734sqkQ0_h4EkOOx3Aoq1LABLH9ovjl6Bvw.cache +0 -0
  89. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Pw/Pwuhz_6So_JcSrxT0Uf4VaLhh_FFSJMKxLZFMbS0LNQ.cache +0 -0
  90. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/R-/R-nohuDiORrLlJJtKc5bQsjIRS8yTQFVR3EIxJx3JZw.cache +0 -1
  91. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/SX/SXA6qKBlsAQ-MLPi7-KPCPcSx9Gg2VR1xa-lCmgipgA.cache +0 -1
  92. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Sb/Sb1Vug319YfPL2Rci1PLMLXJjeIFYcNbHb5hKOvO1eo.cache +0 -2
  93. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/_f/_f0DjbdXTMEPb52THCCF5qbKkDs28tHHnap5ag4jsdU.cache +0 -0
  94. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/dT/dTb1O_9BwFdhA3VT1UTxY-XIIoAGDHGHVO9bzRUNIfc.cache +0 -0
  95. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/dV/dVTKOfd8qDIHT3VD-4emnl0yAIxcSF1pY0CUESPHwdM.cache +0 -0
  96. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/i0/i0TQIUsntlYrsibtn9YfB3qbI6bj8hLPom8KUfxR078.cache +0 -1
  97. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/jF/jFFXBsyFdv_TiNykX219AHs3Q7dQInYRP_80cAWZsgE.cache +0 -0
  98. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/mX/mXfx3VRudxpXrRx1aejtNA5YHOwND3kwWUfvdXHSors.cache +0 -2
  99. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/nG/nGQXdOLWsP4c926DJJBNXFUE0cKfZynnqN5aQ4T1I48.cache +0 -1
  100. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/oX/oXeqOS7RZb4eFbKrraeQtr6TUrXPTueLN_Crp7S0RLE.cache +0 -1
  101. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/p2/p27Ube4R6tciXRc0F8lpz6wUzmXIPxwqz7dKaUYVVuc.cache +0 -1
  102. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/pv/pv6tV3CDkIAmLXdU8EPLlNEkXAKJPufVD4VP30o4fWo.cache +0 -2
  103. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/q6/q6BYa32YJF11eGVapO4ouNl6gayPIsARgMavlzZmoi0.cache +0 -2
  104. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/r5/r5draRYO72lGMZZKpqYbscAWxAawJVG7uO0uyx3iw24.cache +0 -1
  105. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/r7/r7kGQJTsdrqs3i-prYAVnngsoc6uAtrjLTULTJdgy9g.cache +0 -1
  106. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/rI/rITk_65QtUwq61bjRPAksGeJxbLUFfz-sFPnQiZPHjw.cache +0 -3
  107. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/rR/rRS9OkVGJ9Wvs1fwZH-raqD4sXkbV8WmlLGIibYpZmI.cache +0 -0
  108. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/u9/u9nsXMBU9hA4UnH4SDHgk19ev_JNeeiS1-EZDrgStCI.cache +0 -1
  109. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/un/unZXcRqhGJwHvVWJmJ1rTizBZq6H5jF28E5-FHyTYL4.cache +0 -1
  110. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/wP/wP-1NwhQC0Sp_5PHpwAI7N0_N99vLNy0TA2FcMd6zgE.cache +0 -0
  111. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/x7/x7KkTV3ibfIEysLB_ug5bfmnn2VLV_BldukPR3EoPBk.cache +0 -2
  112. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/xr/xrDdkyCzfXr-pIE8gfvD8iFiWPuq9EwuZIl-uU9s0_o.cache +0 -1
  113. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/yc/yc3EXb1cvVLmwnk8aQN89bgVFeuwsVz2k2p0mvC2c3c.cache +0 -1
  114. data/spec/factories/group.rb +0 -8
  115. data/spec/factories/handler.rb +0 -11
  116. data/spec/factories/handler_translation.rb +0 -13
  117. data/spec/factories/translation_key.rb +0 -8
  118. data/spec/factories/translation_value.rb +0 -9
  119. data/spec/factories/user.rb +0 -7
  120. data/spec/features/clean_ups_spec.rb +0 -38
  121. data/spec/features/duplicates_spec.rb +0 -61
  122. data/spec/features/movals_spec.rb +0 -60
  123. data/spec/handlers/file_handler_spec.rb +0 -103
  124. data/spec/handlers/model_handler_spec.rb +0 -40
  125. data/spec/handlers/validations_handler_spec.rb +0 -31
  126. data/spec/handlers_spec.rb +0 -9
  127. data/spec/lib/cache_database_generator_spec.rb +0 -59
  128. data/spec/lib/erb_inspector/file_inspector_spec.rb +0 -46
  129. data/spec/lib/erb_inspector/translation_inspector_spec.rb +0 -33
  130. data/spec/lib/erb_inspector_spec.rb +0 -30
  131. data/spec/lib/model_inspector/attribute_spec.rb +0 -18
  132. data/spec/lib/model_inspector_spec.rb +0 -39
  133. data/spec/lib/object_extensions_spec.rb +0 -7
  134. data/spec/lib/translation_migrator_spec.rb +0 -46
  135. data/spec/models/awesome_translations/handler_spec.rb +0 -8
  136. data/spec/models/awesome_translations/translated_value_spec.rb +0 -41
  137. data/spec/models/awesome_translations/translation_spec.rb +0 -54
  138. data/spec/services/test_translate_service_spec.rb +0 -11
  139. data/spec/spec_helper.rb +0 -76
@@ -1,52 +0,0 @@
1
-  (1.0ms) SELECT sqlite_version(*)
2
-  (0.1ms) SELECT sqlite_version(*)
3
-  (0.1ms) DROP TABLE IF EXISTS "roles"
4
-  (5.0ms) CREATE TABLE "roles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "role" varchar, "price_cents" integer)
5
-  (2.9ms) CREATE INDEX "index_roles_on_user_id" ON "roles" ("user_id")
6
-  (0.1ms) DROP TABLE IF EXISTS "users"
7
-  (2.8ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "password" varchar, "age" integer)
8
-  (2.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
9
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
10
-  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES (20150607110245)
11
-  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES
12
- (20141018081559),
13
- (20141018081640);
14
-
15
- 
16
-  (2.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
17
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
18
- TRANSACTION (0.0ms) begin transaction
19
- ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2021-12-30 16:01:09.444330"], ["updated_at", "2021-12-30 16:01:09.444330"]]
20
- TRANSACTION (1.9ms) commit transaction
21
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
22
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]]
23
- TRANSACTION (0.0ms) begin transaction
24
- ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "schema_sha1"], ["value", "2fb15a187a8db3fd34877067601f82a165001b33"], ["created_at", "2021-12-30 16:01:09.448757"], ["updated_at", "2021-12-30 16:01:09.448757"]]
25
- TRANSACTION (1.8ms) commit transaction
26
-  (0.1ms) SELECT sqlite_version(*)
27
-  (0.1ms) DROP TABLE IF EXISTS "roles"
28
-  (2.5ms) CREATE TABLE "roles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "role" varchar, "price_cents" integer)
29
-  (2.3ms) CREATE INDEX "index_roles_on_user_id" ON "roles" ("user_id")
30
-  (0.1ms) DROP TABLE IF EXISTS "users"
31
-  (2.6ms) CREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "password" varchar, "age" integer)
32
-  (2.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
33
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
34
-  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES (20150607110245)
35
-  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES
36
- (20141018081559),
37
- (20141018081640);
38
-
39
- 
40
-  (2.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
41
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
42
- TRANSACTION (0.0ms) begin transaction
43
- ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2021-12-30 16:01:09.471093"], ["updated_at", "2021-12-30 16:01:09.471093"]]
44
- TRANSACTION (1.7ms) commit transaction
45
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
46
- TRANSACTION (0.0ms) begin transaction
47
- ActiveRecord::InternalMetadata Update (0.2ms) UPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ? [["value", "test"], ["updated_at", "2021-12-30 16:01:09.474305"], ["key", "environment"]]
48
- TRANSACTION (1.7ms) commit transaction
49
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "schema_sha1"], ["LIMIT", 1]]
50
- TRANSACTION (0.0ms) begin transaction
51
- ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "schema_sha1"], ["value", "2fb15a187a8db3fd34877067601f82a165001b33"], ["created_at", "2021-12-30 16:01:09.477396"], ["updated_at", "2021-12-30 16:01:09.477396"]]
52
- TRANSACTION (1.8ms) commit transaction