luban 0.3.2 → 0.3.3

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: cc67bf3d741d713a33e8341b9599277ecfaf4ee1
4
- data.tar.gz: bb8332a93f582506fb0644729f198a0140b6c001
3
+ metadata.gz: d711bbdde3319889d6851b02c652b1420f98fba5
4
+ data.tar.gz: 6d91b1ab03f54730ad59255d25ef8a659d811029
5
5
  SHA512:
6
- metadata.gz: 1aeb8d995bb8f820b67b9e6e4e8842eb96e755f551cbf210ae0b18541adda3da0d82ddeae9562015d25014957ef3f868986683d0db14b64819532b9d2c6c991b
7
- data.tar.gz: 528e1d5046d8bcb96dcc03ecad0e4e772178abb8f1479e73e1a8f02118be697db59ff5f774f4abfa13721d2436b2a2bc3ffab547fd260bc233c2728e430e4252
6
+ metadata.gz: 3eb285d74e5c6a5cec47efb0130bebca1fc744b47815636f7bf8bdd25c1b2a71df745fd15db3d401b83954e7a45c3c18e9749fe7745b71a9b3da0fcb10c7b820
7
+ data.tar.gz: a2882bac46666c2cbd9c86a204cb507789de5870f8c7b1a6bbab2953565b5a6c4e86af0be88e08c22afa7386bb8bacc5d365a3e5c93984bd3c8e0c5a8eb3bc9c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.3.3 (Apr 18, 2016)
4
+
5
+ Bug fixes:
6
+ * Properly handled running luban command-line out of any Luban projects
7
+ * Skip bundling if no gems to be bundled
8
+
3
9
  ## Version 0.3.2 (Apr 15, 2016)
4
10
 
5
11
  Minor enhancements:
@@ -90,7 +90,7 @@ module Luban
90
90
 
91
91
  def after_publish
92
92
  create_symlinks
93
- bundle_gems
93
+ bundle_gems unless gems.empty?
94
94
  end
95
95
 
96
96
  protected
@@ -24,11 +24,11 @@ module Luban
24
24
 
25
25
  def on_configure
26
26
  super
27
- set_work_dir
28
- load_configuration_file(config_file)
29
- set_default_parameters
30
- load_libraries
31
- setup_cli
27
+ if set_work_dir
28
+ setup_cli_with_projects
29
+ else
30
+ setup_cli_without_projects
31
+ end
32
32
  end
33
33
 
34
34
  def set_default_parameters
@@ -45,9 +45,7 @@ module Luban
45
45
 
46
46
  def set_work_dir
47
47
  project_root = find_lubanfile
48
- if project_root.nil?
49
- abort "Aborted! NOT a Luban project (or any of the parent directories): #{lubanfile} is NOT found."
50
- else
48
+ unless project_root.nil?
51
49
  work_dir Pathname.new(project_root)
52
50
  apps_path work_dir.join('apps')
53
51
  end
@@ -73,7 +71,11 @@ module Luban
73
71
  Object.const_get(project.camelcase)
74
72
  end
75
73
 
76
- def setup_cli
74
+ def setup_cli_with_projects
75
+ load_configuration_file(config_file)
76
+ set_default_parameters
77
+ load_libraries
78
+
77
79
  version Luban::Deployment::VERSION
78
80
  desc "Manage the deployment of project #{project.camelcase}"
79
81
  setup_projects
@@ -92,6 +94,14 @@ module Luban
92
94
  mod = Object.const_set(stg.camelcase, Module.new)
93
95
  mod.const_set(project.camelcase, Class.new(project_base_class))
94
96
  end
97
+
98
+ def setup_cli_without_projects
99
+ version Luban::Deployment::VERSION
100
+ desc "Framework to manage project deployment"
101
+ action do
102
+ abort "Aborted! NOT a Luban project (or any of the parent directories): #{lubanfile} is NOT found."
103
+ end
104
+ end
95
105
  end
96
106
  end
97
107
  end
@@ -1,5 +1,5 @@
1
1
  module Luban
2
2
  module Deployment
3
- VERSION = "0.3.2"
3
+ VERSION = "0.3.3"
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.3.2
4
+ version: 0.3.3
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-04-15 00:00:00.000000000 Z
11
+ date: 2016-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: luban-cli