oliver 2.3.0 → 2.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: dab3aaf89df3b265a927670055cf2c94e97f07d5
4
- data.tar.gz: 54a12a48d5046fa4b1639f143775879636f3da63
3
+ metadata.gz: 12e16a94eb0b3fc9a78fa41effafbdd725674522
4
+ data.tar.gz: 6028fb2a025d624c8de041e901f2a8bc6d78f7c9
5
5
  SHA512:
6
- metadata.gz: c6d07f6a59895912ee9c053218ea9b15b9e953e1f2cd2d452b32b250cdf90d2ecd07b3cc283c6062701f628aeceb82bd5ae0170a449977eae3ca21cdb9730f26
7
- data.tar.gz: c5c3e23ecee75830a3171db3a554a973ed2c83004dacbe9800e518a5b54956e42a8279518344e699f98b70405d3b1f154d029bae4de9e9cfb2055eae288596a5
6
+ metadata.gz: 90f9293ccfc0ff8bf8f7baea47c5f24299c023b488e628f28c270be21d47704c898f864f447420f21859359573bcb12b11abdf80c785cab2234654f8aee55d6c
7
+ data.tar.gz: e512ce697f569bbaaeadb410b32c0f30687e7d7c8bf7fc2fcea79be38fec22479744d05067724f4b3a35f9743fd3de19a55fecb5dffef08df6ac59c7b4febdff
@@ -21,7 +21,7 @@ module Oliver
21
21
  FileManager::BODY.map do |user, repo|
22
22
  temp << repo
23
23
  end
24
- return temp.first.sort
24
+ return temp.sort.flatten
25
25
  end
26
26
 
27
27
  def init
@@ -97,17 +97,19 @@ module Oliver
97
97
  # - only .oliver, print "+" (clone)
98
98
  # - only directory, print "-" (remove)
99
99
 
100
- # If repos and directories are identical, just print # next to repo name
101
- dirRepos.each {|repo| puts "# #{repo}" } if dirRepos == trackedRepos
100
+ # If the repo is in both, print #
101
+ dirRepos.each do |repo|
102
+ puts "# #{repo}" if trackedRepos.include? repo
103
+ end
102
104
 
103
105
  # If repo only exists in .oliver, print '+'
104
106
  dirRepos.each do |repo|
105
- puts "+ #{repo}" unless trackedRepos.include? repo
107
+ puts "- #{repo}" unless trackedRepos.include? repo
106
108
  end
107
109
 
108
110
  # If repo only exists in directory, print '-'
109
111
  trackedRepos.each do |repo|
110
- puts "- #{repo}" unless dirRepos.include? repo
112
+ puts "+ #{repo}" unless dirRepos.include? repo
111
113
  end
112
114
  end
113
115
 
@@ -2,7 +2,7 @@ module Oliver
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 3
5
- PATCH = 0
5
+ PATCH = 1
6
6
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oliver
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Trommel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-19 00:00:00.000000000 Z
11
+ date: 2015-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler