awesome_translations 0.0.22 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0db11c53b1264af880f8e3d4d85c86c5ccf45a2d
4
- data.tar.gz: 88901c841052da30bab9aa283a3c802d815e418f
3
+ metadata.gz: c153541f63daa0e76bab656ef63b427158166bb4
4
+ data.tar.gz: e2b1664ac4cd784e9538c139e50eca544b28f00a
5
5
  SHA512:
6
- metadata.gz: d540294ffa83b79377c910622e5e55c0322debe43903265b8bf855bf7ff14d43daeaed1072f94dce4562a10ef62600723adce1263609a168b6a00b647e100737
7
- data.tar.gz: 420590b3144cbaa13bed7e856619ba989c4b062f621553b44be59548684f5153241955afef6adc1141785c62a449de86f340d26a77173fb5f8e9f26375cdf214
6
+ metadata.gz: c7d391a84f64478fd5d02af9f5bf64e9536142ebb6581e61c87337c561313a24b6ce2df799bb3a5c6e290bd3debddd1d7ca57312a25bf87ab1aea6085e721a27
7
+ data.tar.gz: fe4c5062bb32bc1ccef8f6c8eeadc1416c9be5850dbd9578157c32914651c0ceb157b271ced2786045812cf2e97df3ede1282f78a31753a6f9b701b81f75fa8e
@@ -8,7 +8,7 @@ module AwesomeTranslations::ControllerTranslateFunctionality
8
8
 
9
9
  module Methods
10
10
  def controller_t(key, args = {}, &blk)
11
- AwesomeTranslations::GlobalTranslator.translate(key, translation_args: [args], caller_number: 1, &blk)
11
+ AwesomeTranslations::GlobalTranslator.translate(key, translation_args: [args], caller_number: 1, action_in_key: false, &blk)
12
12
  end
13
13
  end
14
14
  end
@@ -22,6 +22,7 @@ class AwesomeTranslations::GlobalTranslator
22
22
 
23
23
  dir = File.dirname(previous_file)
