auto-deploy-test 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.travis.yml +3 -0
- data/CHANGELOG.md +3 -0
- data/lib/auto_deploy_test/version.rb +1 -1
- data/tasks/changelog.rake +13 -0
- data/tasks/release.rake +12 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODllNGVjN2JiZjgyZTMwMjkyNjBhY2IyMDlkNDY1ZDQwZGFmOTk3MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTVhNjRmOTQ1Yjg0YjAzZmJlODQyYTE0YzU4ZTc5ZDI2MmEyZWNjNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTliMjZiN2U1NmZhYzU0NTYwZjRkZjgzMDUxMzUyNjNkZTg5YzBiZGExNDli
|
10
|
+
ODg3MDc1YmI1YmY4ZmYyZGM4MGE3NzQ0M2ZhNzdhMDkzMGU0MjUxOGUxNzFl
|
11
|
+
ZTQwY2I4YzI4OWI3ZDgyOGNkNzg5Y2Y3NDgyMDdlMmJlNzE5OTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjU0NzVkZjljMWU3OWJjZTZjN2YwNzc2NTIwOTY1ZmUwOWE5MzU1MWM1ZWUz
|
14
|
+
YWI5ZTEzY2M4ZWI0OGI5YWI1MzU0OTlhMmM1NzM1ZTA0ZWM5M2M2MTM5MzM3
|
15
|
+
MTEyM2FkYzliOGE0MmIyZTBhYjY5ZDI2ZjQ0NmRkODVmNTM4YWM=
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/tasks/changelog.rake
CHANGED
@@ -23,4 +23,17 @@ namespace :changelog do
|
|
23
23
|
sh("git add CHANGELOG.md")
|
24
24
|
end
|
25
25
|
|
26
|
+
task :latest do
|
27
|
+
changelog = File.open('CHANGELOG.md', 'r', encoding: 'UTF-8') { |f| f.read }
|
28
|
+
lines = []
|
29
|
+
changelog.lines[8..-1].each do |line|
|
30
|
+
if line.match(/^v\d/)
|
31
|
+
break
|
32
|
+
else
|
33
|
+
lines << line
|
34
|
+
end
|
35
|
+
end
|
36
|
+
puts lines[0..-2].join
|
37
|
+
end
|
38
|
+
|
26
39
|
end
|
data/tasks/release.rake
CHANGED
@@ -9,10 +9,17 @@ end
|
|
9
9
|
|
10
10
|
namespace :release do
|
11
11
|
|
12
|
-
task :
|
12
|
+
task :check_version do
|
13
13
|
version
|
14
14
|
end
|
15
15
|
|
16
|
+
task :check_clean do
|
17
|
+
unless `git diff --shortstat 2> /dev/null | tail -n1` == ''
|
18
|
+
warn('workspace must be clean to release')
|
19
|
+
exit(1)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
16
23
|
task :tag do
|
17
24
|
path = 'lib/auto_deploy_test/version.rb'
|
18
25
|
file = File.read(path)
|
@@ -20,7 +27,7 @@ namespace :release do
|
|
20
27
|
File.open(path, 'w') { |f| f.write(file) }
|
21
28
|
sh("git add lib/auto_deploy_test/version.rb")
|
22
29
|
sh("git commit -m \"Tag release v#{version}\"")
|
23
|
-
sh("git tag v#{version}")
|
30
|
+
sh("git tag -a v#{version} -m \"See ...\"")
|
24
31
|
end
|
25
32
|
|
26
33
|
task :push do
|
@@ -32,9 +39,10 @@ end
|
|
32
39
|
|
33
40
|
desc "Releases a new version"
|
34
41
|
task :release => [
|
35
|
-
'release:
|
42
|
+
'release:check_version',
|
43
|
+
'release:check_clean',
|
36
44
|
'test',
|
37
45
|
'changelog:version',
|
38
46
|
'release:tag',
|
39
|
-
'release:push',
|
47
|
+
#'release:push',
|
40
48
|
]
|