awesome_translations 0.0.43 → 0.0.44
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f73a1c739d21cd4d27000927cd7060900cb5839
|
4
|
+
data.tar.gz: b1479e651fb2ec1d7ad2819b402ca2406edea5cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 998592065cac199a2752004a051dea6e9f912a158f12e862f98b9d8f9f1638dc1278747804ea5161de1d05ae3db1af0e51e30687340ca30e2ee0d0c6322b76b8
|
7
|
+
data.tar.gz: 8ec2d116ab0f45f21500cd15542cf40eaf8f93c2b790374035a5d7e54f78aac9a805f992590a7f33d04583c8eb7f0843ffe8ac6663514e88296ea5125795fe68
|
@@ -1,52 +1,53 @@
|
|
1
1
|
class AwesomeTranslations::GlobalTranslator
|
2
2
|
RUBY_2 = RUBY_VERSION.starts_with?("2")
|
3
3
|
|
4
|
-
def self.
|
5
|
-
if
|
6
|
-
|
4
|
+
def self.call_information(caller_number)
|
5
|
+
if RUBY_2
|
6
|
+
# This is much faster than the other solution
|
7
|
+
call = caller_locations(caller_number + 2, caller_number + 2).first
|
7
8
|
|
8
|
-
|
9
|
-
call
|
10
|
-
|
11
|
-
call
|
12
|
-
|
9
|
+
{
|
10
|
+
method: call.label,
|
11
|
+
path: call.absolute_path,
|
12
|
+
line_no: call.lineno
|
13
|
+
}
|
14
|
+
else
|
15
|
+
call = caller[caller_number + 1]
|
16
|
+
file_info = call.match(/\A(.+):(\d+):in `(.+?)'/)
|
13
17
|
|
14
|
-
|
18
|
+
raise "Could not get previous file name from: #{caller[0]}" if file_info[1].blank?
|
15
19
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
+
{
|
21
|
+
method: file_info[3],
|
22
|
+
path: file_info[1],
|
23
|
+
line_no: file_info[2]
|
24
|
+
}
|
25
|
+
end
|
26
|
+
end
|
20
27
|
|
21
|
-
|
22
|
-
|
23
|
-
removed_root = true
|
24
|
-
break
|
25
|
-
end
|
28
|
+
def self.translate(key, args, &blk)
|
29
|
+
caller_number = args[:caller_number] || 0
|
26
30
|
|
27
|
-
|
28
|
-
|
29
|
-
|
31
|
+
if args[:call]
|
32
|
+
call = args.fetch(:call)
|
33
|
+
else
|
34
|
+
call = call_information(caller_number)
|
35
|
+
end
|
30
36
|
|
31
|
-
|
37
|
+
new(key: key, args: args, blk: blk, call: call).translation
|
38
|
+
end
|
32
39
|
|
33
|
-
|
34
|
-
dir = dir.gsub(/\Aapp\/controllers(\/?)/, "")
|
35
|
-
file = file.gsub(/_controller\Z/, "")
|
36
|
-
is_controller = true
|
37
|
-
elsif dir.starts_with?("app/views")
|
38
|
-
dir = dir.gsub(/\Aapp\/views(\/?)/, "")
|
39
|
-
elsif dir.starts_with?("app/")
|
40
|
-
dir = dir.gsub(/\Aapp\//, "")
|
41
|
-
end
|
40
|
+
attr_reader :key, :args, :blk, :call
|
42
41
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
42
|
+
def initialize(init_args)
|
43
|
+
@key = init_args.fetch(:key)
|
44
|
+
@args = init_args.fetch(:args)
|
45
|
+
@blk = init_args.fetch(:blk)
|
46
|
+
@call = init_args.fetch(:call)
|
47
|
+
end
|
49
48
|
|
49
|
+
def translation
|
50
|
+
if key.is_a?(String) && key.start_with?(".")
|
50
51
|
# Change key to full path.
|
51
52
|
key = translation_key
|
52
53
|
end
|
@@ -54,27 +55,75 @@ class AwesomeTranslations::GlobalTranslator
|
|
54
55
|
I18n.t(key, *args[:translation_args], &blk)
|
55
56
|
end
|
56
57
|
|
57
|
-
|
58
|
-
if RUBY_2
|
59
|
-
# This is much faster than the other solution
|
60
|
-
call = caller_locations(caller_number + 2, caller_number + 2).first
|
58
|
+
private
|
61
59
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
60
|
+
def dir
|
61
|
+
if @_dir.nil?
|
62
|
+
@_dir = File.dirname(previous_file)
|
63
|
+
@_dir = @_dir.gsub(/\A#{Regexp.escape(Rails.root.to_s)}\//, "")
|
64
|
+
@_dir = @_dir.gsub(/\Aspec\/dummy\//, "")
|
65
|
+
|
66
|
+
if @_dir.starts_with?("app/controllers")
|
67
|
+
@_dir = @_dir.gsub(/\Aapp\/controllers(\/?)/, "")
|
68
|
+
@_is_controller = true
|
69
|
+
elsif @_dir.starts_with?("app/views")
|
70
|
+
@_dir = @_dir.gsub(/\Aapp\/views(\/?)/, "")
|
71
|
+
elsif @_dir.starts_with?("app/")
|
72
|
+
@_dir = @_dir.gsub(/\Aapp\//, "")
|
73
|
+
end
|
74
|
+
end
|
70
75
|
|
71
|
-
|
76
|
+
@_dir
|
77
|
+
end
|
72
78
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
79
|
+
def file
|
80
|
+
if @_file.nil?
|
81
|
+
@_file = File.basename(previous_file, File.extname(previous_file))
|
82
|
+
@_file = @_file.gsub(/_controller\Z/, "") if controller?
|
83
|
+
end
|
84
|
+
|
85
|
+
@_file
|
86
|
+
end
|
87
|
+
|
88
|
+
def controller?
|
89
|
+
dir
|
90
|
+
@_is_controller
|
91
|
+
end
|
92
|
+
|
93
|
+
def previous_file
|
94
|
+
if @_previous_file.nil?
|
95
|
+
@_previous_file = call[:path]
|
96
|
+
|
97
|
+
# Remove any Rails root.
|
98
|
+
AwesomeTranslations::ModelInspector.engines.each do |engine|
|
99
|
+
root = engine.root.to_s
|
100
|
+
|
101
|
+
next unless @_previous_file.starts_with?(root)
|
102
|
+
@_previous_file = @_previous_file.gsub(/\A#{Regexp.escape(root)}\//, "")
|
103
|
+
break
|
104
|
+
end
|
78
105
|
end
|
106
|
+
|
107
|
+
@_previous_file
|
108
|
+
end
|
109
|
+
|
110
|
+
def translation_key
|
111
|
+
translation_key = dir
|
112
|
+
translation_key = translation_key.gsub(/\Aapp\//, "")
|
113
|
+
translation_key << "/#{file}"
|
114
|
+
|
115
|
+
key_parts = translation_key.split("/")
|
116
|
+
last_key_part = key_parts.pop
|
117
|
+
|
118
|
+
if last_key_part.start_with?("_")
|
119
|
+
last_key_part = last_key_part[1, last_key_part.length]
|
120
|
+
end
|
121
|
+
|
122
|
+
key_parts << last_key_part
|
123
|
+
key_parts << call[:method] if controller? && args[:action_in_key] != false
|
124
|
+
|
125
|
+
full_key = key_parts.join(".")
|
126
|
+
full_key << key
|
127
|
+
full_key
|
79
128
|
end
|
80
129
|
end
|
Binary file
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/spec/dummy/log/test.log
CHANGED
@@ -6924,3 +6924,425 @@ Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
|
6924
6924
|
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
6925
6925
|
[1m[35m (0.0ms)[0m begin transaction
|
6926
6926
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6927
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6928
|
+
[1m[35m (2.0ms)[0m DELETE FROM "roles";
|
6929
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
6930
|
+
[1m[35m (0.3ms)[0m DELETE FROM sqlite_sequence where name = 'roles';
|
6931
|
+
[1m[36m (0.8ms)[0m [1mDELETE FROM "users";[0m
|
6932
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
6933
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'users';[0m
|
6934
|
+
Unhandeled validator: ActiveModel::Validations::NumericalityValidator
|
6935
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
6936
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6937
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
6938
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6939
|
+
Unhandeled validator: ActiveModel::Validations::NumericalityValidator
|
6940
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
6941
|
+
Processing by AwesomeTranslations::GroupsController#update_translations_cache as HTML
|
6942
|
+
Parameters: {"handler_id"=>"rails_handler", "id"=>"date_time"}
|
6943
|
+
Redirected to /handlers/rails_handler/groups/date_time
|
6944
|
+
Completed 302 Found in 55ms (ActiveRecord: 0.0ms)
|
6945
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6946
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6947
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
6948
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6949
|
+
Unhandeled validator: ActiveModel::Validations::NumericalityValidator
|
6950
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
6951
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
6952
|
+
Parameters: {"t"=>{"activerecord.attributes.user.password"=>"[FILTERED]"}, "handler_id"=>"model_handler", "id"=>"User"}
|
6953
|
+
Redirected to http://test.host/handlers/model_handler/groups/User
|
6954
|
+
Completed 302 Found in 21ms (ActiveRecord: 0.0ms)
|
6955
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6956
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6957
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
6958
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6959
|
+
Unhandeled validator: ActiveModel::Validations::NumericalityValidator
|
6960
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
6961
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
6962
|
+
Parameters: {"t"=>{"activerecord.attributes.role.role"=>{"da"=>"Rolle", "de"=>"Die type", "en"=>"Role"}}, "handler_id"=>"model_handler", "id"=>"Role"}
|
6963
|
+
Redirected to http://test.host/handlers/model_handler/groups/Role
|
6964
|
+
Completed 302 Found in 22ms (ActiveRecord: 0.0ms)
|
6965
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6966
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6967
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
6968
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6969
|
+
Unhandeled validator: ActiveModel::Validations::NumericalityValidator
|
6970
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
6971
|
+
Processing by AwesomeTranslations::GroupsController#update as HTML
|
6972
|
+
Parameters: {"t"=>{"date.day_names"=>{"1"=>{"da"=>"Mandag"}, "4"=>{"da"=>"Torsdag"}}}, "handler_id"=>"rails_handler", "id"=>"date_time"}
|
6973
|
+
Redirected to http://test.host/handlers/rails_handler/groups/date_time
|
6974
|
+
Completed 302 Found in 55ms (ActiveRecord: 0.0ms)
|
6975
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6976
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6977
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
6978
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6979
|
+
Processing by AwesomeTranslations::HandlersController#update_cache as HTML
|
6980
|
+
Redirected to /handlers
|
6981
|
+
Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
|
6982
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6983
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6984
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
6985
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6986
|
+
Unhandeled validator: ActiveModel::Validations::NumericalityValidator
|
6987
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
6988
|
+
Processing by AwesomeTranslations::HandlersController#update_groups_cache as HTML
|
6989
|
+
Parameters: {"id"=>"rails_handler"}
|
6990
|
+
Redirected to /handlers/rails_handler
|
6991
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
|
6992
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6993
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6994
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
6995
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6996
|
+
Processing by AwesomeTranslations::HandlersController#index as HTML
|
6997
|
+
Rendered /Users/kaspernj/Dev/Rails/Public/awesome_translations/app/views/awesome_translations/handlers/index.html.haml within layouts/awesome_translations/application (18.4ms)
|
6998
|
+
Completed 200 OK in 262ms (Views: 261.5ms | ActiveRecord: 0.0ms)
|
6999
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7000
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7001
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7002
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7003
|
+
Unhandeled validator: ActiveModel::Validations::NumericalityValidator
|
7004
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
7005
|
+
Processing by AwesomeTranslations::HandlersController#show as HTML
|
7006
|
+
Parameters: {"id"=>"model_handler"}
|
7007
|
+
Rendered /Users/kaspernj/Dev/Rails/Public/awesome_translations/app/views/awesome_translations/handlers/show.html.haml within layouts/awesome_translations/application (57.6ms)
|
7008
|
+
Completed 200 OK in 74ms (Views: 62.7ms | ActiveRecord: 0.0ms)
|
7009
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7010
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7011
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
7012
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7013
|
+
Unhandeled validator: ActiveModel::Validations::NumericalityValidator
|
7014
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
7015
|
+
Processing by AwesomeTranslations::HandlersController#show as HTML
|
7016
|
+
Parameters: {"with_missing_translations"=>"only_with", "id"=>"model_handler"}
|
7017
|
+
Rendered /Users/kaspernj/Dev/Rails/Public/awesome_translations/app/views/awesome_translations/handlers/show.html.haml within layouts/awesome_translations/application (10.7ms)
|
7018
|
+
Completed 200 OK in 25ms (Views: 14.3ms | ActiveRecord: 0.0ms)
|
7019
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7020
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7021
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7022
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7023
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7024
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'cburns@kwimbee.com' LIMIT 1
|
7025
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "users" ("email", "password", "age") VALUES (?, ?, ?)[0m [["email", "cburns@kwimbee.com"], ["password", "quis orci"], ["age", 1]]
|
7026
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7027
|
+
Processing by UsersController#index as HTML
|
7028
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
7029
|
+
Rendered users/index.html.haml within layouts/application (6.3ms)
|
7030
|
+
Completed 200 OK in 21ms (Views: 20.9ms | ActiveRecord: 0.1ms)
|
7031
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
7032
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7033
|
+
[1m[35m (0.0ms)[0m commit transaction
|
7034
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7035
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7036
|
+
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'plewis@leenti.biz' LIMIT 1[0m
|
7037
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "password", "age") VALUES (?, ?, ?) [["email", "plewis@leenti.biz"], ["password", "nulla mollis"], ["age", 5]]
|
7038
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7039
|
+
Processing by UsersController#update as HTML
|
7040
|
+
Parameters: {"user"=>{"email"=>"newemail@example.com"}, "id"=>"1"}
|
7041
|
+
[1m[35mUser Load (0.7ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
7042
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7043
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE ("users"."email" = 'newemail@example.com' AND "users"."id" != 1) LIMIT 1
|
7044
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "email" = ? WHERE "users"."id" = ?[0m [["email", "newemail@example.com"], ["id", 1]]
|
7045
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7046
|
+
Redirected to http://test.host/users/1
|
7047
|
+
Completed 302 Found in 19ms (ActiveRecord: 1.1ms)
|
7048
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
7049
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7050
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
7051
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7052
|
+
Processing by AwesomeTranslations::CleanUpsController#new as HTML
|
7053
|
+
Rendered /Users/kaspernj/Dev/Rails/Public/awesome_translations/app/views/awesome_translations/clean_ups/new.html.haml within layouts/awesome_translations/application (5.1ms)
|
7054
|
+
Completed 200 OK in 22ms (Views: 21.6ms | ActiveRecord: 0.0ms)
|
7055
|
+
Processing by AwesomeTranslations::CleanUpsController#create as HTML
|
7056
|
+
Parameters: {"utf8"=>"✓", "c"=>{"1"=>"1"}, "commit"=>"Delete"}
|
7057
|
+
Redirected to http://www.example.com/clean_ups/new
|
7058
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
|
7059
|
+
Processing by AwesomeTranslations::CleanUpsController#new as HTML
|
7060
|
+
Rendered /Users/kaspernj/Dev/Rails/Public/awesome_translations/app/views/awesome_translations/clean_ups/new.html.haml within layouts/awesome_translations/application (1.5ms)
|
7061
|
+
Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)
|
7062
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7063
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7064
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7065
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7066
|
+
Processing by AwesomeTranslations::DuplicatesController#index as HTML
|
7067
|
+
Rendered /Users/kaspernj/Dev/Rails/Public/awesome_translations/app/views/awesome_translations/duplicates/index.html.haml within layouts/awesome_translations/application (4.7ms)
|
7068
|
+
Completed 200 OK in 15ms (Views: 14.7ms | ActiveRecord: 0.0ms)
|
7069
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7070
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7071
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7072
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7073
|
+
Processing by AwesomeTranslations::DuplicatesController#index as HTML
|
7074
|
+
Rendered /Users/kaspernj/Dev/Rails/Public/awesome_translations/app/views/awesome_translations/duplicates/index.html.haml within layouts/awesome_translations/application (1.8ms)
|
7075
|
+
Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)
|
7076
|
+
Processing by AwesomeTranslations::DuplicatesController#create as HTML
|
7077
|
+
Parameters: {"utf8"=>"✓", "d"=>{"2"=>"1"}, "commit"=>"Delete duplicates"}
|
7078
|
+
Redirected to http://www.example.com/duplicates
|
7079
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
|
7080
|
+
Processing by AwesomeTranslations::DuplicatesController#index as HTML
|
7081
|
+
Rendered /Users/kaspernj/Dev/Rails/Public/awesome_translations/app/views/awesome_translations/duplicates/index.html.haml within layouts/awesome_translations/application (0.8ms)
|
7082
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
|
7083
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7084
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7085
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7086
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7087
|
+
Processing by AwesomeTranslations::MovalsController#index as HTML
|
7088
|
+
Rendered /Users/kaspernj/Dev/Rails/Public/awesome_translations/app/views/awesome_translations/movals/index.html.haml within layouts/awesome_translations/application (3.6ms)
|
7089
|
+
Completed 200 OK in 12ms (Views: 11.9ms | ActiveRecord: 0.0ms)
|
7090
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7091
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7092
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7093
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7094
|
+
Processing by AwesomeTranslations::MovalsController#index as HTML
|
7095
|
+
Rendered /Users/kaspernj/Dev/Rails/Public/awesome_translations/app/views/awesome_translations/movals/index.html.haml within layouts/awesome_translations/application (1.8ms)
|
7096
|
+
Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)
|
7097
|
+
Processing by AwesomeTranslations::MovalsController#create as HTML
|
7098
|
+
Parameters: {"utf8"=>"✓", "m"=>{"1"=>"1"}, "commit"=>"Move"}
|
7099
|
+
Redirected to http://www.example.com/movals
|
7100
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
|
7101
|
+
Processing by AwesomeTranslations::MovalsController#index as HTML
|
7102
|
+
Rendered /Users/kaspernj/Dev/Rails/Public/awesome_translations/app/views/awesome_translations/movals/index.html.haml within layouts/awesome_translations/application (1.1ms)
|
7103
|
+
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
|
7104
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7105
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7106
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7107
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7108
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7109
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7110
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7111
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7112
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7113
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7114
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
7115
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7116
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7117
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7118
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7119
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7120
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7121
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7122
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7123
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7124
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7125
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7126
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7127
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7128
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7129
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7130
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
7131
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7132
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7133
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7134
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7135
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7136
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7137
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7138
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7139
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7140
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7141
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7142
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7143
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7144
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7145
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7146
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7147
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7148
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7149
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7150
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7151
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7152
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7153
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7154
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7155
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7156
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7157
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7158
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7159
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7160
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7161
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7162
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7163
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7164
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7165
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7166
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7167
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7168
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7169
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7170
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7171
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7172
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7173
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7174
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7175
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7176
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7177
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7178
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7179
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7180
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7181
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7182
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7183
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7184
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7185
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7186
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7187
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7188
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7189
|
+
[1m[35m (0.2ms)[0m begin transaction
|
7190
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7191
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7192
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7193
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7194
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7195
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7196
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7197
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7198
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7199
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7200
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7201
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7202
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
7203
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7204
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7205
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7206
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7207
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7208
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7209
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7210
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7211
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7212
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7213
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7214
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7215
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7216
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7217
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7218
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7219
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7220
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7221
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7222
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7223
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7224
|
+
Unhandeled validator: ActiveModel::Validations::NumericalityValidator
|
7225
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
7226
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7227
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7228
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
7229
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7230
|
+
Unhandeled validator: ActiveModel::Validations::NumericalityValidator
|
7231
|
+
Unhandeled validator: MoneyRails::ActiveModel::MoneyValidator
|
7232
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7233
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7234
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7235
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7236
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7237
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7238
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7239
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7240
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7241
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7242
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7243
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7244
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7245
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7246
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7247
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7248
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7249
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7250
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7251
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7252
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7253
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7254
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7255
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7256
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7257
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7258
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7259
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7260
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7261
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7262
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7263
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7264
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7265
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7266
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7267
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7268
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7269
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7270
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7271
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7272
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7273
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7274
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7275
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7276
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7277
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7278
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7279
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7280
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7281
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7282
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7283
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7284
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7285
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7286
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7287
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7288
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7289
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7290
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7291
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7292
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7293
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7294
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7295
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7296
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
7297
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7298
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
7299
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7300
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7301
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7302
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7303
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7304
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7305
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7306
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7307
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7308
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7309
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7310
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7311
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7312
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7313
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7314
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
7315
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7316
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7317
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7318
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7319
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7320
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7321
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7322
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7323
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7324
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7325
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7326
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7327
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7328
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7329
|
+
[1m[35m (0.2ms)[0m begin transaction
|
7330
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
7331
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7332
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7333
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7334
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7335
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7336
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7337
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7338
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7339
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7340
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7341
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7342
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7343
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7344
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7345
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7346
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
7347
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7348
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.44
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kasper Johansen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: array_enumerator
|