tzispa 0.5.9 → 0.5.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/tzispa/command/app.rb +1 -1
- data/lib/tzispa/command/project.rb +2 -1
- data/lib/tzispa/http/context.rb +4 -2
- 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: 73281443ab56c5d37e05bccc7896d3af2acb3415
|
4
|
+
data.tar.gz: '03076458d15ac0598119430311808949ad0c57e7'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ce98d4842005c2af213bd7a560c7b70cc4e8213f9ebc08a7c8909e77cc74817f936bff2eeccf637bce136c6afcde18f8640317788175f9042a0f57c7b94144e
|
7
|
+
data.tar.gz: '079524201c5c1d25dc23ba1de6258eba590a4cd773a968674e07e98224cf2156dac28d3f52a69d756c17565e41910c7a97afe86694a8e68f9d5730e0558e8323'
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@ Tzispa
|
|
2
2
|
|
3
3
|
General purpose web framework
|
4
4
|
|
5
|
+
## v0.5.10
|
6
|
+
- fix: check if the given layout is the default_layout in config before promote into the path params hash
|
7
|
+
- add tmp folder in the project creation cli command
|
8
|
+
|
5
9
|
## v0.5.9
|
6
10
|
- add services folder in app domains
|
7
11
|
- updated new app creation template code in cli
|
data/lib/tzispa/command/app.rb
CHANGED
data/lib/tzispa/http/context.rb
CHANGED
@@ -90,11 +90,13 @@ module Tzispa
|
|
90
90
|
end
|
91
91
|
|
92
92
|
def layout_path(layout, params={})
|
93
|
-
|
93
|
+
params = params.merge(layout: layout) unless app.config.default_layout&.to_sym == layout
|
94
|
+
app.routes.path layout, params
|
94
95
|
end
|
95
96
|
|
96
97
|
def app_layout_path(app_name, layout, params={})
|
97
|
-
|
98
|
+
params = params.merge(layout: layout) unless app[app_name].config.default_layout&.to_sym == layout
|
99
|
+
app[app_name].routes.path layout, params
|
98
100
|
end
|
99
101
|
|
100
102
|
def layout_canonical_url(layout, params={})
|
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.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-10-
|
11
|
+
date: 2016-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|