Permalink
Browse files

Update Micronaut to the latest and greatest; use the documentation fo…

…rmatter; push 0.2.3
  • Loading branch information...
1 parent 8251aa4 commit 960b6f88eb1cbdd1af3e32b220cfd6d2728dae25 @rsanheim rsanheim committed Jan 17, 2009
Showing with 16 additions and 18 deletions.
  1. +2 −0 CHANGELOG
  2. +11 −15 Rakefile
  3. +2 −2 examples/example_helper.rb
  4. +1 −1 lib/log_buddy/version.rb
View
@@ -1,3 +1,5 @@
+v0.2.3 Updating Micronaut
+
v0.2.0. Better log output of objects based on their type, very similar to Logger/irb behavior; update to micronaut 0.1.0
v0.1.5. Clean up specs and remove noise from spec run
View
@@ -1,6 +1,9 @@
require 'rubygems'
gem 'echoe'
+gem "spicycode-micronaut", ">= 0.2.0"
require 'echoe'
+require 'micronaut'
+require 'micronaut/rake_task'
require File.join(File.dirname(__FILE__), *%w[lib log_buddy version])
echoe = Echoe.new('log_buddy', LogBuddy::VERSION::STRING) do |p|
@@ -18,25 +21,18 @@ end
Rake.application.instance_variable_get(:@tasks).delete("default")
Rake.application.instance_variable_get(:@tasks).delete("test")
-namespace :micronaut do
-
- desc 'Run all examples'
- task :examples do
- examples = Dir["examples/**/*_example.rb"].map { |g| Dir.glob(g) }.flatten
- examples.map! {|f| %Q(require "#{f}")}
- command = "-e '#{examples.join("; ")}'"
- ruby command
- end
-
+desc "Run all examples"
+Micronaut::RakeTask.new(:examples)
+
+namespace :examples do
desc "Run all examples using rcov"
- task :coverage do
- examples = Dir["examples/**/*_example.rb"].map { |g| Dir.glob(g) }.flatten
- system "rcov --exclude \"examples/*,gems/*,db/*,/Library/Ruby/*,config/*\" --text-report --sort coverage --no-validator-links #{examples.join(' ')}"
+ Micronaut::RakeTask.new :coverage do |t|
+ t.rcov = true
+ t.rcov_opts = %[--exclude "gems/*,/Library/Ruby/*,config/*" --text-summary --sort coverage --no-validator-links]
end
-
end
-task :default => 'micronaut:coverage'
+task :default => 'examples:coverage'
# The below results in 'input stream exhausted' - dunno why?
# task :release => [:test, :publish_docs, :announce]
@@ -1,6 +1,6 @@
require 'logger'
require 'rubygems'
-gem 'spicycode-micronaut', "~> 0.1.5"
+gem "spicycode-micronaut", ">= 0.2.0"
gem 'mocha'
require "mocha"
require 'micronaut'
@@ -15,6 +15,6 @@ def silence_warnings
Micronaut.configure do |config|
config.mock_with :mocha
+ config.formatter = :documentation
config.filter_run :options => { :focused => true }
- config.autorun!
end
@@ -2,7 +2,7 @@ module LogBuddy
module VERSION #:nodoc:
MAJOR = 0
MINOR = 2
- TINY = 2
+ TINY = 3
STRING = [MAJOR, MINOR, TINY].join('.')
end

0 comments on commit 960b6f8

Please sign in to comment.