heroku_deployer 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb31a9bd48882e4894ea3c8b70405ec84cb06fc2
4
- data.tar.gz: 0e2f7e0eab12937811ba389ff87b87aaac59ad2c
3
+ metadata.gz: 2cd94d777dc10d4348774d0b174f44d2f60f648c
4
+ data.tar.gz: a3dad8202873e2ec02aef060001b0d186abdc855
5
5
  SHA512:
6
- metadata.gz: e6e21998496816bd791fa51735bcc8132ea24979baffef9d958360881b8bcc03e73a717a79e5dbf09f30152dde5e13d169c79e138837916ccb6e44b044c15425
7
- data.tar.gz: 667b014a95b164736998ca71f8770b4ecad8d1790c7c5d2465c50e45c507b2732333e523043776bdd8fbe9a5189e1d9e52453b13131ca494b06630ef6832fb3e
6
+ metadata.gz: 0fc2c7ac466613167b9c00d38d044369ca4bda3d9f8d9d1cc37a85abb6b17b3243a03794faf7d7c097b873ae5899322a6a3045c91dd8f5212f5e19776c593c48
7
+ data.tar.gz: c82ac7bb4a910cd123693c383201a70fb66475cdb48859adcad3fbd55bc792fe086fbbafbf11f4cdf723cdfe30ec3b4bc15d74a879707f1f82d92d9b08617fc9
@@ -67,17 +67,25 @@ module Amitree
67
67
  puts "- Trying staging release #{staging_release['name']} with commit #{staging_commit}" if options[:verbose]
68
68
  puts " - Stories: #{story_ids.inspect}" if options[:verbose]
69
69
 
70
- unaccepted_story_ids = story_ids.select { |story| get_tracker_status(story) != 'accepted' }
71
- stories.each do |story|
72
- story.blocked_by = unaccepted_story_ids
73
- end
70
+ unaccepted_story_ids = story_ids.select { |story_id| get_tracker_status(story_id) != 'accepted' }
74
71
 
75
72
  if unaccepted_story_ids.length > 0
73
+ stories.each do |story|
74
+ story.blocked_by = unaccepted_story_ids
75
+ end
76
76
  puts " - Some stories are not yet accepted: #{unaccepted_story_ids.inspect}" if options[:verbose]
77
77
  else
78
- puts " - This release is good to go!" if options[:verbose]
79
- result.staging_release_to_deploy = staging_release
80
- break
78
+ story_ids_referenced_later = story_ids & @git.stories_worked_on_between(staging_commit, 'HEAD')
79
+ if story_ids_referenced_later.length > 0
80
+ puts " - Some stories have been worked on in a later commit: #{story_ids_referenced_later}" if options[:verbose]
81
+ else
82
+ stories.each do |story|
83
+ story.blocked_by = unaccepted_story_ids
84
+ end
85
+ puts " - This release is good to go!" if options[:verbose]
86
+ result.staging_release_to_deploy = staging_release
87
+ break
88
+ end
81
89
  end
82
90
  end
83
91
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku_deployer
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: '0.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Wargnier