tzispa 0.4.8 → 0.4.9
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/CHANGELOG.md +4 -0
- data/lib/tzispa/controller/api.rb +2 -2
- data/lib/tzispa/http/request.rb +2 -0
- data/lib/tzispa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2952c9de1b1385841ef9a5fef9bda14cc221b2d7
|
|
4
|
+
data.tar.gz: 504b882b036f264bad7ed3e2c3f3528ba24cb7d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 79fa6d1e3a46f26ea0a5356f347e5ade014362aa09651afe1d22be64029a16f8ee72ec2b81448998d633c285536a47fbfbfa6707fe58ce72c38f95d12e2cb382
|
|
7
|
+
data.tar.gz: 99267f5ea46a686902fde99e5f5afeaa196c541ad01ce7737af7f7c4ef09fdaf920e076ae295d61c7167d918ac6a5851abf49248780739e69c75e713212dc165
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@ Tzispa
|
|
|
2
2
|
|
|
3
3
|
General purpose web framework
|
|
4
4
|
|
|
5
|
+
## v0.4.9
|
|
6
|
+
- in http/response.rb add missing alias secure? for ssl?
|
|
7
|
+
- in controller/api.rb fix redirect url if data is empty
|
|
8
|
+
|
|
5
9
|
## v0.4.8
|
|
6
10
|
- rename context method error to error_500 for conflict with response helper error method
|
|
7
11
|
- pass response.status to error_page in controller base class
|
|
@@ -30,12 +30,12 @@ module Tzispa
|
|
|
30
30
|
|
|
31
31
|
def redirect
|
|
32
32
|
context.flash << hnd.message
|
|
33
|
-
url = if hnd.data
|
|
33
|
+
url = if hnd.data && !hnd.data.strip.empty?
|
|
34
34
|
hnd.data.start_with?('#') ? "#{request.referer}#{hnd.data}" : hnd.data
|
|
35
35
|
else
|
|
36
36
|
request.referer
|
|
37
37
|
end
|
|
38
|
-
context.redirect url, response
|
|
38
|
+
context.redirect url, config.absolute_redirects, response
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
def html
|
data/lib/tzispa/http/request.rb
CHANGED
data/lib/tzispa/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tzispa
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Juan Antonio Piñero
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-05-
|
|
11
|
+
date: 2016-05-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rack
|