bourdain 1.2.17 → 1.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 893a3c21d17ece3edb29534460fd0c44cc3e9fdc
4
- data.tar.gz: 789e668186e270ac4055b2bff77ed3cd80b4f82e
3
+ metadata.gz: 90ee4ec040f15dff545fbd012838a528468d39a2
4
+ data.tar.gz: bc0b8e0837b0f8c0fc152c242c82aaf3103056e9
5
5
  SHA512:
6
- metadata.gz: c797413f1ab96e252fc84649542deceb2066314a47ba109b4929d7b39cb4c40e04a025c90928052511a216b242757515bb4a6fb902e221833f8f78562d4b43fc
7
- data.tar.gz: c559e7e48cd5522a83e556e703a0510964fefa1002c3cecf138432e4b15fc4274e7d9b567eacba95c52ead2ff683e2331ff20edbd2c0a67bb52556c19adc6026
6
+ metadata.gz: ab15aac9202ad24517341aacad9315626104d2a63bea1d0c8e56fb7981e46299f9bdfaca716d2296dcc7cf0e82469e396a20c84d1fcbbe3511b313aa9163864b
7
+ data.tar.gz: 89f45d636628193898cb642f492e51b2438e43d477be0de792e6714168fed043e07c89f971c2d92f9ffc199142fd6ae46b14b1d849b0f4546d511ec2924f8626
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.17
1
+ 1.2.18
@@ -38,20 +38,23 @@ module Bourdain
38
38
  def youre_behind? repo
39
39
  `git fetch #{repo_dir repo} >/dev/null 2>&1`
40
40
  raise unless $?.exitstatus.zero?
41
- `git #{git_dir repo} log ..origin/master --oneline`.split("\n").length > 0
41
+ behind = `git #{git_dir repo} log ..origin/master --oneline`.split("\n").length > 0
42
42
  raise unless $?.exitstatus.zero?
43
+ return behind
43
44
  end
44
45
 
45
46
  def youre_ahead? repo
46
47
  `git fetch #{repo_dir repo} >/dev/null 2>&1`
47
48
  raise unless $?.exitstatus.zero?
48
- `git #{git_dir repo} log origin/master.. --oneline`.split("\n").length > 0
49
+ ahead = `git #{git_dir repo} log origin/master.. --oneline`.split("\n").length > 0
49
50
  raise unless $?.exitstatus.zero?
51
+ return ahead
50
52
  end
51
53
 
52
54
  def youre_dirty? repo
53
- `git #{git_dir repo} #{work_tree repo} diff HEAD --numstat`.split("\n").length > 0
55
+ dirty = `git #{git_dir repo} #{work_tree repo} diff HEAD --numstat`.split("\n").length > 0
54
56
  raise unless $?.exitstatus.zero?
57
+ return dirty
55
58
  end
56
59
  end
57
60
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bourdain
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.17
4
+ version: 1.2.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Clemmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-18 00:00:00.000000000 Z
11
+ date: 2015-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pmap