git_tracker 1.6.3 → 2.0.0

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: 1443449475a79faeb57f1f16b07d5909e8838c59
4
- data.tar.gz: 8cd2b66c6e3c6a9137367f6c07c684b9e80ea170
3
+ metadata.gz: 8607c226f59d06695e7e979d464bba9cc465dfd0
4
+ data.tar.gz: 60f7c78e45e9951999ccbdad618676da889e9d22
5
5
  SHA512:
6
- metadata.gz: 233f48c2479959c42b539558f1dac20fe2b45367a17778dc0ddf939759a8d9974f777b3e65fe750a92d4b706086ab8275f3a21f3f0ba13474218c6322435490d
7
- data.tar.gz: 7b880cddf8afda550e86cd8458baedc9d8ce01bdcf1e2f45e227b9dd8701a92c4d13698b12ef4f63751537270e593a2e6009a3a6933b778f6fa95b0877bc81df
6
+ metadata.gz: 99e369f1806675f5e86b34960798f43766f039d5916ae86119d944912b3957192fb927bb16fc3f66777c4fcf7b9d349ef9bcc477a6502710dca434686d0d7c2a
7
+ data.tar.gz: 2e62147765644b2b7f21e6794bea102c9ac45de838c6fa69e052ced110c3fbfbd68cb2c975f0a259238624abfff3354d18f8d14224bf2e324bab61bf2093e3e5
@@ -1,11 +1,12 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.8.7
4
- - 1.9.2
5
- - 1.9.3
6
- - 2.0.0
7
- - 2.1.0
8
- - 2.1.1
3
+ - 2.1.10
4
+ - 2.2.6
5
+ - 2.3.3
6
+ - 2.4.0
7
+ sudo: false
9
8
  addons:
10
9
  code_climate:
11
10
  repo_token: d08131691091072810c086f65d42c36ba7ea3241629c643caa363cbc966bbb23
11
+ after_success:
12
+ - bundle exec codeclimate-test-reporter
@@ -1,5 +1,20 @@
1
1
  ### dev
