v2gpti 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/git-pivotal-tracker-integration/command/base.rb +13 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1dc1919343ecc8e4cea688c81c8a205ecb8bce8
|
4
|
+
data.tar.gz: 25980406cc36766b6ff9a638db2d508752653703
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a14a05e30f528fe98ff6ed8e71f9aefa9051e3d0effca26d420084b243704583c32d390b00dba42fff8cbdda9c937fb7dad790cc46ddc135f650d0f28b82a954
|
7
|
+
data.tar.gz: 7f15ce0beb8dddfae66ff11c4af396fea494ff0d0e613ad82feaee5b8fec70cace8a53b0f2e91129413b4d35de9c34383788bc62ac44d2cded85e0e9371a6632
|
@@ -88,7 +88,7 @@ module GitPivotalTrackerIntegration
|
|
88
88
|
raise NotImplementedError
|
89
89
|
end
|
90
90
|
|
91
|
-
|
91
|
+
|
92
92
|
def seconds_spent(time_spent)
|
93
93
|
seconds = 0
|
94
94
|
time_spent.scan(/(\d+)(\w)/).each do |amount, measure|
|
@@ -168,17 +168,23 @@ module GitPivotalTrackerIntegration
|
|
168
168
|
end
|
169
169
|
|
170
170
|
def estimate_story
|
171
|
-
|
172
|
-
|
173
|
-
|
171
|
+
point_scale = @project.point_scale
|
172
|
+
point_scale_arr = point_scale.split(',').map(&:to_s)
|
173
|
+
|
174
|
+
estimate = ask("Please enter the estimate points(#{point_scale}) for this story.") do |q|
|
175
|
+
q.in = point_scale_arr
|
176
|
+
q.responses[:not_in_range] = "Invalid entry...Please enter the estimate points(#{point_scale}) for this story."
|
174
177
|
end
|
175
178
|
estimate.to_i
|
176
179
|
end
|
177
180
|
|
178
181
|
def estimate_story_optional
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
+
point_scale = @project.point_scale
|
183
|
+
point_scale_arr = point_scale.split(',').map(&:to_s).push("n")
|
184
|
+
|
185
|
+
estimate = ask("Please enter the estimate points(#{point_scale}) for this feature story.\nIf you don't want to estimate then enter n") do |q|
|
186
|
+
q.in = point_scale_arr
|
187
|
+
q.responses[:not_in_range] = "Invalid entry...Please enter the estimate points(#{point_scale}) for this feature story.\nIf you don't want to estimate then enter n"
|
182
188
|
end
|
183
189
|
if estimate == "n"
|
184
190
|
estimate = nil
|