oliver 1.8.9.5 → 1.8.9.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -3
- data/lib/oliver/argument_files/install.rb +13 -4
- data/lib/oliver/arguments.rb +2 -2
- data/lib/oliver/file_manager.rb +1 -0
- data/lib/oliver/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d712fbac0d440ce68a25827e22433c32637ccdf3
|
4
|
+
data.tar.gz: f5579ba2993b54e779624590458c84a2033eecb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: beddc08fef0effee882090eb5eb6d4030d9054b6ab51f3b3a284b014c2a012922e34328aeca516c2bf443f935aee6730d10c05dc22fbb6556c43c860db4cc0f4
|
7
|
+
data.tar.gz: 6d73b5844c127ee0febb1e21bdcde2a993d33b559ec92bf8be34db4f7674ae8e229862dc44425ccebac4060aec0bb111d1c0d4125b2638dcdc49a016754ef212
|
data/README.md
CHANGED
@@ -43,14 +43,15 @@ repos:
|
|
43
43
|
- "Fluorescent"
|
44
44
|
- "dotfiles"
|
45
45
|
misc:
|
46
|
-
- "trommel/calkoolator"
|
46
|
+
- "git://github.com/trommel/calkoolator"
|
47
47
|
---
|
48
48
|
```
|
49
49
|
|
50
50
|
- Remember to use spaces for indentation, not tabs.
|
51
51
|
- `Misc` is preferred syntax for use
|
52
52
|
when there's only one repo by an author in
|
53
|
-
your YAML file.
|
53
|
+
your YAML file. With `Misc`, use the full URL
|
54
|
+
(for support with non-GitHub repos)
|
54
55
|
|
55
56
|
### Initializing the root
|
56
57
|
|
@@ -101,10 +102,19 @@ Extras
|
|
101
102
|
oliver uses [rainbow](https://github.com/sickill/rainbow), a gem for colouring the Terminal prompt.
|
102
103
|
If you want to use it, just prepend `colour=on` to any olive command.
|
103
104
|
|
105
|
+
If you want to enable it by default you can make a `.settings.yml` file in
|
106
|
+
your directory and add some settings to it:
|
107
|
+
|
108
|
+
```YAML
|
109
|
+
---
|
110
|
+
colour: "on"
|
111
|
+
---
|
112
|
+
```
|
113
|
+
|
104
114
|
To-Do
|
105
115
|
-----
|
106
116
|
|
107
|
-
- [
|
117
|
+
- [x] Remake the help/info thing to be slimmer & look better
|
108
118
|
- [ ] Expand support to any Git, not just GitHub (why didn't I do this earlier?)
|
109
119
|
- [ ] Fix bugs with..
|
110
120
|
- [ ] `update` (tons)
|
@@ -39,9 +39,14 @@ FileManager::YAML['repos'].map do |username, repos|
|
|
39
39
|
end
|
40
40
|
if username.downcase == 'misc'
|
41
41
|
split = repo.split('/')
|
42
|
-
|
43
|
-
|
44
|
-
|
42
|
+
last_of_url = split.last
|
43
|
+
if !File.directory?(last_of_url)
|
44
|
+
repo_replaced = last_of_url.gsub('/', '-')
|
45
|
+
cloned_repo = Git.clone(
|
46
|
+
repo,
|
47
|
+
repo_replaced,
|
48
|
+
:path => '.'
|
49
|
+
)
|
45
50
|
if File.directory?(repo_replaced)
|
46
51
|
puts "#{success} #{split[1]}/ was cloned."
|
47
52
|
else
|
@@ -52,7 +57,11 @@ FileManager::YAML['repos'].map do |username, repos|
|
|
52
57
|
end
|
53
58
|
if !File.directory?(repo)
|
54
59
|
# Clone the repo if the directory doesn't already exist
|
55
|
-
cloned_repo = Git.clone("
|
60
|
+
cloned_repo = Git.clone("
|
61
|
+
git://github.com/#{username}/#{repo}",
|
62
|
+
repo,
|
63
|
+
:path => '.'
|
64
|
+
)
|
56
65
|
if File.directory?(repo)
|
57
66
|
# If the directory exists after the repo
|
58
67
|
# has been cloned, give a success message
|
data/lib/oliver/arguments.rb
CHANGED
@@ -37,9 +37,9 @@ else
|
|
37
37
|
require_relative 'argument_files/list'
|
38
38
|
when 'update'
|
39
39
|
require_relative 'argument_files/update'
|
40
|
-
when '-h'
|
40
|
+
when '-h', '--help', 'help'
|
41
41
|
help
|
42
|
-
when '-v'
|
42
|
+
when '-v', '--version', 'version'
|
43
43
|
puts "#{Rainbow('oliver').red} #{Rainbow("v#{Oliver::VERSION}").green}"
|
44
44
|
exit
|
45
45
|
else
|
data/lib/oliver/file_manager.rb
CHANGED
data/lib/oliver/version.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.9.
|
4
|
+
version: 1.8.9.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|