log_buddy 0.2.2 → 0.2.3

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/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.2.3 Updating Micronaut
2
+
1
3
  v0.2.0. Better log output of objects based on their type, very similar to Logger/irb behavior; update to micronaut 0.1.0
2
4
 
3
5
  v0.1.5. Clean up specs and remove noise from spec run
@@ -68,7 +68,7 @@ When you occasionally want to disable LogBuddy (but you don't want to have to re
68
68
 
69
69
  (The MIT License)
70
70
 
71
- Copyright (c) 2008 Relevance, Inc. - http://thinkrelevance.com
71
+ Copyright (c) 2009 Relevance, Inc. - http://thinkrelevance.com
72
72
 
73
73
  Permission is hereby granted, free of charge, to any person obtaining
74
74
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -1,6 +1,9 @@
1
1
  require 'rubygems'
2
2
  gem 'echoe'
3
+ gem "spicycode-micronaut", ">= 0.2.0"
3
4
  require 'echoe'
5
+ require 'micronaut'
6
+ require 'micronaut/rake_task'
4
7
  require File.join(File.dirname(__FILE__), *%w[lib log_buddy version])
5
8
 
6
9
  echoe = Echoe.new('log_buddy', LogBuddy::VERSION::STRING) do |p|
@@ -18,25 +21,18 @@ end
18
21
  Rake.application.instance_variable_get(:@tasks).delete("default")
19
22
  Rake.application.instance_variable_get(:@tasks).delete("test")
20
23
 
21
- namespace :micronaut do
22
-
23
- desc 'Run all examples'
24
- task :examples do
25
- examples = Dir["examples/**/*_example.rb"].map { |g| Dir.glob(g) }.flatten
26
- examples.map! {|f| %Q(require "#{f}")}
27
- command = "-e '#{examples.join("; ")}'"
28
- ruby command
29
- end
30
-
24
+ desc "Run all examples"
25
+ Micronaut::RakeTask.new(:examples)
26
+
27
+ namespace :examples do
31
28
  desc "Run all examples using rcov"
32
- task :coverage do
33
- examples = Dir["examples/**/*_example.rb"].map { |g| Dir.glob(g) }.flatten
34
- system "rcov --exclude \"examples/*,gems/*,db/*,/Library/Ruby/*,config/*\" --text-report --sort coverage --no-validator-links #{examples.join(' ')}"
29
+ Micronaut::RakeTask.new :coverage do |t|
30
+ t.rcov = true
31
+ t.rcov_opts = %[--exclude "gems/*,/Library/Ruby/*,config/*" --text-summary --sort coverage --no-validator-links]
35
32
  end
36
-
37
33
  end
38
34
 
39
- task :default => 'micronaut:coverage'
35
+ task :default => 'examples:coverage'
40
36
 
41
37
  # The below results in 'input stream exhausted' - dunno why?
42
38
  # task :release => [:test, :publish_docs, :announce]
@@ -1,6 +1,6 @@
1
1
  require 'logger'
2
2
  require 'rubygems'
3
- gem 'spicycode-micronaut', "~> 0.1.5"
3
+ gem "spicycode-micronaut", ">= 0.2.0"
4
4
  gem 'mocha'
5
5
  require "mocha"
6
6
  require 'micronaut'
@@ -15,6 +15,6 @@ end
15
15
 
16
16
  Micronaut.configure do |config|
17
17
  config.mock_with :mocha
18
+ config.formatter = :documentation
18
19
  config.filter_run :options => { :focused => true }
19
- config.autorun!
20
20
  end
@@ -2,7 +2,7 @@ module LogBuddy
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 2
5
+ TINY = 3
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{log_buddy}
5
- s.version = "0.2.2"
5
+ s.version = "0.2.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Rob Sanheim - Relevance"]
9
- s.date = %q{2009-01-09}
9
+ s.date = %q{2009-01-17}
10
10
  s.description = %q{Log statements along with their name easily. Mixin a logger everywhere when you need it.}
11
11
  s.email = %q{opensource@thinkrelevance.com}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "lib/log_buddy/mixin.rb", "lib/log_buddy/utils.rb", "lib/log_buddy/version.rb", "lib/log_buddy.rb", "LICENSE", "log_buddy.gemspec", "README.rdoc"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: log_buddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Sanheim - Relevance
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-09 00:00:00 -05:00
12
+ date: 2009-01-17 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency