oliver 1.8.6.1 → 1.8.6.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 +4 -4
- data/README.md +24 -0
- data/lib/oliver/argument_files/add.rb +2 -1
- data/lib/oliver/argument_files/install.rb +4 -2
- data/lib/oliver/argument_files/list.rb +3 -1
- data/lib/oliver/argument_files/remove.rb +2 -1
- data/lib/oliver/arguments.rb +0 -1
- data/lib/oliver/file_manager.rb +9 -5
- data/lib/oliver/version.rb +1 -1
- data/lib/oliver.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ffc89076cf0556f11f1794be06404dbc6f94310
|
4
|
+
data.tar.gz: 7ed03111c91e026b2f165e46a743a2793a24270a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7176a506c99d6dc93ac957e4fbbfc3f1c99ece5d0918483e5cb21ff548ea70dd7b4e08c168d1b48d7c5ff6ccfbc5a59c5cc3b30ae3b28c4d52e482163cb06c64
|
7
|
+
data.tar.gz: 9618c6116685c7768836411814397bf10f57d80e28d4b46e75de2c3937af91c151dc24d573603f925f5d2ebdf1cd40eac9f3f6085338ba7ea9e1fb5e7e5b2df4
|
data/README.md
CHANGED
@@ -19,6 +19,8 @@ through [RubyGems](https://rubygems.org/gems/oliver)
|
|
19
19
|
$ gem install oliver
|
20
20
|
```
|
21
21
|
|
22
|
+
now, [skip the shit in this readme](https://github.com/trommel/oliver#docs)
|
23
|
+
|
22
24
|
what the heck
|
23
25
|
-------------
|
24
26
|
|
@@ -259,6 +261,28 @@ is 0.1.5, and it will continue to build off from there.
|
|
259
261
|
|
260
262
|
sorry about doing that silly thing.
|
261
263
|
|
264
|
+
reference (mostly for me but kind of helpful if you don't want to go looking through code shit)
|
265
|
+
--------------------------------------------
|
266
|
+
|
267
|
+
`FileManager::YAML['repos']` is where you can reference the repos in the `.Olivefile.yml`
|
268
|
+
|
269
|
+
you can use this by `require`ing `file_manager.rb` and then using modules and stuff
|
270
|
+
|
271
|
+
for example,
|
272
|
+
|
273
|
+
```ruby
|
274
|
+
require_relative '../file_manager'
|
275
|
+
|
276
|
+
FileManager::YAML['repos'].map |username, repos| do
|
277
|
+
puts username
|
278
|
+
repos.each do |repo|
|
279
|
+
puts repo
|
280
|
+
end
|
281
|
+
end
|
282
|
+
```
|
283
|
+
|
284
|
+
etcetera, etcetera
|
285
|
+
|
262
286
|
known bugs
|
263
287
|
----------
|
264
288
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require_relative '../file_manager'
|
2
|
+
|
1
3
|
# Success, warning and error messages
|
2
4
|
# (Make these public, sometime)
|
3
5
|
success = "#{Rainbow('Success').underline.green}:"
|
@@ -5,7 +7,7 @@ warning = "#{Rainbow('Warning').underline.yellow}:"
|
|
5
7
|
error = "#{Rainbow('Error').underline.red}:"
|
6
8
|
|
7
9
|
# Fix this ASAP
|
8
|
-
if
|
10
|
+
if FileManager::YAML['repos'].nil?
|
9
11
|
message = "This will normally return a bug, so I'm just not going to do it.
|
10
12
|
You have an empty repos list, though, and that's what's causing this bug.
|
11
13
|
Try adding something to the list for the time being."
|
@@ -17,7 +19,7 @@ end
|
|
17
19
|
listed_repos = []
|
18
20
|
|
19
21
|
# Map out the username and repos(array)
|
20
|
-
|
22
|
+
FileManager::YAML['repos'].map do |username, repos|
|
21
23
|
# Exit with error if the username or repos is empty
|
22
24
|
if username.nil?
|
23
25
|
puts "#{error} Your usernames look a little nil."
|
data/lib/oliver/arguments.rb
CHANGED
data/lib/oliver/file_manager.rb
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
require 'yaml'
|
2
|
+
module FileManager
|
3
|
+
if File.file? Name::OLIVER
|
4
|
+
body = File.read(Name::OLIVER)
|
5
|
+
YAML = YAML.load(body)
|
6
|
+
else
|
7
|
+
puts "#{Rainbow(Name::OLIVER).red} does not exist."
|
8
|
+
YAML = nil
|
9
|
+
end
|
6
10
|
end
|
data/lib/oliver/version.rb
CHANGED
data/lib/oliver.rb
CHANGED
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: 1.8.6.
|
4
|
+
version: 1.8.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
version: '0'
|
119
119
|
requirements: []
|
120
120
|
rubyforge_project:
|
121
|
-
rubygems_version: 2.4.
|
121
|
+
rubygems_version: 2.4.4
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: Manage your Git(Hub) repos / projects easier.
|