oliver 1.5.1 → 1.5.2

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: 096b01cf0db27c12537e9df311ede96eaf3bc491
4
- data.tar.gz: 278bf0cb08a7cc1eb08e09494fba3caf14984ef0
3
+ metadata.gz: 708af9d54449cb2581aaf03eb1df7774eb3f6331
4
+ data.tar.gz: 55bc2d85863032e2e051887cd3ee87f988ce9e35
5
5
  SHA512:
6
- metadata.gz: ed14f56f787b4c1c90e280044c0f5f006a685c5bb0e1b6a0185ce6e80040912269c9cf371252dcfd7106f1fdf56c27c2efbc8db448b08b81b5838d58717b6c72
7
- data.tar.gz: 076e03a25edef6dbe3aa0b95ce4800ec56740eae6dc34a96ad1409849d0dc69c2ebf55c2b3f0ea140100b7b697531ec0a020a988cdc42910a08e407a38547f05
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 (that's probably totally untrue)
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 !final["repos"].to_s.include? directory_thing
44
+ if !listed_repos.to_s.include? directory_thing
40
45
  %x(mv #{directory_thing} .backup)
41
46
  end
42
47
  end
@@ -1,3 +1,3 @@
1
1
  module Oliver
2
- VERSION = "1.5.1"
2
+ VERSION = "1.5.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oliver
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh