td 0.10.99 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +3 -0
- data/ChangeLog +30 -1
- data/Rakefile +1 -1
- data/bin/td +21 -4
- data/contrib/completion/{td-comletion.bash → td-completion.bash} +0 -0
- data/dist/resources/exe/td +1 -1
- data/dist/resources/pkg/td +2 -2
- data/java/logging.properties +1 -0
- data/lib/td/command/common.rb +47 -18
- data/lib/td/command/export.rb +2 -2
- data/lib/td/command/import.rb +20 -71
- data/lib/td/command/job.rb +109 -16
- data/lib/td/command/list.rb +9 -7
- data/lib/td/command/query.rb +35 -27
- data/lib/td/command/result.rb +18 -2
- data/lib/td/command/runner.rb +18 -10
- data/lib/td/command/sched.rb +15 -3
- data/lib/td/command/schema.rb +5 -1
- data/lib/td/command/status.rb +1 -1
- data/lib/td/command/table.rb +26 -11
- data/lib/td/command/update.rb +9 -10
- data/lib/td/updater.rb +231 -29
- data/lib/td/version.rb +1 -3
- data/spec/td/updater_spec.rb +29 -0
- data/spec/td/version_spec.rb +1 -1
- data/td.gemspec +2 -2
- metadata +10 -40
- data/build/update-td-import-java.sh +0 -44
- data/java/VERSION +0 -1
- data/java/td-import-java.version +0 -1
- data/java/td-import.jar +0 -0
@@ -1,44 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
cd "$(dirname $0)"
|
3
|
-
chrev="$1"
|
4
|
-
|
5
|
-
if [ -d td-import-java/.git ];then
|
6
|
-
rm -rf td-import-java/*
|
7
|
-
cd td-import-java
|
8
|
-
git checkout . || exit 1
|
9
|
-
git pull || exit 1
|
10
|
-
else
|
11
|
-
rm -rf td-import-java/
|
12
|
-
git clone git@github.com:treasure-data/td-import-java.git td-import-java || exit 1
|
13
|
-
cd td-import-java
|
14
|
-
fi
|
15
|
-
git checkout master
|
16
|
-
|
17
|
-
if [ -n "$chrev" ];then
|
18
|
-
git checkout $chrev
|
19
|
-
fi
|
20
|
-
|
21
|
-
revname="$(git show --pretty=format:'%H %ad' | head -n 1)"
|
22
|
-
vername="0.4.1-SNAPSHOT"
|
23
|
-
|
24
|
-
mvn package -Dmaven.test.skip=true || exit 1
|
25
|
-
echo "copy td-import-${vername}.jar"
|
26
|
-
cp target/td-import-${vername}-jar-with-dependencies.jar ../../java/td-import.jar
|
27
|
-
echo "copy logging.properties"
|
28
|
-
cp src/test/resources/java/logging.properties ../../java/logging.properties
|
29
|
-
echo "create VERSION file"
|
30
|
-
echo "${vername}" > VERSION
|
31
|
-
mv VERSION ../../java/VERSION
|
32
|
-
|
33
|
-
if [ -n "$chrev" ];then
|
34
|
-
git checkout master
|
35
|
-
fi
|
36
|
-
|
37
|
-
cd ../../
|
38
|
-
|
39
|
-
echo "$revname" > java/td-import-java.version
|
40
|
-
|
41
|
-
echo ""
|
42
|
-
echo "git commit ./java -m \"updated td-import-java $revname\""
|
43
|
-
git commit ./java/td-import.jar ./java/td-import-java.version -m "updated td-import-java $revname" || exit 1
|
44
|
-
|
data/java/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.4.1-SNAPSHOT
|
data/java/td-import-java.version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
8e47cdba95d6c1fb237a53dfb304620ed00b168f Wed Nov 20 14:31:40 2013 +0900
|
data/java/td-import.jar
DELETED
Binary file
|