2
- [full changelog](https://github.com/stevenharman/git_tracker/compare/v1.6.2...master)
2
+ [full changelog](https://github.com/stevenharman/git_tracker/compare/v2.0.0...master)
3
+
4
+ ### 2.0.0 / 2017-01-21
5
+ [full changelog](https://github.com/stevenharman/git_tracker/compare/v1.6.3...v2.0.0)
6
+
7
+ Breaking Changes
8
+
9
+ * Drop official support of EOL Rubies (e.g., 1.8.7, 1.9, and 2.0).
10
+ Everything should still work fine, but that will change in the future.
11
+
12
+ Bug Fixes
13
+
14
+ * Only call `git-tracker` from the hook if the command exists.
15
+ Fixes errors in GUI Git clients with a PATH that doesn't include the `git-tracker` install location.
16
+ e.g., GitHub Desktop.
17
+ [Issue #21](https://github.com/stevenharman/git_tracker/pull/21) ([D. Flaherty](https://github.com/flats))
3
18
 
4
19
  ### 1.6.3 / 2014-03-31
5
20
  [full changelog](https://github.com/stevenharman/git_tracker/compare/v1.6.2...v1.6.3)
@@ -13,9 +28,8 @@ Bug Fixes
13
28
 
14
29
  Bug Fixes
15
30
 
16
- * Restrict Tracker story numbers to be 6-10 digits long. [Issue
17
- #16](https://github.com/stevenharman/git_tracker/pull/16) ([Benjamin
18
- Darfler](https://github.com/bdarfler))
31
+ * Restrict Tracker story numbers to be 6-10 digits long.
32
+ [Issue #16](https://github.com/stevenharman/git_tracker/pull/16) ([Benjamin Darfler](https://github.com/bdarfler))
19
33
 
20
34
  ### 1.6.1 / 2013-08-12
21
35
  [full changelog](https://github.com/stevenharman/git_tracker/compare/v1.6.0...v1.6.1)
@@ -29,77 +43,77 @@ Bug Fixes
29
43
 
30
44
  Enhancements
31
45
 
32
- * Add and default to `help` command. [Issue
33
- #15](https://github.com/stevenharman/git_tracker/issues/15)
34
- * Deprecate `git-tracker install` in favor of `git-tracker init` [Issue
35
- #13](https://github.com/stevenharman/git_tracker/issues/13)
46
+ * Add and default to `help` command.
47
+ [Issue #15](https://github.com/stevenharman/git_tracker/issues/15)
48
+ * Deprecate `git-tracker install` in favor of `git-tracker init`.
49
+ [Issue #13](https://github.com/stevenharman/git_tracker/issues/13)
36
50
 
37
51
  ### 1.5.1 / 2013-02-02
38
52
  [full changelog](https://github.com/stevenharman/git_tracker/compare/v1.4.0...v1.5.1)
39
53
 
40
54
  Enhancements
41
55
 
42
- * Support installing via Homebrew: `brew install git-tracker`
43
- * Generate standalone binary via `rake standalone:build`
56
+ * Support installing via Homebrew: `brew install git-tracker`.
57
+ * Generate standalone binary via `rake standalone:build`.
44
58
 
45
59
  ### 1.4.0 / 2012-06-11
46
60
  [full changelog](https://github.com/stevenharman/git_tracker/compare/v1.3.1...v1.4.0)
47
61
 
48
62
  Enhancements
49
63
 
50
- * Support Ruby 1.8.7
64
+ * Support Ruby 1.8.7.
51
65
 
52
66
  ### 1.3.1 / 2012-04-23
53
67
  [full changelog](https://github.com/stevenharman/git_tracker/compare/v1.3.0...v1.3.1)
54
68
 
55
69
  Bug fixes
56
70
 
57
- * Bring back fourth Pivotal Tracker keyword, `delivered`
71
+ * Bring back fourth Pivotal Tracker keyword, `delivered`.
58
72
 
59
73
  ### 1.3.0 / 2012-04-23
60
74
  [full changelog](https://github.com/stevenharman/git_tracker/compare/v1.2.0...v1.3.0)
61
75
 
62
76
  Enhancements
63
77
 
64
- * Allow all three Pivotal Tracker keyword states: `fixed`, `completed`, and `finished`
78
+ * Allow all three Pivotal Tracker keyword states: `fixed`, `completed`, and `finished`.
65
79
 
66
80
  Bug fixes
67
81
 
68
- * Pivotal Tracker keywords are case-insensitive
82
+ * Pivotal Tracker keywords are case-insensitive.
69
83
 
70
84
  ### 1.2.0 / 2012-04-21
71
85
  [full changelog](https://github.com/stevenharman/git_tracker/compare/v1.1.0...v1.2.0)
72
86
 
73
87
  Enhancements
74
88
 
75
- * Allow Pivotal Tracker keyword states: `Delivers` and `Fixes`
76
- ([KensoDev](https://github.com/KensoDev))
89
+ * Allow Pivotal Tracker keyword states: `Delivers` and `Fixes` ([KensoDev](https://github.com/KensoDev))
77
90
 
78
91
  Bug fixes
79
92
 
80
- * Exit with non-zero status code when a commit exists [issue
81
- #3](https://github.com/stevenharman/git_tracker/issues/3)
82
- * Exit with non-zero status code with not in a Git repository
93
+ * Exit with non-zero status code when a commit exists.
94
+ [Issue #3](https://github.com/stevenharman/git_tracker/issues/3)
95
+ * Exit with non-zero status code with not in a Git repository.
83
96
 
84
97
  ### 1.1.0 / 2012-04-03
85
98
  [full changelog](https://github.com/stevenharman/git_tracker/compare/v1.0.0...v1.1.0)
86
99
 
87
100
  Enhancements
88
101
 
89
- * The hash preceding the story number is optional [CraigWilliams](https://github.com/CraigWilliams)
102
+ * The hash preceding the story number is optional.
103
+ [CraigWilliams](https://github.com/CraigWilliams)
90
104
 
91
105
  Bug fixes
92
106
 
93
- * Fix case-sensitivity issue w/English library
94
- * Exit with non-zero status code with not in a Git repository [issue
95
- #1](https://github.com/stevenharman/git_tracker/issues/1)
107
+ * Fix case-sensitivity issue w/English library.
108
+ * Exit with non-zero status code with not in a Git repository.
109
+ [Issue #1](https://github.com/stevenharman/git_tracker/issues/1)
96
110
 
97
111
  ### 1.0.0 / 2012-03-31
98
112
  [full changelog](https://github.com/stevenharman/git_tracker/compare/v0.0.1...v1.0.0)
99
113
 
100
114
  Enhancements
101
115
 
102
- * Hook can install itself in a Git repository
116
+ * Hook can install itself in a Git repository.
103
117
 
104
118
  ### 0.0.1 / 2012-03-23
105
119
  [full changelog](https://github.com/stevenharman/git_tracker/compare/5fbbe061e721c1f86fdd5d78a4bfb4c61a0eaf5c...v0.0.1)
data/Gemfile CHANGED
@@ -3,8 +3,5 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in git_tracker.gemspec
4
4
  gemspec
5
5
 
6
- gem 'codeclimate-test-reporter', :group => :test, :require => nil
7
-
8
- # Require Simplecov explicitly. Remove this explicit dependency when
9
- # the following is fixed: https://github.com/colszowka/simplecov/issues/281
10
- gem 'simplecov', '~> 0.7.1'
6
+ gem 'simplecov'
7
+ gem 'codeclimate-test-reporter', '~> 1.0.0', :group => :test, :require => nil
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 Steven Harman
1
+ Copyright (c) 2012-2017 Steven Harman
2
2
 
3
3
  MIT License
4
4
 
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
19
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
20
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
21
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile CHANGED
@@ -39,7 +39,8 @@ namespace :standalone do
39
39
  end
40
40
 
41
41
  task :homebrew do
42
- Dir.chdir `brew --prefix`.chomp do
42
+ brew_dir = Bundler.with_clean_env { `brew --prefix` }.chomp
43
+ Dir.chdir brew_dir do
43
44
  sh 'git checkout -q master'
44
45
  sh 'git pull -q origin master'
45
46
 
@@ -13,14 +13,20 @@ Gem::Specification.new do |gem|
13
13
  better... and easier... um, besier!
14
14
  EOF
15
15
 
16
- gem.add_development_dependency 'rspec', '~> 2.14'
17
- gem.add_development_dependency 'activesupport', '~> 3.2'
18
- gem.add_development_dependency 'pry', '~> 0.9.11'
19
- # Use Rake < 10.2 (requires Ruby 1.9+) until we drop Ruby 1.8.7 support
20
- gem.add_development_dependency 'rake', '~> 10.1.1'
16
+ gem.add_development_dependency 'rspec', '~> 3.5'
17
+ gem.add_development_dependency 'pry', '~> 0.10'
18
+ gem.add_development_dependency 'rake', '~> 12.0'
19
+
20
+ if RUBY_VERSION >= '2.2.2'
21
+ gem.add_development_dependency 'activesupport', '~> 5.0'
22
+ else
23
+ gem.add_development_dependency 'activesupport', '~> 4.0'
24
+ end
21
25
 
22
26
  gem.files = `git ls-files`.split("\n")
23
27
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
24
28
  gem.executables = %w(git-tracker)
29
+ gem.platform = Gem::Platform::RUBY
25
30
  gem.require_paths = ['lib']
31
+ gem.required_ruby_version = '>= 2.1.0'
26
32
  end
@@ -29,7 +29,9 @@ module GitTracker
29
29
  return <<-HOOK
30
30
  #!/usr/bin/env bash
31
31
 
32
- git-tracker prepare-commit-msg "$@"
32
+ if command -v git-tracker >/dev/null; then
33
+ git-tracker prepare-commit-msg "$@"
34
+ fi
33
35
 
34
36
  HOOK
35
37
  end
@@ -1,3 +1,3 @@
1
1
  module GitTracker
2
- VERSION = '1.6.3'
2
+ VERSION = '2.0.0'
3
3
  end
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- git-tracker prepare-commit-msg "$@"
3
+ if command -v git-tracker >/dev/null; then
4
+ git-tracker prepare-commit-msg "$@"
5
+ fi
4
6
 
@@ -46,7 +46,7 @@ describe GitTracker::Branch do
46
46
  stub_branch('refs/heads/stevenharman/got-her-number-8675309')
47
47
  expect(branch.story_number).to eq('8675309')
48
48
  end
49
-
49
+
50
50
  it 'finds the story in a branch with a version number' do
51
51
  stub_branch('refs/heads/stevenharman/v2.0-got-her-number-8675309')
52
52
  expect(branch.story_number).to eq('8675309')
@@ -39,7 +39,9 @@ describe GitTracker::Hook do
39
39
  hook_code = <<-HOOK_CODE.strip_heredoc
40
40
  #!/usr/bin/env bash
41
41
 
42
- git-tracker prepare-commit-msg "$@"
42
+ if command -v git-tracker >/dev/null; then
43
+ git-tracker prepare-commit-msg "$@"
44
+ fi
43
45
 
44
46
  HOOK_CODE
45
47
 
@@ -4,11 +4,11 @@ describe GitTracker::Standalone do
4
4
 
5
5
  describe '#save' do
6
6
  before do
7
- File.delete 'git-tracker' if File.exists? 'git-tracker'
7
+ File.delete 'git-tracker' if File.exist? 'git-tracker'
8
8
  end
9
9
 
10
10
  after do
11
- File.delete 'git-tracker' if File.exists? 'git-tracker'
11
+ File.delete 'git-tracker' if File.exist? 'git-tracker'
12
12
  end
13
13
 
14
14
  it 'saves to the named file' do
@@ -1,12 +1,11 @@
1
- if (RUBY_VERSION >= '1.9') && ENV['CODECLIMATE_REPO_TOKEN']
2
- require 'codeclimate-test-reporter'
3
- CodeClimate::TestReporter.start
1
+ if ENV['CODECLIMATE_REPO_TOKEN']
2
+ require 'simplecov'
3
+ SimpleCov.start
4
4
  end
5
5
 
6
6
  Dir[File.dirname(__FILE__) + '/support/**/*.rb'].each {|f| require f }
7
7
 
8
8
  RSpec.configure do |config|
9
- config.treat_symbols_as_metadata_keys_with_true_values = true
10
9
  config.run_all_when_everything_filtered = true
11
10
  config.filter_run :focus
12
11
  end
@@ -12,12 +12,12 @@ RSpec::Matchers.define :succeed do
12
12
  actual and actual == successful_exit_code
13
13
  end
14
14
 
15
- failure_message_for_should do |block|
15
+ failure_message do |block|
16
16
  "expected block to call exit(#{successful_exit_code}) but exit" +
17
17
  (actual.nil? ? ' not called' : "(#{actual}) was called")
18
18
  end
19
19
 
20
- failure_message_for_should_not do |block|
20
+ failure_message_when_negated do |block|
21
21
  "expected block not to call exit(#{successful_exit_code})"
22
22
  end
23
23
 
@@ -29,5 +29,9 @@ RSpec::Matchers.define :succeed do
29
29
  0
30
30
  end
31
31
 
32
+ def supports_block_expectations?
33
+ true
34
+ end
35
+
32
36
  end
33
37
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_tracker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.3
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Harman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-01 00:00:00.000000000 Z
11
+ date: 2017-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.14'
19
+ version: '3.5'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.14'
26
+ version: '3.5'
27
27
  - !ruby/object:Gem::Dependency
28
- name: activesupport
28
+ name: pry
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '3.2'
33
+ version: '0.10'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '3.2'
40
+ version: '0.10'
41
41
  - !ruby/object:Gem::Dependency
42
- name: pry
42
+ name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.9.11
47
+ version: '12.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.9.11
54
+ version: '12.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rake
56
+ name: activesupport
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 10.1.1
61
+ version: '5.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 10.1.1
68
+ version: '5.0'
69
69
  description: |2
70
70
  Some simple tricks that make working with Pivotal Tracker even
71
71
  better... and easier... um, besier!
@@ -119,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - ">="
121
121
  - !ruby/object:Gem::Version
122
- version: '0'
122
+ version: 2.1.0
123
123
  required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  requirements:
125
125
  - - ">="
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.2.2
130
+ rubygems_version: 2.6.8
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Teaching Git about Pivotal Tracker.