v2gpti 1.3.2 → 1.3.3
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 +4 -4
- data/lib/git-pivotal-tracker-integration/command/base.rb +9 -6
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5d34b6811b547682de2d8a59f28b4b0e4eb2f842
|
|
4
|
+
data.tar.gz: 23e0a77d9d0c5121159487b019a751a3cb0aa1ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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"
|
|
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.
|
|
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-
|
|
13
|
+
date: 2017-11-09 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: highline
|