alpha_omega 0.0.151 → 0.0.152

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.151
1
+ 0.0.152
data/libexec/activate CHANGED
@@ -14,7 +14,7 @@ function bump_version {
14
14
 
15
15
  tmp_version=$(mktemp -t XXXXXXXXX)
16
16
  if [[ -n $local_file ]]; then
17
- cp VERSION $tmp_version
17
+ cat VERSION | perl -ne 'm{^\s*v?(\d+)\.(\d+)\.(\d+)\s*$} && printf("%03d.%03d.%03d %d.%d.%d\n",$1,$2,$3,$1,$2,$3)' | sort -r | head -1 | awk '{print $2}' > $tmp_version
18
18
  else
19
19
  git tag | perl -ne 'm{^v(\d+)\.(\d+)\.(\d+)$} && printf("%03d.%03d.%03d %d.%d.%d\n",$1,$2,$3,$1,$2,$3)' | sort -r | head -1 | awk '{print $2}' > $tmp_version
20
20
  fi
@@ -37,27 +37,31 @@ function bump_version {
37
37
  ;;
38
38
  *)
39
39
  ver_new=$1; shift
40
- set $(echo "$ver_new" | sed 's#\.# #g') 0
41
- M=$1; shift
42
- m=$1; shift
43
- p=$1; shift
44
-
45
- (echo "$(($M+0)).$(($m+0)).$(($p+0))" > $tmp_version) 2>&-
46
- ver_new_same=$(cat $tmp_version)
47
-
48
- if [[ $ver_new != $ver_new_same ]]; then
49
- echo "ERROR: invalid version: $ver_new" 1>&2
50
- exit 1
51
- fi
40
+ ver_new=${ver_new#v}
41
+ echo $ver_new > $tmp_version
52
42
  ;;
53
43
  esac
54
44
 
55
- ver_bumped=$(cat $tmp_version)
45
+ ver_new=$(cat $tmp_version)
46
+ set $(echo "$ver_new" | sed 's#\.# #g') 0
47
+ M=$1; shift
48
+ m=$1; shift
49
+ p=$1; shift
50
+
51
+ (echo "$(($M+0)).$(($m+0)).$(($p+0))" > $tmp_version) 2>&-
52
+ ver_new_same=$(cat $tmp_version)
53
+
54
+ if [[ $ver_new != $ver_new_same ]]; then
55
+ echo "ERROR: invalid version: $ver_new" 1>&2
56
+ exit 1
57
+ fi
58
+
59
+ ver_bumped="v$(cat $tmp_version)"
56
60
  rm -f $tmp_version
57
- ensure_git_tag_available "v$ver_bumped"
61
+ ensure_git_tag_available $ver_bumped
58
62
 
59
63
  if [[ -n $local_file ]]; then
60
- echo $ver_bumped > VERSION
64
+ echo ${ver_bumped#v} > VERSION
61
65
  git add VERSION
62
66
  if [[ -f Gemfile ]]; then
63
67
  bundle check 2>&1 >/dev/null || { bundle --quiet install --local --path vendor/bundle || bundle check > /dev/null; }
@@ -68,7 +72,7 @@ function bump_version {
68
72
  git push
69
73
  fi
70
74
 
71
- git_tag "v$ver_bumped"
75
+ git_tag "$ver_bumped"
72
76
  echo $ver_bumped
73
77
  }
74
78
 
data/libexec/build CHANGED
@@ -14,7 +14,7 @@ function bump_version {
14
14
 
15
15
  tmp_version=$(mktemp -t XXXXXXXXX)
16
16
  if [[ -n $local_file ]]; then
17
- cp VERSION $tmp_version
17
+ cat VERSION | perl -ne 'm{^\s*v?(\d+)\.(\d+)\.(\d+)\s*$} && printf("%03d.%03d.%03d %d.%d.%d\n",$1,$2,$3,$1,$2,$3)' | sort -r | head -1 | awk '{print $2}' > $tmp_version
18
18
  else
19
19
  git tag | perl -ne 'm{^v(\d+)\.(\d+)\.(\d+)$} && printf("%03d.%03d.%03d %d.%d.%d\n",$1,$2,$3,$1,$2,$3)' | sort -r | head -1 | awk '{print $2}' > $tmp_version
20
20
  fi
@@ -37,27 +37,31 @@ function bump_version {
37
37
  ;;
38
38
  *)
39
39
  ver_new=$1; shift
40
- set $(echo "$ver_new" | sed 's#\.# #g') 0
41
- M=$1; shift
42
- m=$1; shift
43
- p=$1; shift
44
-
45
- (echo "$(($M+0)).$(($m+0)).$(($p+0))" > $tmp_version) 2>&-
46
- ver_new_same=$(cat $tmp_version)
47
-
48
- if [[ $ver_new != $ver_new_same ]]; then
49
- echo "ERROR: invalid version: $ver_new" 1>&2
50
- exit 1
51
- fi
40
+ ver_new=${ver_new#v}
41
+ echo $ver_new > $tmp_version
52
42
  ;;
53
43
  esac
54
44
 
55
- ver_bumped=$(cat $tmp_version)
45
+ ver_new=$(cat $tmp_version)
46
+ set $(echo "$ver_new" | sed 's#\.# #g') 0
47
+ M=$1; shift
48
+ m=$1; shift
49
+ p=$1; shift
50
+
51
+ (echo "$(($M+0)).$(($m+0)).$(($p+0))" > $tmp_version) 2>&-
52
+ ver_new_same=$(cat $tmp_version)
53
+
54
+ if [[ $ver_new != $ver_new_same ]]; then
55
+ echo "ERROR: invalid version: $ver_new" 1>&2
56
+ exit 1
57
+ fi
58
+
59
+ ver_bumped="v$(cat $tmp_version)"
56
60
  rm -f $tmp_version
57
- ensure_git_tag_available "v$ver_bumped"
61
+ ensure_git_tag_available $ver_bumped
58
62
 
59
63
  if [[ -n $local_file ]]; then
60
- echo $ver_bumped > VERSION
64
+ echo ${ver_bumped#v} > VERSION
61
65
  git add VERSION
62
66
  if [[ -f Gemfile ]]; then
63
67
  bundle check 2>&1 >/dev/null || { bundle --quiet install --local --path vendor/bundle || bundle check > /dev/null; }
@@ -68,7 +72,7 @@ function bump_version {
68
72
  git push
69
73
  fi
70
74
 
71
- git_tag "v$ver_bumped"
75
+ git_tag "$ver_bumped"
72
76
  echo $ver_bumped
73
77
  }
74
78
 
data/libexec/bump CHANGED
@@ -14,7 +14,7 @@ function bump_version {
14
14
 
15
15
  tmp_version=$(mktemp -t XXXXXXXXX)
16
16
  if [[ -n $local_file ]]; then
17
- cp VERSION $tmp_version
17
+ cat VERSION | perl -ne 'm{^\s*v?(\d+)\.(\d+)\.(\d+)\s*$} && printf("%03d.%03d.%03d %d.%d.%d\n",$1,$2,$3,$1,$2,$3)' | sort -r | head -1 | awk '{print $2}' > $tmp_version
18
18
  else
19
19
  git tag | perl -ne 'm{^v(\d+)\.(\d+)\.(\d+)$} && printf("%03d.%03d.%03d %d.%d.%d\n",$1,$2,$3,$1,$2,$3)' | sort -r | head -1 | awk '{print $2}' > $tmp_version
20
20
  fi
@@ -37,27 +37,31 @@ function bump_version {
37
37
  ;;
38
38
  *)
39
39
  ver_new=$1; shift
40
- set $(echo "$ver_new" | sed 's#\.# #g') 0
41
- M=$1; shift
42
- m=$1; shift
43
- p=$1; shift
44
-
45
- (echo "$(($M+0)).$(($m+0)).$(($p+0))" > $tmp_version) 2>&-
46
- ver_new_same=$(cat $tmp_version)
47
-
48
- if [[ $ver_new != $ver_new_same ]]; then
49
- echo "ERROR: invalid version: $ver_new" 1>&2
50
- exit 1
51
- fi
40
+ ver_new=${ver_new#v}
41
+ echo $ver_new > $tmp_version
52
42
  ;;
53
43
  esac
54
44
 
55
- ver_bumped=$(cat $tmp_version)
45
+ ver_new=$(cat $tmp_version)
46
+ set $(echo "$ver_new" | sed 's#\.# #g') 0
47
+ M=$1; shift
48
+ m=$1; shift
49
+ p=$1; shift
50
+
51
+ (echo "$(($M+0)).$(($m+0)).$(($p+0))" > $tmp_version) 2>&-
52
+ ver_new_same=$(cat $tmp_version)
53
+
54
+ if [[ $ver_new != $ver_new_same ]]; then
55
+ echo "ERROR: invalid version: $ver_new" 1>&2
56
+ exit 1
57
+ fi
58
+
59
+ ver_bumped="v$(cat $tmp_version)"
56
60
  rm -f $tmp_version
57
- ensure_git_tag_available "v$ver_bumped"
61
+ ensure_git_tag_available $ver_bumped
58
62
 
59
63
  if [[ -n $local_file ]]; then
60
- echo $ver_bumped > VERSION
64
+ echo ${ver_bumped#v} > VERSION
61
65
  git add VERSION
62
66
  if [[ -f Gemfile ]]; then
63
67
  bundle check 2>&1 >/dev/null || { bundle --quiet install --local --path vendor/bundle || bundle check > /dev/null; }
@@ -68,7 +72,7 @@ function bump_version {
68
72
  git push
69
73
  fi
70
74
 
71
- git_tag "v$ver_bumped"
75
+ git_tag "$ver_bumped"
72
76
  echo $ver_bumped
73
77
  }
74
78
 
data/libexec/check CHANGED
@@ -14,7 +14,7 @@ function bump_version {
14
14
 
15
15
  tmp_version=$(mktemp -t XXXXXXXXX)
16
16
  if [[ -n $local_file ]]; then
17
- cp VERSION $tmp_version
17
+ cat VERSION | perl -ne 'm{^\s*v?(\d+)\.(\d+)\.(\d+)\s*$} && printf("%03d.%03d.%03d %d.%d.%d\n",$1,$2,$3,$1,$2,$3)' | sort -r | head -1 | awk '{print $2}' > $tmp_version
18
18
  else
19
19
  git tag | perl -ne 'm{^v(\d+)\.(\d+)\.(\d+)$} && printf("%03d.%03d.%03d %d.%d.%d\n",$1,$2,$3,$1,$2,$3)' | sort -r | head -1 | awk '{print $2}' > $tmp_version
20
20
  fi
@@ -37,27 +37,31 @@ function bump_version {
37
37
  ;;
38
38
  *)
39
39
  ver_new=$1; shift
40
- set $(echo "$ver_new" | sed 's#\.# #g') 0
41
- M=$1; shift
42
- m=$1; shift
43
- p=$1; shift
44
-
45
- (echo "$(($M+0)).$(($m+0)).$(($p+0))" > $tmp_version) 2>&-
46
- ver_new_same=$(cat $tmp_version)
47
-
48
- if [[ $ver_new != $ver_new_same ]]; then
49
- echo "ERROR: invalid version: $ver_new" 1>&2
50
- exit 1
51
- fi
40
+ ver_new=${ver_new#v}
41
+ echo $ver_new > $tmp_version
52
42
  ;;
53
43
  esac
54
44
 
55
- ver_bumped=$(cat $tmp_version)
45
+ ver_new=$(cat $tmp_version)
46
+ set $(echo "$ver_new" | sed 's#\.# #g') 0
47
+ M=$1; shift
48
+ m=$1; shift
49
+ p=$1; shift
50
+
51
+ (echo "$(($M+0)).$(($m+0)).$(($p+0))" > $tmp_version) 2>&-
52
+ ver_new_same=$(cat $tmp_version)
53
+
54
+ if [[ $ver_new != $ver_new_same ]]; then
55
+ echo "ERROR: invalid version: $ver_new" 1>&2
56
+ exit 1
57
+ fi
58
+
59
+ ver_bumped="v$(cat $tmp_version)"
56
60
  rm -f $tmp_version
57
- ensure_git_tag_available "v$ver_bumped"
61
+ ensure_git_tag_available $ver_bumped
58
62
 
59
63
  if [[ -n $local_file ]]; then
60
- echo $ver_bumped > VERSION
64
+ echo ${ver_bumped#v} > VERSION
61
65
  git add VERSION
62
66
  if [[ -f Gemfile ]]; then
63
67
  bundle check 2>&1 >/dev/null || { bundle --quiet install --local --path vendor/bundle || bundle check > /dev/null; }
@@ -68,7 +72,7 @@ function bump_version {
68
72
  git push
69
73
  fi
70
74
 
71
- git_tag "v$ver_bumped"
75
+ git_tag "$ver_bumped"
72
76
  echo $ver_bumped
73
77
  }
74
78
 
data/libexec/compare CHANGED
@@ -14,7 +14,7 @@ function bump_version {
14
14
 
15
15
  tmp_version=$(mktemp -t XXXXXXXXX)
16
16
  if [[ -n $local_file ]]; then
17
- cp VERSION $tmp_version
17
+ cat VERSION | perl -ne 'm{^\s*v?(\d+)\.(\d+)\.(\d+)\s*$} && printf("%03d.%03d.%03d %d.%d.%d\n",$1,$2,$3,$1,$2,$3)' | sort -r | head -1 | awk '{print $2}' > $tmp_version
18
18
  else
19
19
  git tag | perl -ne 'm{^v(\d+)\.(\d+)\.(\d+)$} && printf("%03d.%03d.%03d %d.%d.%d\n",$1,$2,$3,$1,$2,$3)' | sort -r | head -1 | awk '{print $2}' > $tmp_version
20
20
  fi
@@ -37,27 +37,31 @@ function bump_version {
37
37
  ;;
38
38
  *)
39
39
  ver_new=$1; shift
40
- set $(echo "$ver_new" | sed 's#\.# #g') 0
41
- M=$1; shift
42
- m=$1; shift
43
- p=$1; shift
44
-
45
- (echo "$(($M+0)).$(($m+0)).$(($p+0))" > $tmp_version) 2>&-
46
- ver_new_same=$(cat $tmp_version)
47
-
48
- if [[ $ver_new != $ver_new_same ]]; then
49
- echo "ERROR: invalid version: $ver_new" 1>&2
50
- exit 1
51
- fi
40
+ ver_new=${ver_new#v}
41
+ echo $ver_new > $tmp_version
52
42
  ;;
53
43
  esac
54
44
 
55
- ver_bumped=$(cat $tmp_version)
45
+ ver_new=$(cat $tmp_version)
46
+ set $(echo "$ver_new" | sed 's#\.# #g') 0
47
+ M=$1; shift
48
+ m=$1; shift
49
+ p=$1; shift
50
+
51
+ (echo "$(($M+0)).$(($m+0)).$(($p+0))" > $tmp_version) 2>&-
52
+ ver_new_same=$(cat $tmp_version)
53
+
54
+ if [[ $ver_new != $ver_new_same ]]; then
55
+ echo "ERROR: invalid version: $ver_new" 1>&2
56
+ exit 1
57
+ fi
58
+
59
+ ver_bumped="v$(cat $tmp_version)"
56
60
  rm -f $tmp_version
57
- ensure_git_tag_available "v$ver_bumped"
61
+ ensure_git_tag_available $ver_bumped
58
62
 
59
63
  if [[ -n $local_file ]]; then
60
- echo $ver_bumped > VERSION
64
+ echo ${ver_bumped#v} > VERSION
61
65
  git add VERSION
62
66
  if [[ -f Gemfile ]]; then
63
67
  bundle check 2>&1 >/dev/null || { bundle --quiet install --local --path vendor/bundle || bundle check > /dev/null; }
@@ -68,7 +72,7 @@ function bump_version {
68
72
  git push
69
73
  fi
70
74
 
71
- git_tag "v$ver_bumped"
75
+ git_tag "$ver_bumped"
72
76
  echo $ver_bumped
73
77
  }
74
78
 
data/libexec/config CHANGED
@@ -14,7 +14,7 @@ function bump_version {
14
14
 
15
15
  tmp_version=$(mktemp -t XXXXXXXXX)
16
16
  if [[ -n $local_file ]]; then
17
- cp VERSION $tmp_version
17
+ cat VERSION | perl -ne 'm{^\s*v?(\d+)\.(\d+)\.(\d+)\s*$} && printf("%03d.%03d.%03d %d.%d.%d\n",$1,$2,$3,$1,$2,$3)' | sort -r | head -1 | awk '{print $2}' > $tmp_version
18
18
  else
19
19
  git tag | perl -ne 'm{^v(\d+)\.(\d+)\.(\d+)$} && printf("%03d.%03d.%03d %d.%d.%d\n",$1,$2,$3,$1,$2,$3)' | sort -r | head -1 | awk '{print $2}' > $tmp_version
20
20
  fi
@@ -37,27 +37,31 @@ function bump_version {
37
37
  ;;
38
38
  *)
39
39
  ver_new=$1; shift
40
- set $(echo "$ver_new" | sed 's#\.# #g') 0
41
- M=$1; shift
42
- m=$1; shift
43
- p=$1; shift
44
-
45
- (echo "$(($M+0)).$(($m+0)).$(($p+0))" > $tmp_version) 2>&-
46
- ver_new_same=$(cat $tmp_version)
47
-
48
- if [[ $ver_new != $ver_new_same ]]; then
49
- echo "ERROR: invalid version: $ver_new" 1>&2
50
- exit 1
51
- fi
40
+ ver_new=${ver_new#v}
41
+ echo $ver_new > $tmp_version
52
42
  ;;
53
43
  esac
54
44
 
55
- ver_bumped=$(cat $tmp_version)
45
+ ver_new=$(cat $tmp_version)
46
+ set $(echo "$ver_new" | sed 's#\.# #g') 0
47
+ M=$1; shift
48
+ m=$1; shift
49
+ p=$1; shift
50
+
51
+ (echo "$(($M+0)).$(($m+0)).$(($p+0))" > $tmp_version) 2>&-
52
+ ver_new_same=$(cat $tmp_version)
53
+
54
+ if [[ $ver_new != $ver_new_same ]]; then
55
+ echo "ERROR: invalid version: $ver_new" 1>&2
56
+ exit 1
57
+ fi
58
+
59
+ ver_bumped="v$(cat $tmp_version)"
56
60
  rm -f $tmp_version
57
- ensure_git_tag_available "v$ver_bumped"
61
+ ensure_git_tag_available $ver_bumped
58
62
 
59
63
  if [[ -n $local_file ]]; then
60
- echo $ver_bumped > VERSION
64
+ echo ${ver_bumped#v} > VERSION
61
65
  git add VERSION
62
66
  if [[ -f Gemfile ]]; then
63
67
  bundle check 2>&1 >/dev/null || { bundle --quiet install --local --path vendor/bundle || bundle check > /dev/null; }
@@ -68,7 +72,7 @@ function bump_version {
68
72
  git push
69
73
  fi
70
74
 
71
- git_tag "v$ver_bumped"
75
+ git_tag "$ver_bumped"
72
76
  echo $ver_bumped
73
77
  }
74
78
 
data/libexec/debug CHANGED
@@ -14,7 +14,7 @@ function bump_version {
14
14
 
15
15
  tmp_version=$(mktemp -t XXXXXXXXX)
16
16
  if [[ -n $local_file ]]; then
17
- cp VERSION $tmp_version
17
+ cat VERSION | perl -ne 'm{^\s*v?(\d+)\.(\d+)\.(\d+)\s*$} && printf("%03d.%03d.%03d %d.%d.%d\n",$1,$2,$3,$1,$2,$3)' | sort -r | head -1 | awk '{print $2}' > $tmp_version
18
18
  else
19
19
  git tag | perl -ne 'm{^v(\d+)\.(\d+)\.(\d+)$} && printf("%03d.%03d.%03d %d.%d.%d\n",$1,$2,$3,$1,$2,$3)' | sort -r | head -1 | awk '{print $2}' > $tmp_version
20
20
  fi
@@ -37,27 +37,31 @@ function bump_version {
37
37
  ;;
38
38
  *)
39
39
  ver_new=$1; shift
40
- set $(echo "$ver_new" | sed 's#\.# #g') 0
41
- M=$1; shift
42
- m=$1; shift
43
- p=$1; shift
44
-
45
- (echo "$(($M+0)).$(($m+0)).$(($p+0))" > $tmp_version) 2>&-
46
- ver_new_same=$(cat $tmp_version)
47
-
48
- if [[ $ver_new != $ver_new_same ]]; then
49
- echo "ERROR: invalid version: $ver_new" 1>&2
50
- exit 1
51
- fi
40
+ ver_new=${ver_new#v}
41
+ echo $ver_new > $tmp_version
52
42
  ;;
53
43
  esac
54
44
 
55
- ver_bumped=$(cat $tmp_version)
45
+ ver_new=$(cat $tmp_version)
46
+ set $(echo "$ver_new" | sed 's#\.# #g') 0
47
+ M=$1; shift
48
+ m=$1; shift
49
+ p=$1; shift
50
+
51
+ (echo "$(($M+0)).$(($m+0)).$(($p+0))" > $tmp_version) 2>&-
52
+ ver_new_same=$(cat $tmp_version)
53
+
54
+ if [[ $ver_new != $ver_new_same ]]; then
55
+ echo "ERROR: invalid version: $ver_new" 1>&2
56
+ exit 1
57
+ fi
58
+
59
+ ver_bumped="v$(cat $tmp_version)"
56
60
  rm -f $tmp_version
57
- ensure_git_tag_available "v$ver_bumped"
61
+ ensure_git_tag_available $ver_bumped
58
62
 
59
63
  if [[ -n $local_file ]]; then
60
- echo $ver_bumped > VERSION
64
+ echo ${ver_bumped#v} > VERSION
61
65
  git add VERSION
62
66
  if [[ -f Gemfile ]]; then
63
67
  bundle check 2>&1 >/dev/null || { bundle --quiet install --local --path vendor/bundle || bundle check > /dev/null; }
@@ -68,7 +72,7 @@ function bump_version {
68
72
  git push
69
73
  fi
70
74
 
71
- git_tag "v$ver_bumped"
75
+ git_tag "$ver_bumped"
72
76
  echo $ver_bumped
73
77
  }
74
78