labelizer 0.999.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjA5YWJmMjBhMWVjZTllN2YzNjRkNjczZGZiNTA1ZDFhZWNjYjg3MQ==
4
+ ZTcyOGY3YzU1ZTQwZTBlYzM1OWU0M2M4MzcwYzFkYzdjMTc0MzIyZQ==
5
5
  data.tar.gz: !binary |-
6
- MDg5NGE3M2ZlMzRiMTBlMGFlMWZjZjkwZDhhOGM2ZmY3OGZiNTZkZg==
6
+ ZGYwMzgyMDFmNmRjMjg3NTFiYzFhNmVlNWU5OTVkODJlYWI1NWRkYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTA0N2Y4ZGY2NWQzNGYzZDljZjYwOWU4ZDMyMGQzMzA4MWViYjc4M2E0YWQ0
10
- ZGJiOGUzMmI2Y2JmMGZiNWY0ZjBhMjhmZDZiYzA2NDg2Yzc5NDRmZDY3YzA1
11
- NTEyM2U5OWRjY2VlNTRkYjdkMjhhMTk0YTQxYTU3MGNiZmUwMmU=
9
+ MTUzMDNiMDgyYTJjZDY5ZTEzM2FjYjBhNGRlYWI3NjBjMjdhOGEyODVjY2M1
10
+ ZDFiOTE3OGFiOTlhMTYxYzM4MmFkMThhNDdmNzM1MDE1Y2NiZDM2YmE4OWRm
11
+ ZWZhMjI2ZjNlZDc2ZmMwNzA0Mzc5Yjg5YTQwYzJiZmVjODczODY=
12
12
  data.tar.gz: !binary |-
13
- ODMwMGZhMjBmYWM3N2E0NjJjYjEyMDNiOTIwODA4MzNkYzM3NTQzMjYyNzg1
14
- MDE2N2Q4OGY0OWFjMzgyNDk3MzI3M2NhYjY0NGMyZTc0M2NmN2U1MmI0MmE0
15
- NTZjN2ZmOGYxN2Q2NjdiMzI0YTZkOWU0NWU2MzE2MGVlNzA3YTA=
13
+ YjhhYTc1ZmY3MTgzZGZiZWUxNTMzYjM2MzJhNzE2Y2QxODJkNGNlNWFmNDc1
14
+ NjQyMzY3Y2ZjMGQ5OTE3YzBmNjhiMWQwY2U0ZjAxMjY2ZDI3YjQ3YmE3Mjcy
15
+ Y2NmNjM2ZTJmYjVlYjlhZGI5MTc4OTg2ZWI0ODRkNGI1NmI1MWY=
@@ -1,3 +1,3 @@
1
1
  module Labelizer
2
- VERSION = "0.999.0"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -7,15 +7,17 @@ if [ -z "$mode" ]; then
7
7
  mode=patch
8
8
  fi
9
9
 
10
- version_file=version.txt
11
10
  version_rb=lib/labelizer/version.rb
12
- current_version=$(cat $version_file)
11
+
12
+ release_version_prefix="version dump: "
13
+ current_version=$(git log --format="%s" --grep="$release_version_prefix" | head -1)
14
+ current_version=${current_version#$release_version_prefix}
13
15
 
14
16
  git fetch --tags
15
17
  current_tag=$(git tag | tail -1)
16
18
 
17
19
  if [ "v$current_version" != "$current_tag" ]; then
18
- read -p "file: '$current_version', tag: '$current_tag'. continue? [Y/n] " confirm
20
+ read -p "curent: '$current_version', tag: '$current_tag'. continue? [Y/n] " confirm
19
21
  case $confirm in
20
22
  Y*|y*)
21
23
  ;;
@@ -25,14 +27,13 @@ if [ "v$current_version" != "$current_tag" ]; then
25
27
  esac
26
28
  fi
27
29
 
28
- version_build_next "$mode" $(cat $version_file)
30
+ version_build_next "$mode" $current_version
29
31
 
30
32
  read -p "dump version: $version. OK? [Y/n] " confirm
31
33
  case $confirm in
32
34
  Y*|y*)
33
- echo $version > $version_file
34
35
  sed -i 's/VERSION.*/VERSION = "'$version'"/' $version_rb
35
- git add $version_file $version_rb && git commit -m "version dump: $version"
36
+ git add $version_rb && git commit -m "version dump: $version"
36
37
  ;;
37
38
  *)
38
39
  exit 1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: labelizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.999.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - shun
@@ -115,7 +115,6 @@ files:
115
115
  - lib/labelizer/version.rb
116
116
  - release.sh
117
117
  - version-dump.sh
118
- - version.txt
119
118
  homepage: https://github.com/getto-systems/labelizer
120
119
  licenses:
121
120
  - MIT
@@ -1 +0,0 @@
1
- 0.999.0