v2gpti 1.3.4 → 1.3.5

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: d5befd5b69f9da456a4b67b05bead65eba1104d7
4
- data.tar.gz: 7f962da0b7b9ddbe7b7ff633f66a23cf095a07ba
3
+ metadata.gz: 9815c11959085a7eb42681ba759803313d27691d
4
+ data.tar.gz: c048425c25049ccf789d6cf5c6cde126d39898b1
5
5
  SHA512:
6
- metadata.gz: de385feddfb531e9b7520d8b3f389607e038cda4317cee796d33f8fe12b920b195e94ec1931423a1e8bebfb2a11c0e17b9622af770fff4644c4d90181cdf0e50
7
- data.tar.gz: c4426064c074a03184cf0ca261248318cdff24537ac9bff1a099bf2ef4336e98223904482370b0e9bde8a1bbe7aba6efef2b836954a063ce715aed428b214962
6
+ metadata.gz: 6375484ae663c990e20533e10d89a17b6a884a5d39132da07e0cf3dbb1efe544e79e4c77bf85ef48512f0940aaf852b7e17d7ece8180f2c3189a4b263d8d17c8
7
+ data.tar.gz: 9d0e96f96a5cb9c606aec448b52e44bab9877ac39a2e6aa0b026442036ee27e503a4c6b0c516a7fcbb1025d80c88d6fab238484421ac39aa8054b11a6858d7f1
@@ -134,7 +134,20 @@ module GitPivotalTrackerIntegration
134
134
 
135
135
  def included_stories(project, build_story)
136
136
 
137
- stories = project.stories(filter: "current_state:finished type:bug,chore,feature -id:#{build_story.id}", limit: 1000)
137
+ stories_finished = project.stories(filter: "current_state:finished type:bug,chore,feature -id:#{build_story.id}", limit: 1000)
138
+ story_ids_finished = stories_finished.map { |e| e.id }
139
+ story_ids_merged = `git log | grep \"\\[Completes\" | egrep -o \"\\d{9}\"`.split("\n").map(&:to_i)
140
+
141
+ story_ids_intersection = story_ids_finished & story_ids_merged
142
+ stories = stories_finished.map { |e| e if story_ids_intersection.include? e.id }.compact
143
+
144
+ #puts "story IDs finished:\n#{story_ids_finished}"
145
+ #puts "story IDs merged:\n#{story_ids_merged}"
146
+ #puts "story IDs intersection:\n#{story_ids_intersection}"
147
+ #puts "story IDs:\n#{stories.map { |e| e.id }}"
148
+ #puts "stories count:#{stories.count}"
149
+ #abort "abort"
150
+
138
151
 
139
152
  # capture story details in a file as well as to stdout
140
153
  FileUtils.mkdir_p 'release_notes'
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
4
+ version: 1.3.5
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-23 00:00:00.000000000 Z
13
+ date: 2018-01-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: highline
@@ -338,15 +338,15 @@ description: Provides a set of additional Git commands to help developers when w
338
338
  with Pivotal Tracker
339
339
  email: jeff@xxxxxxxxx.com
340
340
  executables:
341
- - git-qa
342
- - git-uat
343
- - git-newbug
341
+ - git-deliver
344
342
  - git-finish
345
- - git-report
343
+ - git-newbug
346
344
  - git-newfeature
347
- - git-start
348
- - git-deliver
345
+ - git-qa
349
346
  - git-release
347
+ - git-report
348
+ - git-start
349
+ - git-uat
350
350
  extensions: []
351
351
  extra_rdoc_files: []
352
352
  files:
@@ -446,17 +446,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
446
446
  version: '0'
447
447
  requirements: []
448
448
  rubyforge_project:
449
- rubygems_version: 2.5.2.1
449
+ rubygems_version: 2.5.1
450
450
  signing_key:
451
451
  specification_version: 4
452
452
  summary: Git commands for integration with Pivotal Tracker
453
453
  test_files:
454
+ - spec/git-pivotal-tracker-integration/command/base_spec.rb
455
+ - spec/git-pivotal-tracker-integration/command/configuration_spec.rb
456
+ - spec/git-pivotal-tracker-integration/command/finish_spec.rb
457
+ - spec/git-pivotal-tracker-integration/command/release_spec.rb
458
+ - spec/git-pivotal-tracker-integration/command/start_spec.rb
454
459
  - spec/git-pivotal-tracker-integration/util/git_spec.rb
455
460
  - spec/git-pivotal-tracker-integration/util/shell_spec.rb
456
461
  - spec/git-pivotal-tracker-integration/util/story_spec.rb
457
462
  - spec/git-pivotal-tracker-integration/version-update/gradle_spec.rb
458
- - spec/git-pivotal-tracker-integration/command/configuration_spec.rb
459
- - spec/git-pivotal-tracker-integration/command/finish_spec.rb
460
- - spec/git-pivotal-tracker-integration/command/start_spec.rb
461
- - spec/git-pivotal-tracker-integration/command/release_spec.rb
462
- - spec/git-pivotal-tracker-integration/command/base_spec.rb