gill 0.1.1 → 0.1.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.
- data/README.rdoc +6 -0
- data/gill.gemspec +1 -1
- data/lib/gill/gill.rb +6 -6
- data/lib/gill/git.rb +7 -1
- data/lib/gill/parse.rb +3 -1
- data/lib/gill/remove.rb +2 -2
- data/lib/gill/version.rb +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -7,6 +7,12 @@ Gill is a simple Ruby app to help keep your git clones clean and organized. Gill
|
|
7
7
|
Files created by gill:
|
8
8
|
* ~/.gillrc #=> gill configurations
|
9
9
|
* ~/.gillcache #=> List of all gilled (installed) repos.
|
10
|
+
|
11
|
+
== Gill Documentation
|
12
|
+
|
13
|
+
LookyCode Website: https://www.lookycode.com
|
14
|
+
|
15
|
+
Gill Docs: http://rubydoc.info/projects/mephux/gill/blob/73355f02d8ea532c19d4cf69f43e85323e3e28f5
|
10
16
|
|
11
17
|
== Install
|
12
18
|
|
data/gill.gemspec
CHANGED
data/lib/gill/gill.rb
CHANGED
@@ -124,14 +124,14 @@ module Gill
|
|
124
124
|
|
125
125
|
# Remove a gill cloned repository.
|
126
126
|
def Gill.remove
|
127
|
-
begin
|
127
|
+
#begin
|
128
128
|
raise(SyntaxError, "Invalid Syntax. Arguments must be separated by `#`. Example: gill -r category#title") unless @options[:remove] =~ /\#/
|
129
129
|
Remove.new(@options[:remove]).remove_repo
|
130
|
-
rescue Gill::DirectoryError => e
|
131
|
-
|
132
|
-
rescue => e
|
133
|
-
|
134
|
-
end
|
130
|
+
# rescue Gill::DirectoryError => e
|
131
|
+
# STDERR.puts "Error: #{e}"
|
132
|
+
# rescue => e
|
133
|
+
# STDERR.puts "Error: #{e}"
|
134
|
+
# end
|
135
135
|
exit -1
|
136
136
|
end
|
137
137
|
|
data/lib/gill/git.rb
CHANGED
@@ -20,7 +20,13 @@ module Gill
|
|
20
20
|
def initialize(category,folder,repo)
|
21
21
|
|
22
22
|
@repo, @category, @folder = repo, category, folder
|
23
|
-
|
23
|
+
|
24
|
+
if @category
|
25
|
+
@category_path = File.join(Gill.config.source_path, @category)
|
26
|
+
else
|
27
|
+
@category = 'misc'
|
28
|
+
@category_path = File.join(Gill.config.source_path, @category)
|
29
|
+
end
|
24
30
|
|
25
31
|
if @folder
|
26
32
|
@folder_path = File.join(@category_path, @folder)
|
data/lib/gill/parse.rb
CHANGED
data/lib/gill/remove.rb
CHANGED
@@ -2,7 +2,7 @@ module Gill
|
|
2
2
|
|
3
3
|
class Remove
|
4
4
|
include Config::Cache
|
5
|
-
include
|
5
|
+
include Helper
|
6
6
|
|
7
7
|
def initialize(args)
|
8
8
|
data = args.split('#')
|
@@ -43,7 +43,7 @@ module Gill
|
|
43
43
|
|
44
44
|
if File.directory?(type_folder) && File.directory?(folder) && !Gill.config.cache.empty?
|
45
45
|
|
46
|
-
if Gill.config.cache[:"#{@category}"][:"#{@folder}"]
|
46
|
+
if Gill.config.cache[:"#{@category}"] && Gill.config.cache[:"#{@category}"][:"#{@folder}"]
|
47
47
|
|
48
48
|
ask "Are you sure you want to remove #{@folder}?", :default => :no do
|
49
49
|
STDOUT.puts "#{@folder.capitalize} removed successfully."
|
data/lib/gill/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dustin Willis Webber
|