v2gpti 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a09e57e80af81a45583c28e77abbbd0077152f7
4
- data.tar.gz: 9755fa1d0100286f3861264260d55d044b2fc910
3
+ metadata.gz: b1dc1919343ecc8e4cea688c81c8a205ecb8bce8
4
+ data.tar.gz: 25980406cc36766b6ff9a638db2d508752653703
5
5
  SHA512:
6
- metadata.gz: 2fa6335e4af27e4d660d90e968ee36fe1ed795e5cd34e632c8d5c7015fc71478e5ed30a04601b52a633ef98efbda6ce9da0b890916808bac6704003460e8e5a0
7
- data.tar.gz: 0fa9f32ee10a80862d8680793b4d4da7e95d86ef7a171b117f5b572cbdfc49f92051428e4840d45463c0faa080487182458dfa61e39f4e043246c5ee1e10d1a8
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
- estimate = ask("Please enter the estimate points(0/1/2/3) for this story.") do |q|
172
- q.in = ["0", "1", "2", "3"]
173
- q.responses[:not_in_range] = "Invalid entry...Please enter the estimate points(0/1/2/3) for this story."
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
- estimate = ask("Please enter the estimate points(0/1/2/3) for this feature story.\nIf you don't want to estimate then enter n") do |q|
180
- q.in = ["0", "1", "2", "3", "n"]
181
- q.responses[:not_in_range] = "Invalid entry...Please enter the estimate points(0/1/2/3) for this feature story.\nIf you don't want to estimate then enter n"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: v2gpti
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Wolski