yell 2.0.7 → 2.1.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c64ac6a01262ce703c70c306d55f565592b6b6e3
4
- data.tar.gz: 0110f23e03b39c39d13cbf196738d00bf2ac09ad
3
+ metadata.gz: 8d40afe567ba6017ff9066bfa7c1f0d6bf360210
4
+ data.tar.gz: eccc69b5430f2e7ed6bc9f3755fb0f512d509330
5
5
  SHA512:
6
- metadata.gz: 21d0534e86efc9c1b136f8745edffa76b5b89e9883c13405075692bd982b7c5119ad4fa39fd7f46fff462d0ca6e7204a49a562e8ffd6d5f54d1af661f4d7d887
7
- data.tar.gz: b1b3927d90714d0b5e91fe7cbbbd71aff6e4c6d45478674f9f0175ceb28ce5c3ef832c27da80c84edb9c191343e080644572c2650974f2c1971eff9d49ced466
6
+ metadata.gz: 90134937f6118f9a1cd76ad62f133d1abfd7e3dce88a21fbe0d1564c22da753c8ccdb5d578fd8256af5008dea4ff68be5eed88c1b4397256437fc9c0e91130be
7
+ data.tar.gz: cdc15512a859b592eadf30ac9ef935eedb0a716e499c52d6e5c2bfa00b8897cb49fb3dd5f9a00392f5c48c76515b35df3be6b6a02bb3c76ee66952b34af03554
data/.gitignore CHANGED
@@ -4,10 +4,13 @@ pkg/*
4
4
  .idea
5
5
 
6
6
  # bundler
7
- Gemfile.lock
7
+ Gemfile.*lock
8
8
 
9
9
  # vim
10
10
  *.swp
11
11
 
12
12
  # coverage
13
13
  /coverage
14
+
15
+ # rspec
16
+ /spec/examples/txt
@@ -0,0 +1 @@
1
+ 2.3.1
@@ -1,12 +1,24 @@
1
- sudo: false
2
1
  language: ruby
2
+ before_install: gem install bundler
3
+ script: "bundle exec rspec"
3
4
 
4
- script: "rspec"
5
+ matrix:
6
+ include:
7
+ - rvm: ruby-head
8
+ - rvm: 2.3.1
9
+ - rvm: 2.2.5
5
10
 
6
- rvm:
7
- - ruby-head
8
- - 2.3.1
9
- - 2.2.5
11
+ - rvm: 2.2.2
12
+ gemfile: Gemfile.lte-2.2.2
13
+ - rvm: 2.1.0
14
+ gemfile: Gemfile.lte-2.2.2
15
+ - rvm: 2.0.0
16
+ gemfile: Gemfile.lte-2.2.2
17
+
18
+ - rvm: jruby-head
19
+ - rvm: jruby-9.1.12.0
20
+ - rvm: jruby-9.0.0.0
21
+ gemfile: Gemfile.lte-2.2.2
10
22
 
11
23
  notifications:
12
24
  on_success: change
data/Gemfile CHANGED
@@ -11,17 +11,12 @@ group :development, :test do
11
11
  gem 'rspec-mocks'
12
12
  gem 'rspec-its'
13
13
 
14
- if RUBY_VERSION < "1.9"
15
- gem 'timecop', '0.6.0'
16
- gem 'activesupport', '~> 3'
17
- else
18
- gem 'timecop'
19
- gem 'activesupport'
14
+ gem 'timecop'
15
+ gem 'byebug', platform: :mri
20
16
 
21
- gem 'byebug'
22
- end
17
+ gem 'activesupport', '~> 5'
23
18
 
24
- gem 'simplecov', :require => false, :platform => :ruby_20
25
- gem 'coveralls', :require => false, :platform => :ruby_20
19
+ gem 'simplecov', require: false
20
+ gem 'coveralls', require: false
26
21
  end
27
22
 
@@ -0,0 +1,17 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in yell.gemspec
4
+ gemspec
5
+
6
+ group :development, :test do
7
+ gem 'rake'
8
+
9
+ gem 'rspec-core', '~> 3'
10
+ gem 'rspec-expectations'
11
+ gem 'rspec-mocks'
12
+ gem 'rspec-its'
13
+
14
+ gem 'timecop', '~> 0.8'
15
+
16
+ gem 'activesupport', '~> 3'
17
+ end
@@ -0,0 +1,17 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in yell.gemspec
4
+ gemspec
5
+
6
+ group :development, :test do
7
+ gem "rake"
8
+
9
+ gem 'rspec-core', '~> 3'
10
+ gem 'rspec-expectations'
11
+ gem 'rspec-mocks'
12
+ gem 'rspec-its'
13
+
14
+ gem 'timecop', '~> 0.8'
15
+
16
+ gem 'activesupport', '~> 4'
17
+ end
data/README.md CHANGED
@@ -1,9 +1,12 @@
1
- # Yell [![Gem Version](https://badge.fury.io/rb/yell.png)](http://badge.fury.io/rb/yell) [![Build Status](https://travis-ci.org/rudionrails/yell.png?branch=master)](https://travis-ci.org/rudionrails/yell) [![Code Climate](https://codeclimate.com/github/rudionrails/yell.png)](https://codeclimate.com/github/rudionrails/yell) [![Coverage Status](https://coveralls.io/repos/rudionrails/yell/badge.png?branch=master)](https://coveralls.io/r/rudionrails/yell)
1
+ # Yell [![Gem Version](https://badge.fury.io/rb/yell.svg)](http://badge.fury.io/rb/yell) [![Build Status](https://travis-ci.org/rudionrails/yell.svg?branch=master)](https://travis-ci.org/rudionrails/yell) [![Code Climate](https://codeclimate.com/github/rudionrails/yell.svg)](https://codeclimate.com/github/rudionrails/yell) [![Coverage Status](https://coveralls.io/repos/rudionrails/yell/badge.svg?branch=master)](https://coveralls.io/r/rudionrails/yell)
2
2
 
3
3
 
4
4
  **Yell - Your Extensible Logging Library** is a comprehensive logging replacement for Ruby.
5
5
 
6
- Yell works and is tested with ruby 1.8.7, 1.9.x, 2.0.0, jruby 1.8 and 1.9 mode, rubinius 1.8 and 1.9 as well as ree.
6
+ Yell works and its test suite currently runs on:
7
+
8
+ - ruby-head, 2.3.1, 2.2.5, 2.2.2, 2.1.0, 2.0.0
9
+ - jruby-head, jruby-9.1.0.0, jruby-9.0.0.0
7
10
 
8
11
  If you want to conveniently use Yell with Rails, then head over to [yell-rails](https://github.com/rudionrails/yell-rails). You'll find all the documentation in this repository, though.
9
12
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  # Copyright (c) 2011-2014 Rudolf Schmidt
4
2
  #
5
3
  # Permission is hereby granted, free of charge, to any person obtaining
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  module Yell #:nodoc:
3
2
  # AdapterNotFound is raised whenever you want to instantiate an
4
3
  # adapter that does not exist.
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'monitor'
4
2
 
5
3
  module Yell #:nodoc:
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  module Yell #:nodoc:
4
2
  module Adapters #:nodoc:
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  module Yell #:nodoc:
4
2
  module Adapters #:nodoc:
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  module Yell #:nodoc:
4
2
  module Adapters #:nodoc:
5
3
  class Io < Yell::Adapters::Base
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  module Yell #:nodoc:
4
2
  module Adapters #:nodoc:
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'erb'
4
2
  require 'yaml'
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'time'
4
2
  require 'socket'
5
3
 
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  require 'time'
3
2
 
4
3
  # TODO: Register custom formats
@@ -164,7 +163,7 @@ module Yell #:nodoc:
164
163
  when false then Yell::NoFormat
165
164
  when nil then Yell::DefaultFormat
166
165
  else pattern
167
- end
166
+ end.dup
168
167
 
169
168
  @pattern << "\n" unless @pattern[-1] == ?\n # add newline if not present
170
169
  @date_pattern = date_pattern || :iso8601
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  module Yell #:nodoc:
3
2
  module Helpers #:nodoc:
4
3
  module Adapter #:nodoc:
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  module Yell #:nodoc:
3
2
  module Helpers #:nodoc:
4
3
  module Base #:nodoc:
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  module Yell #:nodoc:
3
2
  module Helpers #:nodoc:
4
3
  module Formatter #:nodoc:
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  module Yell #:nodoc:
3
2
  module Helpers #:nodoc:
4
3
  module Level
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  module Yell #:nodoc:
3
2
  module Helpers #:nodoc:
4
3
  module Silencer
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  module Yell #:nodoc:
3
2
  module Helpers #:nodoc:
4
3
  module Tracer #:nodoc:
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  module Yell #:nodoc:
4
2
 
5
3
  # The +Level+ class handles the severities for you in order to determine
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  module Yell #:nodoc:
4
2
  # Include this module to add a logger to any class.
5
3
  #
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  require 'pathname'
3
2
 
4
3
  module Yell #:nodoc:
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'monitor'
4
2
  require "singleton"
5
3
 
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  module Yell #:nodoc:
3
2
 
4
3
  # The +Yell::Silencer+ is your handly helper for stiping out unwanted log messages.
@@ -1,6 +1,4 @@
1
- # encoding: utf-8
2
-
3
1
  module Yell #:nodoc:
4
- VERSION = "2.0.7"
2
+ VERSION = "2.1.0"
5
3
  end
6
4
 
@@ -8,7 +8,12 @@ require 'rspec/expectations'
8
8
  require 'rspec/mocks'
9
9
  require 'rspec/its'
10
10
  require 'timecop'
11
- require 'byebug'
11
+
12
+ begin
13
+ require 'byebug'
14
+ rescue LoadError
15
+ # do nothing
16
+ end
12
17
 
13
18
  begin
14
19
  require 'coveralls'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe Yell::Formatter do
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.7
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rudolf Schmidt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-23 00:00:00.000000000 Z
11
+ date: 2019-03-18 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
@@ -18,8 +18,11 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - ".gitignore"
21
+ - ".ruby-version"
21
22
  - ".travis.yml"
22
23
  - Gemfile
24
+ - Gemfile.lte-1.9.3
25
+ - Gemfile.lte-2.2.2
23
26
  - LICENSE.txt
24
27
  - README.md
25
28
  - Rakefile
@@ -101,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
104
  version: '0'
102
105
  requirements: []
103
106
  rubyforge_project: yell
104
- rubygems_version: 2.5.1
107
+ rubygems_version: 2.6.11
105
108
  signing_key:
106
109
  specification_version: 4
107
110
  summary: Yell - Your Extensible Logging Library