luban 0.6.8 → 0.6.9

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: f1a53e2d718858e794fad9039bd3dca3b3ea47e7
4
- data.tar.gz: cd42f481001b9d32968f8eb09c6044ffbb1d4aef
3
+ metadata.gz: fcaab3a6f85c7700a2a3591f4964bc6588e1d341
4
+ data.tar.gz: d4d4038ffdf658f4a50bfcf796a5bec5aa23efe2
5
5
  SHA512:
6
- metadata.gz: 11730020832c5dbb29887320fde4f872dfc967d952e59d7d52c64671474fc2ed80d284c4fa1f7ff3980d78d28b486f57d5334ab6d8df3486c0c97199b4fe6fee
7
- data.tar.gz: 8d2dc731d74bb014c3c594dd1a88757351f1aafb92d62eb28c9223f1e3f02a3e35f17c4f6cd898c22a3e9996b5f5c21041c767deecc3d36a04528568de69c20d
6
+ metadata.gz: 90d73c8299cd2c2197ed996532f859d3728a6cfa1f1ef8c099367adfe29ad4b50cb4f63d212b73cd66e1d774c2a4326e53185a18d6fcffe7c0126e6454d611bb
7
+ data.tar.gz: e17cb7ffc3fe8658d73d2cdadf3d06de1cc016056d9f27170614c11261d7ee7f43bc5d0c95aa3a9ff18bbd448c3b8cb3afbb9b180ce680f7ba9f6eba928183ec
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.6.9 (Aug 15, 2016)
4
+
5
+ Minor enhancements:
6
+ * Set parameter #project in Lubanfile template used in project initiation
7
+ * Added suffix ".deploy" as extension to project target path as a convention
8
+
9
+ Bug fixes:
10
+ * Handled bundle_without properly based on the deployment stage
11
+
3
12
  ## Version 0.6.8 (Aug 05, 2016)
4
13
 
5
14
  Bug fixes:
@@ -201,7 +201,9 @@ module Luban
201
201
  options << "--gemfile #{gemfile}"
202
202
  options << "--path #{bundle_path}"
203
203
  unless test(bundle_cmd, :check, *options)
204
- options << "--without #{bundle_without.join(' ')}"
204
+ unless bundle_without.include?(stage.to_s)
205
+ options << "--without #{bundle_without.join(' ')}"
206
+ end
205
207
  options << bundle_flags.join(' ')
206
208
  execute(bundle_cmd, :install, *options)
207
209
  end
@@ -170,8 +170,14 @@ module Luban
170
170
  if test(:tar, "-tzf #{release_package_path} #{gemfile_path} > /dev/null 2>&1")
171
171
  within(workspace_path) do
172
172
  execute(:tar, "--strip-components=1 -xzf #{release_package_path} #{gemfile_path}")
173
- unless test(:bundle, :check, "--path #{bundle_path}")
174
- execute(:bundle, :install, "--path #{bundle_path} --without #{bundle_without.join(' ')} --quiet")
173
+ options = []
174
+ options << "--path #{bundle_path}"
175
+ unless test(:bundle, :check, *options)
176
+ unless bundle_without.include?(stage.to_s)
177
+ options << "--without #{bundle_without.join(' ')}"
178
+ end
179
+ options << "--quiet"
180
+ execute(:bundle, :install, *options)
175
181
  info "Package gems bundled in Gemfile"
176
182
  execute(:bundle, :package, "--all --quiet")
177
183
  end
@@ -103,7 +103,7 @@ module Luban
103
103
  end
104
104
 
105
105
  def project_target_path
106
- @project_target_path ||= (work_dir or Pathname.pwd.join(project))
106
+ @project_target_path ||= (work_dir or Pathname.pwd.join("#{project}.deploy"))
107
107
  end
108
108
 
109
109
  def create_project_skeleton
@@ -1 +1,2 @@
1
- stages %w(<%= stages.join(' ') %>)
1
+ stages %w(<%= stages.join(' ') %>)
2
+ project <%= project.inspect %>
@@ -1,5 +1,5 @@
1
1
  module Luban
2
2
  module Deployment
3
- VERSION = "0.6.8"
3
+ VERSION = "0.6.9"
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.8
4
+ version: 0.6.9
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-05 00:00:00.000000000 Z
11
+ date: 2016-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: luban-cli