awesome_translations 0.0.53 → 0.0.54

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/awesome_translations/caches_controller.rb +1 -2
  3. data/app/controllers/awesome_translations/clean_ups_controller.rb +1 -2
  4. data/app/controllers/awesome_translations/groups_controller.rb +1 -2
  5. data/app/controllers/awesome_translations/migrations_controller.rb +1 -2
  6. data/app/models/awesome_translations/translated_value.rb +1 -1
  7. data/app/models/awesome_translations/translation.rb +6 -1
  8. data/lib/awesome_translations/cache_database_generator.rb +3 -3
  9. data/lib/awesome_translations/cache_database_generator/translation_key.rb +9 -2
  10. data/lib/awesome_translations/erb_inspector/file_inspector.rb +2 -2
  11. data/lib/awesome_translations/erb_inspector/translation_inspector.rb +1 -1
  12. data/lib/awesome_translations/global_translator.rb +1 -4
  13. data/lib/awesome_translations/handlers/rails_handler.rb +1 -1
  14. data/lib/awesome_translations/version.rb +1 -1
  15. data/spec/dummy/app/controllers/users_controller.rb +3 -6
  16. data/spec/dummy/db/awesome_translations.sqlite3 +0 -0
  17. data/spec/dummy/db/development.sqlite3 +0 -0
  18. data/spec/dummy/db/migrate/20141018081559_create_users.rb +1 -1
  19. data/spec/dummy/db/migrate/20141018081640_create_roles.rb +1 -1
  20. data/spec/dummy/db/migrate/20150607110245_add_price_cents_to_roles.rb +1 -1
  21. data/spec/dummy/db/test.sqlite3 +0 -0
  22. data/spec/dummy/log/development.log +33 -0
  23. data/spec/dummy/log/test.log +581 -0
  24. data/spec/features/clean_ups_spec.rb +6 -1
  25. data/spec/features/duplicates_spec.rb +15 -3
  26. data/spec/features/movals_spec.rb +10 -2
  27. data/spec/models/awesome_translations/translated_value_spec.rb +1 -1
  28. data/spec/models/awesome_translations/translation_spec.rb +5 -5
  29. metadata +31 -31
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2cb30ab2711908a38b94af5821126f5d1d3f0924
4
- data.tar.gz: f1ce0bdd42a55ee75c3b39e32d17c9131f5b8871
3
+ metadata.gz: 6ad247c17d92645066ebd4f24717a50638ac025d
4
+ data.tar.gz: bdbebe1b717199351b917d763ac982bba2b7f235
5
5
  SHA512:
6
- metadata.gz: '023812113dc3cba2f672c109f2f78186a7d7fafe0fba591267d48ee7d599782ec9ee9abe580d164b4bc161950d5fcd3bdfeb7752256a4d7f5d7720cce51d7fdc'
7
- data.tar.gz: 984dd2786cb3c5fda48235f5c27617f7d2cc658d614a6149137fdba3fcdad051635f99a8a96ff29251bb115ea28a8f5f2c7c6fe711aa3d9ebc7ff96fb77c937f
6
+ metadata.gz: 4a6b8b3297f45d1482ed402dd856ee31d9cb81d2cd0c46469020083da643195dbff065ac00f91cc899f4dc154487a32cf4e6c93111d2dbb44dea40a7c75d3c5e
7
+ data.tar.gz: 318c48e725c170b51377e68e31e7149b275f0e3d2a081a0602d02455671da9cb91fb29d2e0b0a2c9b11c0e44fc5e66ac66e7451669dca5a7a0d86720cbe62060
@@ -1,6 +1,5 @@
1
1
  class AwesomeTranslations::CachesController < AwesomeTranslations::ApplicationController
2
- def index
3
- end
2
+ def index; end
4
3
 
5
4
  def create
6
5
  cache_db_generator = AwesomeTranslations::CacheDatabaseGenerator.new(debug: true)
@@ -1,6 +1,5 @@
1
1
  class AwesomeTranslations::CleanUpsController < AwesomeTranslations::ApplicationController
2
- def new
3
- end
2
+ def new; end
4
3
 
5
4
  def create
6
5
  ids = []
@@ -2,8 +2,7 @@ class AwesomeTranslations::GroupsController < AwesomeTranslations::ApplicationCo
2
2
  before_action :set_handler
3
3
  before_action :set_group
4
4
 
5
- def index
6
- end
5
+ def index; end
7
6
 
8
7
  def show
9
8
  @ransack_params = params[:q] || {}
@@ -1,6 +1,5 @@
1
1
  class AwesomeTranslations::MigrationsController < AwesomeTranslations::ApplicationController
2
- def new
3
- end
2
+ def new; end
4
3
 
5
4
  def create
6
5
  params[:m].each do |translation_value_id, check_value|
@@ -36,7 +36,7 @@ class AwesomeTranslations::TranslatedValue
36
36
  FileUtils.mkdir_p(dir) unless File.exist?(dir)
37
37
  File.open(@file, "w") { |fp| fp.write("#{@locale}:\n") } unless File.exist?(@file)
38
38
 
39
- translations = YAML.load(File.read(@file))
39
+ translations = YAML.safe_load(File.read(@file))
40
40
  translations ||= {}
41
41
  translations[@locale.to_s] ||= {}
42
42
 
@@ -119,7 +119,12 @@ class AwesomeTranslations::Translation
119
119
  end
120
120
 
121
121
  def to_s
122
- "<AwesomeTranslations::Translation key=\"#{@key}\" dir=\"#{@dir}\" array_translation?=\"#{array_translation?}\" array_key=\"#{array_key}\" array_no=\"#{array_no}\">"
122
+ "<AwesomeTranslations::Translation " \
123
+ "key=\"#{@key}\" " \
124
+ "dir=\"#{@dir}\" " \
125
+ "array_translation?=\"#{array_translation?}\" " \
126
+ "array_key=\"#{array_key}\" " \
127
+ "array_no=\"#{array_no}\">"
123
128
  end
124
129
 
125
130
  def inspect
@@ -47,7 +47,7 @@ class AwesomeTranslations::CacheDatabaseGenerator
47
47
  def close
48
48
  @initialized = false
49
49
 
50
- @db.close if @db
50
+ @db&.close
51
51
  @db = nil
52
52
 
53
53
  AwesomeTranslations::CacheDatabaseGenerator::Group.db = nil
@@ -140,7 +140,7 @@ class AwesomeTranslations::CacheDatabaseGenerator
140
140
  translation_key.assign_attributes(group_id: group_model.id, handler_id: handler_model.id)
141
141
  translation_key.save!
142
142
 
