tzispa_helpers 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/tzispa/helpers/response.rb +2 -2
- data/lib/tzispa/helpers/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: 39ea40159bea483493eb49b8615a5467ec65b9ce
|
4
|
+
data.tar.gz: d761108f0ba8f8f0c7ed451e394fe250f44414a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb7e3ed6b2e523b09ea712a375b0df0684ba46d756d5805249228fe1157716a9c9db312599b4e68d560c630226cd687ae6f85d2e9b5cb40620594b427d5159d4
|
7
|
+
data.tar.gz: 9d06b3d38f8569a4dd8273cca75294ba41e5bcb2068b28294493c8ca0eec4426f552a566218642429050ac80a7ff402c984e0e593884e475db77b1a365ab49cd
|
data/CHANGELOG.md
CHANGED
@@ -41,7 +41,7 @@ module Tzispa
|
|
41
41
|
end
|
42
42
|
|
43
43
|
# Halt processing and redirect to the URI provided.
|
44
|
-
def redirect(uri, *args)
|
44
|
+
def redirect(uri, absolute, *args)
|
45
45
|
if env['HTTP_VERSION'] == 'HTTP/1.1' and env["REQUEST_METHOD"] != 'GET'
|
46
46
|
status 303
|
47
47
|
else
|
@@ -50,7 +50,7 @@ module Tzispa
|
|
50
50
|
|
51
51
|
# According to RFC 2616 section 14.30, "the field value consists of a
|
52
52
|
# single absolute URI"
|
53
|
-
response['Location'] = uri(uri.to_s,
|
53
|
+
response['Location'] = uri(uri.to_s, absolute)
|
54
54
|
halt(*args)
|
55
55
|
end
|
56
56
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tzispa_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
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: mail
|