luban 0.11.0 → 0.11.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57818638bb21b1b9f231618ee3f94daa0d68092a
|
4
|
+
data.tar.gz: c7e572985e24fd18fcb49e7c0562dee6084ed307
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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 |
|
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 |
|
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 |
|
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)
|