143
- raise "KEY ERROR: #{translation_key.inspect}" unless translation_key.id.to_i > 0
143
+ raise "KEY ERROR: #{translation_key.inspect}" unless translation_key.id.to_i.positive?
144
144
 
145
145
  @translation_keys_found[translation_key.id] = true
146
146
 
@@ -239,7 +239,7 @@ private
239
239
 
240
240
  translation_key = AwesomeTranslations::CacheDatabaseGenerator::TranslationKey.find_or_create_by!(key: key)
241
241
  @translation_keys_found[translation_key.id] = true
242
- raise "KEY ERROR: #{translation_key.inspect}" unless translation_key.id.to_i > 0
242
+ raise "KEY ERROR: #{translation_key.inspect}" unless translation_key.id.to_i.positive?
243
243
 
244
244
  translation_value = AwesomeTranslations::CacheDatabaseGenerator::TranslationValue.find_or_initialize_by(
245
245
  translation_key_id: translation_key.id,
@@ -2,8 +2,15 @@ class AwesomeTranslations::CacheDatabaseGenerator::TranslationKey < BazaModels::
2
2
  belongs_to :group, foreign_key: "group_id"
3
3
  belongs_to :handler, foreign_key: "handler_id"
4
4
 
5
- has_many :handler_translations, dependent: :destroy, foreign_key: "translation_key_id", class_name: "AwesomeTranslations::CacheDatabaseGenerator::HandlerTranslation"
6
- has_many :translation_values, dependent: :destroy, foreign_key: "translation_key_id", class_name: "AwesomeTranslations::CacheDatabaseGenerator::TranslationValue"
5
+ has_many :handler_translations,
6
+ dependent: :destroy,
7
+ foreign_key: "translation_key_id",
8
+ class_name: "AwesomeTranslations::CacheDatabaseGenerator::HandlerTranslation"
9
+
10
+ has_many :translation_values,
11
+ dependent: :destroy,
12
+ foreign_key: "translation_key_id",
13
+ class_name: "AwesomeTranslations::CacheDatabaseGenerator::TranslationValue"
7
14
 
8
15
  validates_presence_of :group, :handler
9
16
 
@@ -1,7 +1,7 @@
1
1
  class AwesomeTranslations::ErbInspector::FileInspector
2
2
  JS_FILE_EXTS = [".coffee", ".coffee.erb", ".es6", ".es6.erb", ".js", ".js.erb"].freeze
3
- METHOD_NAMES = %w(t controller_t helper_t).freeze
4
- VALID_BEGINNING = '(^|\s+|\(|\{|\[|<%=\s*)'.freeze
3
+ METHOD_NAMES = %w[t controller_t helper_t].freeze
4
+ VALID_BEGINNING = '(^|\s+|\(|\{|\[|<%=\s*|I18n\.)'.freeze
5
5
 
6
6
  attr_reader :root_path, :file_path
7
7
 
@@ -90,7 +90,7 @@ private
90
90
  end
91
91
 
92
92
  def generate_dir
93
- parts = %w(config locales awesome_translations)
93
+ parts = %w[config locales awesome_translations]
94
94
 
95
95
  key_parts = @full_key.split(".").reject(&:blank?)
96
96
  key_parts.pop
@@ -114,10 +114,7 @@ private
114
114
 
115
115
  key_parts = translation_key.split("/")
116
116
  last_key_part = key_parts.pop
117
-
118
- if last_key_part.start_with?("_")
119
- last_key_part = last_key_part[1, last_key_part.length]
120
- end
117
+ last_key_part = last_key_part[1, last_key_part.length] if last_key_part.start_with?("_")
121
118
 
122
119
  key_parts << last_key_part
123
120
  key_parts << call[:method] if controller? && args[:action_in_key] != false
@@ -1,7 +1,7 @@
1
1
  class AwesomeTranslations::Handlers::RailsHandler < AwesomeTranslations::Handlers::BaseHandler
2
2
  def groups
3
3
  ArrayEnumerator.new do |yielder|
4
- groups = %w(date_time errors helpers numbers support)
4
+ groups = ["date_time", "errors", "helpers", "numbers", "support"]
5
5
 
6
6
  groups.each do |group|
7
7
  yielder << AwesomeTranslations::Group.new(
@@ -1,3 +1,3 @@
1
1
  module AwesomeTranslations
2
- VERSION = "0.0.53".freeze
2
+ VERSION = "0.0.54".freeze
3
3
  end
@@ -5,11 +5,9 @@ class UsersController < ApplicationController
5
5
  @users = User.all
6
6
  end
7
7
 
8
- def show
9
- end
8
+ def show; end
10
9
 
11
- def new
12
- end
10
+ def new; end
13
11
 
14
12
  def create
15
13
  if @user.save
@@ -21,8 +19,7 @@ class UsersController < ApplicationController
21
19
  end
22
20
  end
23
21
 
24
- def edit
25
- end
22
+ def edit; end
26
23
 
27
24
  def update
28
25
  if @user.update_attributes(user_params)
Binary file
@@ -1,4 +1,4 @@
1
- class CreateUsers < ActiveRecord::Migration
1
+ class CreateUsers < ActiveRecord::Migration[5.1]
2
2
  def change
3
3
  create_table :users do |t|
4
4
  t.string :email
@@ -1,4 +1,4 @@
1
- class CreateRoles < ActiveRecord::Migration
1
+ class CreateRoles < ActiveRecord::Migration[5.1]
2
2
  def change
3
3
  create_table :roles do |t|
4
4
  t.belongs_to :user
@@ -1,4 +1,4 @@
1
- class AddPriceCentsToRoles < ActiveRecord::Migration
1
+ class AddPriceCentsToRoles < ActiveRecord::Migration[5.1]
2
2
  def change
3
3
  add_column :roles, :price_cents, :integer
4
4
  end
Binary file
@@ -42,3 +42,36 @@
42
42
  ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
43
43
   (0.0ms) begin transaction
44
44
   (0.0ms) commit transaction
45
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
46
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
47
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
48
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
49
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
50
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
51
+  (31.2ms) DROP TABLE IF EXISTS "roles"
52
+  (0.1ms) SELECT sqlite_version(*)
53
+  (17.6ms) CREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "role" varchar, "price_cents" integer)
54
+  (14.1ms) CREATE INDEX "index_roles_on_user_id" ON "roles" ("user_id")
55
+  (24.1ms) DROP TABLE IF EXISTS "users"
56
+  (21.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "password" varchar, "age" integer)
57
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
58
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
59
+  (0.0ms) begin transaction
60
+  (0.0ms) commit transaction
61
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
62
+  (0.0ms) begin transaction
63
+  (0.0ms) commit transaction
64
+  (20.8ms) DROP TABLE IF EXISTS "roles"
65
+  (0.0ms) SELECT sqlite_version(*)
66
+  (18.5ms) CREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "role" varchar, "price_cents" integer)
67
+  (13.1ms) CREATE INDEX "index_roles_on_user_id" ON "roles" ("user_id")
68
+  (18.3ms) DROP TABLE IF EXISTS "users"
69
+  (13.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "password" varchar, "age" integer)
70
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
71
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
72
+  (0.0ms) begin transaction
73
+ SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-01-14 12:55:20.022181"], ["updated_at", "2018-01-14 12:55:20.022181"]]
74
+  (18.3ms) commit transaction
75
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
76
+  (0.0ms) begin transaction
77
+  (0.0ms) commit transaction
@@ -1871,3 +1871,584 @@ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
1871
1871
   (0.0ms) commit transaction
1872
1872
   (0.0ms) begin transaction
1873
1873
   (0.1ms) rollback transaction
1874
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1875
+  (0.1ms) PRAGMA foreign_keys
1876
+  (0.0ms) PRAGMA foreign_keys = OFF
1877
+  (37.3ms) DELETE FROM "ar_internal_metadata";
1878
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1879
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'ar_internal_metadata';
1880
+  (13.4ms) DELETE FROM "roles";
1881
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1882
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'roles';
1883
+  (18.7ms) DELETE FROM "users";
1884
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1885
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
1886
+  (0.0ms) PRAGMA foreign_keys = 1
1887
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
1888
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
1889
+  (0.0ms) begin transaction
1890
+  (0.0ms) commit transaction
1891
+  (0.0ms) begin transaction
1892
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
1893
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
1894
+ Processing by AwesomeTranslations::GroupsController#update_translations_cache as HTML
1895
+ Parameters: {"handler_id"=>"rails_handler", "id"=>"date_time"}
1896
+ Redirected to http://test.host/handlers/rails_handler/groups/date_time
1897
+ Completed 302 Found in 55ms (ActiveRecord: 0.0ms)
1898
+  (0.0ms) rollback transaction
1899
+  (0.0ms) begin transaction
1900
+  (0.0ms) commit transaction
1901
+  (0.0ms) begin transaction
1902
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
1903
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
1904
+ Processing by AwesomeTranslations::GroupsController#update as HTML
1905
+ Parameters: {"t"=>{"activerecord.attributes.user.password"=>"[FILTERED]"}, "handler_id"=>"model_handler", "id"=>"User"}
1906
+ Redirected to http://test.host/handlers/model_handler/groups/User
1907
+ Completed 302 Found in 63ms (ActiveRecord: 0.0ms)
1908
+  (0.0ms) rollback transaction
1909
+  (0.0ms) begin transaction
1910
+  (0.0ms) commit transaction
1911
+  (0.0ms) begin transaction
1912
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
1913
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
1914
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1915
+  (0.1ms) PRAGMA foreign_keys
1916
+  (0.0ms) PRAGMA foreign_keys = OFF
1917
+  (27.3ms) DELETE FROM "ar_internal_metadata";
1918
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1919
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'ar_internal_metadata';
1920
+  (14.5ms) DELETE FROM "roles";
1921
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1922
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'roles';
1923
+  (17.4ms) DELETE FROM "users";
1924
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1925
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
1926
+  (0.0ms) PRAGMA foreign_keys = 1
1927
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
1928
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
1929
+  (0.0ms) begin transaction
1930
+  (0.0ms) commit transaction
1931
+  (0.0ms) begin transaction
1932
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
1933
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
1934
+ Processing by AwesomeTranslations::GroupsController#update_translations_cache as HTML
1935
+ Parameters: {"handler_id"=>"rails_handler", "id"=>"date_time"}
1936
+ Redirected to http://test.host/handlers/rails_handler/groups/date_time
1937
+ Completed 302 Found in 49ms (ActiveRecord: 0.0ms)
1938
+  (0.0ms) rollback transaction
1939
+  (0.0ms) begin transaction
1940
+  (0.0ms) commit transaction
1941
+  (0.0ms) begin transaction
1942
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
1943
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
1944
+ Processing by AwesomeTranslations::GroupsController#update as HTML
1945
+ Parameters: {"t"=>{"activerecord.attributes.user.password"=>"[FILTERED]"}, "handler_id"=>"model_handler", "id"=>"User"}
1946
+ Redirected to http://test.host/handlers/model_handler/groups/User
1947
+ Completed 302 Found in 60ms (ActiveRecord: 0.0ms)
1948
+  (0.0ms) rollback transaction
1949
+  (0.0ms) begin transaction
1950
+  (0.0ms) commit transaction
1951
+  (0.0ms) begin transaction
1952
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
1953
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
1954
+ Processing by AwesomeTranslations::GroupsController#update as HTML
1955
+ Parameters: {"t"=>{"activerecord.attributes.role.role"=>{"da"=>"Rolle", "de"=>"Die type", "en"=>"Role"}}, "handler_id"=>"model_handler", "id"=>"Role"}
1956
+ Redirected to http://test.host/handlers/model_handler/groups/Role
1957
+ Completed 302 Found in 63ms (ActiveRecord: 0.0ms)
1958
+  (0.0ms) rollback transaction
1959
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1960
+  (0.1ms) PRAGMA foreign_keys
1961
+  (0.1ms) PRAGMA foreign_keys = OFF
1962
+  (30.6ms) DELETE FROM "ar_internal_metadata";
1963
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1964
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'ar_internal_metadata';
1965
+  (16.4ms) DELETE FROM "roles";
1966
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1967
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'roles';
1968
+  (20.2ms) DELETE FROM "users";
1969
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1970
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
1971
+  (0.0ms) PRAGMA foreign_keys = 1
1972
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
1973
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
1974
+  (0.1ms) begin transaction
1975
+  (0.0ms) commit transaction
1976
+  (0.0ms) begin transaction
1977
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
1978
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
1979
+ Processing by AwesomeTranslations::GroupsController#update_translations_cache as HTML
1980
+ Parameters: {"handler_id"=>"rails_handler", "id"=>"date_time"}
1981
+ Redirected to http://test.host/handlers/rails_handler/groups/date_time
1982
+ Completed 302 Found in 49ms (ActiveRecord: 0.0ms)
1983
+  (0.0ms) rollback transaction
1984
+  (0.0ms) begin transaction
1985
+  (0.0ms) commit transaction
1986
+  (0.0ms) begin transaction
1987
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
1988
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
1989
+ Processing by AwesomeTranslations::GroupsController#update as HTML
1990
+ Parameters: {"t"=>{"activerecord.attributes.user.password"=>"[FILTERED]"}, "handler_id"=>"model_handler", "id"=>"User"}
1991
+ Redirected to http://test.host/handlers/model_handler/groups/User
1992
+ Completed 302 Found in 94ms (ActiveRecord: 0.0ms)
1993
+  (0.0ms) rollback transaction
1994
+  (0.0ms) begin transaction
1995
+  (0.0ms) commit transaction
1996
+  (0.0ms) begin transaction
1997
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
1998
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
1999
+ Processing by AwesomeTranslations::GroupsController#update as HTML
2000
+ Parameters: {"t"=>{"activerecord.attributes.role.role"=>{"da"=>"Rolle", "de"=>"Die type", "en"=>"Role"}}, "handler_id"=>"model_handler", "id"=>"Role"}
2001
+ Redirected to http://test.host/handlers/model_handler/groups/Role
2002
+ Completed 302 Found in 95ms (ActiveRecord: 0.0ms)
2003
+  (0.1ms) rollback transaction
2004
+  (0.0ms) begin transaction
2005
+  (0.0ms) commit transaction
2006
+  (0.0ms) begin transaction
2007
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
2008
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
2009
+ Processing by AwesomeTranslations::GroupsController#update as HTML
2010
+ Parameters: {"t"=>{"date.day_names"=>{"1"=>{"da"=>"Mandag"}, "4"=>{"da"=>"Torsdag"}}}, "handler_id"=>"rails_handler", "id"=>"date_time"}
2011
+ Redirected to http://test.host/handlers/rails_handler/groups/date_time
2012
+ Completed 302 Found in 113ms (ActiveRecord: 0.0ms)
2013
+  (0.0ms) rollback transaction
2014
+  (0.1ms) begin transaction
2015
+  (0.0ms) commit transaction
2016
+  (0.0ms) begin transaction
2017
+ Processing by AwesomeTranslations::HandlersController#update_cache as HTML
2018
+ Redirected to http://test.host/handlers
2019
+ Completed 302 Found in 102ms (ActiveRecord: 0.0ms)
2020
+  (0.0ms) rollback transaction
2021
+  (0.0ms) begin transaction
2022
+  (0.0ms) commit transaction
2023
+  (0.1ms) begin transaction
2024
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
2025
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
2026
+ Processing by AwesomeTranslations::HandlersController#update_groups_cache as HTML
2027
+ Parameters: {"id"=>"rails_handler"}
2028
+ Redirected to http://test.host/handlers/rails_handler
2029
+ Completed 302 Found in 6ms (ActiveRecord: 0.0ms)
2030
+  (0.0ms) rollback transaction
2031
+  (0.0ms) begin transaction
2032
+  (0.0ms) commit transaction
2033
+  (0.0ms) begin transaction
2034
+ Processing by AwesomeTranslations::HandlersController#index as HTML
2035
+ Rendering /home/dev/Rails/awesome_translations/app/views/awesome_translations/handlers/index.html.erb within layouts/awesome_translations/application
2036
+ Rendered /home/dev/Rails/awesome_translations/app/views/awesome_translations/handlers/index.html.erb within layouts/awesome_translations/application (2.7ms)
2037
+ Completed 200 OK in 143ms (Views: 142.1ms | ActiveRecord: 0.0ms)
2038
+  (0.0ms) rollback transaction
2039
+  (0.0ms) begin transaction
2040
+  (0.0ms) commit transaction
2041
+  (0.0ms) begin transaction
2042
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
2043
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
2044
+ Processing by AwesomeTranslations::HandlersController#show as HTML
2045
+ Parameters: {"id"=>"model_handler"}
2046
+ Rendering /home/dev/Rails/awesome_translations/app/views/awesome_translations/handlers/show.html.erb within layouts/awesome_translations/application
2047
+ Rendered /home/dev/Rails/awesome_translations/app/views/awesome_translations/handlers/show.html.erb within layouts/awesome_translations/application (73.2ms)
2048
+ Completed 200 OK in 85ms (Views: 75.0ms | ActiveRecord: 0.0ms)
2049
+  (0.0ms) rollback transaction
2050
+  (0.0ms) begin transaction
2051
+  (0.0ms) commit transaction
2052
+  (0.0ms) begin transaction
2053
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
2054
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
2055
+ Processing by AwesomeTranslations::HandlersController#show as HTML
2056
+ Parameters: {"with_missing_translations"=>"only_with", "id"=>"model_handler"}
2057
+ Rendering /home/dev/Rails/awesome_translations/app/views/awesome_translations/handlers/show.html.erb within layouts/awesome_translations/application
2058
+ Rendered /home/dev/Rails/awesome_translations/app/views/awesome_translations/handlers/show.html.erb within layouts/awesome_translations/application (4.8ms)
2059
+ Completed 200 OK in 14ms (Views: 5.9ms | ActiveRecord: 0.0ms)
2060
+  (0.0ms) rollback transaction
2061
+  (0.0ms) begin transaction
2062
+  (0.0ms) commit transaction
2063
+  (0.0ms) begin transaction
2064
+  (0.0ms) SAVEPOINT active_record_1
2065
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "mruiz@wikivu.net"], ["LIMIT", 1]]
2066
+ SQL (0.1ms) INSERT INTO "users" ("email", "password", "age") VALUES (?, ?, ?) [["email", "mruiz@wikivu.net"], ["password", "mauris laoreet"], ["age", 7]]
2067
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2068
+ Processing by UsersController#update as HTML
2069
+ Parameters: {"user"=>{"email"=>"newemail@example.com"}, "id"=>"1"}
2070
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
2071
+  (0.0ms) SAVEPOINT active_record_1
2072
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? AND ("users"."id" != ?) LIMIT ? [["email", "newemail@example.com"], ["id", 1], ["LIMIT", 1]]
2073
+ SQL (0.1ms) UPDATE "users" SET "email" = ? WHERE "users"."id" = ? [["email", "newemail@example.com"], ["id", 1]]
2074
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2075
+ Redirected to http://test.host/users/1
2076
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
2077
+  (0.1ms) rollback transaction
2078
+  (0.0ms) begin transaction
2079
+  (0.0ms) commit transaction
2080
+  (0.0ms) begin transaction
2081
+ Processing by AwesomeTranslations::CleanUpsController#new as HTML
2082
+ Rendering /home/dev/Rails/awesome_translations/app/views/awesome_translations/clean_ups/new.html.erb within layouts/awesome_translations/application
2083
+ Rendered /home/dev/Rails/awesome_translations/app/views/awesome_translations/clean_ups/new.html.erb within layouts/awesome_translations/application (1.5ms)
2084
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
2085
+ Processing by AwesomeTranslations::CleanUpsController#create as HTML
2086
+ Parameters: {"utf8"=>"✓", "c"=>{"1"=>"1"}, "commit"=>"Delete"}
2087
+ Redirected to http://www.example.com/clean_ups/new
2088
+ Completed 302 Found in 20ms (ActiveRecord: 0.0ms)
2089
+ Processing by AwesomeTranslations::CleanUpsController#new as HTML
2090
+ Rendering /home/dev/Rails/awesome_translations/app/views/awesome_translations/clean_ups/new.html.erb within layouts/awesome_translations/application
2091
+ Rendered /home/dev/Rails/awesome_translations/app/views/awesome_translations/clean_ups/new.html.erb within layouts/awesome_translations/application (0.6ms)
2092
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
2093
+  (0.0ms) rollback transaction
2094
+  (0.0ms) begin transaction
2095
+  (0.0ms) commit transaction
2096
+  (0.0ms) begin transaction
2097
+ Processing by AwesomeTranslations::DuplicatesController#index as HTML
2098
+ Rendering /home/dev/Rails/awesome_translations/app/views/awesome_translations/duplicates/index.html.erb within layouts/awesome_translations/application
2099
+ Rendered /home/dev/Rails/awesome_translations/app/views/awesome_translations/duplicates/index.html.erb within layouts/awesome_translations/application (1.8ms)
2100
+ Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms)
2101
+  (0.0ms) rollback transaction
2102
+  (0.0ms) begin transaction
2103
+  (0.1ms) commit transaction
2104
+  (0.0ms) begin transaction
2105
+ Processing by AwesomeTranslations::DuplicatesController#index as HTML
2106
+ Rendering /home/dev/Rails/awesome_translations/app/views/awesome_translations/duplicates/index.html.erb within layouts/awesome_translations/application
2107
+ Rendered /home/dev/Rails/awesome_translations/app/views/awesome_translations/duplicates/index.html.erb within layouts/awesome_translations/application (1.3ms)
2108
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
2109
+ Processing by AwesomeTranslations::DuplicatesController#create as HTML
2110
+ Parameters: {"utf8"=>"✓", "d"=>{"2"=>"1"}, "commit"=>"Delete duplicates"}
2111
+ Redirected to http://www.example.com/duplicates
2112
+ Completed 302 Found in 20ms (ActiveRecord: 0.0ms)
2113
+ Processing by AwesomeTranslations::DuplicatesController#index as HTML
2114
+ Rendering /home/dev/Rails/awesome_translations/app/views/awesome_translations/duplicates/index.html.erb within layouts/awesome_translations/application
2115
+ Rendered /home/dev/Rails/awesome_translations/app/views/awesome_translations/duplicates/index.html.erb within layouts/awesome_translations/application (0.5ms)
2116
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
2117
+  (0.0ms) rollback transaction
2118
+  (0.0ms) begin transaction
2119
+  (0.0ms) commit transaction
2120
+  (0.0ms) begin transaction
2121
+ Processing by AwesomeTranslations::MovalsController#index as HTML
2122
+ Rendering /home/dev/Rails/awesome_translations/app/views/awesome_translations/movals/index.html.erb within layouts/awesome_translations/application
2123
+ Rendered /home/dev/Rails/awesome_translations/app/views/awesome_translations/movals/index.html.erb within layouts/awesome_translations/application (1.8ms)
2124
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)
2125
+  (0.0ms) rollback transaction
2126
+  (0.0ms) begin transaction
2127
+  (0.0ms) commit transaction
2128
+  (0.0ms) begin transaction
2129
+ Processing by AwesomeTranslations::MovalsController#index as HTML
2130
+ Rendering /home/dev/Rails/awesome_translations/app/views/awesome_translations/movals/index.html.erb within layouts/awesome_translations/application
2131
+ Rendered /home/dev/Rails/awesome_translations/app/views/awesome_translations/movals/index.html.erb within layouts/awesome_translations/application (1.4ms)
2132
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
2133
+ Processing by AwesomeTranslations::MovalsController#create as HTML
2134
+ Parameters: {"utf8"=>"✓", "m"=>{"1"=>"1"}, "commit"=>"Move"}
2135
+ Redirected to http://www.example.com/movals
2136
+ Completed 302 Found in 20ms (ActiveRecord: 0.0ms)
2137
+ Processing by AwesomeTranslations::MovalsController#index as HTML
2138
+ Rendering /home/dev/Rails/awesome_translations/app/views/awesome_translations/movals/index.html.erb within layouts/awesome_translations/application
2139
+ Rendered /home/dev/Rails/awesome_translations/app/views/awesome_translations/movals/index.html.erb within layouts/awesome_translations/application (0.4ms)
2140
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
2141
+  (0.0ms) rollback transaction
2142
+  (0.0ms) begin transaction
2143
+  (0.0ms) commit transaction
2144
+  (0.0ms) begin transaction
2145
+  (0.1ms) rollback transaction
2146
+  (0.0ms) begin transaction
2147
+  (0.0ms) commit transaction
2148
+  (0.1ms) begin transaction
2149
+  (0.1ms) rollback transaction
2150
+  (0.0ms) begin transaction
2151
+  (0.0ms) commit transaction
2152
+  (0.0ms) begin transaction
2153
+  (0.1ms) rollback transaction
2154
+  (0.0ms) begin transaction
2155
+  (0.0ms) commit transaction
2156
+  (0.0ms) begin transaction
2157
+  (0.1ms) rollback transaction
2158
+  (0.0ms) begin transaction
2159
+  (0.0ms) commit transaction
2160
+  (0.0ms) begin transaction
2161
+  (0.1ms) rollback transaction
2162
+  (0.0ms) begin transaction
2163
+  (0.0ms) commit transaction
2164
+  (0.0ms) begin transaction
2165
+  (0.1ms) rollback transaction
2166
+  (0.0ms) begin transaction
2167
+  (0.0ms) commit transaction
2168
+  (0.0ms) begin transaction
2169
+  (0.0ms) rollback transaction
2170
+  (0.0ms) begin transaction
2171
+  (0.0ms) commit transaction
2172
+  (0.0ms) begin transaction
2173
+  (0.0ms) rollback transaction
2174
+  (0.0ms) begin transaction
2175
+  (0.0ms) commit transaction
2176
+  (0.0ms) begin transaction
2177
+  (0.0ms) rollback transaction
2178
+  (0.0ms) begin transaction
2179
+  (0.0ms) commit transaction
2180
+  (0.0ms) begin transaction
2181
+  (0.1ms) rollback transaction
2182
+  (0.0ms) begin transaction
2183
+  (0.0ms) commit transaction
2184
+  (0.0ms) begin transaction
2185
+  (0.1ms) rollback transaction
2186
+  (0.0ms) begin transaction
2187
+  (0.0ms) commit transaction
2188
+  (0.0ms) begin transaction
2189
+  (0.0ms) rollback transaction
2190
+  (0.0ms) begin transaction
2191
+  (0.0ms) commit transaction
2192
+  (0.0ms) begin transaction
2193
+  (0.0ms) rollback transaction
2194
+  (0.0ms) begin transaction
2195
+  (0.0ms) commit transaction
2196
+  (0.0ms) begin transaction
2197
+  (0.0ms) rollback transaction
2198
+  (0.0ms) begin transaction
2199
+  (0.0ms) commit transaction
2200
+  (0.0ms) begin transaction
2201
+  (0.0ms) rollback transaction
2202
+  (0.1ms) begin transaction
2203
+  (0.0ms) commit transaction
2204
+  (0.0ms) begin transaction
2205
+  (0.1ms) rollback transaction
2206
+  (0.0ms) begin transaction
2207
+  (0.0ms) commit transaction
2208
+  (0.0ms) begin transaction
2209
+  (0.1ms) rollback transaction
2210
+  (0.1ms) begin transaction
2211
+  (0.0ms) commit transaction
2212
+  (0.0ms) begin transaction
2213
+  (0.1ms) rollback transaction
2214
+  (0.0ms) begin transaction
2215
+  (0.0ms) commit transaction
2216
+  (0.0ms) begin transaction
2217
+  (0.0ms) rollback transaction
2218
+  (0.0ms) begin transaction
2219
+  (0.0ms) commit transaction
2220
+  (0.0ms) begin transaction
2221
+  (0.0ms) rollback transaction
2222
+  (0.0ms) begin transaction
2223
+  (0.0ms) commit transaction
2224
+  (0.0ms) begin transaction
2225
+  (0.1ms) rollback transaction
2226
+  (0.0ms) begin transaction
2227
+  (0.0ms) commit transaction
2228
+  (0.0ms) begin transaction
2229
+  (0.0ms) rollback transaction
2230
+  (0.0ms) begin transaction
2231
+  (0.0ms) commit transaction
2232
+  (0.0ms) begin transaction
2233
+  (0.1ms) rollback transaction
2234
+  (0.0ms) begin transaction
2235
+  (0.0ms) commit transaction
2236
+  (0.0ms) begin transaction
2237
+  (0.0ms) rollback transaction
2238
+  (0.0ms) begin transaction
2239
+  (0.0ms) commit transaction
2240
+  (0.0ms) begin transaction
2241
+  (0.0ms) rollback transaction
2242
+  (0.0ms) begin transaction
2243
+  (0.0ms) commit transaction
2244
+  (0.0ms) begin transaction
2245
+  (0.1ms) rollback transaction
2246
+  (0.0ms) begin transaction
2247
+  (0.0ms) commit transaction
2248
+  (0.0ms) begin transaction
2249
+  (0.1ms) rollback transaction
2250
+  (0.1ms) begin transaction
2251
+  (0.0ms) commit transaction
2252
+  (0.0ms) begin transaction
2253
+  (0.0ms) rollback transaction
2254
+  (0.0ms) begin transaction
2255
+  (0.0ms) commit transaction
2256
+  (0.0ms) begin transaction
2257
+  (0.0ms) rollback transaction
2258
+  (0.0ms) begin transaction
2259
+  (0.0ms) commit transaction
2260
+  (0.0ms) begin transaction
2261
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
2262
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
2263
+  (0.0ms) rollback transaction
2264
+  (0.0ms) begin transaction
2265
+  (0.0ms) commit transaction
2266
+  (0.0ms) begin transaction
2267
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
2268
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
2269
+  (0.0ms) rollback transaction
2270
+  (0.0ms) begin transaction
2271
+  (0.0ms) commit transaction
2272
+  (0.0ms) begin transaction
2273
+  (0.0ms) rollback transaction
2274
+  (0.0ms) begin transaction
2275
+  (0.0ms) commit transaction
2276
+  (0.0ms) begin transaction
2277
+  (0.1ms) rollback transaction
2278
+  (0.1ms) begin transaction
2279
+  (0.0ms) commit transaction
2280
+  (0.0ms) begin transaction
2281
+  (0.1ms) rollback transaction
2282
+  (0.1ms) begin transaction
2283
+  (0.0ms) commit transaction
2284
+  (0.0ms) begin transaction
2285
+  (0.0ms) rollback transaction
2286
+  (0.0ms) begin transaction
2287
+  (0.0ms) commit transaction
2288
+  (0.0ms) begin transaction
2289
+  (0.1ms) rollback transaction
2290
+  (0.0ms) begin transaction
2291
+  (0.0ms) commit transaction
2292
+  (0.0ms) begin transaction
2293
+  (0.0ms) rollback transaction
2294
+  (0.1ms) begin transaction
2295
+  (0.0ms) commit transaction
2296
+  (0.0ms) begin transaction
2297
+  (0.0ms) rollback transaction
2298
+  (0.0ms) begin transaction
2299
+  (0.0ms) commit transaction
2300
+  (0.0ms) begin transaction
2301
+  (0.0ms) rollback transaction
2302
+  (0.0ms) begin transaction
2303
+  (0.1ms) commit transaction
2304
+  (0.0ms) begin transaction
2305
+  (0.1ms) rollback transaction
2306
+  (0.1ms) begin transaction
2307
+  (0.0ms) commit transaction
2308
+  (0.0ms) begin transaction
2309
+  (0.0ms) rollback transaction
2310
+  (0.1ms) begin transaction
2311
+  (0.0ms) commit transaction
2312
+  (0.0ms) begin transaction
2313
+  (0.1ms) rollback transaction
2314
+  (0.1ms) begin transaction
2315
+  (0.0ms) commit transaction
2316
+  (0.0ms) begin transaction
2317
+  (0.1ms) rollback transaction
2318
+  (0.0ms) begin transaction
2319
+  (0.0ms) commit transaction
2320
+  (0.0ms) begin transaction
2321
+  (0.0ms) rollback transaction
2322
+  (0.0ms) begin transaction
2323
+  (0.0ms) commit transaction
2324
+  (0.0ms) begin transaction
2325
+  (0.1ms) rollback transaction
2326
+  (0.0ms) begin transaction
2327
+  (0.0ms) commit transaction
2328
+  (0.0ms) begin transaction
2329
+  (0.1ms) rollback transaction
2330
+  (0.0ms) begin transaction
2331
+  (0.0ms) commit transaction
2332
+  (0.0ms) begin transaction
2333
+  (0.1ms) rollback transaction
2334
+  (0.0ms) begin transaction
2335
+  (0.0ms) commit transaction
2336
+  (0.0ms) begin transaction
2337
+  (0.1ms) rollback transaction
2338
+  (0.0ms) begin transaction
2339
+  (0.0ms) commit transaction
2340
+  (0.0ms) begin transaction
2341
+  (0.0ms) rollback transaction
2342
+  (0.0ms) begin transaction
2343
+  (0.0ms) commit transaction
2344
+  (0.0ms) begin transaction
2345
+  (0.0ms) rollback transaction
2346
+  (0.1ms) begin transaction
2347
+  (0.0ms) commit transaction
2348
+  (0.0ms) begin transaction
2349
+  (0.1ms) rollback transaction
2350
+  (0.0ms) begin transaction
2351
+  (0.0ms) commit transaction
2352
+  (0.0ms) begin transaction
2353
+  (0.1ms) rollback transaction
2354
+  (0.0ms) begin transaction
2355
+  (0.0ms) commit transaction
2356
+  (0.0ms) begin transaction
2357
+  (0.1ms) rollback transaction
2358
+  (0.1ms) begin transaction
2359
+  (0.0ms) commit transaction
2360
+  (0.0ms) begin transaction
2361
+  (0.0ms) rollback transaction
2362
+  (0.0ms) begin transaction
2363
+  (0.0ms) commit transaction
2364
+  (0.0ms) begin transaction
2365
+  (0.1ms) rollback transaction
2366
+  (0.0ms) begin transaction
2367
+  (0.1ms) commit transaction
2368
+  (0.0ms) begin transaction
2369
+  (0.0ms) rollback transaction
2370
+  (0.0ms) begin transaction
2371
+  (0.0ms) commit transaction
2372
+  (0.0ms) begin transaction
2373
+  (0.1ms) rollback transaction
2374
+  (0.0ms) begin transaction
2375
+  (0.0ms) commit transaction
2376
+  (0.0ms) begin transaction
2377
+  (0.1ms) rollback transaction
2378
+  (0.0ms) begin transaction
2379
+  (0.0ms) commit transaction
2380
+  (0.0ms) begin transaction
2381
+  (0.1ms) rollback transaction
2382
+  (0.1ms) begin transaction
2383
+  (0.0ms) commit transaction
2384
+  (0.0ms) begin transaction
2385
+  (0.1ms) rollback transaction
2386
+  (0.0ms) begin transaction
2387
+  (0.0ms) commit transaction
2388
+  (0.0ms) begin transaction
2389
+  (0.1ms) rollback transaction
2390
+  (0.0ms) begin transaction
2391
+  (0.0ms) commit transaction
2392
+  (0.0ms) begin transaction
2393
+  (0.1ms) rollback transaction
2394
+  (0.0ms) begin transaction
2395
+  (0.0ms) commit transaction
2396
+  (0.0ms) begin transaction
2397
+  (0.0ms) rollback transaction
2398
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2399
+  (0.1ms) PRAGMA foreign_keys
2400
+  (0.2ms) PRAGMA foreign_keys = OFF
2401
+  (41.8ms) DELETE FROM "ar_internal_metadata";
2402
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2403
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'ar_internal_metadata';
2404
+  (19.9ms) DELETE FROM "roles";
2405
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2406
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'roles';
2407
+  (18.2ms) DELETE FROM "users";
2408
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2409
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'users';
2410
+  (0.0ms) PRAGMA foreign_keys = 1
2411
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
2412
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
2413
+  (0.1ms) begin transaction
2414
+  (0.0ms) commit transaction
2415
+  (0.0ms) begin transaction
2416
+  (0.0ms) rollback transaction
2417
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2418
+  (0.1ms) PRAGMA foreign_keys
2419
+  (0.0ms) PRAGMA foreign_keys = OFF
2420
+  (34.0ms) DELETE FROM "ar_internal_metadata";
2421
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2422
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'ar_internal_metadata';
2423
+  (16.1ms) DELETE FROM "roles";
2424
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2425
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'roles';
2426
+  (15.9ms) DELETE FROM "users";
2427
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2428
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
2429
+  (0.0ms) PRAGMA foreign_keys = 1
2430
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
2431
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
2432
+  (0.0ms) begin transaction
2433
+  (0.0ms) commit transaction
2434
+  (0.0ms) begin transaction
2435
+  (0.0ms) rollback transaction
2436
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2437
+  (0.1ms) PRAGMA foreign_keys
2438
+  (0.0ms) PRAGMA foreign_keys = OFF
2439
+  (34.9ms) DELETE FROM "ar_internal_metadata";
2440
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2441
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'ar_internal_metadata';
2442
+  (21.5ms) DELETE FROM "roles";
2443
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2444
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'roles';
2445
+  (17.9ms) DELETE FROM "users";
2446
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2447
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
2448
+  (0.0ms) PRAGMA foreign_keys = 1
2449
+ Unhandeled validator: ActiveModel::Validations::NumericalityValidator
2450
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
2451
+  (0.0ms) begin transaction
2452
+  (0.0ms) commit transaction
2453
+  (0.0ms) begin transaction
2454
+  (0.0ms) rollback transaction
@@ -3,7 +3,12 @@ require "spec_helper"
3
3
  describe AwesomeTranslations::CleanUpsController do
4
4
  let!(:original_file_path) { translation_value.file_path }
5
5
  let!(:translation_key) { create :translation_key, key: "some.key" }
6
- let!(:translation_value) { create :translation_value, translation_key: translation_key, locale: "da", file_path: "#{Rails.root}/config/locales/awesome_translations/some_file.yml" }
6
+ let!(:translation_value) do
7
+ create :translation_value,
8
+ translation_key: translation_key,
9
+ locale: "da",
10
+ file_path: "#{Rails.root}/config/locales/awesome_translations/some_file.yml"
11
+ end
7
12
  let(:content) do
8
13
  {
9
14
  "da" => {
@@ -1,10 +1,22 @@
1
1
  require "spec_helper"
2
2
 
3
3
  describe AwesomeTranslations::DuplicatesController do
4
- let!(:handler_translation) { create :handler_translation, translation_key: translation_key, dir: Rails.root.join("config", "locales", "some", "right", "path") }
4
+ let!(:handler_translation) do
5
+ create :handler_translation,
6
+ translation_key: translation_key,
7
+ dir: Rails.root.join("config", "locales", "some", "right", "path")
8
+ end
5
9
  let!(:translation_key) { create :translation_key, key: "some.key" }
6
- let!(:translation_value) { create :translation_value, translation_key: translation_key, file_path: Rails.root.join("config", "locales", "some", "right", "path", "en.yml") }
7
- let!(:translation_value_duplicate) { create :translation_value, translation_key: translation_key, file_path: Rails.root.join("config", "locales", "some", "wrong", "path", "en.yml") }
10
+ let!(:translation_value) do
11
+ create :translation_value,
12
+ translation_key: translation_key,
13
+ file_path: Rails.root.join("config", "locales", "some", "right", "path", "en.yml")
14
+ end
15
+ let!(:translation_value_duplicate) do
16
+ create :translation_value,
17
+ translation_key: translation_key,
18
+ file_path: Rails.root.join("config", "locales", "some", "wrong", "path", "en.yml")
19
+ end
8
20
 
9
21
  before do
10
22
  dir_path = File.dirname(translation_value_duplicate.file_path)
@@ -1,9 +1,17 @@
1
1
  require "spec_helper"
2
2
 
3
3
  describe AwesomeTranslations::MovalsController do
4
- let!(:handler_translation) { create :handler_translation, translation_key: translation_key, dir: Rails.root.join("config", "locales", "some", "right", "path") }
4
+ let!(:handler_translation) do
5
+ create :handler_translation,
6
+ translation_key: translation_key,
7
+ dir: Rails.root.join("config", "locales", "some", "right", "path")
8
+ end
5
9
  let!(:translation_key) { create :translation_key, key: "some.key" }
6
- let!(:translation_value) { create :translation_value, translation_key: translation_key, file_path: Rails.root.join("config", "locales", "some", "wrong", "path", "en.yml") }
10
+ let!(:translation_value) do
11
+ create :translation_value,
12
+ translation_key: translation_key,
13
+ file_path: Rails.root.join("config", "locales", "some", "wrong", "path", "en.yml")
14
+ end
7
15
 
8
16
  let!(:handler_translation_right_path) { create :handler_translation, translation_key: translation_key_right_path, dir: "/some/path" }
9
17
  let!(:translation_key_right_path) { create :translation_key, key: "some.right.key" }
@@ -35,7 +35,7 @@ describe AwesomeTranslations::TranslatedValue do
35
35
  translated_value.value = "new test"
36
36
  translated_value.save!
37
37
 
38
- translations = YAML.load(File.read(test_file_path))
38
+ translations = YAML.safe_load(File.read(test_file_path))
39
39
 
40
40
  expect(translations["da"]["activerecord"]["attributes"]["test_model"]["test"]).to eq "new test"
41
41
  expect(translations["da"]["activerecord"]["attributes"]["test_model"]["other_translation"]).to eq "En anden"
@@ -15,19 +15,19 @@ describe AwesomeTranslations::Translation do
15
15
  )
16
16
  end
17
17
 
18
- it '#array_key' do
18
+ it "#array_key" do
19
19
  expect(day_names_monday_translation.array_key).to eq "date.day_names"
20
20
  end
21
21
 
22
- it '#array_translation?' do
22
+ it "#array_translation?" do
23
23
  expect(day_names_monday_translation.array_translation?).to eq true
24
24
  end
25
25
 
26
- it '#array_no' do
26
+ it "#array_no" do
27
27
  expect(day_names_monday_translation.array_no).to eq 1
28
28
  end
29
29
 
30
- describe '#value' do
30
+ describe "#value" do
31
31
  it "returns correct value when it is an array translation" do
32
32
  expect(day_names_monday_translation.value(locale: "en")).to eq "Monday"
33
33
  end
@@ -37,7 +37,7 @@ describe AwesomeTranslations::Translation do
37
37
  end
38
38
  end
39
39
 
40
- describe '#value_for?' do
40
+ describe "#value_for?" do
41
41
  it "returns correct value when it is an array translation" do
42
42
  expect(day_names_monday_translation.value_for?("en")).to eq true
43
43
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awesome_translations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.53
4
+ version: 0.0.54
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kasper Johansen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-02 00:00:00.000000000 Z
11
+ date: 2018-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: active-record-transactioner
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.0.7
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 0.0.7
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: array_enumerator
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -25,47 +39,47 @@ dependencies:
25
39
  - !ruby/object:Gem::Version
26
40
  version: 0.0.10
27
41
  - !ruby/object:Gem::Dependency
28
- name: rails
42
+ name: auto_autoloader
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - ">="
32
46
  - !ruby/object:Gem::Version
33
- version: 5.0.0
47
+ version: 0.0.4
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - ">="
39
53
  - !ruby/object:Gem::Version
40
- version: 5.0.0
54
+ version: 0.0.4
41
55
  - !ruby/object:Gem::Dependency
42
- name: string-cases
56
+ name: baza
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
59
  - - ">="
46
60
  - !ruby/object:Gem::Version
47
- version: 0.0.3
61
+ version: 0.0.29
48
62
  type: :runtime
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
66
  - - ">="
53
67
  - !ruby/object:Gem::Version
54
- version: 0.0.3
68
+ version: 0.0.29
55
69
  - !ruby/object:Gem::Dependency
56
- name: baza
70
+ name: baza_migrations
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
73
  - - ">="
60
74
  - !ruby/object:Gem::Version
61
- version: 0.0.29
75
+ version: 0.0.1
62
76
  type: :runtime
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
80
  - - ">="
67
81
  - !ruby/object:Gem::Version
68
- version: 0.0.29
82
+ version: 0.0.1
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: baza_models
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -81,19 +95,19 @@ dependencies:
81
95
  - !ruby/object:Gem::Version
82
96
  version: 0.0.10
83
97
  - !ruby/object:Gem::Dependency
84
- name: baza_migrations
98
+ name: rails
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
101
  - - ">="
88
102
  - !ruby/object:Gem::Version
89
- version: 0.0.1
103
+ version: 5.0.0
90
104
  type: :runtime
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
108
  - - ">="
95
109
  - !ruby/object:Gem::Version
96
- version: 0.0.1
110
+ version: 5.0.0
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: sass-rails
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -137,33 +151,19 @@ dependencies:
137
151
  - !ruby/object:Gem::Version
138
152
  version: 0.0.18
139
153
  - !ruby/object:Gem::Dependency
140
- name: auto_autoloader
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: 0.0.4
146
- type: :runtime
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: 0.0.4
153
- - !ruby/object:Gem::Dependency
154
- name: active-record-transactioner
154
+ name: string-cases
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: 0.0.7
159
+ version: 0.0.3
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - ">="
165
165
  - !ruby/object:Gem::Version
166
- version: 0.0.7
166
+ version: 0.0.3
167
167
  description: Semi-automatic maintenance of most translations in a Rails app.
168
168
  email:
169
169
  - k@spernj.org