oliver 1.5.2.1 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/IDEAS.md +6 -1
- data/README.md +21 -28
- data/lib/oliver/arguments.rb +1 -2
- data/lib/oliver/methods.rb +1 -1
- data/lib/oliver/version.rb +1 -1
- data/lib/oliver.rb +10 -6
- 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: a14c51c599707e7085ebd09071b1fdf94343908e
|
4
|
+
data.tar.gz: 879db2cc223f2bc96a830090e1da55691063ba32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 967a46cda09bec33209b740a1fb40f1a5f18a6dc093b24079e3c50b1bcd33531e9d32ef0ae48316d29eb4af8e6e0c1a674aef59626e83d8329e422ddc1af5d6e
|
7
|
+
data.tar.gz: 65fdc700bf6c28391a361b817b625a42e369d3a1b3f20906ce284b413b3be999d9cedf59e5ded991c60370ebf1e108b0c65a5eeb7b27b49d010aae2ef1a012e4
|
data/Gemfile.lock
CHANGED
data/IDEAS.md
CHANGED
@@ -25,7 +25,12 @@ prefs:
|
|
25
25
|
- "no colour" # this too :P
|
26
26
|
```
|
27
27
|
|
28
|
-
- [ ]
|
28
|
+
- [ ] when running `olive list`, list the repos that are currently in the directory against
|
29
|
+
the repos that are currently being tracked. repos that are in both (the `Olivefile` and the current directory)
|
30
|
+
should be listed as green (using rainbow), and directories that are only found in one of the two options
|
31
|
+
will be listed as red.
|
32
|
+
|
33
|
+
- [x] [Douglas](https://twitter.com/istx25) gave me this cool
|
29
34
|
idea that [CocoaPods](https://github.com/CocoaPods/CocoaPods) uses, where
|
30
35
|
you can run
|
31
36
|
|
data/README.md
CHANGED
@@ -50,21 +50,18 @@ demonstration of this in this repo):
|
|
50
50
|
```
|
51
51
|
main_directory/
|
52
52
|
|- git_project_1/
|
53
|
-
|----- src/
|
54
53
|
|----- bin/
|
55
54
|
|----- lib/
|
56
55
|
|----- README.md
|
57
56
|
|----- .git/
|
58
57
|
|
|
59
58
|
|- git_project_2/
|
60
|
-
|----- src/
|
61
59
|
|----- bin/
|
62
60
|
|----- lib/
|
63
61
|
|----- README.md
|
64
62
|
|----- .git/
|
65
63
|
|
|
66
64
|
|- git_project_3/
|
67
|
-
|----- src/
|
68
65
|
|----- bin/
|
69
66
|
|----- lib/
|
70
67
|
|----- README.md
|
@@ -106,58 +103,48 @@ view repos on the list and update the repo (essentially
|
|
106
103
|
docs
|
107
104
|
----
|
108
105
|
|
109
|
-
|
110
|
-
when working with oliver, similar to how
|
111
|
-
bundler uses the `bundle` command.
|
106
|
+
### setup the repo
|
112
107
|
|
113
|
-
|
114
|
-
want to initialize the entire directory
|
115
|
-
that you're keeping these git
|
116
|
-
repositories in (in the example
|
117
|
-
above, "main_directory/" would
|
118
|
-
be the directory)
|
119
|
-
do to this, you're going to want
|
120
|
-
to make a `OliveFile` and write a bit
|
121
|
-
in it
|
108
|
+
create the base `Olivefile`
|
122
109
|
|
123
110
|
```bash
|
124
|
-
$
|
125
|
-
$ touch Olivefile
|
126
|
-
$ vim Olivefile
|
111
|
+
$ olive init
|
127
112
|
```
|
128
113
|
|
129
|
-
and in the `Olivefile`
|
114
|
+
(and in the `Olivefile`)
|
130
115
|
|
131
|
-
```
|
116
|
+
```yaml
|
132
117
|
repos:
|
133
118
|
- "trommel/oliver"
|
134
|
-
- "istx25/dotfiles"
|
119
|
+
- "istx25/dotfiles" # add any repo(s)
|
135
120
|
|
136
121
|
# use 3 spaces for indentation, not tabs!
|
137
|
-
# I spent, like, an hour trying to fix a
|
122
|
+
# I spent, like, an hour trying to fix a non-existent bug because of this
|
138
123
|
# smh so hard
|
124
|
+
# by the way, this is YAML, for anyone interested
|
125
|
+
# then again, you could just look at the code and determine that yourself
|
139
126
|
```
|
140
127
|
|
141
|
-
|
128
|
+
### install and/or remove listed repos
|
142
129
|
|
143
130
|
```bash
|
144
|
-
$ olive install
|
131
|
+
$ olive install
|
145
132
|
```
|
146
133
|
|
147
|
-
### start tracking a repo
|
134
|
+
### clone and start tracking a repo
|
148
135
|
|
149
136
|
this will add it to the tracking list
|
150
137
|
|
151
138
|
```bash
|
152
|
-
$ olive add repo
|
139
|
+
$ olive add username/repo
|
153
140
|
```
|
154
|
-
### stop tracking a repo
|
141
|
+
### remove (move to `.backup`) and stop tracking a repo
|
155
142
|
|
156
143
|
this will remove it from the tracking list
|
157
144
|
and locally delete the repo
|
158
145
|
|
159
146
|
```bash
|
160
|
-
$ olive remove repo
|
147
|
+
$ olive remove username/repo
|
161
148
|
```
|
162
149
|
|
163
150
|
### list tracked repos
|
@@ -194,6 +181,11 @@ things to remember
|
|
194
181
|
- run everything with `olive`, not `oliver`. "oliver" is the name
|
195
182
|
of the project, `olive` is the name of the CLI.
|
196
183
|
|
184
|
+
- if you want to clone a repo from somewhere other than GitHub (GitHub
|
185
|
+
is defaulted), just use the full git URL instead of the simple
|
186
|
+
`username/repo-name`, for example `git://projects.josh.com/oliver.git`.
|
187
|
+
|
188
|
+
<!---
|
197
189
|
branches
|
198
190
|
========
|
199
191
|
|
@@ -209,6 +201,7 @@ anyways, there's an [unstable](https://github.com/trommel/oliver/tree/unstable)
|
|
209
201
|
branch, if you want to check it out.
|
210
202
|
the official gem that's hosted on rubygems, though, is
|
211
203
|
the gem of the master branch, and that's how it's going to stay.
|
204
|
+
-->
|
212
205
|
|
213
206
|
ideas
|
214
207
|
=====
|
data/lib/oliver/arguments.rb
CHANGED
data/lib/oliver/methods.rb
CHANGED
data/lib/oliver/version.rb
CHANGED
data/lib/oliver.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
# holy shit, this is massive
|
2
2
|
# twss
|
3
|
-
require 'jibry'
|
4
3
|
require 'rainbow'
|
5
4
|
require 'YAML'
|
6
5
|
require_relative "oliver/oliver_file_name"
|
@@ -11,14 +10,19 @@ require_relative "oliver/main"
|
|
11
10
|
|
12
11
|
# if the user doesn't want to use rainbow
|
13
12
|
# just disable it completely
|
14
|
-
Rainbow.enabled = false if ARGV[-1] == 'colour=off'
|
13
|
+
Rainbow.enabled = false if ARGV[-1].downcase == 'colour=off'
|
14
|
+
if ARGV[-1].downcase == 'color=off'
|
15
|
+
color = "\"color\""
|
16
|
+
puts "Don't you know how to spell #{Rainbow(color).red}?"
|
17
|
+
exit
|
18
|
+
end
|
15
19
|
|
16
20
|
# Right off the bat,
|
17
21
|
# if the user doesn't specify even one argument
|
18
22
|
# just give him some help and quit oliver
|
19
23
|
if ARGV[0].nil?
|
20
24
|
help
|
21
|
-
|
25
|
+
exit
|
22
26
|
end
|
23
27
|
|
24
28
|
# (Literally) different arguments
|
@@ -32,14 +36,14 @@ other_things
|
|
32
36
|
if File.file? Name::OLIVER
|
33
37
|
if ARGV[0].downcase == 'install'
|
34
38
|
run_main
|
35
|
-
|
39
|
+
exit
|
36
40
|
else
|
37
41
|
name_install = Rainbow('oliver install').red
|
38
42
|
name_color = Rainbow(Name::OLIVER).red
|
39
43
|
puts "#{name_install} requires an #{name_color} to do its magic."
|
40
|
-
|
44
|
+
exit
|
41
45
|
end
|
42
46
|
else
|
43
47
|
help
|
44
|
-
|
48
|
+
exit
|
45
49
|
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: 1.5.
|
4
|
+
version: 1.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|