Permalink
Browse files

0.1.6 3 minor enhancements, 1 bugfix

* 3 minor enhancements
  * Updated Readme/TODO
  * Some crufty output is now suppressed/removed
  * garlic all command cleans the work path

* 1 bugfix
  * --targets, -t option now actually works
  • Loading branch information...
1 parent b4e8bfb commit 915add3d806271cbf5395ce8087d3b191d03d4ea @ianwhite committed Nov 27, 2008
Showing with 18 additions and 17 deletions.
  1. +6 −2 History.txt
  2. +6 −6 bin/garlic
  3. +2 −2 garlic.gemspec
  4. +1 −1 lib/garlic.rb
  5. +3 −6 lib/garlic/session.rb
View
@@ -1,8 +1,12 @@
-== Edge
+== 0.1.6 2008-11-27
-* minor enhancements
+* 3 minor enhancements
* Updated Readme/TODO
* Some crufty output is now suppressed/removed
+ * garlic all command cleans the work path
+
+* 1 bugfix
+ * --targets, -t option now actually works
== 0.1.5 2008-11-25
View
@@ -23,8 +23,9 @@ OPTIONS:
--help -h You're reading it
--verbose -v Show work
--config CONFIG -c Specify a different location of garlic config
- --targets TARGETS -t Specify subset of targets, e.g. edge,2.1.0 (default all)
- --backtrace Show ruby bakctrace on error
+ --backtrace Show ruby backtrace on error
+ --targets TARGETS -t Specify subset of targets comma separated or
+ regexp part e.g. -t 2-1,2-2
You can generate a sample garlic.rb with
garlic generate [TEMPLATE [PLUGIN_NAME]] (Available templates: #{available_templates.join(', ')})
@@ -59,10 +60,9 @@ begin
verbose(@verbose)
# configure the garlic runner
- garlic @config_file do
- verbose @verbose
- run_targets @run_targets
- end
+ garlic(@config_file) # load up the garlic instance
+ garlic.verbose = @verbose
+ garlic.run_targets = @run_targets
# run the command
ARGV << 'default' if ARGV.empty?
View
@@ -2,11 +2,11 @@
Gem::Specification.new do |s|
s.name = %q{garlic}
- s.version = "0.1.5"
+ s.version = "0.1.6"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Ian White"]
- s.date = %q{2008-11-25}
+ s.date = %q{2008-11-27}
s.default_executable = %q{garlic}
s.description = %q{Set of commands/rake-tasks for CI against multiple version of rails/deps.}
s.email = %q{ian.w.white@gmail.com}
View
@@ -11,7 +11,7 @@ module Garlic
module Version
Major = 0
Minor = 1
- Tiny = 5
+ Tiny = 6
String = [Major, Minor, Tiny].join('.')
end
View
@@ -61,6 +61,7 @@ def commands
define_command :all, "Install and update all repos, prepare and run TARGETs" do
install_repos
update_repos
+ clean
prepare
run
end
@@ -94,11 +95,7 @@ def commands
end
define_command :prepare, "Prepare each garlic TARGET" do
- begin
- determine_targets.each {|target| target.prepare }
- ensure
- repo('rails').checkout('master') # we get rails back to master if something goes wrong
- end
+ determine_targets.each {|target| target.prepare }
end
define_command :shell, "Run shell commands from stdin across specified targets" do |*path|
@@ -137,7 +134,7 @@ def method_missing(method, *args, &block)
end
def determine_targets
- run_targets ? targets.select{|t| run_targets.include?(t.name)} : targets
+ run_targets ? targets.select{|t| t.name =~ /(?:#{run_targets.join("|")})/i} : targets
end
end
end

0 comments on commit 915add3

Please sign in to comment.