tsurezure 0.0.33 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tsurezure.rb +1 -1
- data/readme.md +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 818cbc747a3775c0d73c76bad34638238d99bdbb3363adf1bd1104e635e8ab3e
|
4
|
+
data.tar.gz: 00c69ab8c119c41aa6481460518b27b5b9d29b7405263473be83d0fdb2a3a0c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7c352282df3696c3e2458d0c883d416a5202d16d2df7394ea36989cd8b31985b5fad00040eed6b7771fd2294a4c888f713f70280205540b626016804afa488e
|
7
|
+
data.tar.gz: e2e008a906f18c39fddf09c64fd238d2fdf06b73ea9e2f89425d8a8d4fdaea91b86cd0dbc1083b10d3d95c390dcd7b14e5ef9893c2f59917919878bcab73a59f
|
data/lib/tsurezure.rb
CHANGED
@@ -81,7 +81,7 @@ class Tsurezure
|
|
81
81
|
# to initialize: session and length of response
|
82
82
|
responder = HTTPUtils::ServerResponse.new(
|
83
83
|
@session,
|
84
|
-
res[:message].bytesize
|
84
|
+
res[:message].nil? ? '' : res[:message].bytesize
|
85
85
|
)
|
86
86
|
|
87
87
|
go_through_middleware request_object, responder, res, type
|
data/readme.md
CHANGED
@@ -141,6 +141,8 @@ add_middleware path, callback, options
|
|
141
141
|
|
142
142
|
## todo
|
143
143
|
|
144
|
+
- [ ] I'm wondering if I should change the implementation of the middleware functionality. currently, the middleware has no idea where the request it's processing is about to go. I'm thinking it may be a good idea to pass in the request's determined `responder` function which is determined before middleware is called (see `tsurezure.rb:135-160`). this will allow users to choose whether to call the final responder function. I don't know if this would be better or just different.
|
145
|
+
|
144
146
|
- [ ] make it so registered uris can only be accessed with the specified method, and everything else returns a 405 (maybe make this an option??)
|
145
147
|
|
146
148
|
- [ ] give the user an option to add middleware specifically for catching errors
|