gill 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gill}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dustin Willis Webber"]
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
- STDERR.puts "Error: #{e}"
132
- rescue => e
133
- STDERR.puts "Error: #{e}"
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
- @category_path = File.join(Gill.config.source_path, @category)
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
@@ -38,7 +38,9 @@ module Gill
38
38
 
39
39
  elsif @uri.length < 2
40
40
 
41
- raise(ArgumentError, "too few arguments.")
41
+ self.category = false
42
+ self.repo = @uri.first if valid?(@uri.first)
43
+ self.folder = get_folder(self.repo)
42
44
 
43
45
  else
44
46
 
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 Gill::Helper
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
@@ -1,4 +1,4 @@
1
1
  module Gill
2
2
  # Gill Version
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
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: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dustin Willis Webber