git-conflict-blame 0.2.0 → 0.3.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: 0546d98781bc0da7566751e77e34d01ec9b00d3b
4
- data.tar.gz: 9d75e270618d36a51db1d23879e075602dab13a4
3
+ metadata.gz: 1aaff5d4d0b2c39f6bd51e0b29a6f23f757de471
4
+ data.tar.gz: 95ff5ca77ded3184bba06a5e3464665dc2977f7b
5
5
  SHA512:
6
- metadata.gz: d5cffc2bfaf1b0d5fd72814a806fb12ab664ee62d7f0ad310ec94410a9234043af3b7cf0471592486555dce7419a095c4c0447d25bc8a753657cc753369c7195
7
- data.tar.gz: 07f0af656c3e8f4bd333c1b2f22128ba84d0ad892d26a5a99761a56fe0b54a43586e9437bc91f96b904751987270a09a1d967518d0a86963a3005197cc97f7ee
6
+ metadata.gz: fe0ab5aa285ded320e96b81c85dbba296620cf2ef59f42f83b798c4aa0de78ebeb63e31e3355722bfa1384a7908b3a481d6b00f7b287fcad7f5943b6a90c74f2
7
+ data.tar.gz: 9f47d3305bc137c1e8840c5707c5ec7d97fbbb251e62c8d2df3df6db369d8086d5767ad577bf3661cc6a222afd3afa1276c1626d0b6428f15c76afa5f08dd477
data/README.md CHANGED
@@ -5,12 +5,32 @@ after a `git merge` command has been ran and there are files that are in conflic
5
5
 
6
6
  ## Installation
7
7
 
8
+ ```bash
9
+ gem install git-conflict-blame
10
+ ```
11
+
8
12
  This gem depends on [Rugged](http://www.rubydoc.info/gems/rugged), which requires
9
- certain dependencies installed. Make sure you have `cmake`, `make`, or `gmake` installed
10
- on your system.
13
+ certain dependencies installed. Make sure you have `cmake` installed on your system.
14
+
15
+ If you get an error like this:
16
+
17
+ ```
18
+ ERROR: Error installing git-conflict-blame:
19
+ ERROR: Failed to build gem native extension.
20
+ checking for gmake... no
21
+ checking for make... yes
22
+ checking for cmake... no
23
+ ERROR: CMake is required to build Rugged.
24
+ *** extconf.rb failed ***
25
+ Could not create Makefile due to some reason, probably lack of necessary
26
+ libraries and/or headers. Check the mkmf.log file for more details. You may
27
+ need configuration options.
28
+ ```
29
+
30
+ Try running this (if you are on a Debian-based OS):
11
31
 
12
32
  ```bash
13
- gem install git-conflict-blame
33
+ sudo apt-get install cmake
14
34
  ```
15
35
 
16
36
  ## Usage
@@ -1,3 +1,3 @@
1
1
  class GitConflictBlame
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
@@ -28,7 +28,7 @@ class GitConflictBlame
28
28
  def run!
29
29
  Dir.chdir( @repo.workdir )
30
30
  raise GitError, 'No conflicts found' unless conflicts?
31
- log "#{conflicts.count} conflicts found!".red
31
+ log "#{conflicts.count} files in conflict found!".red
32
32
  log "Parsing files to find out who is to blame..."
33
33
  data = find_conflict_blames
34
34
  if @json
@@ -74,7 +74,7 @@ class GitConflictBlame
74
74
  #
75
75
  # @param e [Exception]
76
76
  # @param message [String] Error message
77
- def log_error( e, message: )
77
+ def log_error( e, message: '' )
78
78
  if @json
79
79
  message = "#{e.message}\n#{message}"
80
80
  error_hash = {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-conflict-blame
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Terry