tzispa_helpers 0.1.9 → 0.1.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0b516556aa60c63670b7444ad0f619c3b3bad23
4
- data.tar.gz: 8f51759a3740a61353beb8ff24df67140b31c3b2
3
+ metadata.gz: 39ea40159bea483493eb49b8615a5467ec65b9ce
4
+ data.tar.gz: d761108f0ba8f8f0c7ed451e394fe250f44414a3
5
5
  SHA512:
6
- metadata.gz: c9fe4488f24732409954c38290db7d1d106fa80a1bc1cf12fb7ee8ba0751e64f3092c51000a9c8863f3b47bc0d16049a0321742be689feba9605a7b641ba186e
7
- data.tar.gz: 25bb0121b7436b965bea2a133d1afcac60cf2870c08550d0a6cf884572f8a65bd1706aa794cff03e2cdcaf085df6bac939f154c4664451f0159ae50bdb9434bc
6
+ metadata.gz: fb7e3ed6b2e523b09ea712a375b0df0684ba46d756d5805249228fe1157716a9c9db312599b4e68d560c630226cd687ae6f85d2e9b5cb40620594b427d5159d4
7
+ data.tar.gz: 9d06b3d38f8569a4dd8273cca75294ba41e5bcb2068b28294493c8ca0eec4426f552a566218642429050ac80a7ff402c984e0e593884e475db77b1a365ab49cd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  Tzispa Helpers
2
2
 
3
+ ## v0.1.10
4
+ - response class add absolute parameter in redirect method
5
+
3
6
  ## v0.1.9
4
7
  - Set default value for status parameter in error_page
5
8
 
@@ -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, config.absolute_redirects?)
53
+ response['Location'] = uri(uri.to_s, absolute)
54
54
  halt(*args)
55
55
  end
56
56
 
@@ -3,7 +3,7 @@
3
3
  module Tzispa
4
4
  module Helpers
5
5
 
6
- VERSION = '0.1.9'
6
+ VERSION = '0.1.10'
7
7
  NAME = 'Tzispa Helpers'
8
8
  GEM_NAME = 'tzispa_helpers'
9
9
 
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.9
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-17 00:00:00.000000000 Z
11
+ date: 2016-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail