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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDQ5MjIzMThlZjMzNDA5NGNkYzJkOWU5MDcwNjZlMDRlNDQ1ZGZjYg==
4
+ ODllNGVjN2JiZjgyZTMwMjkyNjBhY2IyMDlkNDY1ZDQwZGFmOTk3MA==
5
5
  data.tar.gz: !binary |-
6
- ZjU1ZDAzNTU4MThkNGEyYTg5YjU4OTEyYTY0NGYwOTYyM2ZiMWUwZA==
6
+ ZTVhNjRmOTQ1Yjg0YjAzZmJlODQyYTE0YzU4ZTc5ZDI2MmEyZWNjNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTM4ZDM4Y2MxMDNmNjYyODg0Mjc0YTdlMTFkYzNmNDlkZjVkMzc1OTg1Mjg3
10
- NTQxYzc3MjkxZDliMTJkMDM1NzhjNDRmZWVmNjllMDI4NmRmNTk5MWRlODRm
11
- MzBhMjQ0MGE2OGMzNTBlM2YzZWY1NDljNTNhZjE0MjI3ZTliZDE=
9
+ MTliMjZiN2U1NmZhYzU0NTYwZjRkZjgzMDUxMzUyNjNkZTg5YzBiZGExNDli
10
+ ODg3MDc1YmI1YmY4ZmYyZGM4MGE3NzQ0M2ZhNzdhMDkzMGU0MjUxOGUxNzFl
11
+ ZTQwY2I4YzI4OWI3ZDgyOGNkNzg5Y2Y3NDgyMDdlMmJlNzE5OTY=
12
12
  data.tar.gz: !binary |-
13
- M2RjOWJlOGE0NzlmZjAxMDgxYjNjMDczNjVlYjJhNzYzODdlNGFhMTBhODVj
14
- NjdiODcwNzYxZDU2OTk0ZTEzZWEzNmY2ZDkxMmFkNWZmY2VkODcyMGQxY2U0
15
- ZGE5ZmJlZTQ0ZDlkNWQ0ZTJmNTFlODhmMTZkYTA5NjRhMGUyYTI=
13
+ MjU0NzVkZjljMWU3OWJjZTZjN2YwNzc2NTIwOTY1ZmUwOWE5MzU1MWM1ZWUz
14
+ YWI5ZTEzY2M4ZWI0OGI5YWI1MzU0OTlhMmM1NzM1ZTA0ZWM5M2M2MTM5MzM3
15
+ MTEyM2FkYzliOGE0MmIyZTBhYjY5ZDI2ZjQ0NmRkODVmNTM4YWM=
data/.travis.yml CHANGED
@@ -28,3 +28,6 @@ deploy:
28
28
  repo: trevorrowe/AutoDeployTest
29
29
  all_branches: true
30
30
  tags: true
31
+
32
+ after_deploy:
33
+ "rake changelog:latest"
data/CHANGELOG.md CHANGED
@@ -3,6 +3,9 @@
3
3
  Next Release (TBD)
4
4
  ------------------
5
5
 
6
+ v0.1.10 (2014-08-15)
7
+ ------------------
8
+
6
9
  v0.1.9 (2014-08-14)
7
10
  ------------------
8
11
 
@@ -1,4 +1,4 @@
1
1
  class AutoDeployTest
2
2
  # gem version
3
- VERSION = '0.1.9'
3
+ VERSION = '0.1.10'
4
4
  end
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 :require_version do
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:require_version',
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
  ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto-deploy-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trevor Rowe