samus 1.2.8 → 1.2.9

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: 1d82d2aa30e10e89592264afbd58f4aed89c8918
4
- data.tar.gz: 19d5339ad963f39b2dccd043610102d85004a704
3
+ metadata.gz: 7b72b854edfcfc83aa71b7b57c7eb61efd5cf495
4
+ data.tar.gz: e5e522de4f1b42f535dcc8a2a0d6297b74b1f690
5
5
  SHA512:
6
- metadata.gz: ffc240b40dd48cd7eb064ddff1a99e672e8dca003f093fdded4eb880f9c1061fce3ae33f2b0b0af6b20f21de3b07912a00750d6ed2f32b7dadd996cd38b42e39
7
- data.tar.gz: 2a43d23adab391d33b6e814bb6b269c2d8a3b2caa6e5c0ce527a326e8a7162ea1ce6a7cb4fdfed03d49862d5c2efd6697da4308b59f673792b73da5f79562aa2
6
+ metadata.gz: 795823b5eeb03228aaf154c12f698a0814c763b6cbc1ffe14defd570ab456d754fe7029d309699d56b652c61e7daf52d4b2782e00a0e9efd14da073702b6ab32
7
+ data.tar.gz: ddb5c5121d7732e00fd6b489381ea7f97c82375e2149e2c1b14d5552e1ab5bf176d791ea65722c531b96c124a097afbe898b8c6a425c59245743eab0d6da6c0f
@@ -1,4 +1,8 @@
1
1
  #!/bin/sh
2
2
 
3
+ set -e
3
4
  git clone -q --branch ${_branch-master} \
4
5
  ${_repository-.} $__build_dir/$1 2>/dev/null
6
+
7
+ # preserve all previously configured remotes for publish actions
8
+ cp ${_repository-.}/.git/config $__build_dir/$1/.git/config
@@ -2,9 +2,16 @@
2
2
 
3
3
  set -e
4
4
  olddir=$(pwd)
5
- dir=$(mktemp -d -t samus)
5
+ dir=$1
6
+ remove_dir=""
6
7
 
7
- tar -xzf $* -C $dir
8
+ case "$dir" in
9
+ *.tgz|*.gz)
10
+ dir=$(mktemp -d -t samus)
11
+ remove_dir="1"
12
+ tar -xzf $* -C $dir
13
+ ;;
14
+ esac
8
15
 
9
16
  cd $dir
10
17
  for r in $_remotes; do
@@ -12,4 +19,6 @@ for r in $_remotes; do
12
19
  done
13
20
  cd $olddir
14
21
 
15
- rm -rf $dir
22
+ if [ -n "$remove_dir" ]; then
23
+ rm -rf $dir
24
+ fi
data/lib/samus/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Samus
2
- VERSION = '1.2.8'
2
+ VERSION = '1.2.9'
3
3
  end
data/samus.json CHANGED
@@ -19,8 +19,8 @@
19
19
  }
20
20
  },
21
21
  {
22
- "action": "archive-git-full",
23
- "files": ["git.tgz"],
22
+ "action": "git-clone",
23
+ "files": ["git-repo"],
24
24
  "publish": [{
25
25
  "action": "git-push",
26
26
  "arguments": {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: samus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.8
4
+ version: 1.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Loren Segal