luban 0.7.9 → 0.7.10

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: 4ba132c269c2bb4ca93ad0e2c6e4e7d89c70416d
4
- data.tar.gz: 955c205da9eb975aaabf79e01d3f28aec45f57d7
3
+ metadata.gz: 0ea293a8aab808284fa5ced1439db9c3d52cbb0a
4
+ data.tar.gz: 3db8526f0bc44ecc32fe2ce750492d5cff2a5561
5
5
  SHA512:
6
- metadata.gz: ad4b1a58f113317d23b2b344126814b0d917cf57d0cc5b89f0ebc1a241631032e2137a33bd72c627973991f8e845a60a9831ae243bf1d7eea8c9f073804622ec
7
- data.tar.gz: b90cd96e4493c222a5538b03077bd8f6fdaa56b95234aac7f06e23b6146280c5351448ac3da3a293799d62da1cc2aee6682b19a58eb5f718b21c89313fc96a9a
6
+ metadata.gz: 0d0258e4ae2419f4e523a60ce27fbc8718ae83517b8a64388accea1d4c339dc2b4f2961a214b9add9828a147232d9d917ad27b520e4af8c62dd946868682ea55
7
+ data.tar.gz: c9b4c780fc0ee5b5922149edca89b26146063854dc2b578a0fc81fd44db33e4fab60b6f62957a0b0e5b6506a040c4de21c87d8725741fc1e32ace9486a71fa59
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.7.10 (Sept 01, 2016)
4
+
5
+ Bug fixes:
6
+ * Used "&&" instead of ";" to join shell setup commands to ensure the rest of the commands would not be executed if one is broken
7
+ * Added install dependency on OpenSSL version 0.9.8zh for Ruby 1.8.7 or earlier because OpenSSL 1.x.x version does not support Ruby 1.8 in general
8
+ * Handled first Bundler installation without uninstalling older versions of Bundler
9
+
3
10
  ## Version 0.7.9 (Aug 31, 2016)
4
11
 
5
12
  Minor enhancements:
@@ -8,7 +8,7 @@ module Luban
8
8
  end
9
9
 
10
10
  def compose_command(cmd)
11
- "#{shell_setup_commands.join('; ')}; #{cmd} 2>&1"
11
+ "#{shell_setup_commands.join(' && ')} && #{cmd} 2>&1"
12
12
  end
13
13
 
14
14
  %i(name full_name version major_version patch_level).each do |method|
@@ -64,10 +64,21 @@ module Luban
64
64
  def update_binstubs!; end
65
65
 
66
66
  def install_package!
67
+ if file?(bundler_executable)
68
+ uninstall_bundler! and install_bundler!
69
+ else
70
+ install_bundler!
71
+ end
72
+ end
73
+
74
+ def uninstall_bundler!
75
+ test("#{gem_executable} uninstall bundler -a -x -I >> #{install_log_file_path} 2>&1")
76
+ end
77
+
78
+ def install_bundler!
67
79
  install_opts = ['--local']
68
80
  #install_opts << "--no-document" unless install_doc?
69
81
  install_opts << "--no-rdoc --no-ri" unless install_doc?
70
- test("#{gem_executable} uninstall bundler -a -x -I >> #{install_log_file_path} 2>&1") and
71
82
  test("#{gem_executable} install #{install_opts.join(' ')} #{src_cache_path} >> #{install_log_file_path} 2>&1")
72
83
  end
73
84
  end
@@ -14,6 +14,12 @@ module Luban
14
14
  end
15
15
  end
16
16
 
17
+ apply_to '<= 1.8.7' do
18
+ before_install do
19
+ depend_on 'openssl', version: '0.9.8zh'
20
+ end
21
+ end
22
+
17
23
  apply_to '1.9.1' do
18
24
  before_install do
19
25
  depend_on 'yaml', version: '0.1.6'
@@ -1,5 +1,5 @@
1
1
  module Luban
2
2
  module Deployment
3
- VERSION = "0.7.9"
3
+ VERSION = "0.7.10"
4
4
  end
5
5
  end
data/luban.gemspec CHANGED
@@ -20,8 +20,8 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.required_ruby_version = ">= 2.1.0"
23
- spec.add_dependency 'luban-cli'
24
- spec.add_dependency 'sshkit'
23
+ spec.add_runtime_dependency 'luban-cli'
24
+ spec.add_runtime_dependency 'sshkit'
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.9"
27
27
  spec.add_development_dependency "rake", "~> 10.0"
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.7.9
4
+ version: 0.7.10
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-31 00:00:00.000000000 Z
11
+ date: 2016-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: luban-cli