tzispa 0.4.9 → 0.4.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: 2952c9de1b1385841ef9a5fef9bda14cc221b2d7
4
- data.tar.gz: 504b882b036f264bad7ed3e2c3f3528ba24cb7d7
3
+ metadata.gz: 6563a94edbe1592bb7dca93f061094b7f545ddb7
4
+ data.tar.gz: 20e67059d53a2eace90a4b0f2f5d6445133455b4
5
5
  SHA512:
6
- metadata.gz: 79fa6d1e3a46f26ea0a5356f347e5ade014362aa09651afe1d22be64029a16f8ee72ec2b81448998d633c285536a47fbfbfa6707fe58ce72c38f95d12e2cb382
7
- data.tar.gz: 99267f5ea46a686902fde99e5f5afeaa196c541ad01ce7737af7f7c4ef09fdaf920e076ae295d61c7167d918ac6a5851abf49248780739e69c75e713212dc165
6
+ metadata.gz: 943d78aa578e90e7e664e1b8d4bafd38b54ba331b67c40c2d60cd5cd7c3d7d86b31b540fcbe4c9bd39f70aeb0ab49e125b7c82100b2a530e58a92514673864f6
7
+ data.tar.gz: 4593029b257aaa3fd201a3d5128a385b0f6451326ca6e43a3e302ea23daeecc2aa8a95a5ace2a4d7e2e9ea0faed7ae12afaf77f73207ccc7afc6ce52317c9c4d
data/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@ Tzispa
2
2
 
3
3
  General purpose web framework
4
4
 
5
+ ## v0.4.10
6
+ - http/context api method return a canonical url including hostname
7
+
5
8
  ## v0.4.9
6
9
  - in http/response.rb add missing alias secure? for ssl?
7
10
  - in controller/api.rb fix redirect url if data is empty
@@ -82,9 +82,8 @@ module Tzispa
82
82
  end
83
83
 
84
84
  def api(handler, verb, predicate, sufix)
85
- raise ArgumentError.new('missing parameter in api call') unless handler && verb
86
85
  sign = sign_array [handler, verb, predicate], app.config.salt
87
- app.class.routes.path :api, {sign: sign, handler: handler, verb: verb, predicate: predicate, sufix: sufix}
86
+ canonical_url :api, sign: sign, handler: handler, verb: verb, predicate: predicate, sufix: sufix
88
87
  end
89
88
 
90
89
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tzispa
4
- VERSION = '0.4.9'
4
+ VERSION = '0.4.10'
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.9
4
+ version: 0.4.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-18 00:00:00.000000000 Z
11
+ date: 2016-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack