tzispa 0.4.8 → 0.4.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d63bac87f861d60db3bd3239cfd7feab000ba0d7
4
- data.tar.gz: 893406a35ea1ea3ee6653f14b10f9061ba937371
3
+ metadata.gz: 2952c9de1b1385841ef9a5fef9bda14cc221b2d7
4
+ data.tar.gz: 504b882b036f264bad7ed3e2c3f3528ba24cb7d7
5
5
  SHA512:
6
- metadata.gz: f28e6825678907a553d98243d9f4dad1778507a22612da51c51a3bdb4f3b4bb8d5d065382d37139e0e4f80bf91ab6bd882262e822273c8f3fd79d7925322c769
7
- data.tar.gz: 9793576f8b9aa3409e1970d3303c6f09df2b22a4b3598b454a958cfe8ac273a19a13cbc264124f8515f97bde981305afc6bea86fe2ca0a7699a85a0986fe5946
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
@@ -36,6 +36,8 @@ module Tzispa
36
36
  request_method == "UNLINK"
37
37
  end
38
38
 
39
+ alias secure? ssl?
40
+
39
41
  end
40
42
  end
41
43
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tzispa
4
- VERSION = '0.4.8'
4
+ VERSION = '0.4.9'
5
5
  FRAMEWORK_NAME = 'Tzispa'
6
6
  GEM_NAME = 'tzispa'
7
7
  end
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.8
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-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: rack