luban 0.6.7 → 0.6.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b5c23cf9c92a7106234e16b34d3ba5578f118cb
4
- data.tar.gz: f29d25e7aeba87e5eb29380f531d924de2a17462
3
+ metadata.gz: f1a53e2d718858e794fad9039bd3dca3b3ea47e7
4
+ data.tar.gz: cd42f481001b9d32968f8eb09c6044ffbb1d4aef
5
5
  SHA512:
6
- metadata.gz: 36fe14118bc72ce657456638ca97f3083e59b6ec7814769a87eb6f771cac1f9222ccdab882a6ade9cdedf71271f32840e815cbe5c45d408faaceebc418325ddf
7
- data.tar.gz: b6a547c3ce745235956c4c400ff9e1457152d3c2829f14d2628a480f99df41308d953fe8ec6397122cd8ebcf8b008a43a95f73f05ab2908dbbedc990aa2d4c2a
6
+ metadata.gz: 11730020832c5dbb29887320fde4f872dfc967d952e59d7d52c64671474fc2ed80d284c4fa1f7ff3980d78d28b486f57d5334ab6d8df3486c0c97199b4fe6fee
7
+ data.tar.gz: 8d2dc731d74bb014c3c594dd1a88757351f1aafb92d62eb28c9223f1e3f02a3e35f17c4f6cd898c22a3e9996b5f5c21041c767deecc3d36a04528568de69c20d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.6.8 (Aug 05, 2016)
4
+
5
+ Bug fixes:
6
+ * Fixed missing default templates in application class inheritance
7
+
3
8
  ## Version 0.6.7 (Aug 02, 2016)
4
9
 
5
10
  Minor enhancements:
@@ -216,15 +216,16 @@ module Luban
216
216
  locally ? result.first[:__return__] : result
217
217
  end
218
218
 
219
- def default_templates_path; nil; end
220
-
221
219
  def base_templates_path(base_path)
222
220
  path = Pathname.new(base_path).dirname.join('templates')
223
221
  path.exist? ? path.realpath : nil
224
222
  end
225
223
 
226
224
  def default_templates
227
- default_templates_path.nil? ? [] : default_templates_path.children
225
+ return @default_templates unless @default_templates.nil?
226
+ (@default_templates = []).tap do |t|
227
+ default_templates_paths[0...-1].each { |p| t.concat(p.children).uniq! }
228
+ end
228
229
  end
229
230
 
230
231
  protected
@@ -236,7 +237,7 @@ module Luban
236
237
  load_configuration
237
238
  validate_parameters
238
239
  load_libraries
239
- include_default_templates_path unless default_templates_path.nil?
240
+ include_default_templates_path
240
241
  setup_cli
241
242
  end
242
243
 
@@ -269,13 +270,7 @@ module Luban
269
270
 
270
271
  def load_libraries; end
271
272
 
272
- def include_default_templates_path
273
- if default_templates_path.is_a?(Pathname)
274
- default_templates_paths.unshift(default_templates_path)
275
- else
276
- abort "Aborted! Default templates path for #{self.class.name} MUST be a Pathname."
277
- end
278
- end
273
+ def include_default_templates_path; end
279
274
 
280
275
  def setup_cli
281
276
  setup_descriptions
@@ -1,5 +1,5 @@
1
1
  module Luban
2
2
  module Deployment
3
- VERSION = "0.6.7"
3
+ VERSION = "0.6.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luban
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.7
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rubyist Lei
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-02 00:00:00.000000000 Z
11
+ date: 2016-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: luban-cli