log_buddy 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,8 @@
1
+ .tm_last_run_ruby
2
+ *.log
3
+ doc/*
4
+ pkg/*
5
+ coverage
6
+ TAGS
7
+ coverage/
8
+ Gemfile.lock
data/.rvmrc CHANGED
@@ -1 +1 @@
1
- rvm use ruby-1.9.2-p0
1
+ rvm use ruby-1.9.2
@@ -0,0 +1,6 @@
1
+ rvm:
2
+ - 1.8.7
3
+ - 1.9.2
4
+ - 1.9.3
5
+ - jruby
6
+ script: bundle exec rspec spec
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ v0.7.0
2
+ * Add use_awesome_print option for logging
3
+ * Fix warning from #split called on nil
4
+ * Put tests on travis
5
+ * Clean up Rakefile and gemspec
6
+
1
7
  v0.6.0 Use Rails.logger if available - avoid deprecation warnings in Rails 3+
2
8
 
3
9
  v0.5.1 init automatically unless SAFE_LOG_BUDDY (in ENV) is set
@@ -39,4 +45,4 @@ v0.0.3. specs and tweaks
39
45
 
40
46
  v0.0.2. rdocs; support for multiple statements in one "d" call separated by semicolons
41
47
 
42
- v0.0.1. Initial release to github; Birthday
48
+ v0.0.1. Initial release to github; Birthday
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source :rubygems
2
+
3
+ gemspec
@@ -1,17 +1,19 @@
1
1
  # LogBuddy
2
-
2
+
3
3
  ## DESCRIPTION
4
4
 
5
5
  log_buddy is your friendly little log buddy at your side, helping you dev, debug, and test.
6
6
 
7
+ [![Build Status](https://secure.travis-ci.org/relevance/log_buddy.png?branch=master)](http://travis-ci.org/relevance/log_buddy)
8
+
7
9
  ## SYNOPSIS
8
10
 
9
11
  Require the init.rb file to use log_buddy. By default, it will add two methods to every object at the instance and class level: "d" and "logger". To use log_buddy without the automatic object intrusion, set ENV["SAFE_LOG_BUDDY"] = true before requiring the init.rb.
10
12
 
11
13
  You can use your own logger with LogBuddy by passing it into init's options hash:
12
-
13
- LogBuddy.init :default_logger => Logger.new('my_log.log')
14
-
14
+
15
+ LogBuddy.init :logger => Logger.new('my_log.log')
16
+
15
17
  Now you have your logger available from any object, at the instance level and class level:
16
18
 
17
19
  obj = Object.new
@@ -25,7 +27,7 @@ in the block and the result. Examples:
25
27
 
26
28
  a = "foo"
27
29
  @a = "my var"
28
- @@bar = "class var!"
30
+ @@bar = "class var!
29
31
  def bark
30
32
  "woof!"
31
33
  end
@@ -44,9 +46,8 @@ When you occasionally want to disable LogBuddy (but you don't want to have to re
44
46
 
45
47
  ## REQUIREMENTS
46
48
 
47
- * Ruby 1.8.6 or JRuby (tested with 1.1RC3)
48
- * untested on Ruby versions before 1.8.6, but should work fine
49
-
49
+ * Ruby 1.8.7 and greater or JRuby
50
+
50
51
  ## ISSUES
51
52
 
52
53
  * This is meant for non-production use while developing and testing --> it does stuff that is slow and you probably don't want happening in your production environment.
@@ -54,14 +55,14 @@ When you occasionally want to disable LogBuddy (but you don't want to have to re
54
55
 
55
56
  ## INSTALL
56
57
 
57
- sudo gem install log_buddy
58
+ gem install log_buddy
58
59
 
59
60
  ## URLS
60
61
 
61
- * Log bugs, issues, and suggestions at Lighthouse: http://relevance.lighthouseapp.com/projects/19074-log-buddy/overview
62
- * View Source: http://github.com/relevance/log_buddy
63
- * Git clone Source: git://github.com/relevance/log_buddy.git
64
- * RDocs: http://thinkrelevance.rubyforge.org/log_buddy
62
+ * File Issues: http://github.com/relevance/log\_buddy/issues
63
+ * View Source: http://github.com/relevance/log\_buddy
64
+ * Git clone Source: git://github.com/relevance/log\_buddy.git
65
+ * Documentation: http://rdoc.info/gems/log\_buddy
65
66
 
66
67
  ## LICENSE
67
68
 
@@ -86,4 +87,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
86
87
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
87
88
  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
88
89
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
89
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
90
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile CHANGED
@@ -1,69 +1,33 @@
1
- $:.unshift File.expand_path('../lib', __FILE__)
1
+ require 'bundler/gem_tasks'
2
2
 
3
3
  begin
4
- require 'jeweler'
5
- require 'log_buddy/version'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "log_buddy"
8
- gem.version = LogBuddy::Version::STRING
9
- gem.summary = %Q{Log Buddy is your little development buddy.}
10
- gem.description = %Q{Log statements along with their name easily. Mixin a logger everywhere when you need it.}
11
- gem.email = "rsanheim@gmail.com"
12
- gem.homepage = "http://github.com/relevance/log_buddy"
13
- gem.authors = ["Rob Sanheim"]
14
- gem.add_development_dependency "rspec", "~> 2.2"
15
- gem.add_development_dependency "mocha", "~> 0.9"
16
- end
17
- Jeweler::GemcutterTasks.new
18
- rescue LoadError
19
- puts "Jeweler not available. Install it with: gem install jeweler"
20
- end
21
-
22
- begin
23
4
  require 'rspec/core/rake_task'
24
-
5
+
25
6
  RSpec::Core::RakeTask.new(:spec)
26
-
7
+
27
8
  RSpec::Core::RakeTask.new(:coverage) do |spec|
28
9
  spec.pattern = 'spec/**/*_spec.rb'
29
10
  spec.rcov_opts = %[-Ilib -Ispec --exclude "gems/*,/Library/Ruby/*,config/*" --text-summary --sort coverage]
30
11
  spec.rcov = true
31
12
  end
32
-
33
- RubyVersions = %w[1.8.7 1.9.1 1.9.2]
34
-
13
+
14
+ require "yaml"
15
+ RubyVersions = YAML.load_file(".travis.yml")["rvm"]
35
16
  desc "Run Rspec against multiple Rubies: #{RubyVersions.join(", ")}"
36
17
  task :spec_all do
37
- cmd = %[bash -c 'source ~/.rvm/scripts/rvm; rvm #{RubyVersions.join(",")} rake spec']
18
+ cmd = %[bash -c 'source ~/.rvm/scripts/rvm; rvm #{RubyVersions.join(",")} do rake spec']
38
19
  puts cmd
39
- system %[bash -c 'source ~/.rvm/scripts/rvm; rvm #{RubyVersions.join(",")} rake spec']
20
+ system cmd
40
21
  end
41
-
22
+
42
23
 
43
24
  if RUBY_VERSION <= "1.8.7"
44
- task :default => [:check_dependencies, :coverage]
25
+ task :default => [:coverage]
45
26
  else
46
- task :default => [:check_dependencies, :spec]
27
+ task :default => [:spec]
47
28
  end
48
29
  rescue LoadError => e
49
30
  puts "Rspec not available to run tests. Install it with: gem install rspec --pre"
50
31
  puts e
51
32
  puts e.backtrace
52
33
  end
53
-
54
- begin
55
- %w{sdoc sdoc-helpers rdiscount}.each { |name| gem name }
56
- require 'sdoc_helpers'
57
- rescue LoadError => ex
58
- puts "sdoc support not enabled:"
59
- puts ex.inspect
60
- end
61
-
62
- require 'rake/rdoctask'
63
- Rake::RDocTask.new do |rdoc|
64
- version = LogBuddy::Version::STRING
65
- rdoc.rdoc_dir = 'rdoc'
66
- rdoc.title = "log_buddy #{version}"
67
- rdoc.rdoc_files.include('README*')
68
- rdoc.rdoc_files.include('lib/**/*.rb')
69
- end
@@ -4,7 +4,7 @@ require File.join(File.dirname(__FILE__), *%w[log_buddy version])
4
4
 
5
5
  =begin rdoc
6
6
  LogBuddy is a developer tool for easy logging while testing, debugging, and inspecting.
7
-
7
+
8
8
  The <tt>d</tt> log method to give you easy, concise output of variables with their names and values.
9
9
 
10
10
  Requiring 'log_buddy' will _automatically_ mixin the <tt>d</tt> method into Object. You can avoid this
@@ -20,26 +20,28 @@ Examples:
20
20
  d { a } # logs "a = 'foo'"
21
21
  d { @a } # logs "@a = 'my var'"
22
22
  d { bark } # logs "bark = woof!"
23
-
23
+
24
24
  =end
25
25
  module LogBuddy
26
26
  # Configure and include LogBuddy into Object.
27
27
  # You can pass in any of the following configuration options:
28
- #
29
- # * <tt>:logger</tt> - the logger instance that LogBuddy should use (if not provided,
28
+ #
29
+ # * <tt>:logger</tt> - the logger instance that LogBuddy should use (if not provided,
30
30
  # tries to default to RAILS_DEFAULT_LOGGER, and then to a STDOUT logger).
31
- # * <tt):log_to_stdout</tt> - whether LogBuddy should _also_ log to STDOUT, very helpful for Autotest (default is +true+).
31
+ # * <tt>:log_to_stdout</tt> - whether LogBuddy should _also_ log to STDOUT, very helpful for Autotest (default is +true+).
32
32
  # * <tt>:disabled</tt> - when true, LogBuddy will not produce any output
33
+ # * <tt>:use_awesome_print</tt> - when true, LogBuddy will log object with awesome_print
33
34
  def self.init(options = {})
34
35
  @logger = options[:logger]
35
36
  @log_to_stdout = options.has_key?(:log_to_stdout) ? options[:log_to_stdout] : true
37
+ @use_awesome_print = options.has_key?(:use_awesome_print) ? options[:use_awesome_print] : false
36
38
  @disabled = (options[:disabled] == true)
37
39
  mixin_to_object
38
40
  end
39
41
 
40
42
  # Add the LogBuddy::Mixin to Object instance and class level.
41
43
  def self.mixin_to_object
42
- Object.class_eval {
44
+ Object.class_eval {
43
45
  include LogBuddy::Mixin
44
46
  extend LogBuddy::Mixin
45
47
  }
@@ -51,13 +53,17 @@ module LogBuddy
51
53
  return @logger if @logger
52
54
  @logger = init_default_logger
53
55
  end
54
-
56
+
55
57
  def log_to_stdout?
56
58
  @log_to_stdout
57
59
  end
58
-
60
+
61
+ def use_awesome_print?
62
+ @use_awesome_print
63
+ end
64
+
59
65
  private
60
-
66
+
61
67
  # First try Rails.logger, then RAILS_DEFAULT_LOGGER (for older
62
68
  # versions of Rails), then just use a STDOUT Logger
63
69
  def init_default_logger
@@ -70,12 +76,12 @@ module LogBuddy
70
76
  Logger.new(STDOUT)
71
77
  end
72
78
  end
73
-
79
+
74
80
  def rails_environment
75
81
  Object.const_defined?("Rails") && Object.const_get("Rails")
76
82
  end
77
-
83
+
78
84
  end
79
-
85
+
80
86
  init unless ENV["SAFE_LOG_BUDDY"]
81
- end
87
+ end
@@ -1,51 +1,51 @@
1
1
  module LogBuddy
2
2
  module Utils
3
-
3
+
4
4
  def debug(obj)
5
5
  return if @disabled
6
6
  str = obj_to_string(obj)
7
7
  stdout_puts(str) if log_to_stdout?
8
8
  logger.debug(str)
9
9
  end
10
-
10
+
11
11
  def arg_and_blk_debug(arg, blk)
12
12
  result = eval(arg, blk.binding)
13
13
  result_str = obj_to_string(result, :quote_strings => true)
14
14
  LogBuddy.debug(%[#{arg} = #{result_str}\n])
15
15
  end
16
-
16
+
17
17
  def stdout_puts(str)
18
18
  puts str
19
19
  end
20
-
20
+
21
21
  # Returns array of arguments in the block
22
22
  # You must use the brace form (ie d { "hi" }) and not do...end
23
23
  def parse_args(logged_line)
24
24
  block_contents = logged_line[/\{(.*?)\}/, 1]
25
- args = block_contents.split(";").map {|arg| arg.strip }
25
+ args = block_contents ? block_contents.split(";").map {|arg| arg.strip } : []
26
26
  end
27
-
27
+
28
28
  # Return the calling line
29
29
  def read_line(frame)
30
30
  file, line_number = frame.split(/:/, 2)
31
31
  line_number = line_number.to_i
32
32
  lines = File.readlines(file)
33
-
33
+
34
34
  lines[line_number - 1]
35
35
  end
36
-
36
+
37
37
  def obj_to_string(obj, options = {})
38
38
  quote_strings = options.delete(:quote_strings)
39
39
  case obj
40
40
  when ::String
41
- quote_strings ? %["#{obj}"] : obj
41
+ quote_strings ? %["#{obj}"] : obj
42
42
  when ::Exception
43
43
  "#{ obj.message } (#{ obj.class })\n" <<
44
44
  (obj.backtrace || []).join("\n")
45
45
  else
46
- obj.inspect
46
+ LogBuddy.use_awesome_print? && obj.respond_to?(:ai) ?
47
+ obj.ai : obj.inspect
47
48
  end
48
49
  end
49
-
50
50
  end
51
- end
51
+ end
@@ -1,7 +1,7 @@
1
1
  module LogBuddy
2
2
  module Version #:nodoc:
3
3
  MAJOR = 0
4
- MINOR = 6
4
+ MINOR = 7
5
5
  TINY = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
@@ -1,65 +1,20 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/log_buddy/version', __FILE__)
5
3
 
6
- Gem::Specification.new do |s|
7
- s.name = %q{log_buddy}
8
- s.version = "0.6.0"
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Rob Sanheim"]
6
+ gem.email = ["rsanheim@gmail.com"]
7
+ gem.description = %q{Log statements along with their name easily. Mixin a logger everywhere when you need it.}
8
+ gem.summary = %q{Log Buddy is your little development buddy.}
9
+ gem.homepage = %q{http://github.com/relevance/log_buddy}
9
10
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Rob Sanheim"]
12
- s.date = %q{2010-12-06}
13
- s.description = %q{Log statements along with their name easily. Mixin a logger everywhere when you need it.}
14
- s.email = %q{rsanheim@gmail.com}
15
- s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README.markdown"
18
- ]
19
- s.files = [
20
- ".rvmrc",
21
- ".treasure_map.rb",
22
- "CHANGELOG",
23
- "LICENSE",
24
- "README.markdown",
25
- "Rakefile",
26
- "examples.rb",
27
- "init.rb",
28
- "lib/log_buddy.rb",
29
- "lib/log_buddy/mixin.rb",
30
- "lib/log_buddy/utils.rb",
31
- "lib/log_buddy/version.rb",
32
- "log_buddy.gemspec",
33
- "spec/log_buddy/log_buddy_init_spec.rb",
34
- "spec/log_buddy/log_buddy_spec.rb",
35
- "spec/log_buddy/log_spec.rb",
36
- "spec/log_buddy/spec_helper.rb"
37
- ]
38
- s.homepage = %q{http://github.com/relevance/log_buddy}
39
- s.require_paths = ["lib"]
40
- s.rubygems_version = %q{1.3.7}
41
- s.summary = %q{Log Buddy is your little development buddy.}
42
- s.test_files = [
43
- "spec/log_buddy/log_buddy_init_spec.rb",
44
- "spec/log_buddy/log_buddy_spec.rb",
45
- "spec/log_buddy/log_spec.rb",
46
- "spec/log_buddy/spec_helper.rb"
47
- ]
48
-
49
- if s.respond_to? :specification_version then
50
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
51
- s.specification_version = 3
52
-
53
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
54
- s.add_development_dependency(%q<rspec>, ["~> 2.2"])
55
- s.add_development_dependency(%q<mocha>, ["~> 0.9"])
56
- else
57
- s.add_dependency(%q<rspec>, ["~> 2.2"])
58
- s.add_dependency(%q<mocha>, ["~> 0.9"])
59
- end
60
- else
61
- s.add_dependency(%q<rspec>, ["~> 2.2"])
62
- s.add_dependency(%q<mocha>, ["~> 0.9"])
63
- end
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "log_buddy"
15
+ gem.version = LogBuddy::Version::STRING
16
+ gem.add_development_dependency 'rspec', "~> 2.8"
17
+ gem.add_development_dependency 'mocha', "~> 0.9"
18
+ gem.add_development_dependency "rake", "~> 0.9.2"
19
+ gem.add_development_dependency 'bundler', '~> 1.1'
64
20
  end
65
-
@@ -1,11 +1,11 @@
1
1
  require File.expand_path(File.join(File.dirname(__FILE__), *%w[spec_helper]))
2
2
 
3
3
  describe LogBuddy do
4
-
4
+
5
5
  it "has logger" do
6
6
  LogBuddy.should respond_to(:logger)
7
7
  end
8
-
8
+
9
9
  it "has stdout config option" do
10
10
  LogBuddy.should respond_to(:log_to_stdout?)
11
11
  end
@@ -26,6 +26,16 @@ describe LogBuddy do
26
26
  LogBuddy.init :stdout => false
27
27
  LogBuddy.log_to_stdout?.should == true
28
28
  end
29
+
30
+ it "defaults to not using awesome_print for object inspection" do
31
+ LogBuddy.init
32
+ LogBuddy.use_awesome_print?.should == false
33
+ end
34
+
35
+ it "can be configured to use awesome_print for object inspection" do
36
+ LogBuddy.init :use_awesome_print => true
37
+ LogBuddy.use_awesome_print?.should == true
38
+ end
29
39
  end
30
-
31
- end
40
+
41
+ end
@@ -152,6 +152,10 @@ describe LogBuddy::Mixin, " behavior" do
152
152
  def inspect
153
153
  "inspeck yo-self"
154
154
  end
155
+
156
+ def ai
157
+ "awesome_print y0"
158
+ end
155
159
  end
156
160
 
157
161
  it "logs string as-is" do
@@ -171,6 +175,11 @@ describe LogBuddy::Mixin, " behavior" do
171
175
  it "logs all other objects with #inspect" do
172
176
  obj_to_string(Foo.new).should == "inspeck yo-self"
173
177
  end
178
+
179
+ it "logs object using awesome_print" do
180
+ LogBuddy.init :use_awesome_print => true
181
+ obj_to_string(Foo.new).should == "awesome_print y0"
182
+ end
174
183
  end
175
184
 
176
185
  describe "stdout" do
@@ -10,7 +10,7 @@ ensure
10
10
  $VERBOSE = old_verbose
11
11
  end
12
12
 
13
- Rspec.configure do |config|
13
+ RSpec.configure do |config|
14
14
  config.filter_run :focused => true
15
15
  config.run_all_when_everything_filtered = true
16
16
  config.color_enabled = true
metadata CHANGED
@@ -1,63 +1,93 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: log_buddy
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 6
8
- - 0
9
- version: 0.6.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.0
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Rob Sanheim
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2010-12-06 00:00:00 -06:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-04-20 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: rspec
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
18
+ requirements:
26
19
  - - ~>
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 2
30
- - 2
31
- version: "2.2"
20
+ - !ruby/object:Gem::Version
21
+ version: '2.8'
32
22
  type: :development
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '2.8'
30
+ - !ruby/object:Gem::Dependency
35
31
  name: mocha
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '0.9'
38
+ type: :development
36
39
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
38
41
  none: false
39
- requirements:
42
+ requirements:
40
43
  - - ~>
41
- - !ruby/object:Gem::Version
42
- segments:
43
- - 0
44
- - 9
45
- version: "0.9"
44
+ - !ruby/object:Gem::Version
45
+ version: '0.9'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rake
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 0.9.2
46
54
  type: :development
47
- version_requirements: *id002
48
- description: Log statements along with their name easily. Mixin a logger everywhere when you need it.
49
- email: rsanheim@gmail.com
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 0.9.2
62
+ - !ruby/object:Gem::Dependency
63
+ name: bundler
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: '1.1'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: '1.1'
78
+ description: Log statements along with their name easily. Mixin a logger everywhere
79
+ when you need it.
80
+ email:
81
+ - rsanheim@gmail.com
50
82
  executables: []
51
-
52
83
  extensions: []
53
-
54
- extra_rdoc_files:
55
- - LICENSE
56
- - README.markdown
57
- files:
84
+ extra_rdoc_files: []
85
+ files:
86
+ - .gitignore
58
87
  - .rvmrc
59
- - .treasure_map.rb
88
+ - .travis.yml
60
89
  - CHANGELOG
90
+ - Gemfile
61
91
  - LICENSE
62
92
  - README.markdown
63
93
  - Rakefile
@@ -72,39 +102,37 @@ files:
72
102
  - spec/log_buddy/log_buddy_spec.rb
73
103
  - spec/log_buddy/log_spec.rb
74
104
  - spec/log_buddy/spec_helper.rb
75
- has_rdoc: true
76
105
  homepage: http://github.com/relevance/log_buddy
77
106
  licenses: []
78
-
79
107
  post_install_message:
80
108
  rdoc_options: []
81
-
82
- require_paths:
109
+ require_paths:
83
110
  - lib
84
- required_ruby_version: !ruby/object:Gem::Requirement
111
+ required_ruby_version: !ruby/object:Gem::Requirement
85
112
  none: false
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- segments:
113
+ requirements:
114
+ - - ! '>='
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ segments:
90
118
  - 0
91
- version: "0"
92
- required_rubygems_version: !ruby/object:Gem::Requirement
119
+ hash: 1993013800647532161
120
+ required_rubygems_version: !ruby/object:Gem::Requirement
93
121
  none: false
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- segments:
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ segments:
98
127
  - 0
99
- version: "0"
128
+ hash: 1993013800647532161
100
129
  requirements: []
101
-
102
130
  rubyforge_project:
103
- rubygems_version: 1.3.7
131
+ rubygems_version: 1.8.21
104
132
  signing_key:
105
133
  specification_version: 3
106
134
  summary: Log Buddy is your little development buddy.
107
- test_files:
135
+ test_files:
108
136
  - spec/log_buddy/log_buddy_init_spec.rb
109
137
  - spec/log_buddy/log_buddy_spec.rb
110
138
  - spec/log_buddy/log_spec.rb
@@ -1,17 +0,0 @@
1
- map_for(:log_buddy) do |wizard|
2
-
3
- wizard.keep_a_watchful_eye_for 'lib', 'examples'
4
-
5
- wizard.prepare_spell_for %r%examples/(.*)_example\.rb% do |spell_component|
6
- ["examples/#{spell_component[1]}_example.rb"]
7
- end
8
-
9
- wizard.prepare_spell_for %r%examples/example_helper\.rb% do |spell_component|
10
- Dir["examples/**/*_example.rb"]
11
- end
12
-
13
- wizard.prepare_spell_for %r%lib/(.*)\.rb% do |spell_component|
14
- ["examples/#{spell_component[1]}_example.rb"]
15
- end
16
-
17
- end