oliver 1.8.9.5 → 1.8.9.7

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: 992c97443690497a230a6b50edffde48519ab0cf
4
- data.tar.gz: 0023bcfc547d45c8b41c7a9b0bc71596ee4b7dcb
3
+ metadata.gz: d712fbac0d440ce68a25827e22433c32637ccdf3
4
+ data.tar.gz: f5579ba2993b54e779624590458c84a2033eecb8
5
5
  SHA512:
6
- metadata.gz: 694e68dad440a5028e4ff679d2f3fd8056835a40c09bbd82f5c88545140acebc888b00ca327ef9c358e0c509bd10a53eb50793cb85ef5d235fc05e877ea8bec0
7
- data.tar.gz: 965ade8ed15babd4f2fcc989700e6af192220c27c22af04869082173362be6614f338511e232810a42a46704c50ff4c47d8bd0b244477235f5a65599aa98b2ce
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
- - [ ] Remake the help/info thing to be slimmer & look better
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
- if !File.directory?(split[1])
43
- repo_replaced = repo.gsub('/', '-')
44
- cloned_repo = Git.clone("git://github.com/#{repo}", repo_replaced, :path => '.')
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("git://github.com/#{username}/#{repo}", repo, :path => '.')
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
@@ -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' || '--help' || 'help'
40
+ when '-h', '--help', 'help'
41
41
  help
42
- when '-v' || '--version' || 'version'
42
+ when '-v', '--version', 'version'
43
43
  puts "#{Rainbow('oliver').red} #{Rainbow("v#{Oliver::VERSION}").green}"
44
44
  exit
45
45
  else
@@ -6,5 +6,6 @@ module FileManager
6
6
  else
7
7
  puts "#{Rainbow(Name::OLIVER).red} does not exist."
8
8
  YAML = nil
9
+ exit
9
10
  end
10
11
  end
@@ -1,5 +1,5 @@
1
1
  # The main module for
2
2
  # Oliver's version
3
3
  module Oliver
4
- VERSION = '1.8.9.5'
4
+ VERSION = '1.8.9.7'
5
5
  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.8.9.5
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-29 00:00:00.000000000 Z
11
+ date: 2014-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler