hitch 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +2 -2
  2. data/lib/hitch.rb +2 -2
  3. data/spec/hitch_spec.rb +9 -0
  4. metadata +4 -4
data/Rakefile CHANGED
@@ -5,14 +5,14 @@ task :default => :spec
5
5
  desc "Run specs"
6
6
  Spec::Rake::SpecTask.new do |t|
7
7
  t.spec_files = FileList['spec/**/*_spec.rb']
8
- t.spec_opts = %w(-fs --color)
8
+ t.spec_opts = %w(-ps --color)
9
9
  end
10
10
 
11
11
  begin
12
12
  require 'jeweler'
13
13
  Jeweler::Tasks.new do |gemspec|
14
14
  gemspec.name = %q{hitch}
15
- gemspec.version = '0.6.0'
15
+ gemspec.version = '0.6.1'
16
16
  gemspec.summary = %q{Hitch allows developers to be properly credited when Pair Programming and using Git.}
17
17
  gemspec.email = %q{rogelio@therubymug.com}
18
18
  gemspec.homepage = %q{http://github.com/therubymug/hitch}
data/lib/hitch.rb CHANGED
@@ -6,14 +6,14 @@ require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib hitch ui]))
6
6
 
7
7
  module Hitch
8
8
 
9
- VERSION = '0.6.0'
9
+ VERSION = '0.6.1'
10
10
 
11
11
  def self.version
12
12
  VERSION
13
13
  end
14
14
 
15
15
  def self.print_info
16
- if Hitch.pairing?
16
+ if Hitch.pairing? && STDOUT.tty?
17
17
  Hitch::UI.highline.say("#{Hitch.git_author_name} <#{Hitch.git_author_email}>")
18
18
  end
19
19
  end
data/spec/hitch_spec.rb CHANGED
@@ -65,6 +65,15 @@ describe Hitch do
65
65
  end
66
66
  end
67
67
 
68
+ context 'when not in an interactive shell' do
69
+ it 'returns nothing' do
70
+ STDOUT.stub(:tty?).and_return(false)
71
+ Hitch::UI.highline.should_not_receive(:say)
72
+ Hitch.current_pair = ['leela', 'fry']
73
+ Hitch.print_info
74
+ end
75
+ end
76
+
68
77
  end
69
78
 
70
79
  describe '.export' do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hitch
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 0
10
- version: 0.6.0
9
+ - 1
10
+ version: 0.6.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rogelio J. Samour
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-24 00:00:00 -04:00
18
+ date: 2010-10-10 00:00:00 -04:00
19
19
  default_executable: hitch
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency