pivotal-cli 0.0.8 → 0.0.9

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: fe23479d153709c4a177fd41d28faf49c6b5ee47
4
- data.tar.gz: 5654d5c0d7b79b953775a08c4d78bc74be981bf2
3
+ metadata.gz: c912ce1a25ceb332d6018cc6f2eb16437be37641
4
+ data.tar.gz: 8e72cb0ccf057dc160e6210af77180741d2e184d
5
5
  SHA512:
6
- metadata.gz: 7bc95ef7f73a414c62c2953e284375cb22d06398900aeb1aac41f2187de371b6fbbfc739340bed999fa77156d6cec847619ad5590bcf0ee71b7d664822f5b8b0
7
- data.tar.gz: 1a0a6ad7b0184ab66684b115ed99545083ad22543a5d453f17127d06b8b270fe85ff4281f9db08451984037f38195eeb17fa86f5b76b6cdecd65e98e38b183b6
6
+ metadata.gz: 02820001b96c15a532a49039c2ebd4c674dc426e69d17bbe1422da9e72b5a718190e7567c264df743c5e025dc7e298ddfc6c287fb01843df5ee7b2601ff8fb5c
7
+ data.tar.gz: ab2e59ff54f7086b446e54484bb60ee9b15752228cec347b26b2ef2441cbb3efd42104c0bbb822a4c4ecfa0185c2caaa31e362f44d852750a64cb9ecbb03523e
@@ -91,7 +91,7 @@ end
91
91
 
92
92
  def find_story_from_branch
93
93
  git = Git.open(Dir.pwd)
94
- branch = git.branches.local.find {|branch| branch.current }.to_s
94
+ branch = git.current_branch.to_s
95
95
 
96
96
  matches = branch.match(/.+-pv-(?<story_id>\d+)/)
97
97
  if matches && matches['story_id']
@@ -201,7 +201,7 @@ command :commit do |c|
201
201
  git.add(all: true)
202
202
  puts 'git add -A'
203
203
 
204
- commit_message = "\"#{story.name.gsub('"', '\"')} [##{story.id}]\""
204
+ commit_message = "#{story.name.gsub('"', '\"')} [##{story.id}]"
205
205
  git.commit(commit_message)
206
206
  puts "git commit -m #{commit_message}"
207
207
  end
@@ -1,3 +1,3 @@
1
1
  module PivotalCli
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotal-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Omar Skalli