tzispa 0.5.9 → 0.5.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: c10e126dbb06547b3c6b93e0c3a884aed696fea6
4
- data.tar.gz: 286b533a830a8a1023d62e04efea88dca99c99e4
3
+ metadata.gz: 73281443ab56c5d37e05bccc7896d3af2acb3415
4
+ data.tar.gz: '03076458d15ac0598119430311808949ad0c57e7'
5
5
  SHA512:
6
- metadata.gz: b42f24b80351be8781631a850a53eb7b494fb22b19e753c47c18f1022b111449b258d25ddf9096c17e7339c2dbe2987c30f80b99acad6ac8535a59f24530bec5
7
- data.tar.gz: 5075bb11e7f11a6148a78401b1237b89f7cba5fa0ad3aa9908da54d96049a5eb2386baf651af80a0738d7c7bbe4893f45ec366bd2bcd3fff219c270e621bef47
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
@@ -65,7 +65,7 @@ module Tzispa
65
65
  code.indent << "route_rig_api '/api/:handler/:verb(~:predicate)(/:sufix)'"
66
66
  code.indent << "route_rig_index '/'"
67
67
  code.unindent << "end\n\n"
68
- code << "my_app.run self"
68
+ code << "my_app.run self"
69
69
  }.to_s
70
70
  end
71
71
 
@@ -19,7 +19,8 @@ module Tzispa
19
19
  'public/css/less',
20
20
  'public/img',
21
21
  'public/js',
22
- 'repository'
22
+ 'repository',
23
+ 'tmp'
23
24
  ]
24
25
 
25
26
  PROJECT_FILE = '.tzispaprj'
@@ -90,11 +90,13 @@ module Tzispa
90
90
  end
91
91
 
92
92
  def layout_path(layout, params={})
93
- app.routes.path layout, params.merge!(layout: layout)
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
- app[app_name].routes.path layout, params.merge!(layout: layout)
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={})
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tzispa
4
- VERSION = '0.5.9'
4
+ VERSION = '0.5.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.5.9
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-25 00:00:00.000000000 Z
11
+ date: 2016-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack