simple-git-pair 0.3.0 → 0.3.1

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: 6367384134c623b2dcfc6d5a575b260ae2a7a0a6
4
- data.tar.gz: 5832db9e13fdef7e826d252a56b524314f75ef5d
3
+ metadata.gz: e8389b9eb1e31fa26c4f2e40affe70a9b14dfeee
4
+ data.tar.gz: 616e4bec7737cb52254c45b83a602e6cc6ee6bb0
5
5
  SHA512:
6
- metadata.gz: 7a5ca1751ed52ad767493eac5aafa461bc680660e195e37ddc1181fe20dd90b6356a9dcb46fc7bf695454053af3f49507e435ab82e66f2329e54bbae7de536dd
7
- data.tar.gz: d3e37e11d32f32cf98df55477eb120ef5405350f2dc41b4769d64ba5ab3345ea55b20a64afdb95c1ebddee7bba8a169fbe743533d47ef932606fd80c13f461d2
6
+ metadata.gz: 14873947762d16863b3fbd424df7d5555432413a5dbbd450a2643d798087db5975e7d945b10d38168382b8e5331c2ad41aa8e909aec27b4ec28c33ce617febda
7
+ data.tar.gz: 2ed8374f1e633b7142652773ea7ce1022d0c0133d9d74a721026789371bb0b547aeb8bb01edc7455ddbb9fa9383a1162d07c079d0cd66ad0bf71995b385c256b
@@ -1,3 +1,6 @@
1
+ ## 0.3.1
2
+ - Bugfix from @michaelrkn. Failed to display the info message when running `git pair init` with existing pairs file.
3
+
1
4
  ## 0.3.0
2
5
  - Added support ruby-2.0.0 support
3
6
  - Added support ruby-2.1.0 support
@@ -1,4 +1,5 @@
1
- require 'yaml' # need to explicitly require yaml for ruby 1.8.7
1
+ require 'yaml'
2
+ require 'rainbow'
2
3
  require 'simple-git-pair/version'
3
4
 
4
5
  module SimpleGitPair
@@ -18,7 +19,7 @@ Please run: git pair init
18
19
  end
19
20
 
20
21
  def say_pairs_file_exists
21
- puts "#{PAIRS_FILE_PATH} already exists. You're good to go.".color(:green)
22
+ puts Rainbow("#{PAIRS_FILE_PATH} already exists. You're good to go.").green
22
23
  end
23
24
 
24
25
  def names_for args
@@ -1,5 +1,5 @@
1
1
  module SimpleGitPair
2
2
  SUMMARY = "Simple way to add your pair to a git commit message"
3
3
  BINARY_NAME = "git pair"
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
  end
@@ -2,12 +2,13 @@ require 'simple-git-pair/command/init'
2
2
 
3
3
  describe SimpleGitPair::Command::Init do
4
4
  describe "#run!" do
5
- subject { described_class.new.run! }
5
+ let(:init_cmd) { described_class.new }
6
+ subject { init_cmd.run! }
6
7
 
7
8
  context "pairs file already exists" do
8
9
  before { SimpleGitPair::Helper.stub(:pairs_file_exists?).and_return true }
9
10
  it "complains and exit" do
10
- SimpleGitPair::Helper.should_receive :say_pairs_file_exists
11
+ STDOUT.should_receive(:puts).with(/already exists/)
11
12
  subject
12
13
  end
13
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-git-pair
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Tamoykin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-22 00:00:00.000000000 Z
11
+ date: 2014-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander