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 +2 -0
- data/README.rdoc +1 -1
- data/Rakefile +11 -15
- data/examples/example_helper.rb +2 -2
- data/lib/log_buddy/version.rb +1 -1
- data/log_buddy.gemspec +2 -2
- metadata +2 -2
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -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)
|
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
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
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
|
-
|
33
|
-
|
34
|
-
|
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 => '
|
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]
|
data/examples/example_helper.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'logger'
|
2
2
|
require 'rubygems'
|
3
|
-
gem
|
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
|
data/lib/log_buddy/version.rb
CHANGED
data/log_buddy.gemspec
CHANGED
@@ -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.
|
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-
|
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.
|
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-
|
12
|
+
date: 2009-01-17 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|