luban 0.7.8 → 0.7.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: 93ecbda71bada5b128218f57976e2e8b9d1d9201
4
- data.tar.gz: aaf09dbbd997fb09063cf17066ad9d98cfd8f785
3
+ metadata.gz: 4ba132c269c2bb4ca93ad0e2c6e4e7d89c70416d
4
+ data.tar.gz: 955c205da9eb975aaabf79e01d3f28aec45f57d7
5
5
  SHA512:
6
- metadata.gz: 5370c3b1c9d1d3ec4c837e70c9e487edfa7db5a4a48af13fe51af60a2250af2524c8b375fb93d5701b4d44f44f366dd0dc76d26b6717aa37f0c8bc3b726deef7
7
- data.tar.gz: 05ddf1e4d27d6fcf6ecaa93af51beee45991b58f40ad39dc324dccca124309b4b16cfababa0eaac1dbfbac3456fcb8cb267110b50a26272b812758cc05711075
6
+ metadata.gz: ad4b1a58f113317d23b2b344126814b0d917cf57d0cc5b89f0ebc1a241631032e2137a33bd72c627973991f8e845a60a9831ae243bf1d7eea8c9f073804622ec
7
+ data.tar.gz: b90cd96e4493c222a5538b03077bd8f6fdaa56b95234aac7f06e23b6146280c5351448ac3da3a293799d62da1cc2aee6682b19a58eb5f718b21c89313fc96a9a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.7.9 (Aug 31, 2016)
4
+
5
+ Minor enhancements:
6
+ * Injected #packages into deployment worker in order to make each package available to others
7
+
3
8
  ## Version 0.7.8 (Aug 31, 2016)
4
9
 
5
10
  Minor enhancements:
@@ -77,7 +77,7 @@ module Luban
77
77
  else
78
78
  command(name, base: Luban::Deployment::Package::Base.package_class(name))
79
79
  end
80
- pkg.update_package_options(version, opts)
80
+ pkg.update_package_options(version, opts.merge(packages: packages))
81
81
  services[name] = pkg if pkg.is_a?(Luban::Deployment::Service::Base)
82
82
  packages[name] = pkg
83
83
  end
@@ -13,19 +13,6 @@ module Luban
13
13
  define_method("application_#{method}") { send("target_#{method}") }
14
14
  end
15
15
 
16
- def packages; task.opts.packages; end
17
-
18
- def package_version(package_name); packages[package_name.to_sym].current_version; end
19
-
20
- def package_path(package_name)
21
- @package_path ||= luban_install_path.join('pkg', package_name.to_s, 'versions',
22
- package_version(package_name))
23
- end
24
-
25
- def package_bin_path(package_name)
26
- @package_bin_path ||= package_path(package_name).join('bin')
27
- end
28
-
29
16
  def profile_name; 'app'; end
30
17
 
31
18
  def release_tag; task.opts.release[:tag]; end
@@ -1,5 +1,5 @@
1
1
  module Luban
2
2
  module Deployment
3
- VERSION = "0.7.8"
3
+ VERSION = "0.7.9"
4
4
  end
5
5
  end
@@ -36,6 +36,8 @@ module Luban
36
36
  def target_major_version; task.opts.major_version || target_version; end
37
37
  def target_patch_level; task.opts.patch_level || ''; end
38
38
 
39
+ def packages; task.opts.packages; end
40
+
39
41
  def run
40
42
  update_result(__return__: @run_blk ? run_with_block : run_with_command).to_h
41
43
  end
@@ -76,6 +76,12 @@ module Luban
76
76
  def luban_install_path
77
77
  @luban_install_path ||= project_path.join('.luban')
78
78
  end
79
+
80
+ def package_bin_path(package_name)
81
+ @package_bin_path ||=
82
+ luban_install_path.join('pkg', package_name.to_s, 'versions',
83
+ packages[package_name.to_sym].current_version, 'bin')
84
+ end
79
85
  end
80
86
  end
81
87
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luban
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.8
4
+ version: 0.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rubyist Lei