luban 0.11.0 → 0.11.1

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: 28913085e6dfeed7d1c4c564666a631a214bad59
4
- data.tar.gz: 6db8621b76547ad88298ed2dafc0bab3d680f4ec
3
+ metadata.gz: 57818638bb21b1b9f231618ee3f94daa0d68092a
4
+ data.tar.gz: c7e572985e24fd18fcb49e7c0562dee6084ed307
5
5
  SHA512:
6
- metadata.gz: 667c8e649af0e5c8e6927447cca4d47033dfda63b3ff71fc3083a43ebfe3bd428d68bafa59ed3e5491af202dd83d5ad637ba96d20e0aeb007cd56377cf29c714
7
- data.tar.gz: e1b788bdd1192440b8ea611316008281e9a251ecc552acd59cb59057890230f62dc6664488660a9250814d0fe1bd3fcde5884691b6f65d1b5f86957f69db65e6
6
+ metadata.gz: 296eab252996270c41af89f9ae2d902861b501d35c82b1d2a8d0c47b8ab2feec549ba1cec30707af8dd3cb56ffd4da91b1f2bf4a6cdfabbb338772bb16e206a4
7
+ data.tar.gz: a6b438fd3ccfde273a20c357881fb5ca306b088f6070b5f68ab8c539c16195c89415ef4c996584631dd291bdb229a1c9bde6e42cae0a7075befe53e242de4298
data/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change log
2
2
 
3
- ## Version 0.11.0 (Jan 04, 2017)
3
+ ## Version 0.11.1 (Jan 04, 2017)
4
4
 
5
5
  New features:
6
6
  * Restructured Luban project prepared for containerization with docker support
@@ -15,6 +15,7 @@ Minor enhancements:
15
15
  * In Publisher before installing gems from cache
16
16
  * In App Repository before bundling gems required by application
17
17
  * In Service Controller for process control actions
18
+ * Used md5sum/md5 instead of openssl to calculate md5 digests
18
19
 
19
20
  Bug fixes:
20
21
  * Refined SSHKit::Backend::Local and SSHKit::Runner::Abstract to handle local host object properly
@@ -20,7 +20,7 @@ module Luban
20
20
 
21
21
  def fetch_revision
22
22
  # Use MD5 as the revision
23
- capture(:tar, "-cf - #{clone_path} 2>/dev/null | openssl md5")[/\h+$/][0, rev_size]
23
+ capture(:tar, "-cf - #{clone_path} 2>/dev/null | $(type -p md5sum md5 | head -1)")[/^\h+/][0, rev_size]
24
24
  end
25
25
 
26
26
  def clone
@@ -89,7 +89,7 @@ module Luban
89
89
  end
90
90
 
91
91
  def readlink(source_file)
92
- capture("$(type -p readlink greadlink|head -1) #{source_file}")
92
+ capture("$(type -p readlink greadlink | head -1) #{source_file}")
93
93
  end
94
94
 
95
95
  def md5_for(path)
@@ -97,11 +97,11 @@ module Luban
97
97
  end
98
98
 
99
99
  def md5_for_file(file)
100
- capture(:cat, "#{file} 2>/dev/null | openssl md5")[/\h+$/]
100
+ capture(:cat, "#{file} 2>/dev/null | $(type -p md5sum md5 | head -1)")[/^\h+/]
101
101
  end
102
102
 
103
103
  def md5_for_dir(dir)
104
- capture(:find, "#{dir} -type f ! -name '*.md5' 2>/dev/null | LC_ALL=C sort -u | xargs cat | openssl md5")[/\h+$/]
104
+ capture(:find, "#{dir} -type f ! -name '*.md5' 2>/dev/null | LC_ALL=C sort -u | xargs cat | $(type -p md5sum md5 | head -1)")[/^\h+/]
105
105
  end
106
106
 
107
107
  def sudo(*args)
@@ -1,5 +1,5 @@
1
1
  module Luban
2
2
  module Deployment
3
- VERSION = "0.11.0"
3
+ VERSION = "0.11.1"
4
4
  end
5
5
  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.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rubyist Lei