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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8982155c60a5db849fe01b8007859a18edf3efb1895417bfef73e4dd525a317e
4
- data.tar.gz: 58e47453d01189a483d665074ab374e770dd8fd1d96878626bbae5de64bcb0a4
3
+ metadata.gz: 9451becf9071d246b02af0a69766fe0a8f3ab521993330abaccbde04b232c0bd
4
+ data.tar.gz: 80217b0059a773a5b2bf06a228ede2a5eb003650970abf46122fa946839fdf6b
5
5
  SHA512:
6
- metadata.gz: 87904a819f4834458e15cf6c0d470104e2dbb380d9a5cbef0b3d31eb560905b395c0ae0cc7e767f430819ce2766d661f9d2d347b7830397546ca1e89e47dba9f
7
- data.tar.gz: 91964d3d6c9916fe493d596f554792e2fa29c6eed492546123fc9483cc0496d780d1d51d22adde6de5513c95da56e98c6f59f67e829f05fa388749a408f44579
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: [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 :key, :args, :blk, :call
26
-
27
- def initialize(init_args)
28
- @key = init_args.fetch(:key)
29
- @args = init_args.fetch(:args)
30
- @blk = init_args.fetch(:blk)
31
- @call = init_args.fetch(:call)
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
- if @key.is_a?(String) && @key.start_with?(".")
36
- # Change key to full path.
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, *args[:translation_args], **args[:translation_opts], &blk)
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 = {}, &blk)
11
- AwesomeTranslations::GlobalTranslator.translate(key, translation_args: [args], caller_number: 1, &blk)
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
@@ -1,3 +1,3 @@
1
1
  module AwesomeTranslations
2
- VERSION = "0.0.61".freeze
2
+ VERSION = "0.0.62".freeze
3
3
  end
@@ -0,0 +1,3 @@
1
+ class ApplicationService
2
+ include AwesomeTranslations::TranslateFunctionality
3
+ end
@@ -0,0 +1,9 @@
1
+ class TestTranslateService < ApplicationService
2
+ def self.static_method
3
+ t(".hello_static_method")
4
+ end
5
+
6
+ def perform
7
+ t(".hello_world")
8
+ end
9
+ end
Binary file
@@ -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
  TRANSACTION (0.2ms) rollback transaction
771
+  (2.1ms) SELECT sqlite_version(*)
772
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
773
+  (0.1ms) PRAGMA foreign_keys
774
+  (0.0ms) PRAGMA defer_foreign_keys
775
+  (0.0ms) PRAGMA defer_foreign_keys = ON
776
+  (0.0ms) PRAGMA foreign_keys = OFF
777
+  (0.1ms) TRUNCATE TABLE "roles"
778
+  (2.7ms) DELETE FROM "roles"
779
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
780
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'roles';
781
+  (0.1ms) TRUNCATE TABLE "users"
782
+  (2.1ms) DELETE FROM "users"
783
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
784
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
785
+  (0.1ms) PRAGMA defer_foreign_keys = 0
786
+  (0.0ms) PRAGMA foreign_keys = 1
787
+ Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
788
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
789
+  (1.3ms) SELECT sqlite_version(*)
790
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
791
+  (0.1ms) PRAGMA foreign_keys
792
+  (0.1ms) PRAGMA defer_foreign_keys
793
+  (0.1ms) PRAGMA defer_foreign_keys = ON
794
+  (0.1ms) PRAGMA foreign_keys = OFF
795
+  (0.2ms) TRUNCATE TABLE "roles"
796
+  (2.7ms) DELETE FROM "roles"
797
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
798
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'roles';
799
+  (0.1ms) TRUNCATE TABLE "users"
800
+  (2.1ms) DELETE FROM "users"
801
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
802
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
803
+  (0.0ms) PRAGMA defer_foreign_keys = 0
804
+  (0.0ms) PRAGMA foreign_keys = 1
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
+ TRANSACTION (0.1ms) begin transaction
865
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
866
+ User Exists? (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "mhill@zoomzone.name"], ["LIMIT", 1]]
867
+ User Create (0.2ms) INSERT INTO "users" ("email", "password", "age") VALUES (?, ?, ?) [["email", "mhill@zoomzone.name"], ["password", "ultrices enim"], ["age", 1]]
868
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
869
+ Processing by UsersController#update as HTML
870
+ Parameters: {"user"=>{"email"=>"newemail@example.com"}, "id"=>"1"}
871
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
872
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
873
+ 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]]
874
+ User Update (0.1ms) UPDATE "users" SET "email" = ? WHERE "users"."id" = ? [["email", "newemail@example.com"], ["id", 1]]
875
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
876
+ Redirected to http://test.host/users/1
877
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms | Allocations: 1896)
878
+ TRANSACTION (0.1ms) rollback transaction
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
+  (1.6ms) SELECT sqlite_version(*)
944
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
945
+  (0.1ms) PRAGMA foreign_keys
946
+  (0.1ms) PRAGMA defer_foreign_keys
947
+  (0.1ms) PRAGMA defer_foreign_keys = ON
948
+  (0.0ms) PRAGMA foreign_keys = OFF
949
+  (0.2ms) TRUNCATE TABLE "roles"
950
+  (2.6ms) DELETE FROM "roles"
951
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
952
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'roles';
953
+  (0.1ms) TRUNCATE TABLE "users"
954
+  (2.3ms) DELETE FROM "users"
955
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
956
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
957
+  (0.0ms) PRAGMA defer_foreign_keys = 0
958
+  (0.1ms) PRAGMA foreign_keys = 1
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
+ TRANSACTION (0.1ms) begin transaction
1019
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
1020
+ User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "cmorris@youspan.gov"], ["LIMIT", 1]]
1021
+ User Create (0.2ms) INSERT INTO "users" ("email", "password", "age") VALUES (?, ?, ?) [["email", "cmorris@youspan.gov"], ["password", "magna at"], ["age", 5]]
1022
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1023
+ Processing by UsersController#update as HTML
1024
+ Parameters: {"user"=>{"email"=>"newemail@example.com"}, "id"=>"1"}
1025
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
1026
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
1027
+ User Exists? (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? AND "users"."id" != ? LIMIT ? [["email", "newemail@example.com"], ["id", 1], ["LIMIT", 1]]
1028
+ User Update (0.2ms) UPDATE "users" SET "email" = ? WHERE "users"."id" = ? [["email", "newemail@example.com"], ["id", 1]]
1029
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
1030
+ Redirected to http://test.host/users/1
1031
+ Completed 302 Found in 6ms (ActiveRecord: 0.7ms | Allocations: 1905)
1032
+ TRANSACTION (0.3ms) rollback transaction
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
+  (2.1ms) SELECT sqlite_version(*)
1098
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1099
+  (1.2ms) SELECT sqlite_version(*)
1100
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1101
+  (0.1ms) PRAGMA foreign_keys
1102
+  (0.1ms) PRAGMA defer_foreign_keys
1103
+  (0.1ms) PRAGMA defer_foreign_keys = ON
1104
+  (0.0ms) PRAGMA foreign_keys = OFF
1105
+  (0.4ms) TRUNCATE TABLE "roles"
1106
+  (3.7ms) DELETE FROM "roles"
1107
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1108
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'roles';
1109
+  (0.1ms) TRUNCATE TABLE "users"
1110
+  (2.3ms) DELETE FROM "users"
1111
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1112
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
1113
+  (0.1ms) PRAGMA defer_foreign_keys = 0
1114
+  (0.0ms) PRAGMA foreign_keys = 1
1115
+ Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
1116
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
1117
+  (1.1ms) SELECT sqlite_version(*)
1118
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1119
+  (0.1ms) PRAGMA foreign_keys
1120
+  (0.1ms) PRAGMA defer_foreign_keys
1121
+  (0.1ms) PRAGMA defer_foreign_keys = ON
1122
+  (0.0ms) PRAGMA foreign_keys = OFF
1123
+  (0.3ms) TRUNCATE TABLE "roles"
1124
+  (4.2ms) DELETE FROM "roles"
1125
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1126
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'roles';
1127
+  (0.1ms) TRUNCATE TABLE "users"
1128
+  (2.3ms) DELETE FROM "users"
1129
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1130
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
1131
+  (0.0ms) PRAGMA defer_foreign_keys = 0
1132
+  (0.0ms) PRAGMA foreign_keys = 1
1133
+ Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
1134
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
1135
+  (1.3ms) SELECT sqlite_version(*)
1136
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1137
+  (0.1ms) PRAGMA foreign_keys
1138
+  (0.1ms) PRAGMA defer_foreign_keys
1139
+  (0.1ms) PRAGMA defer_foreign_keys = ON
1140
+  (0.1ms) PRAGMA foreign_keys = OFF
1141
+  (0.2ms) TRUNCATE TABLE "roles"
1142
+  (3.9ms) DELETE FROM "roles"
1143
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1144
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'roles';
1145
+  (0.1ms) TRUNCATE TABLE "users"
1146
+  (2.4ms) DELETE FROM "users"
1147
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1148
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
1149
+  (0.1ms) PRAGMA defer_foreign_keys = 0
1150
+  (0.0ms) PRAGMA foreign_keys = 1
1151
+ Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
1152
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
1153
+  (1.9ms) SELECT sqlite_version(*)
1154
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1155
+  (0.1ms) PRAGMA foreign_keys
1156
+  (0.1ms) PRAGMA defer_foreign_keys
1157
+  (0.1ms) PRAGMA defer_foreign_keys = ON
1158
+  (0.0ms) PRAGMA foreign_keys = OFF
1159
+  (0.2ms) TRUNCATE TABLE "roles"
1160
+  (2.9ms) DELETE FROM "roles"
1161
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1162
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'roles';
1163
+  (0.1ms) TRUNCATE TABLE "users"
1164
+  (2.2ms) DELETE FROM "users"
1165
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1166
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
1167
+  (0.0ms) PRAGMA defer_foreign_keys = 0
1168
+  (0.0ms) PRAGMA foreign_keys = 1
1169
+ Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
1170
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
1171
+  (1.0ms) SELECT sqlite_version(*)
1172
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1173
+  (0.1ms) PRAGMA foreign_keys
1174
+  (0.1ms) PRAGMA defer_foreign_keys
1175
+  (0.1ms) PRAGMA defer_foreign_keys = ON
1176
+  (0.0ms) PRAGMA foreign_keys = OFF
1177
+  (0.2ms) TRUNCATE TABLE "roles"
1178
+  (2.6ms) DELETE FROM "roles"
1179
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1180
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'roles';
1181
+  (0.1ms) TRUNCATE TABLE "users"
1182
+  (2.1ms) DELETE FROM "users"
1183
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
1184
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
1185
+  (0.1ms) PRAGMA defer_foreign_keys = 0
1186
+  (0.0ms) PRAGMA foreign_keys = 1
1187
+ Unhandeled validator: ActiveRecord::Validations::NumericalityValidator
1188
+ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
@@ -12,7 +12,7 @@ describe AwesomeTranslations::ErbInspector do
12
12
 
13
13
  describe "#files" do
14
14
  it "finds the right amount of haml-files" do
15
- expect(files.length).to eq 34
15
+ expect(files.length).to eq 36
16
16
  end
17
17
 
18
18
  it "finds haml-files" do
@@ -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.61
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