toast 1.0.13 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/toast/rack_app.rb +1 -1
- data/lib/toast/request_helpers.rb +1 -1
- data/lib/toast/singular_assoc_request.rb +1 -1
- data/lib/toast/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb20068ccb6f141c38b26e707b274ced64694b53
|
4
|
+
data.tar.gz: b88e271b12dd5f243216284a9530aead835bbc4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77ae72c8df947ed7be17f89035dbd65caa67c3f96a5151d04cb2f83d84e07cedb39ecd45b4a157a773d987d196b32456dde3e1f66a35c54df4009b5e41d8b9a7
|
7
|
+
data.tar.gz: bc084558fdeedeb1b32199065c45c7e71328c363337c67960b6b2a573d59da0ccf949a903869a9322fb8f38e031e8ac08bcdf95ea9cd8ef315851603d8d6ba84
|
data/lib/toast/rack_app.rb
CHANGED
@@ -18,7 +18,7 @@ class Toast::RackApp
|
|
18
18
|
request = ActionDispatch::Request.new(env)
|
19
19
|
Toast.request = request
|
20
20
|
|
21
|
-
Toast.logger.info "
|
21
|
+
Toast.logger.info "processing: <#{request.method} #{URI.decode(request.fullpath)}>"
|
22
22
|
|
23
23
|
# Authentication: respond with 401 on exception or falsy return value:
|
24
24
|
begin
|
@@ -90,7 +90,7 @@ module Toast::RequestHelpers
|
|
90
90
|
#
|
91
91
|
# Return: Rack conform response
|
92
92
|
def response status_sym, headers: {}, msg: nil, body: nil
|
93
|
-
Toast.logger.info "
|
93
|
+
Toast.logger.info "done: #{msg}"
|
94
94
|
|
95
95
|
unless Rails.env == 'production'
|
96
96
|
# put message in body, too, if body is free
|
@@ -50,7 +50,7 @@ class Toast::SingularAssocRequest
|
|
50
50
|
response :ok,
|
51
51
|
headers: {"Content-Type" => @config.media_type},
|
52
52
|
body: represent(model_instance, target_config),
|
53
|
-
msg: "sent
|
53
|
+
msg: "sent #{target_config.model_class}##{model_instance.id}"
|
54
54
|
end
|
55
55
|
|
56
56
|
rescue NotAllowed => error
|
data/lib/toast/version.rb
CHANGED