tzispa 0.4.20 → 0.5.0

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: 3197510a2f09d089d86ccbcfb7424fce4b8192c6
4
- data.tar.gz: 2e32c5bbab804583c89b41fea43d8b324553be9f
3
+ metadata.gz: 4706212333c5bb1fb9c2aedf9606d11a6a33f005
4
+ data.tar.gz: 007f42e55ec20c1928efba0a79da4fef5ab86986
5
5
  SHA512:
6
- metadata.gz: 0934629f301584f65e53616a95ad6aebf78f1b4450f21afe118cf260eff0266c919c4a2728338b69c73dfefcfbf120620d2f1ec77125332d9c664fceaf5b433f
7
- data.tar.gz: 6dd16f75dacdf75f6e8df2cc0aa2c6abc725ab07e465f4fdc984f7d254d30992fd9d444667bfbcb5d34243dbf5c9322b9ac5cde59d919b59962362e7c8425cbd
6
+ metadata.gz: b551e4c9ec240ab5b8ea8bd260b69645a7574e7f60ed1ff79db903ab99ba47ab65fa16f36c940e42ab6322b2a825e88d16a43fdb0c7b357c8f5849f151ce3c57
7
+ data.tar.gz: 0c0bbae489606f7e3a4a985ccbf6f37877c1caef08eba5f5468570b24ff56a2d28bf47004b9e53e0f6bb3b95fb4fae8d5aa31ca81bdf68abb9f5f54f4d5165bd
data/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@ Tzispa
2
2
 
3
3
  General purpose web framework
4
4
 
5
+ ## v0.5.0
6
+ - Add support for signed and unsigned api calls
7
+
5
8
  ## v0.4.20
6
9
  - Add signed_api route and controller previous api controller is for unsigned api calls
7
10
 
@@ -82,10 +82,15 @@ module Tzispa
82
82
  end
83
83
 
84
84
  def api(handler, verb, predicate, sufix)
85
+ canonical_url :api, handler: handler, verb: verb, predicate: predicate, sufix: sufix
86
+ end
87
+
88
+ def sapi(handler, verb, predicate, sufix)
85
89
  sign = sign_array [handler, verb, predicate], app.config.salt
86
- canonical_url :api, sign: sign, handler: handler, verb: verb, predicate: predicate, sufix: sufix
90
+ canonical_url :sapi, sign: sign, handler: handler, verb: verb, predicate: predicate, sufix: sufix
87
91
  end
88
92
 
93
+
89
94
  end
90
95
 
91
96
  end
data/lib/tzispa/routes.rb CHANGED
@@ -50,7 +50,7 @@ module Tzispa
50
50
  end
51
51
 
52
52
  def signed_api(path, methods=nil, controller=nil)
53
- add :api, path, methods, controller || 'signed_api:dispatch!'
53
+ add :sapi, path, methods, controller || 'signed_api:dispatch!'
54
54
  end
55
55
 
56
56
  def site(path, methods=nil, controller=nil)
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tzispa
4
- VERSION = '0.4.20'
4
+ VERSION = '0.5.0'
5
5
  FRAMEWORK_NAME = 'Tzispa'
6
6
  GEM_NAME = 'tzispa'
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tzispa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.20
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Antonio Piñero