v2gpti 1.3.2 → 1.3.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: b1dc1919343ecc8e4cea688c81c8a205ecb8bce8
4
- data.tar.gz: 25980406cc36766b6ff9a638db2d508752653703
3
+ metadata.gz: 5d34b6811b547682de2d8a59f28b4b0e4eb2f842
4
+ data.tar.gz: 23e0a77d9d0c5121159487b019a751a3cb0aa1ef
5
5
  SHA512:
6
- metadata.gz: a14a05e30f528fe98ff6ed8e71f9aefa9051e3d0effca26d420084b243704583c32d390b00dba42fff8cbdda9c937fb7dad790cc46ddc135f650d0f28b82a954
7
- data.tar.gz: 7f15ce0beb8dddfae66ff11c4af396fea494ff0d0e613ad82feaee5b8fec70cace8a53b0f2e91129413b4d35de9c34383788bc62ac44d2cded85e0e9371a6632
6
+ metadata.gz: 9ce18420d49f7eb6edb56c1b72f0a94f76b5e2b360eeb49b4483927502c60cde7fcff5e66e7d1baafafb8598ab63ed6265e68c8f205a2ccf7968ba3029503a3d
7
+ data.tar.gz: 9cc133f35dbe77888d11abf99dd30b625de6c1e831b08ae1a1a606c8347df9a81a586eb5afb7051452ed62eaaeab86e34f789c248939c70cb9adcfe41bdb6ee1
@@ -133,12 +133,15 @@ module GitPivotalTrackerIntegration
133
133
  new_story_title = ask("Please enter the title for this #{new_story_type}.")
134
134
  end
135
135
 
136
- if (new_story_type == "feature" && (new_story_estimate < 0 || new_story_estimate > 3))
137
- new_story_estimate = estimate_story
138
- end
139
-
140
136
  attrs = {:story_type => new_story_type, :current_state => 'unstarted', :name => new_story_title}
141
- attrs[:estimate] = new_story_estimate if new_story_type == "feature"
137
+
138
+ if @project.bugs_and_chores_are_estimatable
139
+ attrs[:estimate] = estimate_story
140
+ else
141
+ if (new_story_type == "feature" && (new_story_estimate < 0 || new_story_estimate > 3))
142
+ attrs[:estimate] = estimate_story
143
+ end
144
+ end
142
145
 
143
146
  @project.create_story(attrs)
144
147
 
@@ -207,7 +210,7 @@ module GitPivotalTrackerIntegration
207
210
 
208
211
  # if it is a feature, get the estimate for the story.
209
212
  # if it is not provided in the command line, ask for it
210
- if type == "feature" #set the story points if it is feature story
213
+ if (type == "feature" or @project.bugs_and_chores_are_estimatable) #set the story points
211
214
  args.each do |arg|
212
215
  story_points = arg[2] if arg[0] == "-" && arg[1].downcase == "p"
213
216
  end
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.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Wolski
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-11-07 00:00:00.000000000 Z
13
+ date: 2017-11-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: highline