yell 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: abc47d23883cfb89cf96caea84d986fb4b6b49a3
4
- data.tar.gz: f4fcf00a19dc75bdacf9da500585471d40244f6f
3
+ metadata.gz: b4ff22c92517f18817d0a13c8a2c81b0123925fa
4
+ data.tar.gz: 06512783ecf5ec68eb5a2b08f5fbd3ac5b9a1560
5
5
  SHA512:
6
- metadata.gz: c64bc86a86f724f37067aa4000ab51b3d603a6c787ff1614242456ac12177c3636a42c58a9d9cfacff897aff9aaf2eb89abbd554aaa92c8fdb340eba52372b89
7
- data.tar.gz: fd06a51a54e049e08a76bbab66e9d3733ea84689ef09b433e52b1a1b3f0417ff8f3755aa0723e581701fe00ec96df038ef71679b1659f40dfb41ba2b810ea90d
6
+ metadata.gz: 0545a4db4c21ed38d5ff6dfbd44912c940a1c6c7557de1a94f3a32b74784dd9928bd672b68a62ce857cae39ff32eb9d62c522c382ffaa8b31cf339775a1621ac
7
+ data.tar.gz: 95b8fe1789110ea95b00599efb056026131fa038410c033f4f88be40d519dc4b96b1215d3e3b030103a0c62c03060b83ffcba7a06d85b12eafdc632ce0a0302e
@@ -6,11 +6,13 @@ rvm:
6
6
  - 1.8.7
7
7
  - 1.9.3
8
8
  - 2.0.0
9
- - 2.1.0
10
- - jruby
11
- - rbx
9
+ - 2.1.1
10
+ - jruby-18mode
11
+ - jruby-19mode
12
+ - rbx-2
12
13
  - ree
13
14
 
14
15
  notifications:
15
16
  email:
16
17
  - me@rudionrails.com
18
+
data/Gemfile CHANGED
@@ -6,10 +6,9 @@ gemspec
6
6
  group :development, :test do
7
7
  gem "rake"
8
8
 
9
- gem 'rspec-core', '>= 2.0'
10
- gem 'rspec-expectations', '>= 2.0'
9
+ gem 'rspec-core', '~> 2'
10
+ gem 'rspec-expectations', '~> 2'
11
11
  gem "rr"
12
- gem 'pry'
13
12
 
14
13
  if RUBY_VERSION < "1.9"
15
14
  gem 'timecop', '0.6.0'
@@ -17,6 +16,8 @@ group :development, :test do
17
16
  else
18
17
  gem 'timecop'
19
18
  gem 'activesupport'
19
+
20
+ gem 'pry'
20
21
  end
21
22
 
22
23
  gem 'simplecov', :require => false, :platform => :ruby_20
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011-2013 Rudolf Schmidt
1
+ Copyright (c) 2011-2014 Rudolf Schmidt
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -215,5 +215,5 @@ You can find further examples and additional adapters in the [wiki](https://gith
215
215
  or have a look into the examples folder.
216
216
 
217
217
 
218
- Copyright &copy; 2011-2013 Rudolf Schmidt, released under the MIT license
218
+ Copyright &copy; 2011-2014 Rudolf Schmidt, released under the MIT license
219
219
 
data/Rakefile CHANGED
@@ -1,6 +1,4 @@
1
- $LOAD_PATH.unshift( 'lib' )
2
- require 'bundler'
3
-
1
+ require 'bundler/gem_tasks'
4
2
 
5
3
  # Run stuff in the examples folder
6
4
  desc "Run examples"
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- # Copyright (c) 2011-2013 Rudolf Schmidt
3
+ # Copyright (c) 2011-2014 Rudolf Schmidt
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining
6
6
  # a copy of this software and associated documentation files (the
@@ -49,14 +49,13 @@ module Yell #:nodoc:
49
49
  attr_reader :name
50
50
 
51
51
 
52
- def initialize( logger, options, *messages, &block )
52
+ def initialize( logger, options, *messages)
53
53
  @time = Time.now
54
54
  @name = logger.name
55
55
 
56
56
  extract!(options)
57
57
 
58
58
  @messages = messages
59
- @messages << block.call unless block.nil?
60
59
 
61
60
  @caller = logger.trace.at?(level) ? caller[caller_index].to_s : ''
62
61
  @file = nil
@@ -6,7 +6,7 @@ module Yell #:nodoc:
6
6
 
7
7
  # The +Yell::Logger+ is your entrypoint. Anything onwards is derived from here.
8
8
  #
9
- # A +Yell::Logger+ instance holds all your adapters and sends the log events
9
+ # A +Yell::Logger+ instance holds all your adapters and sends the log events
10
10
  # to them if applicable. There are multiple ways of how to create a new logger.
11
11
  class Logger
12
12
  include Yell::Helpers::Base
@@ -90,10 +90,12 @@ module Yell #:nodoc:
90
90
  def add( options, *messages, &block )
91
91
  return false unless level.at?(options)
92
92
 
93
+ messages = messages
94
+ messages << block.call unless block.nil?
93
95
  messages = silencer.call(*messages)
94
96
  return false if messages.empty?
95
97
 
96
- event = Yell::Event.new(self, options, *messages, &block)
98
+ event = Yell::Event.new(self, options, *messages)
97
99
  write(event)
98
100
  end
99
101
 
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Yell #:nodoc:
4
- VERSION = "2.0.4"
4
+ VERSION = "2.0.5"
5
5
 
6
6
  end
7
7
 
@@ -7,7 +7,11 @@ require 'rspec/core'
7
7
  require 'rspec/expectations'
8
8
  require 'rr'
9
9
  require 'timecop'
10
- require 'pry'
10
+
11
+ begin
12
+ require 'pry'
13
+ rescue LoadError
14
+ end
11
15
 
12
16
  begin
13
17
  require 'coveralls'
@@ -1,22 +1,23 @@
1
- # -*- encoding: utf-8 -*-
2
- require File.expand_path( '../lib/yell/version', __FILE__ )
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'yell/version'
3
5
 
4
- Gem::Specification.new do |s|
5
- s.name = "yell"
6
- s.version = Yell::VERSION
7
- s.authors = ["Rudolf Schmidt"]
8
- s.license = 'MIT'
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "yell"
8
+ spec.version = Yell::VERSION
9
+ spec.authors = ["Rudolf Schmidt"]
10
+ spec.license = 'MIT'
9
11
 
10
- s.homepage = "http://rudionrails.github.com/yell"
11
- s.summary = %q{Yell - Your Extensible Logging Library}
12
- s.description = %q{Yell - Your Extensible Logging Library. Define multiple adapters, various log level combinations or message formatting options like you've never done before}
12
+ spec.homepage = "http://rudionrailspec.github.com/yell"
13
+ spec.summary = %q{Yell - Your Extensible Logging Library}
14
+ spec.description = %q{Yell - Your Extensible Logging Library. Define multiple adapters, various log level combinations or message formatting options like you've never done before}
13
15
 
14
- s.rubyforge_project = "yell"
16
+ spec.rubyforge_project = "yell"
15
17
 
16
- s.files = `git ls-files`.split($\)
17
- s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
18
- s.test_files = s.files.grep(%r{^(test|spec|features)/})
19
-
20
- s.require_paths = ["lib"]
18
+ spec.files = `git ls-files -z`.split("\x0")
19
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
+ spec.require_paths = ["lib"]
21
22
  end
22
23
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yell
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rudolf Schmidt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-20 00:00:00.000000000 Z
11
+ date: 2014-10-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Yell - Your Extensible Logging Library. Define multiple adapters, various
14
14
  log level combinations or message formatting options like you've never done before
@@ -17,8 +17,8 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - .gitignore
21
- - .travis.yml
20
+ - ".gitignore"
21
+ - ".travis.yml"
22
22
  - Gemfile
23
23
  - LICENSE.txt
24
24
  - README.md
@@ -81,7 +81,7 @@ files:
81
81
  - spec/yell/silencer_spec.rb
82
82
  - spec/yell_spec.rb
83
83
  - yell.gemspec
84
- homepage: http://rudionrails.github.com/yell
84
+ homepage: http://rudionrailspec.github.com/yell
85
85
  licenses:
86
86
  - MIT
87
87
  metadata: {}
@@ -91,17 +91,17 @@ require_paths:
91
91
  - lib
92
92
  required_ruby_version: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - '>='
99
+ - - ">="
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  requirements: []
103
103
  rubyforge_project: yell
104
- rubygems_version: 2.2.1
104
+ rubygems_version: 2.2.2
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: Yell - Your Extensible Logging Library
@@ -128,4 +128,3 @@ test_files:
128
128
  - spec/yell/repository_spec.rb
129
129
  - spec/yell/silencer_spec.rb
130
130
  - spec/yell_spec.rb
131
- has_rdoc: