tvd-tvdinner 0.0.16 → 0.0.17
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.
- data/VERSION +1 -1
- data/cookbooks/tvdinner/files/default/jasonx/build-gem +21 -7
- metadata +4 -4
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.17
|
|
@@ -12,19 +12,33 @@ shome="$(unset CDPATH; cd -P -- "$(dirname -- "$BASH_SOURCE")/.." && pwd -P)"
|
|
|
12
12
|
# load a jason bourne library
|
|
13
13
|
source "$shome/libexec/_jason"
|
|
14
14
|
|
|
15
|
-
# define command line options:
|
|
16
|
-
DEFINE_string 'name' "$(basename "$shome")" 'name of gem' 'n'
|
|
17
|
-
|
|
18
15
|
# entry point
|
|
19
16
|
function main {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
logger_fatal "could not find gemspec $pth_gemspec"
|
|
23
|
-
exit 1
|
|
17
|
+
if [[ "$#" = 0 ]]; then
|
|
18
|
+
set -- "$shome/$(basename "$shome").gemspec"
|
|
24
19
|
fi
|
|
25
20
|
|
|
26
21
|
cd "$shome"
|
|
22
|
+
|
|
23
|
+
for pth_gemspec in "$@"; do
|
|
24
|
+
if [[ -d "$pth_gemspec" ]]; then
|
|
25
|
+
local a
|
|
26
|
+
for a in $(set +f; ls -d $pth_gemspec/*); do
|
|
27
|
+
if [[ -d "$a" ]]; then
|
|
28
|
+
pushd $a > /dev/null
|
|
29
|
+
(set +f; rm -f *.gem)
|
|
30
|
+
(export EDIT_$(basename ${a//-/_})=1; libexec/build-gem)
|
|
31
|
+
(set +f; mv *.gem $shome/vendor/cache/)
|
|
32
|
+
popd > /dev/null
|
|
33
|
+
fi
|
|
34
|
+
done
|
|
35
|
+
elif [[ -e "$pth_gemspec" ]]; then
|
|
27
36
|
gem build "$pth_gemspec"
|
|
37
|
+
else
|
|
38
|
+
logger_fatal "could not find gemspec $pth_gemspec"
|
|
39
|
+
exit 1
|
|
40
|
+
fi
|
|
41
|
+
done
|
|
28
42
|
}
|
|
29
43
|
|
|
30
44
|
require sub "$BASH_SOURCE" "$@"
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tvd-tvdinner
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 61
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 17
|
|
10
|
+
version: 0.0.17
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Tom Bombadil
|
|
@@ -19,7 +19,7 @@ date: 2013-03-06 00:00:00 -08:00
|
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
22
|
-
name:
|
|
22
|
+
name: chef
|
|
23
23
|
prerelease: false
|
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
|
25
25
|
none: false
|