pivotal-github 0.6.10 → 0.6.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@ class FinishedCommand < Command
12
12
  # We look for 'Finishes' or 'Delivers' and issue a warning if neither is
13
13
  # in the most recent commit. (Also supports 'Finished' and 'Delivered'.)
14
14
  def check_finishes
15
- unless `git log -1` =~ /Finishe(s|d)|Deliver(s|ed)|Fixe(s|d)/i
15
+ unless finished?
16
16
  warning = "Warning: Unfinished story\n"
17
17
  warning += "Run `git commit --amend` to add 'Finishes' or 'Delivers' "
18
18
  warning += "to the commit message\n"
@@ -22,6 +22,10 @@ class FinishedCommand < Command
22
22
  end
23
23
  end
24
24
 
25
+ def finished?
26
+ !!(`git log -1`.match(/Finishe(s|d)|Deliver(s|ed)|Fixe(s|d) #\d+/i))
27
+ end
28
+
25
29
  def force?
26
30
  options.force
27
31
  end
@@ -1,5 +1,5 @@
1
1
  module Pivotal
2
2
  module Github
3
- VERSION = "0.6.10"
3
+ VERSION = "0.6.11"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,20 +1,28 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: pivotal-github
3
- version: !ruby/object:Gem::Version
4
- version: 0.6.10
3
+ version: !ruby/object:Gem::Version
4
+ hash: 17
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 6
9
+ - 11
10
+ version: 0.6.11
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Michael Hartl
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2013-03-12 00:00:00.000000000 Z
17
+
18
+ date: 2013-03-12 00:00:00 -07:00
19
+ default_executable:
13
20
  dependencies: []
14
- description: Add commands for Pivotal Tracker–GitHub integration
15
- email:
21
+
22
+ description: "Add commands for Pivotal Tracker\xE2\x80\x93GitHub integration"
23
+ email:
16
24
  - michael@michaelhartl.com
17
- executables:
25
+ executables:
18
26
  - git-story-commit
19
27
  - git-story-merge
20
28
  - git-story-pull
@@ -22,8 +30,10 @@ executables:
22
30
  - git-story-push
23
31
  - story-open
24
32
  extensions: []
33
+
25
34
  extra_rdoc_files: []
26
- files:
35
+
36
+ files:
27
37
  - .gitignore
28
38
  - .rspec
29
39
  - Gemfile
@@ -57,31 +67,41 @@ files:
57
67
  - spec/commands/story_push_spec.rb
58
68
  - spec/options/options_spec.rb
59
69
  - spec/spec_helper.rb
70
+ has_rdoc: true
60
71
  homepage: https://github.com/mhartl/pivotal-github
61
72
  licenses: []
73
+
62
74
  post_install_message:
63
75
  rdoc_options: []
64
- require_paths:
76
+
77
+ require_paths:
65
78
  - lib
66
- required_ruby_version: !ruby/object:Gem::Requirement
79
+ required_ruby_version: !ruby/object:Gem::Requirement
67
80
  none: false
68
- requirements:
69
- - - ! '>='
70
- - !ruby/object:Gem::Version
71
- version: '0'
72
- required_rubygems_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ hash: 3
85
+ segments:
86
+ - 0
87
+ version: "0"
88
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
89
  none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ hash: 3
94
+ segments:
95
+ - 0
96
+ version: "0"
78
97
  requirements: []
98
+
79
99
  rubyforge_project:
80
- rubygems_version: 1.8.25
100
+ rubygems_version: 1.5.3
81
101
  signing_key:
82
102
  specification_version: 3
83
103
  summary: See the README for full documentation
84
- test_files:
104
+ test_files:
85
105
  - spec/commands/command_spec.rb
86
106
  - spec/commands/story_commit_spec.rb
87
107
  - spec/commands/story_merge_spec.rb