tzispa 0.5.11 → 0.5.12
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/tzispa/api/handler.rb +2 -2
- data/lib/tzispa/app.rb +5 -0
- data/lib/tzispa/routes.rb +1 -1
- data/lib/tzispa/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: 5434cb0372b31a22ac790e800a54f67dbea1036d
|
4
|
+
data.tar.gz: 3aea5a8b92fbbbd0a77c7d1a0142c36be0c990a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88f7fd5fde4718878066c129b0ab2859627e97aad65730caefb2b583cfdc09b704d42c1248b026baefd686ccf5e7c67440cf099f3a9d45102c12678860fdabcc
|
7
|
+
data.tar.gz: 2c4da7af4b0045fad1c5c2183f6f2cbb8b58630f18d7e130b30cb502a4f9d560d842f524d35aa2257587129998cae5362334ad9a4925b9b0d61fb21e15250b2f
|
data/CHANGELOG.md
CHANGED
data/lib/tzispa/api/handler.rb
CHANGED
@@ -47,8 +47,8 @@ module Tzispa
|
|
47
47
|
@error = error
|
48
48
|
end
|
49
49
|
|
50
|
-
def result_json(data, status: nil)
|
51
|
-
result response_verb: :json, data: data
|
50
|
+
def result_json(data, status: nil, error: nil)
|
51
|
+
result response_verb: :json, data: data, status: status, error: error
|
52
52
|
end
|
53
53
|
|
54
54
|
def result_download(data, status: nil)
|
data/lib/tzispa/app.rb
CHANGED
data/lib/tzispa/routes.rb
CHANGED
@@ -59,7 +59,7 @@ module Tzispa
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def route_rig_layout(layout, path, controller: nil, methods: nil)
|
62
|
-
routing layout
|
62
|
+
routing layout, path, controller || 'layout:render!', methods: methods, matching: {layout: layout.to_s}
|
63
63
|
end
|
64
64
|
|
65
65
|
end
|
data/lib/tzispa/version.rb
CHANGED
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.5.
|
4
|
+
version: 0.5.12
|
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-
|
11
|
+
date: 2016-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|