oliver 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/oliver/main.rb +7 -2
- data/lib/oliver/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 708af9d54449cb2581aaf03eb1df7774eb3f6331
|
4
|
+
data.tar.gz: 55bc2d85863032e2e051887cd3ee87f988ce9e35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61194229a184bf267283cc826d9dcc1665fde3076ae14b975ac9acc59ffbe7ae18bb5e3c52cae0c1c19d9ae4b7deab4fdb203129af8200b8c66898566b6b4391
|
7
|
+
data.tar.gz: 8b5725d6d9f82be66cae5a16c76ac032e971546165a5d62983ec65d2294487ff16843fdd68658127ec705b94963237589ddd589a02f9f4d2a474e928fe0fbc91
|
data/lib/oliver/main.rb
CHANGED
@@ -7,9 +7,14 @@ def run_main
|
|
7
7
|
Dir.mkdir '.backup'
|
8
8
|
end
|
9
9
|
|
10
|
-
# The buggiest code in the world
|
10
|
+
# The buggiest code in the world
|
11
|
+
# (that's probably totally untrue)
|
11
12
|
body = File.read(Name::OLIVER.chomp)
|
12
13
|
final = YAML.load("---\n#{body}\n---")
|
14
|
+
listed_repos = []
|
15
|
+
final["repos"].each do |what|
|
16
|
+
listed_repos.push(what)
|
17
|
+
end
|
13
18
|
final["repos"].each do |url|
|
14
19
|
|
15
20
|
# Split the url in half
|
@@ -36,7 +41,7 @@ def run_main
|
|
36
41
|
# If the directory doesn't exist
|
37
42
|
# in `Name::OLIVER`, move it to .backup
|
38
43
|
current_repos.each do |directory_thing|
|
39
|
-
if !
|
44
|
+
if !listed_repos.to_s.include? directory_thing
|
40
45
|
%x(mv #{directory_thing} .backup)
|
41
46
|
end
|
42
47
|
end
|
data/lib/oliver/version.rb
CHANGED