24
24
  dir = dir.gsub(/\A#{Regexp.escape(Rails.root.to_s)}\//, "")
25
+ dir = dir.gsub(/\Aspec\/dummy\//, '')
25
26
 
26
27
  file = File.basename(previous_file, File.extname(previous_file))
27
28
 
@@ -37,7 +38,7 @@ class AwesomeTranslations::GlobalTranslator
37
38
  translation_key = translation_key.gsub(/\Aapp\//, "")
38
39
  translation_key << "/#{file}"
39
40
  translation_key.gsub!("/", ".")
40
- translation_key << ".#{call[:method]}" if is_controller
41
+ translation_key << ".#{call[:method]}" if is_controller && args[:action_in_key] != false
41
42
  translation_key << key
42
43
 
43
44
  # Change key to full path.
@@ -1,3 +1,3 @@
1
1
  module AwesomeTranslations
2
- VERSION = '0.0.22'
2
+ VERSION = '0.0.23'
3
3
  end
@@ -23,6 +23,6 @@ describe UsersController do
23
23
  expect(response).to redirect_to user_url(user)
24
24
 
25
25
  # Ensure correct key
26
- expect(flash[:notice]).to eq 'translation missing: en.spec.dummy.app.controllers.users_controller.user_was_updated'
26
+ expect(flash[:notice]).to eq 'translation missing: en.users.user_was_updated'
27
27
  end
28
28
  end
@@ -0,0 +1,9 @@
1
+ ---
2
+ da:
3
+ date:
4
+ day_names:
5
+ -
6
+ - Mandag
7
+ -
8
+ -
9
+ - Torsdag
@@ -2745,3 +2745,697 @@ Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
2745
2745
   (0.0ms) rollback transaction
2746
2746
   (0.0ms) begin transaction
2747
2747
   (0.0ms) rollback transaction
2748
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2749
+  (0.1ms) begin transaction
2750
+  (0.0ms) rollback transaction
2751
+  (0.1ms) begin transaction
2752
+  (0.1ms) rollback transaction
2753
+  (0.0ms) begin transaction
2754
+  (0.0ms) rollback transaction
2755
+  (0.0ms) begin transaction
2756
+  (0.0ms) rollback transaction
2757
+  (0.0ms) begin transaction
2758
+  (0.0ms) rollback transaction
2759
+  (0.0ms) begin transaction
2760
+  (0.1ms) rollback transaction
2761
+  (0.0ms) begin transaction
2762
+  (0.0ms) rollback transaction
2763
+  (0.0ms) begin transaction
2764
+  (0.0ms) rollback transaction
2765
+  (0.0ms) begin transaction
2766
+ Processing by AwesomeTranslations::GroupsController#update as HTML
2767
+ Parameters: {"handler_id"=>"rails_handler", "id"=>"date_time", "t"=>{"date.day_names"=>{"1"=>{"da"=>"Mandag"}, "4"=>{"da"=>"Torsdag"}}}}
2768
+ Redirected to http://test.host/handlers/rails_handler/groups/date_time
2769
+ Completed 302 Found in 17ms (ActiveRecord: 0.0ms)
2770
+  (0.1ms) rollback transaction
2771
+  (0.1ms) begin transaction
2772
+ Processing by AwesomeTranslations::GroupsController#update as HTML
2773
+ Parameters: {"handler_id"=>"model_handler", "id"=>"User", "t"=>{"activerecord.attributes.user.password"=>"[FILTERED]"}}
2774
+ Redirected to http://test.host/handlers/model_handler/groups/User
2775
+ Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
2776
+  (0.1ms) rollback transaction
2777
+  (0.0ms) begin transaction
2778
+ Processing by AwesomeTranslations::GroupsController#update as HTML
2779
+ Parameters: {"handler_id"=>"model_handler", "id"=>"Role", "t"=>{"activerecord.attributes.role.role"=>{"da"=>"Rolle", "de"=>"Die type", "en"=>"Role"}}}
2780
+ Redirected to http://test.host/handlers/model_handler/groups/Role
2781
+ Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
2782
+  (0.1ms) rollback transaction
2783
+  (0.1ms) begin transaction
2784
+  (0.1ms) rollback transaction
2785
+  (0.0ms) begin transaction
2786
+  (0.0ms) rollback transaction
2787
+  (0.0ms) begin transaction
2788
+  (0.0ms) rollback transaction
2789
+  (0.0ms) begin transaction
2790
+  (0.0ms) rollback transaction
2791
+  (0.0ms) begin transaction
2792
+  (0.0ms) rollback transaction
2793
+  (0.0ms) begin transaction
2794
+  (0.0ms) SAVEPOINT active_record_1
2795
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'emoreno@jumpxs.name' LIMIT 1
2796
+ SQL (1.7ms) INSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?) [["age", 9], ["email", "emoreno@jumpxs.name"], ["password", "rhoncus mauris"]]
2797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2798
+ Processing by UsersController#index as HTML
2799
+ User Load (0.1ms) SELECT "users".* FROM "users"
2800
+ Completed 200 OK in 140ms (Views: 139.4ms | ActiveRecord: 0.1ms)
2801
+  (0.4ms) rollback transaction
2802
+  (0.0ms) begin transaction
2803
+  (0.0ms) SAVEPOINT active_record_1
2804
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'aphillips@gevee.net' LIMIT 1
2805
+ SQL (0.2ms) INSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?) [["age", 0], ["email", "aphillips@gevee.net"], ["password", "id luctus"]]
2806
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2807
+ Processing by UsersController#update as HTML
2808
+ Parameters: {"user"=>{"email"=>"newemail@example.com"}, "id"=>"1"}
2809
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2810
+  (0.0ms) SAVEPOINT active_record_1
2811
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE ("users"."email" = 'newemail@example.com' AND "users"."id" != 1) LIMIT 1
2812
+ SQL (1.3ms) UPDATE "users" SET "email" = ? WHERE "users"."id" = 1 [["email", "newemail@example.com"]]
2813
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2814
+ Redirected to http://test.host/users/1
2815
+ Completed 302 Found in 4ms (ActiveRecord: 1.5ms)
2816
+  (0.7ms) rollback transaction
2817
+  (0.0ms) begin transaction
2818
+  (0.1ms) rollback transaction
2819
+  (0.1ms) begin transaction
2820
+  (0.1ms) rollback transaction
2821
+  (0.1ms) begin transaction
2822
+  (0.1ms) rollback transaction
2823
+  (0.0ms) begin transaction
2824
+  (0.1ms) rollback transaction
2825
+  (0.0ms) begin transaction
2826
+  (0.0ms) rollback transaction
2827
+  (0.1ms) begin transaction
2828
+  (0.1ms) rollback transaction
2829
+  (0.1ms) begin transaction
2830
+  (0.0ms) rollback transaction
2831
+  (0.0ms) begin transaction
2832
+  (0.0ms) rollback transaction
2833
+  (0.0ms) begin transaction
2834
+  (0.0ms) rollback transaction
2835
+  (0.0ms) begin transaction
2836
+  (0.0ms) rollback transaction
2837
+  (0.0ms) begin transaction
2838
+  (0.0ms) rollback transaction
2839
+  (0.0ms) begin transaction
2840
+  (0.0ms) rollback transaction
2841
+  (0.0ms) begin transaction
2842
+  (0.0ms) rollback transaction
2843
+  (0.0ms) begin transaction
2844
+ Processing by AwesomeTranslations::HandlersController#index as HTML
2845
+ Completed 200 OK in 105ms (Views: 105.0ms | ActiveRecord: 0.0ms)
2846
+  (0.1ms) rollback transaction
2847
+  (0.0ms) begin transaction
2848
+ Processing by AwesomeTranslations::HandlersController#show as HTML
2849
+ Parameters: {"id"=>"model_handler"}
2850
+ Completed 200 OK in 40ms (Views: 39.8ms | ActiveRecord: 0.0ms)
2851
+  (0.1ms) rollback transaction
2852
+  (0.0ms) begin transaction
2853
+  (0.0ms) rollback transaction
2854
+  (0.0ms) begin transaction
2855
+  (0.1ms) rollback transaction
2856
+  (0.0ms) begin transaction
2857
+  (0.1ms) rollback transaction
2858
+  (0.0ms) begin transaction
2859
+  (0.4ms) rollback transaction
2860
+  (0.1ms) begin transaction
2861
+  (0.1ms) rollback transaction
2862
+  (0.1ms) begin transaction
2863
+  (0.1ms) rollback transaction
2864
+  (0.0ms) begin transaction
2865
+  (0.0ms) rollback transaction
2866
+  (0.0ms) begin transaction
2867
+  (0.0ms) rollback transaction
2868
+  (0.0ms) begin transaction
2869
+  (0.0ms) rollback transaction
2870
+  (0.0ms) begin transaction
2871
+  (0.0ms) rollback transaction
2872
+  (0.0ms) begin transaction
2873
+  (0.0ms) rollback transaction
2874
+  (0.0ms) begin transaction
2875
+  (0.0ms) rollback transaction
2876
+  (0.0ms) begin transaction
2877
+  (0.1ms) rollback transaction
2878
+  (0.1ms) begin transaction
2879
+  (0.0ms) rollback transaction
2880
+  (0.0ms) begin transaction
2881
+  (0.0ms) rollback transaction
2882
+  (0.1ms) begin transaction
2883
+  (0.1ms) rollback transaction
2884
+  (0.1ms) begin transaction
2885
+  (0.1ms) rollback transaction
2886
+  (0.1ms) begin transaction
2887
+  (0.1ms) rollback transaction
2888
+  (0.1ms) begin transaction
2889
+  (0.1ms) rollback transaction
2890
+  (0.0ms) begin transaction
2891
+  (0.0ms) rollback transaction
2892
+  (0.0ms) begin transaction
2893
+  (0.0ms) rollback transaction
2894
+  (0.0ms) begin transaction
2895
+  (0.0ms) rollback transaction
2896
+  (0.0ms) begin transaction
2897
+  (0.0ms) rollback transaction
2898
+  (0.0ms) begin transaction
2899
+  (0.0ms) rollback transaction
2900
+  (0.0ms) begin transaction
2901
+  (0.0ms) rollback transaction
2902
+  (0.0ms) begin transaction
2903
+  (0.0ms) rollback transaction
2904
+  (0.0ms) begin transaction
2905
+  (0.0ms) rollback transaction
2906
+  (0.0ms) begin transaction
2907
+  (0.0ms) rollback transaction
2908
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2909
+  (0.1ms) begin transaction
2910
+  (0.1ms) rollback transaction
2911
+  (0.0ms) begin transaction
2912
+  (0.1ms) rollback transaction
2913
+  (0.1ms) begin transaction
2914
+  (0.1ms) rollback transaction
2915
+  (0.0ms) begin transaction
2916
+  (0.0ms) rollback transaction
2917
+  (0.0ms) begin transaction
2918
+  (0.0ms) rollback transaction
2919
+  (0.0ms) begin transaction
2920
+  (0.1ms) rollback transaction
2921
+  (0.1ms) begin transaction
2922
+  (0.1ms) rollback transaction
2923
+  (0.1ms) begin transaction
2924
+  (0.1ms) rollback transaction
2925
+  (0.0ms) begin transaction
2926
+  (0.0ms) rollback transaction
2927
+  (0.0ms) begin transaction
2928
+  (0.0ms) rollback transaction
2929
+  (0.0ms) begin transaction
2930
+  (0.0ms) rollback transaction
2931
+  (0.0ms) begin transaction
2932
+  (0.0ms) rollback transaction
2933
+  (0.0ms) begin transaction
2934
+  (0.0ms) rollback transaction
2935
+  (0.0ms) begin transaction
2936
+  (0.0ms) rollback transaction
2937
+  (0.0ms) begin transaction
2938
+  (0.0ms) rollback transaction
2939
+  (0.0ms) begin transaction
2940
+  (0.0ms) rollback transaction
2941
+  (0.0ms) begin transaction
2942
+  (0.0ms) rollback transaction
2943
+  (0.1ms) begin transaction
2944
+  (0.0ms) rollback transaction
2945
+  (0.0ms) begin transaction
2946
+  (0.1ms) rollback transaction
2947
+  (0.0ms) begin transaction
2948
+  (0.1ms) rollback transaction
2949
+  (0.0ms) begin transaction
2950
+  (0.1ms) rollback transaction
2951
+  (0.1ms) begin transaction
2952
+  (0.0ms) rollback transaction
2953
+  (0.0ms) begin transaction
2954
+  (0.0ms) rollback transaction
2955
+  (0.0ms) begin transaction
2956
+  (0.0ms) rollback transaction
2957
+  (0.0ms) begin transaction
2958
+  (0.1ms) rollback transaction
2959
+  (0.1ms) begin transaction
2960
+  (0.0ms) rollback transaction
2961
+  (0.0ms) begin transaction
2962
+  (0.0ms) rollback transaction
2963
+  (0.0ms) begin transaction
2964
+  (0.0ms) rollback transaction
2965
+  (0.0ms) begin transaction
2966
+  (0.0ms) SAVEPOINT active_record_1
2967
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'vjacobs@devpoint.info' LIMIT 1
2968
+ SQL (1.6ms) INSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?) [["age", 1], ["email", "vjacobs@devpoint.info"], ["password", "mattis odio"]]
2969
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2970
+ Processing by UsersController#index as HTML
2971
+ User Load (0.1ms) SELECT "users".* FROM "users"
2972
+ Rendered users/index.html.haml within layouts/application (5.7ms)
2973
+ Completed 200 OK in 107ms (Views: 106.7ms | ActiveRecord: 0.1ms)
2974
+  (6.6ms) rollback transaction
2975
+  (0.1ms) begin transaction
2976
+  (0.1ms) SAVEPOINT active_record_1
2977
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'rdean@edgeify.info' LIMIT 1
2978
+ SQL (0.3ms) INSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?) [["age", 4], ["email", "rdean@edgeify.info"], ["password", "adipiscing elit"]]
2979
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2980
+ Processing by UsersController#update as HTML
2981
+ Parameters: {"user"=>{"email"=>"newemail@example.com"}, "id"=>"1"}
2982
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2983
+  (0.0ms) SAVEPOINT active_record_1
2984
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE ("users"."email" = 'newemail@example.com' AND "users"."id" != 1) LIMIT 1
2985
+ SQL (1.1ms) UPDATE "users" SET "email" = ? WHERE "users"."id" = 1 [["email", "newemail@example.com"]]
2986
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2987
+ Redirected to http://test.host/users/1
2988
+ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
2989
+  (0.7ms) rollback transaction
2990
+  (0.0ms) begin transaction
2991
+  (0.0ms) rollback transaction
2992
+  (0.0ms) begin transaction
2993
+  (0.0ms) rollback transaction
2994
+  (0.0ms) begin transaction
2995
+  (0.0ms) rollback transaction
2996
+  (0.0ms) begin transaction
2997
+  (0.0ms) rollback transaction
2998
+  (0.0ms) begin transaction
2999
+  (0.0ms) rollback transaction
3000
+  (0.0ms) begin transaction
3001
+  (0.0ms) rollback transaction
3002
+  (0.0ms) begin transaction
3003
+  (0.0ms) rollback transaction
3004
+  (0.0ms) begin transaction
3005
+  (0.0ms) rollback transaction
3006
+  (0.0ms) begin transaction
3007
+ Processing by AwesomeTranslations::GroupsController#update as HTML
3008
+ Parameters: {"handler_id"=>"model_handler", "id"=>"User", "t"=>{"activerecord.attributes.user.password"=>"[FILTERED]"}}
3009
+ Redirected to http://test.host/handlers/model_handler/groups/User
3010
+ Completed 302 Found in 5ms (ActiveRecord: 0.0ms)
3011
+  (0.1ms) rollback transaction
3012
+  (0.1ms) begin transaction
3013
+ Processing by AwesomeTranslations::GroupsController#update as HTML
3014
+ Parameters: {"handler_id"=>"rails_handler", "id"=>"date_time", "t"=>{"date.day_names"=>{"1"=>{"da"=>"Mandag"}, "4"=>{"da"=>"Torsdag"}}}}
3015
+ Redirected to http://test.host/handlers/rails_handler/groups/date_time
3016
+ Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
3017
+  (0.1ms) rollback transaction
3018
+  (0.1ms) begin transaction
3019
+ Processing by AwesomeTranslations::GroupsController#update as HTML
3020
+ Parameters: {"handler_id"=>"model_handler", "id"=>"Role", "t"=>{"activerecord.attributes.role.role"=>{"da"=>"Rolle", "de"=>"Die type", "en"=>"Role"}}}
3021
+ Redirected to http://test.host/handlers/model_handler/groups/Role
3022
+ Completed 302 Found in 12ms (ActiveRecord: 0.0ms)
3023
+  (0.1ms) rollback transaction
3024
+  (0.1ms) begin transaction
3025
+  (0.1ms) rollback transaction
3026
+  (0.0ms) begin transaction
3027
+  (0.1ms) rollback transaction
3028
+  (0.0ms) begin transaction
3029
+  (0.0ms) rollback transaction
3030
+  (0.0ms) begin transaction
3031
+  (0.1ms) rollback transaction
3032
+  (0.1ms) begin transaction
3033
+  (0.1ms) rollback transaction
3034
+  (0.0ms) begin transaction
3035
+  (0.0ms) rollback transaction
3036
+  (0.0ms) begin transaction
3037
+  (0.1ms) rollback transaction
3038
+  (0.0ms) begin transaction
3039
+  (0.0ms) rollback transaction
3040
+  (0.0ms) begin transaction
3041
+  (0.0ms) rollback transaction
3042
+  (0.0ms) begin transaction
3043
+  (0.0ms) rollback transaction
3044
+  (0.0ms) begin transaction
3045
+  (0.0ms) rollback transaction
3046
+  (0.0ms) begin transaction
3047
+  (0.0ms) rollback transaction
3048
+  (0.0ms) begin transaction
3049
+  (0.0ms) rollback transaction
3050
+  (0.0ms) begin transaction
3051
+  (0.0ms) rollback transaction
3052
+  (0.0ms) begin transaction
3053
+  (0.0ms) rollback transaction
3054
+  (0.0ms) begin transaction
3055
+  (0.0ms) rollback transaction
3056
+  (0.0ms) begin transaction
3057
+  (0.0ms) rollback transaction
3058
+  (0.0ms) begin transaction
3059
+  (0.0ms) rollback transaction
3060
+  (0.0ms) begin transaction
3061
+ Processing by AwesomeTranslations::HandlersController#index as HTML
3062
+ Completed 200 OK in 101ms (Views: 101.2ms | ActiveRecord: 0.0ms)
3063
+  (0.1ms) rollback transaction
3064
+  (0.0ms) begin transaction
3065
+ Processing by AwesomeTranslations::HandlersController#show as HTML
3066
+ Parameters: {"id"=>"model_handler"}
3067
+ Completed 200 OK in 46ms (Views: 45.6ms | ActiveRecord: 0.0ms)
3068
+  (0.1ms) rollback transaction
3069
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3070
+  (0.1ms) begin transaction
3071
+  (0.1ms) SAVEPOINT active_record_1
3072
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'hwatkins@avaveo.net' LIMIT 1
3073
+ SQL (2.5ms) INSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?) [["age", 9], ["email", "hwatkins@avaveo.net"], ["password", "eu interdum"]]
3074
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3075
+ Processing by UsersController#update as HTML
3076
+ Parameters: {"user"=>{"email"=>"newemail@example.com"}, "id"=>"1"}
3077
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3078
+  (0.0ms) SAVEPOINT active_record_1
3079
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE ("users"."email" = 'newemail@example.com' AND "users"."id" != 1) LIMIT 1
3080
+ SQL (0.9ms) UPDATE "users" SET "email" = ? WHERE "users"."id" = 1 [["email", "newemail@example.com"]]
3081
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3082
+ Redirected to http://test.host/users/1
3083
+ Completed 302 Found in 10ms (ActiveRecord: 1.2ms)
3084
+  (6.8ms) rollback transaction
3085
+  (0.1ms) begin transaction
3086
+  (0.1ms) SAVEPOINT active_record_1
3087
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pwarren@blogpad.name' LIMIT 1
3088
+ SQL (0.2ms) INSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?) [["age", 5], ["email", "pwarren@blogpad.name"], ["password", "turpis sed"]]
3089
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3090
+ Processing by UsersController#index as HTML
3091
+ User Load (0.1ms) SELECT "users".* FROM "users"
3092
+ Completed 200 OK in 127ms (Views: 126.4ms | ActiveRecord: 0.1ms)
3093
+  (0.4ms) rollback transaction
3094
+  (0.1ms) begin transaction
3095
+  (0.1ms) rollback transaction
3096
+  (0.0ms) begin transaction
3097
+  (0.0ms) rollback transaction
3098
+  (0.0ms) begin transaction
3099
+  (0.0ms) rollback transaction
3100
+  (0.1ms) begin transaction
3101
+  (0.1ms) rollback transaction
3102
+  (0.1ms) begin transaction
3103
+  (0.0ms) rollback transaction
3104
+  (0.0ms) begin transaction
3105
+  (0.0ms) rollback transaction
3106
+  (0.0ms) begin transaction
3107
+  (0.0ms) rollback transaction
3108
+  (0.0ms) begin transaction
3109
+  (0.0ms) rollback transaction
3110
+  (0.0ms) begin transaction
3111
+  (0.0ms) rollback transaction
3112
+  (0.0ms) begin transaction
3113
+  (0.0ms) rollback transaction
3114
+  (0.0ms) begin transaction
3115
+  (0.0ms) rollback transaction
3116
+  (0.0ms) begin transaction
3117
+  (0.1ms) rollback transaction
3118
+  (0.1ms) begin transaction
3119
+  (0.1ms) rollback transaction
3120
+  (0.1ms) begin transaction
3121
+  (0.1ms) rollback transaction
3122
+  (0.1ms) begin transaction
3123
+  (0.0ms) rollback transaction
3124
+  (0.0ms) begin transaction
3125
+  (0.1ms) rollback transaction
3126
+  (0.0ms) begin transaction
3127
+  (0.0ms) rollback transaction
3128
+  (0.0ms) begin transaction
3129
+  (0.0ms) rollback transaction
3130
+  (0.0ms) begin transaction
3131
+  (0.0ms) rollback transaction
3132
+  (0.0ms) begin transaction
3133
+  (0.0ms) rollback transaction
3134
+  (0.0ms) begin transaction
3135
+  (0.0ms) rollback transaction
3136
+  (0.0ms) begin transaction
3137
+  (0.0ms) rollback transaction
3138
+  (0.0ms) begin transaction
3139
+  (0.0ms) rollback transaction
3140
+  (0.0ms) begin transaction
3141
+  (0.0ms) rollback transaction
3142
+  (0.0ms) begin transaction
3143
+  (0.0ms) rollback transaction
3144
+  (0.0ms) begin transaction
3145
+  (0.0ms) rollback transaction
3146
+  (0.0ms) begin transaction
3147
+ Processing by AwesomeTranslations::HandlersController#show as HTML
3148
+ Parameters: {"id"=>"model_handler"}
3149
+ Completed 200 OK in 105ms (Views: 104.9ms | ActiveRecord: 0.0ms)
3150
+  (0.1ms) rollback transaction
3151
+  (0.1ms) begin transaction
3152
+ Processing by AwesomeTranslations::HandlersController#index as HTML
3153
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)
3154
+  (0.1ms) rollback transaction
3155
+  (0.0ms) begin transaction
3156
+  (0.0ms) rollback transaction
3157
+  (0.0ms) begin transaction
3158
+ Processing by AwesomeTranslations::GroupsController#update as HTML
3159
+ Parameters: {"handler_id"=>"model_handler", "id"=>"Role", "t"=>{"activerecord.attributes.role.role"=>{"da"=>"Rolle", "de"=>"Die type", "en"=>"Role"}}}
3160
+ Redirected to http://test.host/handlers/model_handler/groups/Role
3161
+ Completed 302 Found in 6ms (ActiveRecord: 0.0ms)
3162
+  (0.1ms) rollback transaction
3163
+  (0.0ms) begin transaction
3164
+ Processing by AwesomeTranslations::GroupsController#update as HTML
3165
+ Parameters: {"handler_id"=>"rails_handler", "id"=>"date_time", "t"=>{"date.day_names"=>{"1"=>{"da"=>"Mandag"}, "4"=>{"da"=>"Torsdag"}}}}
3166
+ Redirected to http://test.host/handlers/rails_handler/groups/date_time
3167
+ Completed 302 Found in 57ms (ActiveRecord: 0.0ms)
3168
+  (0.1ms) rollback transaction
3169
+  (0.0ms) begin transaction
3170
+ Processing by AwesomeTranslations::GroupsController#update as HTML
3171
+ Parameters: {"handler_id"=>"model_handler", "id"=>"User", "t"=>{"activerecord.attributes.user.password"=>"[FILTERED]"}}
3172
+ Redirected to http://test.host/handlers/model_handler/groups/User
3173
+ Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
3174
+  (0.1ms) rollback transaction
3175
+  (0.1ms) begin transaction
3176
+  (0.0ms) rollback transaction
3177
+  (0.0ms) begin transaction
3178
+  (0.1ms) rollback transaction
3179
+  (0.0ms) begin transaction
3180
+  (0.0ms) rollback transaction
3181
+  (0.0ms) begin transaction
3182
+  (0.0ms) rollback transaction
3183
+  (0.0ms) begin transaction
3184
+  (0.0ms) rollback transaction
3185
+  (0.0ms) begin transaction
3186
+  (0.0ms) rollback transaction
3187
+  (0.0ms) begin transaction
3188
+  (0.0ms) rollback transaction
3189
+  (0.0ms) begin transaction
3190
+  (0.0ms) rollback transaction
3191
+  (0.0ms) begin transaction
3192
+  (0.1ms) rollback transaction
3193
+  (0.1ms) begin transaction
3194
+  (0.0ms) rollback transaction
3195
+  (0.0ms) begin transaction
3196
+  (0.0ms) rollback transaction
3197
+  (0.0ms) begin transaction
3198
+  (0.0ms) rollback transaction
3199
+  (0.0ms) begin transaction
3200
+  (0.0ms) rollback transaction
3201
+  (0.0ms) begin transaction
3202
+  (0.0ms) rollback transaction
3203
+  (0.0ms) begin transaction
3204
+  (0.0ms) rollback transaction
3205
+  (0.0ms) begin transaction
3206
+  (0.0ms) rollback transaction
3207
+  (0.0ms) begin transaction
3208
+  (0.0ms) rollback transaction
3209
+  (0.0ms) begin transaction
3210
+  (0.0ms) rollback transaction
3211
+  (0.0ms) begin transaction
3212
+  (0.0ms) rollback transaction
3213
+  (0.0ms) begin transaction
3214
+  (0.0ms) rollback transaction
3215
+  (0.0ms) begin transaction
3216
+  (0.0ms) rollback transaction
3217
+  (0.0ms) begin transaction
3218
+  (0.0ms) rollback transaction
3219
+  (0.0ms) begin transaction
3220
+  (0.0ms) rollback transaction
3221
+  (0.0ms) begin transaction
3222
+  (0.0ms) rollback transaction
3223
+  (0.0ms) begin transaction
3224
+  (0.0ms) rollback transaction
3225
+  (0.0ms) begin transaction
3226
+  (0.1ms) rollback transaction
3227
+  (0.0ms) begin transaction
3228
+  (0.0ms) rollback transaction
3229
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3230
+  (0.1ms) begin transaction
3231
+  (0.0ms) SAVEPOINT active_record_1
3232
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'abennett@kaymbo.biz' LIMIT 1
3233
+ SQL (1.9ms) INSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?) [["age", 3], ["email", "abennett@kaymbo.biz"], ["password", "maecenas tristique"]]
3234
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3235
+ Processing by UsersController#index as HTML
3236
+ User Load (0.1ms) SELECT "users".* FROM "users"
3237
+ Rendered users/index.html.haml within layouts/application (9.6ms)
3238
+ Completed 200 OK in 120ms (Views: 119.0ms | ActiveRecord: 0.1ms)
3239
+  (6.7ms) rollback transaction
3240
+  (0.1ms) begin transaction
3241
+  (0.1ms) SAVEPOINT active_record_1
3242
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'gcunningham@blogtag.edu' LIMIT 1
3243
+ SQL (0.3ms) INSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?) [["age", 10], ["email", "gcunningham@blogtag.edu"], ["password", "pulvinar sed"]]
3244
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3245
+ Processing by UsersController#update as HTML
3246
+ Parameters: {"user"=>{"email"=>"newemail@example.com"}, "id"=>"1"}
3247
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3248
+  (0.0ms) SAVEPOINT active_record_1
3249
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE ("users"."email" = 'newemail@example.com' AND "users"."id" != 1) LIMIT 1
3250
+ SQL (1.1ms) UPDATE "users" SET "email" = ? WHERE "users"."id" = 1 [["email", "newemail@example.com"]]
3251
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3252
+ Redirected to http://test.host/users/1
3253
+ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
3254
+  (0.7ms) rollback transaction
3255
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3256
+  (0.1ms) begin transaction
3257
+  (0.0ms) SAVEPOINT active_record_1
3258
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'dcarroll@edgepulse.com' LIMIT 1
3259
+ SQL (1.6ms) INSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?) [["age", 2], ["email", "dcarroll@edgepulse.com"], ["password", "mauris morbi"]]
3260
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3261
+ Processing by UsersController#index as HTML
3262
+ User Load (0.1ms) SELECT "users".* FROM "users"
3263
+ Rendered users/index.html.haml within layouts/application (11.2ms)
3264
+ Completed 200 OK in 121ms (Views: 120.3ms | ActiveRecord: 0.1ms)
3265
+  (6.7ms) rollback transaction
3266
+  (0.1ms) begin transaction
3267
+  (0.1ms) SAVEPOINT active_record_1
3268
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'bedwards@fivebridge.net' LIMIT 1
3269
+ SQL (0.3ms) INSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?) [["age", 2], ["email", "bedwards@fivebridge.net"], ["password", "nulla suscipit"]]
3270
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3271
+ Processing by UsersController#update as HTML
3272
+ Parameters: {"user"=>{"email"=>"newemail@example.com"}, "id"=>"1"}
3273
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3274
+  (0.0ms) SAVEPOINT active_record_1
3275
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE ("users"."email" = 'newemail@example.com' AND "users"."id" != 1) LIMIT 1
3276
+ SQL (1.2ms) UPDATE "users" SET "email" = ? WHERE "users"."id" = 1 [["email", "newemail@example.com"]]
3277
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3278
+ Redirected to http://test.host/users/1
3279
+ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
3280
+  (0.7ms) rollback transaction
3281
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3282
+  (0.1ms) begin transaction
3283
+  (0.1ms) rollback transaction
3284
+  (0.2ms) begin transaction
3285
+  (0.1ms) rollback transaction
3286
+  (0.0ms) begin transaction
3287
+  (0.1ms) rollback transaction
3288
+  (0.0ms) begin transaction
3289
+  (0.1ms) rollback transaction
3290
+  (0.0ms) begin transaction
3291
+  (0.0ms) rollback transaction
3292
+  (0.0ms) begin transaction
3293
+  (0.1ms) rollback transaction
3294
+  (0.0ms) begin transaction
3295
+ Processing by AwesomeTranslations::HandlersController#index as HTML
3296
+ Rendered /Users/kaspernj/Dev/Rails/awesome_translations/app/views/awesome_translations/handlers/index.html.haml within layouts/awesome_translations/application (2.6ms)
3297
+ Completed 200 OK in 271ms (Views: 270.7ms | ActiveRecord: 0.0ms)
3298
+  (0.1ms) rollback transaction
3299
+  (0.1ms) begin transaction
3300
+ Processing by AwesomeTranslations::HandlersController#show as HTML
3301
+ Parameters: {"id"=>"model_handler"}
3302
+ Completed 200 OK in 30ms (Views: 29.5ms | ActiveRecord: 0.0ms)
3303
+  (0.1ms) rollback transaction
3304
+  (0.0ms) begin transaction
3305
+  (0.1ms) rollback transaction
3306
+  (0.0ms) begin transaction
3307
+  (0.0ms) rollback transaction
3308
+  (0.0ms) begin transaction
3309
+  (0.0ms) rollback transaction
3310
+  (0.0ms) begin transaction
3311
+  (0.0ms) rollback transaction
3312
+  (0.0ms) begin transaction
3313
+  (0.0ms) rollback transaction
3314
+  (0.0ms) begin transaction
3315
+  (0.1ms) rollback transaction
3316
+  (0.0ms) begin transaction
3317
+  (0.0ms) rollback transaction
3318
+  (0.0ms) begin transaction
3319
+  (0.0ms) rollback transaction
3320
+  (0.0ms) begin transaction
3321
+  (0.0ms) rollback transaction
3322
+  (0.0ms) begin transaction
3323
+  (0.0ms) rollback transaction
3324
+  (0.0ms) begin transaction
3325
+  (0.0ms) rollback transaction
3326
+  (0.0ms) begin transaction
3327
+  (0.0ms) rollback transaction
3328
+  (0.0ms) begin transaction
3329
+  (0.0ms) rollback transaction
3330
+  (0.0ms) begin transaction
3331
+  (0.0ms) rollback transaction
3332
+  (0.0ms) begin transaction
3333
+  (0.0ms) rollback transaction
3334
+  (0.0ms) begin transaction
3335
+  (0.0ms) rollback transaction
3336
+  (0.0ms) begin transaction
3337
+  (0.0ms) rollback transaction
3338
+  (0.0ms) begin transaction
3339
+  (0.1ms) rollback transaction
3340
+  (0.0ms) begin transaction
3341
+  (0.0ms) rollback transaction
3342
+  (0.0ms) begin transaction
3343
+ Processing by AwesomeTranslations::GroupsController#update as HTML
3344
+ Parameters: {"handler_id"=>"model_handler", "id"=>"Role", "t"=>{"activerecord.attributes.role.role"=>{"da"=>"Rolle", "de"=>"Die type", "en"=>"Role"}}}
3345
+ Redirected to http://test.host/handlers/model_handler/groups/Role
3346
+ Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
3347
+  (0.0ms) rollback transaction
3348
+  (0.0ms) begin transaction
3349
+ Processing by AwesomeTranslations::GroupsController#update as HTML
3350
+ Parameters: {"handler_id"=>"model_handler", "id"=>"User", "t"=>{"activerecord.attributes.user.password"=>"[FILTERED]"}}
3351
+ Redirected to http://test.host/handlers/model_handler/groups/User
3352
+ Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
3353
+  (0.1ms) rollback transaction
3354
+  (0.0ms) begin transaction
3355
+ Processing by AwesomeTranslations::GroupsController#update as HTML
3356
+ Parameters: {"handler_id"=>"rails_handler", "id"=>"date_time", "t"=>{"date.day_names"=>{"1"=>{"da"=>"Mandag"}, "4"=>{"da"=>"Torsdag"}}}}
3357
+ Redirected to http://test.host/handlers/rails_handler/groups/date_time
3358
+ Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
3359
+  (0.1ms) rollback transaction
3360
+  (0.0ms) begin transaction
3361
+  (0.1ms) rollback transaction
3362
+  (0.0ms) begin transaction
3363
+  (0.1ms) rollback transaction
3364
+  (0.0ms) begin transaction
3365
+  (0.1ms) rollback transaction
3366
+  (0.1ms) begin transaction
3367
+  (0.0ms) rollback transaction
3368
+  (0.1ms) begin transaction
3369
+  (0.1ms) rollback transaction
3370
+  (0.0ms) begin transaction
3371
+  (0.0ms) rollback transaction
3372
+  (0.0ms) begin transaction
3373
+  (0.0ms) rollback transaction
3374
+  (0.0ms) begin transaction
3375
+  (0.0ms) rollback transaction
3376
+  (0.0ms) begin transaction
3377
+  (0.0ms) rollback transaction
3378
+  (0.1ms) begin transaction
3379
+  (0.1ms) rollback transaction
3380
+  (0.0ms) begin transaction
3381
+  (0.1ms) rollback transaction
3382
+  (0.1ms) begin transaction
3383
+  (0.1ms) rollback transaction
3384
+  (0.0ms) begin transaction
3385
+  (0.0ms) rollback transaction
3386
+  (0.0ms) begin transaction
3387
+  (0.0ms) rollback transaction
3388
+  (0.0ms) begin transaction
3389
+  (0.1ms) rollback transaction
3390
+  (0.0ms) begin transaction
3391
+  (0.0ms) rollback transaction
3392
+  (0.0ms) begin transaction
3393
+  (0.0ms) rollback transaction
3394
+  (0.0ms) begin transaction
3395
+  (0.0ms) rollback transaction
3396
+  (0.0ms) begin transaction
3397
+  (0.0ms) rollback transaction
3398
+  (0.0ms) begin transaction
3399
+  (0.1ms) rollback transaction
3400
+  (0.0ms) begin transaction
3401
+  (0.1ms) SAVEPOINT active_record_1
3402
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'kcruz@roomm.com' LIMIT 1
3403
+ SQL (1.6ms) INSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?) [["age", 10], ["email", "kcruz@roomm.com"], ["password", "vivamus metus"]]
3404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3405
+ Processing by UsersController#index as HTML
3406
+ User Load (0.1ms) SELECT "users".* FROM "users"
3407
+ Completed 200 OK in 16ms (Views: 15.9ms | ActiveRecord: 0.1ms)
3408
+  (6.7ms) rollback transaction
3409
+  (0.1ms) begin transaction
3410
+  (0.1ms) SAVEPOINT active_record_1
3411
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'shall@rhyzio.biz' LIMIT 1
3412
+ SQL (0.3ms) INSERT INTO "users" ("age", "email", "password") VALUES (?, ?, ?) [["age", 7], ["email", "shall@rhyzio.biz"], ["password", "turpis adipiscing"]]
3413
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3414
+ Processing by UsersController#update as HTML
3415
+ Parameters: {"user"=>{"email"=>"newemail@example.com"}, "id"=>"1"}
3416
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3417
+  (0.0ms) SAVEPOINT active_record_1
3418
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE ("users"."email" = 'newemail@example.com' AND "users"."id" != 1) LIMIT 1
3419
+ SQL (1.0ms) UPDATE "users" SET "email" = ? WHERE "users"."id" = 1 [["email", "newemail@example.com"]]
3420
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3421
+ Redirected to http://test.host/users/1
3422
+ Completed 302 Found in 4ms (ActiveRecord: 1.3ms)
3423
+  (0.6ms) rollback transaction
3424
+  (0.1ms) begin transaction
3425
+  (0.1ms) rollback transaction
3426
+  (0.0ms) begin transaction
3427
+  (0.0ms) rollback transaction
3428
+  (0.0ms) begin transaction
3429
+  (0.0ms) rollback transaction
3430
+  (0.0ms) begin transaction
3431
+  (0.0ms) rollback transaction
3432
+  (0.0ms) begin transaction
3433
+  (0.1ms) rollback transaction
3434
+  (0.0ms) begin transaction
3435
+  (0.0ms) rollback transaction
3436
+  (0.0ms) begin transaction
3437
+  (0.0ms) rollback transaction
3438
+  (0.0ms) begin transaction
3439
+  (0.0ms) rollback transaction
3440
+  (0.0ms) begin transaction
3441
+  (0.0ms) rollback transaction
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.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kasper Johansen
@@ -284,6 +284,7 @@ files:
284
284
  - spec/dummy/config/initializers/secret_token.rb
285
285
  - spec/dummy/config/initializers/session_store.rb
286
286
  - spec/dummy/config/initializers/wrap_parameters.rb
287
+ - spec/dummy/config/locales/awesome_translations/date_time/da.yml
287
288
  - spec/dummy/config/locales/awesome_translations/models/role/da.yml
288
289
  - spec/dummy/config/locales/awesome_translations/models/role/de.yml
289
290
  - spec/dummy/config/locales/awesome_translations/models/role/en.yml
@@ -480,6 +481,7 @@ test_files:
480
481
  - spec/dummy/config/initializers/secret_token.rb
481
482
  - spec/dummy/config/initializers/session_store.rb
482
483
  - spec/dummy/config/initializers/wrap_parameters.rb
484
+ - spec/dummy/config/locales/awesome_translations/date_time/da.yml
483
485
  - spec/dummy/config/locales/awesome_translations/models/role/da.yml
484
486
  - spec/dummy/config/locales/awesome_translations/models/role/de.yml
485
487
  - spec/dummy/config/locales/awesome_translations/models/role/en.yml