awesome_translations 0.0.61 → 0.0.62
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/awesome_translations/views_helper.rb +2 -2
- data/lib/awesome_translations/global_translator.rb +12 -12
- data/lib/awesome_translations/translate_functionality.rb +2 -2
- data/lib/awesome_translations/version.rb +1 -1
- data/spec/dummy/app/services/application_service.rb +3 -0
- data/spec/dummy/app/services/test_translate_service.rb +9 -0
- data/spec/dummy/db/awesome_translations.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +418 -0
- data/spec/lib/erb_inspector_spec.rb +1 -1
- data/spec/services/test_translate_service_spec.rb +11 -0
- metadata +7 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9451becf9071d246b02af0a69766fe0a8f3ab521993330abaccbde04b232c0bd
|
4
|
+
data.tar.gz: 80217b0059a773a5b2bf06a228ede2a5eb003650970abf46122fa946839fdf6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45149faa843ac575add0745d69310e190d829862b1f0f16db511228928d801d011c2811209c5328b87b3db651d0e065ed119585b88dc50ed4cfa1996627a7710
|
7
|
+
data.tar.gz: 3a7ede4524d1020287d7b3f4718b7a4a10e711a6dbd8b61950b392bfd0073a79d152e3c5813bd1ed758fec1d0d3b59950d0bb05f1816b11769b2bf01d3f96a39
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module AwesomeTranslations::ViewsHelper
|
2
|
-
def helper_t(key, args
|
3
|
-
AwesomeTranslations::GlobalTranslator.translate(key, helper: true, caller_number: 1, translation_args:
|
2
|
+
def helper_t(key, *args, **opts)
|
3
|
+
AwesomeTranslations::GlobalTranslator.translate(key, helper: true, caller_number: 1, translation_args: args, translation_opts: opts)
|
4
4
|
end
|
5
5
|
end
|
@@ -22,22 +22,22 @@ class AwesomeTranslations::GlobalTranslator
|
|
22
22
|
new(key: key, args: args, blk: blk, call: call).translation
|
23
23
|
end
|
24
24
|
|
25
|
-
attr_reader :
|
26
|
-
|
27
|
-
def initialize(
|
28
|
-
@
|
29
|
-
@
|
30
|
-
@
|
31
|
-
@
|
25
|
+
attr_reader :args, :blk, :call, :key, :translation_args, :translation_opts
|
26
|
+
|
27
|
+
def initialize(args:, blk:, call:, key:)
|
28
|
+
@args = args
|
29
|
+
@blk = blk
|
30
|
+
@call = call
|
31
|
+
@key = key
|
32
|
+
@translation_args = args[:translation_args] || []
|
33
|
+
@translation_opts = args[:translation_opts] || {}
|
32
34
|
end
|
33
35
|
|
34
36
|
def translation
|
35
|
-
|
36
|
-
|
37
|
-
@key = translation_key
|
38
|
-
end
|
37
|
+
# Change key to full path.
|
38
|
+
@key = translation_key if @key.is_a?(String) && @key.start_with?(".")
|
39
39
|
|
40
|
-
I18n.t(@key, *
|
40
|
+
I18n.t(@key, *translation_args, **translation_opts, &blk)
|
41
41
|
end
|
42
42
|
|
43
43
|
private
|
@@ -7,8 +7,8 @@ module AwesomeTranslations::TranslateFunctionality
|
|
7
7
|
end
|
8
8
|
|
9
9
|
module Methods
|
10
|
-
def t(key, args
|
11
|
-
AwesomeTranslations::GlobalTranslator.translate(key, translation_args:
|
10
|
+
def t(key, *args, **opts, &blk)
|
11
|
+
AwesomeTranslations::GlobalTranslator.translate(key, caller_number: 1, translation_args: args, translation_opts: opts, &blk)
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
Binary file
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/spec/dummy/log/test.log
CHANGED
@@ -768,3 +768,421 @@ Processing by UsersController#update as HTML
|
|
768
768
|
Redirected to http://test.host/users/1
|
769
769
|
Completed 302 Found in 4ms (ActiveRecord: 0.5ms | Allocations: 2210)
|
770
770
|
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mrollback transaction[0m
|
771
|
+
[1m[35m (2.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
772
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
773
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
774
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
775
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
776
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
777
|
+
[1m[35m (0.1ms)[0m [1m[35mTRUNCATE TABLE "roles"[0m
|
778
|
+
[1m[35m (2.7ms)[0m [1m[31mDELETE FROM "roles"[0m
|
779
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
780
|
+
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'roles';[0m
|
781
|
+
[1m[35m (0.1ms)[0m [1m[35mTRUNCATE TABLE "users"[0m
|
782
|
+
[1m[35m (2.1ms)[0m [1m[31mDELETE FROM "users"[0m
|
783
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
784
|
+
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'users';[0m
|
785
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
786
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
787
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
788
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
789
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
790
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
791
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
792
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
793
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
794
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
795
|
+
[1m[35m (0.2ms)[0m [1m[35mTRUNCATE TABLE "roles"[0m
|
796
|
+
[1m[35m (2.7ms)[0m [1m[31mDELETE FROM "roles"[0m
|
797
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
798
|
+
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'roles';[0m
|
799
|
+
[1m[35m (0.1ms)[0m [1m[35mTRUNCATE TABLE "users"[0m
|
800
|
+
[1m[35m (2.1ms)[0m [1m[31mDELETE FROM "users"[0m
|
801
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
802
|
+
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'users';[0m
|
803
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
804
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
805
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
806
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
807
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
808
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
809
|
+
Processing by AwesomeTranslations::GroupsController#update_translations_cache as HTML
|
810
|
+
Parameters: {"handler_id"=>"rails_handler", "id"=>"date_time"}
|
811
|
+
Redirected to http://test.host/handlers/rails_handler/groups/date_time
|
812
|
+
Completed 302 Found in 48ms (ActiveRecord: 0.0ms | Allocations: 49546)
|
813
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
814
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
815
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
816
|
+
Parameters: {"t"=>{"activerecord.attributes.user.password"=>"[FILTERED]"}, "handler_id"=>"model_handler", "id"=>"User"}
|
817
|
+
Redirected to http://test.host/handlers/model_handler/groups/User
|
818
|
+
Completed 302 Found in 20ms (ActiveRecord: 0.0ms | Allocations: 10940)
|
819
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
820
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
821
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
822
|
+
Parameters: {"t"=>{"activerecord.attributes.role.role"=>{"da"=>"Rolle", "de"=>"Die type", "en"=>"Role"}}, "handler_id"=>"model_handler", "id"=>"Role"}
|
823
|
+
Redirected to http://test.host/handlers/model_handler/groups/Role
|
824
|
+
Completed 302 Found in 20ms (ActiveRecord: 0.0ms | Allocations: 12260)
|
825
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
826
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
827
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
828
|
+
Parameters: {"t"=>{"date.day_names"=>{"1"=>{"da"=>"Mandag"}, "4"=>{"da"=>"Torsdag"}}}, "handler_id"=>"rails_handler", "id"=>"date_time"}
|
829
|
+
Redirected to http://test.host/handlers/rails_handler/groups/date_time
|
830
|
+
Completed 302 Found in 53ms (ActiveRecord: 0.0ms | Allocations: 48767)
|
831
|
+
Processing by AwesomeTranslations::HandlersController#update_cache as HTML
|
832
|
+
Redirected to http://test.host/handlers
|
833
|
+
Completed 302 Found in 14ms (ActiveRecord: 0.0ms | Allocations: 2559)
|
834
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
835
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
836
|
+
Processing by AwesomeTranslations::HandlersController#update_groups_cache as HTML
|
837
|
+
Parameters: {"id"=>"rails_handler"}
|
838
|
+
Redirected to http://test.host/handlers/rails_handler
|
839
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.0ms | Allocations: 5004)
|
840
|
+
Processing by AwesomeTranslations::HandlersController#index as HTML
|
841
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
842
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/handlers/index.html.erb within layouts/awesome_translations/application
|
843
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/handlers/index.html.erb within layouts/awesome_translations/application (Duration: 3.4ms | Allocations: 2154)
|
844
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 54.3ms | Allocations: 26570)
|
845
|
+
Completed 200 OK in 60ms (Views: 58.2ms | ActiveRecord: 0.0ms | Allocations: 28946)
|
846
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
847
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
848
|
+
Processing by AwesomeTranslations::HandlersController#show as HTML
|
849
|
+
Parameters: {"id"=>"model_handler"}
|
850
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
851
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/handlers/show.html.erb within layouts/awesome_translations/application
|
852
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/handlers/show.html.erb within layouts/awesome_translations/application (Duration: 5.2ms | Allocations: 3420)
|
853
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 6.9ms | Allocations: 4897)
|
854
|
+
Completed 200 OK in 18ms (Views: 7.6ms | ActiveRecord: 0.0ms | Allocations: 17023)
|
855
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
856
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
857
|
+
Processing by AwesomeTranslations::HandlersController#show as HTML
|
858
|
+
Parameters: {"with_missing_translations"=>"only_with", "id"=>"model_handler"}
|
859
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
860
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/handlers/show.html.erb within layouts/awesome_translations/application
|
861
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/handlers/show.html.erb within layouts/awesome_translations/application (Duration: 2.7ms | Allocations: 2252)
|
862
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 4.0ms | Allocations: 3710)
|
863
|
+
Completed 200 OK in 12ms (Views: 4.5ms | ActiveRecord: 0.0ms | Allocations: 14939)
|
864
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
865
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
866
|
+
[1m[36mUser Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "mhill@zoomzone.name"], ["LIMIT", 1]]
|
867
|
+
[1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "password", "age") VALUES (?, ?, ?)[0m [["email", "mhill@zoomzone.name"], ["password", "ultrices enim"], ["age", 1]]
|
868
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
869
|
+
Processing by UsersController#update as HTML
|
870
|
+
Parameters: {"user"=>{"email"=>"newemail@example.com"}, "id"=>"1"}
|
871
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
872
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
873
|
+
[1m[36mUser Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? AND "users"."id" != ? LIMIT ?[0m [["email", "newemail@example.com"], ["id", 1], ["LIMIT", 1]]
|
874
|
+
[1m[36mUser Update (0.1ms)[0m [1m[33mUPDATE "users" SET "email" = ? WHERE "users"."id" = ?[0m [["email", "newemail@example.com"], ["id", 1]]
|
875
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
876
|
+
Redirected to http://test.host/users/1
|
877
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.4ms | Allocations: 1896)
|
878
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
879
|
+
Processing by AwesomeTranslations::CleanUpsController#new as HTML
|
880
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
881
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/clean_ups/new.html.erb within layouts/awesome_translations/application
|
882
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/clean_ups/new.html.erb within layouts/awesome_translations/application (Duration: 1.8ms | Allocations: 1346)
|
883
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 3.4ms | Allocations: 2945)
|
884
|
+
Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms | Allocations: 3927)
|
885
|
+
Processing by AwesomeTranslations::CleanUpsController#create as HTML
|
886
|
+
Parameters: {"utf8"=>"✓", "c"=>{"1"=>"1"}, "commit"=>"Delete"}
|
887
|
+
Redirected to http://www.example.com/clean_ups/new
|
888
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.0ms | Allocations: 886)
|
889
|
+
Processing by AwesomeTranslations::CleanUpsController#new as HTML
|
890
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
891
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/clean_ups/new.html.erb within layouts/awesome_translations/application
|
892
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/clean_ups/new.html.erb within layouts/awesome_translations/application (Duration: 0.5ms | Allocations: 374)
|
893
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 1.9ms | Allocations: 1794)
|
894
|
+
Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms | Allocations: 2011)
|
895
|
+
Processing by AwesomeTranslations::DuplicatesController#index as HTML
|
896
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
897
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/duplicates/index.html.erb within layouts/awesome_translations/application
|
898
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/duplicates/index.html.erb within layouts/awesome_translations/application (Duration: 1.7ms | Allocations: 1527)
|
899
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 3.1ms | Allocations: 3105)
|
900
|
+
Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms | Allocations: 4092)
|
901
|
+
Processing by AwesomeTranslations::DuplicatesController#index as HTML
|
902
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
903
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/duplicates/index.html.erb within layouts/awesome_translations/application
|
904
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/duplicates/index.html.erb within layouts/awesome_translations/application (Duration: 1.2ms | Allocations: 1071)
|
905
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 2.6ms | Allocations: 2550)
|
906
|
+
Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms | Allocations: 2858)
|
907
|
+
Processing by AwesomeTranslations::DuplicatesController#create as HTML
|
908
|
+
Parameters: {"utf8"=>"✓", "d"=>{"2"=>"1"}}
|
909
|
+
Redirected to http://www.example.com/duplicates
|
910
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.0ms | Allocations: 779)
|
911
|
+
Processing by AwesomeTranslations::DuplicatesController#index as HTML
|
912
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
913
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/duplicates/index.html.erb within layouts/awesome_translations/application
|
914
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/duplicates/index.html.erb within layouts/awesome_translations/application (Duration: 0.3ms | Allocations: 224)
|
915
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 1.6ms | Allocations: 1644)
|
916
|
+
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms | Allocations: 1893)
|
917
|
+
Processing by AwesomeTranslations::MovalsController#index as HTML
|
918
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
919
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/movals/index.html.erb within layouts/awesome_translations/application
|
920
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/movals/index.html.erb within layouts/awesome_translations/application (Duration: 1.9ms | Allocations: 1619)
|
921
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 3.4ms | Allocations: 3212)
|
922
|
+
Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms | Allocations: 4201)
|
923
|
+
Processing by AwesomeTranslations::MovalsController#index as HTML
|
924
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
925
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/movals/index.html.erb within layouts/awesome_translations/application
|
926
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/movals/index.html.erb within layouts/awesome_translations/application (Duration: 1.4ms | Allocations: 1161)
|
927
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 2.6ms | Allocations: 2640)
|
928
|
+
Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms | Allocations: 2949)
|
929
|
+
Processing by AwesomeTranslations::MovalsController#create as HTML
|
930
|
+
Parameters: {"utf8"=>"✓", "m"=>{"1"=>"1"}}
|
931
|
+
Redirected to http://www.example.com/movals
|
932
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.0ms | Allocations: 1799)
|
933
|
+
Processing by AwesomeTranslations::MovalsController#index as HTML
|
934
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
935
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/movals/index.html.erb within layouts/awesome_translations/application
|
936
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/movals/index.html.erb within layouts/awesome_translations/application (Duration: 0.4ms | Allocations: 224)
|
937
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 2.0ms | Allocations: 1644)
|
938
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms | Allocations: 1892)
|
939
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
940
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
941
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
942
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
943
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
944
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
945
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
946
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
947
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
948
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
949
|
+
[1m[35m (0.2ms)[0m [1m[35mTRUNCATE TABLE "roles"[0m
|
950
|
+
[1m[35m (2.6ms)[0m [1m[31mDELETE FROM "roles"[0m
|
951
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
952
|
+
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'roles';[0m
|
953
|
+
[1m[35m (0.1ms)[0m [1m[35mTRUNCATE TABLE "users"[0m
|
954
|
+
[1m[35m (2.3ms)[0m [1m[31mDELETE FROM "users"[0m
|
955
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
956
|
+
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'users';[0m
|
957
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
958
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
959
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
960
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
961
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
962
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
963
|
+
Processing by AwesomeTranslations::GroupsController#update_translations_cache as HTML
|
964
|
+
Parameters: {"handler_id"=>"rails_handler", "id"=>"date_time"}
|
965
|
+
Redirected to http://test.host/handlers/rails_handler/groups/date_time
|
966
|
+
Completed 302 Found in 45ms (ActiveRecord: 0.0ms | Allocations: 49548)
|
967
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
968
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
969
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
970
|
+
Parameters: {"t"=>{"activerecord.attributes.user.password"=>"[FILTERED]"}, "handler_id"=>"model_handler", "id"=>"User"}
|
971
|
+
Redirected to http://test.host/handlers/model_handler/groups/User
|
972
|
+
Completed 302 Found in 17ms (ActiveRecord: 0.0ms | Allocations: 10939)
|
973
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
974
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
975
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
976
|
+
Parameters: {"t"=>{"activerecord.attributes.role.role"=>{"da"=>"Rolle", "de"=>"Die type", "en"=>"Role"}}, "handler_id"=>"model_handler", "id"=>"Role"}
|
977
|
+
Redirected to http://test.host/handlers/model_handler/groups/Role
|
978
|
+
Completed 302 Found in 21ms (ActiveRecord: 0.0ms | Allocations: 12260)
|
979
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
980
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
981
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
982
|
+
Parameters: {"t"=>{"date.day_names"=>{"1"=>{"da"=>"Mandag"}, "4"=>{"da"=>"Torsdag"}}}, "handler_id"=>"rails_handler", "id"=>"date_time"}
|
983
|
+
Redirected to http://test.host/handlers/rails_handler/groups/date_time
|
984
|
+
Completed 302 Found in 51ms (ActiveRecord: 0.0ms | Allocations: 48767)
|
985
|
+
Processing by AwesomeTranslations::HandlersController#update_cache as HTML
|
986
|
+
Redirected to http://test.host/handlers
|
987
|
+
Completed 302 Found in 12ms (ActiveRecord: 0.0ms | Allocations: 2559)
|
988
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
989
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
990
|
+
Processing by AwesomeTranslations::HandlersController#update_groups_cache as HTML
|
991
|
+
Parameters: {"id"=>"rails_handler"}
|
992
|
+
Redirected to http://test.host/handlers/rails_handler
|
993
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.0ms | Allocations: 5004)
|
994
|
+
Processing by AwesomeTranslations::HandlersController#index as HTML
|
995
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
996
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/handlers/index.html.erb within layouts/awesome_translations/application
|
997
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/handlers/index.html.erb within layouts/awesome_translations/application (Duration: 2.7ms | Allocations: 2154)
|
998
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 48.2ms | Allocations: 26570)
|
999
|
+
Completed 200 OK in 52ms (Views: 50.7ms | ActiveRecord: 0.0ms | Allocations: 28946)
|
1000
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
1001
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
1002
|
+
Processing by AwesomeTranslations::HandlersController#show as HTML
|
1003
|
+
Parameters: {"id"=>"model_handler"}
|
1004
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
1005
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/handlers/show.html.erb within layouts/awesome_translations/application
|
1006
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/handlers/show.html.erb within layouts/awesome_translations/application (Duration: 5.4ms | Allocations: 3420)
|
1007
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 7.1ms | Allocations: 4897)
|
1008
|
+
Completed 200 OK in 19ms (Views: 7.8ms | ActiveRecord: 0.0ms | Allocations: 17023)
|
1009
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
1010
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
1011
|
+
Processing by AwesomeTranslations::HandlersController#show as HTML
|
1012
|
+
Parameters: {"with_missing_translations"=>"only_with", "id"=>"model_handler"}
|
1013
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
1014
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/handlers/show.html.erb within layouts/awesome_translations/application
|
1015
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/handlers/show.html.erb within layouts/awesome_translations/application (Duration: 3.7ms | Allocations: 2252)
|
1016
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 5.4ms | Allocations: 3710)
|
1017
|
+
Completed 200 OK in 16ms (Views: 6.1ms | ActiveRecord: 0.0ms | Allocations: 14939)
|
1018
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
1019
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1020
|
+
[1m[36mUser Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "cmorris@youspan.gov"], ["LIMIT", 1]]
|
1021
|
+
[1m[36mUser Create (0.2ms)[0m [1m[32mINSERT INTO "users" ("email", "password", "age") VALUES (?, ?, ?)[0m [["email", "cmorris@youspan.gov"], ["password", "magna at"], ["age", 5]]
|
1022
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1023
|
+
Processing by UsersController#update as HTML
|
1024
|
+
Parameters: {"user"=>{"email"=>"newemail@example.com"}, "id"=>"1"}
|
1025
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
1026
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
1027
|
+
[1m[36mUser Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? AND "users"."id" != ? LIMIT ?[0m [["email", "newemail@example.com"], ["id", 1], ["LIMIT", 1]]
|
1028
|
+
[1m[36mUser Update (0.2ms)[0m [1m[33mUPDATE "users" SET "email" = ? WHERE "users"."id" = ?[0m [["email", "newemail@example.com"], ["id", 1]]
|
1029
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
1030
|
+
Redirected to http://test.host/users/1
|
1031
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.7ms | Allocations: 1905)
|
1032
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
1033
|
+
Processing by AwesomeTranslations::CleanUpsController#new as HTML
|
1034
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
1035
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/clean_ups/new.html.erb within layouts/awesome_translations/application
|
1036
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/clean_ups/new.html.erb within layouts/awesome_translations/application (Duration: 3.7ms | Allocations: 1346)
|
1037
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 6.2ms | Allocations: 2945)
|
1038
|
+
Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms | Allocations: 3927)
|
1039
|
+
Processing by AwesomeTranslations::CleanUpsController#create as HTML
|
1040
|
+
Parameters: {"utf8"=>"✓", "c"=>{"1"=>"1"}, "commit"=>"Delete"}
|
1041
|
+
Redirected to http://www.example.com/clean_ups/new
|
1042
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.0ms | Allocations: 886)
|
1043
|
+
Processing by AwesomeTranslations::CleanUpsController#new as HTML
|
1044
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
1045
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/clean_ups/new.html.erb within layouts/awesome_translations/application
|
1046
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/clean_ups/new.html.erb within layouts/awesome_translations/application (Duration: 1.1ms | Allocations: 374)
|
1047
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 3.0ms | Allocations: 1794)
|
1048
|
+
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms | Allocations: 2011)
|
1049
|
+
Processing by AwesomeTranslations::DuplicatesController#index as HTML
|
1050
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
1051
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/duplicates/index.html.erb within layouts/awesome_translations/application
|
1052
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/duplicates/index.html.erb within layouts/awesome_translations/application (Duration: 1.9ms | Allocations: 1527)
|
1053
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 3.7ms | Allocations: 3105)
|
1054
|
+
Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms | Allocations: 4092)
|
1055
|
+
Processing by AwesomeTranslations::DuplicatesController#index as HTML
|
1056
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
1057
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/duplicates/index.html.erb within layouts/awesome_translations/application
|
1058
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/duplicates/index.html.erb within layouts/awesome_translations/application (Duration: 1.4ms | Allocations: 1073)
|
1059
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 3.1ms | Allocations: 2567)
|
1060
|
+
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms | Allocations: 2875)
|
1061
|
+
Processing by AwesomeTranslations::DuplicatesController#create as HTML
|
1062
|
+
Parameters: {"utf8"=>"✓", "d"=>{"2"=>"1"}}
|
1063
|
+
Redirected to http://www.example.com/duplicates
|
1064
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.0ms | Allocations: 779)
|
1065
|
+
Processing by AwesomeTranslations::DuplicatesController#index as HTML
|
1066
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
1067
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/duplicates/index.html.erb within layouts/awesome_translations/application
|
1068
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/duplicates/index.html.erb within layouts/awesome_translations/application (Duration: 0.5ms | Allocations: 224)
|
1069
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 1.8ms | Allocations: 1644)
|
1070
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms | Allocations: 1893)
|
1071
|
+
Processing by AwesomeTranslations::MovalsController#index as HTML
|
1072
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
1073
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/movals/index.html.erb within layouts/awesome_translations/application
|
1074
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/movals/index.html.erb within layouts/awesome_translations/application (Duration: 2.1ms | Allocations: 1618)
|
1075
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 3.8ms | Allocations: 3196)
|
1076
|
+
Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms | Allocations: 4185)
|
1077
|
+
Processing by AwesomeTranslations::MovalsController#index as HTML
|
1078
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
1079
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/movals/index.html.erb within layouts/awesome_translations/application
|
1080
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/movals/index.html.erb within layouts/awesome_translations/application (Duration: 1.4ms | Allocations: 1161)
|
1081
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 3.2ms | Allocations: 2640)
|
1082
|
+
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms | Allocations: 2949)
|
1083
|
+
Processing by AwesomeTranslations::MovalsController#create as HTML
|
1084
|
+
Parameters: {"utf8"=>"✓", "m"=>{"1"=>"1"}}
|
1085
|
+
Redirected to http://www.example.com/movals
|
1086
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.0ms | Allocations: 1943)
|
1087
|
+
Processing by AwesomeTranslations::MovalsController#index as HTML
|
1088
|
+
Rendering layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb
|
1089
|
+
Rendering /home/dev/Development/awesome_translations/app/views/awesome_translations/movals/index.html.erb within layouts/awesome_translations/application
|
1090
|
+
Rendered /home/dev/Development/awesome_translations/app/views/awesome_translations/movals/index.html.erb within layouts/awesome_translations/application (Duration: 0.6ms | Allocations: 259)
|
1091
|
+
Rendered layout /home/dev/Development/awesome_translations/app/views/layouts/awesome_translations/application.html.erb (Duration: 2.1ms | Allocations: 1740)
|
1092
|
+
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms | Allocations: 2045)
|
1093
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
1094
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
1095
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
1096
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
1097
|
+
[1m[35m (2.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1098
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1099
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1100
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1101
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
1102
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
1103
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
1104
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
1105
|
+
[1m[35m (0.4ms)[0m [1m[35mTRUNCATE TABLE "roles"[0m
|
1106
|
+
[1m[35m (3.7ms)[0m [1m[31mDELETE FROM "roles"[0m
|
1107
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1108
|
+
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'roles';[0m
|
1109
|
+
[1m[35m (0.1ms)[0m [1m[35mTRUNCATE TABLE "users"[0m
|
1110
|
+
[1m[35m (2.3ms)[0m [1m[31mDELETE FROM "users"[0m
|
1111
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1112
|
+
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'users';[0m
|
1113
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
1114
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
1115
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
1116
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
1117
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1118
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1119
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
1120
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
1121
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
1122
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
1123
|
+
[1m[35m (0.3ms)[0m [1m[35mTRUNCATE TABLE "roles"[0m
|
1124
|
+
[1m[35m (4.2ms)[0m [1m[31mDELETE FROM "roles"[0m
|
1125
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1126
|
+
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'roles';[0m
|
1127
|
+
[1m[35m (0.1ms)[0m [1m[35mTRUNCATE TABLE "users"[0m
|
1128
|
+
[1m[35m (2.3ms)[0m [1m[31mDELETE FROM "users"[0m
|
1129
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1130
|
+
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'users';[0m
|
1131
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
1132
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
1133
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
1134
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
1135
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1136
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1137
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
1138
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
1139
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
1140
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
1141
|
+
[1m[35m (0.2ms)[0m [1m[35mTRUNCATE TABLE "roles"[0m
|
1142
|
+
[1m[35m (3.9ms)[0m [1m[31mDELETE FROM "roles"[0m
|
1143
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1144
|
+
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'roles';[0m
|
1145
|
+
[1m[35m (0.1ms)[0m [1m[35mTRUNCATE TABLE "users"[0m
|
1146
|
+
[1m[35m (2.4ms)[0m [1m[31mDELETE FROM "users"[0m
|
1147
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1148
|
+
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'users';[0m
|
1149
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
1150
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
1151
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
1152
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
1153
|
+
[1m[35m (1.9ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1154
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1155
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
1156
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
1157
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
1158
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
1159
|
+
[1m[35m (0.2ms)[0m [1m[35mTRUNCATE TABLE "roles"[0m
|
1160
|
+
[1m[35m (2.9ms)[0m [1m[31mDELETE FROM "roles"[0m
|
1161
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1162
|
+
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'roles';[0m
|
1163
|
+
[1m[35m (0.1ms)[0m [1m[35mTRUNCATE TABLE "users"[0m
|
1164
|
+
[1m[35m (2.2ms)[0m [1m[31mDELETE FROM "users"[0m
|
1165
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1166
|
+
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'users';[0m
|
1167
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
1168
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
1169
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
1170
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
1171
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
1172
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1173
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
1174
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
1175
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
1176
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
1177
|
+
[1m[35m (0.2ms)[0m [1m[35mTRUNCATE TABLE "roles"[0m
|
1178
|
+
[1m[35m (2.6ms)[0m [1m[31mDELETE FROM "roles"[0m
|
1179
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1180
|
+
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'roles';[0m
|
1181
|
+
[1m[35m (0.1ms)[0m [1m[35mTRUNCATE TABLE "users"[0m
|
1182
|
+
[1m[35m (2.1ms)[0m [1m[31mDELETE FROM "users"[0m
|
1183
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1184
|
+
[1m[35m (0.1ms)[0m [1m[31mDELETE FROM sqlite_sequence where name = 'users';[0m
|
1185
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
1186
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
1187
|
+
Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
|
1188
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe TestTranslateService do
|
4
|
+
it "uses translations" do
|
5
|
+
expect(TestTranslateService.new.perform).to eq "translation missing: en.services.test_translate_service.hello_world"
|
6
|
+
end
|
7
|
+
|
8
|
+
it "uses translations in instance methods" do
|
9
|
+
expect(TestTranslateService.static_method).to eq "translation missing: en.services.test_translate_service.hello_static_method"
|
10
|
+
end
|
11
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awesome_translations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.62
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kasper Johansen
|
@@ -244,6 +244,8 @@ files:
|
|
244
244
|
- spec/dummy/app/models/application_record.rb
|
245
245
|
- spec/dummy/app/models/role.rb
|
246
246
|
- spec/dummy/app/models/user.rb
|
247
|
+
- spec/dummy/app/services/application_service.rb
|
248
|
+
- spec/dummy/app/services/test_translate_service.rb
|
247
249
|
- spec/dummy/app/views/layouts/application.html.erb
|
248
250
|
- spec/dummy/app/views/users/_partial_test.html.erb
|
249
251
|
- spec/dummy/app/views/users/edit.html.liquid
|
@@ -351,6 +353,7 @@ files:
|
|
351
353
|
- spec/models/awesome_translations/handler_spec.rb
|
352
354
|
- spec/models/awesome_translations/translated_value_spec.rb
|
353
355
|
- spec/models/awesome_translations/translation_spec.rb
|
356
|
+
- spec/services/test_translate_service_spec.rb
|
354
357
|
- spec/spec_helper.rb
|
355
358
|
homepage: https://www.github.com/kaspernj/awesome_translations
|
356
359
|
licenses: []
|
@@ -393,6 +396,8 @@ test_files:
|
|
393
396
|
- spec/dummy/app/models/application_record.rb
|
394
397
|
- spec/dummy/app/models/role.rb
|
395
398
|
- spec/dummy/app/models/user.rb
|
399
|
+
- spec/dummy/app/services/application_service.rb
|
400
|
+
- spec/dummy/app/services/test_translate_service.rb
|
396
401
|
- spec/dummy/app/views/layouts/application.html.erb
|
397
402
|
- spec/dummy/app/views/users/_partial_test.html.erb
|
398
403
|
- spec/dummy/app/views/users/edit.html.liquid
|
@@ -500,4 +505,5 @@ test_files:
|
|
500
505
|
- spec/models/awesome_translations/handler_spec.rb
|
501
506
|
- spec/models/awesome_translations/translated_value_spec.rb
|
502
507
|
- spec/models/awesome_translations/translation_spec.rb
|
508
|
+
- spec/services/test_translate_service_spec.rb
|
503
509
|
- spec/spec_helper.rb
|