ianwhite-garlic 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ == 0.1.7
2
+
3
+ * 2 minor enhancement
4
+ * Fix problem whereby garlic update_repos wasn't updating repos correctly
5
+ * utilise Garlic::Generator in tabtab definition
6
+
1
7
  == 0.1.6 2008-11-27
2
8
 
3
9
  * 3 minor enhancements
data/License.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2008 Ian White - ian.w.white@ardes.com
1
+ Copyright (c) 2008-2009 Ian White - ian.w.white@ardes.com
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.textile CHANGED
@@ -49,12 +49,12 @@ Install the garlic gem
49
49
 
50
50
  sudo gem install ianwhite-garlic --source=http://gems.github.com
51
51
 
52
- (if it's not installing as a gem from github)
52
+ (if you want the very latest version)
53
53
 
54
54
  git clone git://github.com/ianwhite/garlic
55
55
  cd garlic
56
56
  rake package
57
- sudo gem install pkg/*.gem
57
+ sudo gem install pkg/garlic-*.gem
58
58
 
59
59
  h2. Example
60
60
 
data/lib/garlic/repo.rb CHANGED
@@ -49,7 +49,10 @@ module Garlic
49
49
  if url
50
50
  begin
51
51
  checkout 'master'
52
- cd(path) { sh "git pull origin master", :verbose => false }
52
+ cd(path) do
53
+ sh "git fetch origin", :verbose => false
54
+ sh "git pull", :verbose => false
55
+ end
53
56
  rescue Exception => e
54
57
  puts "\n\nIt seems there was a problem.\nTry running rake garlic:reset_repos\n\n"
55
58
  raise e
data/lib/garlic.rb CHANGED
@@ -11,7 +11,7 @@ module Garlic
11
11
  module Version
12
12
  Major = 0
13
13
  Minor = 1
14
- Tiny = 6
14
+ Tiny = 7
15
15
 
16
16
  String = [Major, Minor, Tiny].join('.')
17
17
  end
@@ -1,11 +1,15 @@
1
1
  require "garlic/session"
2
+ require "garlic/generator"
2
3
 
3
4
  TabTab::Definition.register('garlic', :import => '--help') do |g|
4
5
  Garlic::Session.commands.each do |c|
5
6
  g.command c
6
7
  end
7
8
 
8
- g.command :generate do
9
- `ls ~/.garlic/templates`.split.map{|t| t.sub('.rb','')}
9
+ g.command :generate do
10
+ class << self
11
+ include Garlic::Generator
12
+ end
13
+ available_templates
10
14
  end
11
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ianwhite-garlic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian White
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-27 00:00:00 -08:00
12
+ date: 2009-01-22 00:00:00 -08:00
13
13
  default_executable: garlic
14
14
  dependencies: []
15
15