samus 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/samus/builder.rb +3 -2
- data/lib/samus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce637bf34b25a19f934cef526058ef2763018dd5
|
4
|
+
data.tar.gz: 9294687f9103a2317b82685fa47d2db8c442fe6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ed2ada9058471d459d6323662ee628f0617d457f00fe91fb50726b169f57722702d3894e3a05186bac3f3653ba53dafd3ef6bcd241bdc3b45b64fafb9fbcc42
|
7
|
+
data.tar.gz: d8faf2d27d5a20c975781ef3f75752804f740724e391bf8b1c348335d3e2377f72cf55e897cac4b0238e984bd0d3e769997d1650044e141180129e25d2969771
|
data/lib/samus/builder.rb
CHANGED
@@ -66,8 +66,9 @@ module Samus
|
|
66
66
|
def generate_release(orig_pwd, zip_release = true, outfile = nil)
|
67
67
|
file = outfile || build_manifest['output'] || "release-v#{$VERSION}"
|
68
68
|
file = File.join(orig_pwd, file) unless file[0] == '/'
|
69
|
-
|
70
|
-
|
69
|
+
file_is_zipped = file =~ /\.(tar\.gz|tgz)$/
|
70
|
+
if zip_release || file_is_zipped
|
71
|
+
file += '.tar.gz' unless file_is_zipped
|
71
72
|
system "tar cfz #{file} *"
|
72
73
|
else
|
73
74
|
system "mkdir -p #{file} && cp -r * #{file}"
|
data/lib/samus/version.rb
CHANGED