deploy_and_deliver 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/deploy_and_deliver.rb +6 -2
- data/lib/deploy_and_deliver/version.rb +1 -1
- metadata +3 -9
data/lib/deploy_and_deliver.rb
CHANGED
@@ -11,14 +11,18 @@ module DeployAndDeliver
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def deliver_and_report
|
14
|
-
stories = project.stories.all(:current_state => 'finished')
|
15
14
|
stories.each{|story| story.update :current_state => 'delivered'}
|
16
15
|
|
17
|
-
|
16
|
+
points = stories.map(&:estimate).compact.inject(:+)
|
17
|
+
puts "* delivered #{stories.size} stories (#{points} points)"
|
18
18
|
stories.each do |story|
|
19
19
|
puts " - #{story.story_type.capitalize}: #{story.name} (#{story.estimate} #{story.estimate == 1 ? "point" : "points"})"
|
20
20
|
end
|
21
21
|
end
|
22
|
+
|
23
|
+
def stories
|
24
|
+
@stories ||= project.stories.all(:current_state => 'finished')
|
25
|
+
end
|
22
26
|
end
|
23
27
|
|
24
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deploy_and_deliver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-07-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pivotal-tracker
|
@@ -53,21 +53,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
53
53
|
- - ! '>='
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
|
-
segments:
|
57
|
-
- 0
|
58
|
-
hash: 2007644900775911433
|
59
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
57
|
none: false
|
61
58
|
requirements:
|
62
59
|
- - ! '>='
|
63
60
|
- !ruby/object:Gem::Version
|
64
61
|
version: '0'
|
65
|
-
segments:
|
66
|
-
- 0
|
67
|
-
hash: 2007644900775911433
|
68
62
|
requirements: []
|
69
63
|
rubyforge_project:
|
70
|
-
rubygems_version: 1.8.
|
64
|
+
rubygems_version: 1.8.23
|
71
65
|
signing_key:
|
72
66
|
specification_version: 3
|
73
67
|
summary: Capistrano recipes for Pivotal Tracker
|