pivotal-github 1.0.0 → 1.0.1

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: 3b1327c6aeb3947b802849284a92b1f8f613454f
4
- data.tar.gz: d149aee10919ff595cec2185b42981cd022fec2b
3
+ metadata.gz: 423e3214d2286c02c02d5781c60a26669eb4a7ab
4
+ data.tar.gz: 41fe2a041b7a943ba3348f8883415d9800e4588b
5
5
  SHA512:
6
- metadata.gz: ec6de0af73b760f7db2cf8f966df795cc69af8564cac7c637a3e23803603c98a25c8e7be8a08fb7f836389364d6207343ce0a93e0de0afa11bffc4ac1a120977
7
- data.tar.gz: 43737ee77614a033099f5097694f70ac78da05b41b32a37d79e75650dadbfdc63f70d552f27a9afee529be5e02fc337668dea0532f8c640f3d2274c7248b8062
6
+ metadata.gz: 4705b90983c0f17182a96289c11a99c88fecc46a87d9bd3862d50f36369e08fb7748df75532104775f764c947d9cc9b68339b216e46cd5512bfb52e8aaade88b
7
+ data.tar.gz: a1d006a7af27a696641f75e4646f93ebf6e8b56bd2c2516d4e2a248c9c4e5d457970b7cd7595572cf2af45eb4a0f3593116f633d9a82d5a4852eac723d951b47
@@ -26,7 +26,8 @@ class StoryAccept < Command
26
26
  # [Delivers #<story id> #<another story id>].
27
27
  def ids_to_accept
28
28
  delivered_regex = /\[Deliver(?:s|ed) (.*?)\]/
29
- Git.open('.').log.inject([]) do |delivered_ids, commit|
29
+ n_commits = `git rev-list HEAD --count`
30
+ Git.open('.').log(n_commits).inject([]) do |delivered_ids, commit|
30
31
  message = commit.message
31
32
  delivered = message.scan(delivered_regex).flatten
32
33
  commit_ids = delivered.inject([]) do |ids, element|
@@ -1,5 +1,5 @@
1
1
  module Pivotal
2
2
  module Github
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotal-github
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl