tracker-git 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,3 +2,10 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in tracker-git.gemspec
4
4
  gemspec
5
+
6
+ group :tracker do
7
+ gem 'pivotal-tracker', '>= 0.5.10'
8
+ gem 'happymapper'
9
+ gem 'nokogiri'
10
+ gem 'rest-client'
11
+ end
data/README.md CHANGED
@@ -9,6 +9,7 @@ This has proved useful as part of a 'deploy to staging' strategy. If you automat
9
9
  ## CI
10
10
 
11
11
  [![Build Status](https://secure.travis-ci.org/robb1e/tracker-git.png)](http://travis-ci.org/robb1e/tracker-git)
12
+ [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/robb1e/tracker-git)
12
13
 
13
14
  ## Installation
14
15
 
@@ -34,8 +35,8 @@ delivered.
34
35
  export TRACKER_PROJECT_ID=123456
35
36
  export TRACKER_TOKEN=abc123
36
37
 
37
- Optionally you can specify a specific git branch as the third command line
38
- argument or with the GIT_BRANCH environment variable.
38
+ Optionally you can specify a git branch to search for completed story IDs as
39
+ the third command line argument or with the GIT\_BRANCH environment variable.
39
40
 
40
41
  ## Known Issues
41
42
 
@@ -1,7 +1,7 @@
1
1
  module Tracker
2
2
  class Git
3
3
  def contains?(message, options = {})
4
- branch = options.fetch(:branch, "master")
4
+ branch = options.fetch(:branch, "HEAD")
5
5
  result = `git log #{branch} --grep='#{message}'`
6
6
  result.length > 0
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module Tracker
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
  describe Tracker::Git do
4
4
  describe "#search" do
5
5
  let(:message) { "[Finishes #123456]" }
6
- let(:branch) { "master" }
6
+ let(:branch) { "HEAD" }
7
7
  let(:query) { "git log #{branch} --grep='#{message}'"}
8
8
  let(:result) { "Some git message" }
9
9
 
@@ -8,7 +8,7 @@ Gem::Specification.new do |gem|
8
8
  gem.summary = %q{Tracker integration.}
9
9
  gem.homepage = ""
10
10
 
11
- gem.add_runtime_dependency 'pivotal-tracker'
11
+ gem.add_runtime_dependency('pivotal-tracker', '>= 0.5.10')
12
12
  gem.add_development_dependency "rspec"
13
13
  gem.add_development_dependency "guard-rspec"
14
14
  gem.add_development_dependency "rake"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tracker-git
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-29 00:00:00.000000000 Z
12
+ date: 2012-11-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pivotal-tracker
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: '0'
21
+ version: 0.5.10
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: '0'
29
+ version: 0.5.10
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rspec
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -116,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
116
116
  version: '0'
117
117
  segments:
118
118
  - 0
119
- hash: 531834068982296945
119
+ hash: -4280214816853618428
120
120
  required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  none: false
122
122
  requirements:
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  segments:
127
127
  - 0
128
- hash: 531834068982296945
128
+ hash: -4280214816853618428
129
129
  requirements: []
130
130
  rubyforge_project:
131
131
  rubygems_version: 1.8.24