yell-adapters-syslog 2.0.1 → 2.0.2

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: 88730ce89b2ddb2da08abc68b9df76876f4080a9
4
- data.tar.gz: a47d08ef91a99c79e998f311cf5439a3404ddffe
3
+ metadata.gz: 867ee3a559673084e6ff9b0ef033ccd1758e2755
4
+ data.tar.gz: f966bb2e5ba1279cba03d39bc1013c2262072880
5
5
  SHA512:
6
- metadata.gz: 7ac647e566676fc28b5c606b45f1b2c28dff431d50f35afa645311ec3d98d5e5762ddd35b63ceef08f904a535ee52f87c8a0b892fdaaf8e8aa2e02065795fb3f
7
- data.tar.gz: 04932c0bf3231e6e620c3d831413f9fe557051bd920bfbcbbd50132a81a700b82d5746fecdebe041c9d270ab6e511cd5a0b9e9a62f1ad3f0c9ab44bd064cce85
6
+ metadata.gz: 963517e149d7d9c78dfce8baaf3a61c62f616c912153501a3aa09e93a9ef8038644c29f31969cb8b5e95073e4ef8b63023e5b29684f944545eb0bde338ddbaf8
7
+ data.tar.gz: 4d30ae9df37c69554ceb751fd0ae28e8aa9e9bff3225df0d5062bb892059688558eed9e6510068e3669ecbbd90025014dfdeb0aa2425495368024b432d5a9db5
@@ -1,22 +1,18 @@
1
1
  language: ruby
2
2
 
3
- script: "rake"
3
+ script: "rspec"
4
4
 
5
5
  rvm:
6
6
  - 1.8.7
7
- - 1.9.2
8
7
  - 1.9.3
8
+ - 2.0.0
9
+ - 2.1.1
9
10
  - jruby-18mode
10
11
  - jruby-19mode
11
- - rbx-18mode
12
- - rbx-19mode
12
+ - rbx-2
13
13
  - ree
14
14
 
15
- branch:
16
- only:
17
- - master
18
- - /^v[\d\.]+$/
19
-
20
15
  notifications:
21
16
  email:
22
17
  - me@rudionrails.com
18
+
data/Gemfile CHANGED
@@ -6,7 +6,8 @@ gemspec
6
6
  group :development, :test do
7
7
  gem "rake"
8
8
 
9
- gem "rspec"
9
+ gem "rspec-core", "~> 2"
10
+ gem "rspec-expectations", "~> 2"
10
11
  gem "rr"
11
12
  end
12
13
 
data/Rakefile CHANGED
@@ -1,22 +1 @@
1
- $:.unshift( 'lib' )
2
-
3
- require 'bundler'
4
- Bundler::GemHelper.install_tasks
5
-
6
- # === RSpec
7
- begin
8
- require 'rspec/core/rake_task'
9
-
10
- desc "Run specs"
11
- RSpec::Core::RakeTask.new do |t|
12
- t.rspec_opts = %w(--color --format progress --order random)
13
- t.ruby_opts = %w(-w)
14
- end
15
- rescue LoadError
16
- task :spec do
17
- abort "`gem install rspec` in order to run tests"
18
- end
19
- end
20
-
21
- task :default => :spec
22
-
1
+ require "bundler/gem_tasks"
@@ -50,9 +50,9 @@ module Yell #:nodoc:
50
50
  }
51
51
 
52
52
  setup do |options|
53
- self.ident = options[:ident] || $0
54
- self.options = options[:options] || [:pid, :cons]
55
- self.facility = options[:facility]
53
+ self.ident = Yell.__fetch__(options, :ident, :default => $0)
54
+ self.options = Yell.__fetch__(options, :options, :default => [:pid, :cons])
55
+ self.facility = Yell.__fetch__(options, :facility)
56
56
  end
57
57
 
58
58
  write do |event|
@@ -86,7 +86,7 @@ module Yell #:nodoc:
86
86
  @ident
87
87
  else
88
88
  # deprecate, but should still work
89
- Yell._deprecate( "0.6.0", "Use :ident= for setting the Syslog ident" )
89
+ Yell.__deprecate__( "0.6.0", "Use :ident= for setting the Syslog ident" )
90
90
 
91
91
  self.ident = val
92
92
  end
@@ -114,7 +114,7 @@ module Yell #:nodoc:
114
114
  @options
115
115
  else
116
116
  # deprecate, but should still work
117
- Yell._deprecate( "0.6.0", "Use :options= for setting the Syslog options" )
117
+ Yell.__deprecate__( "0.6.0", "Use :options= for setting the Syslog options" )
118
118
 
119
119
  self.options = values
120
120
  end
@@ -143,7 +143,7 @@ module Yell #:nodoc:
143
143
  @facility
144
144
  else
145
145
  # deprecate, but should still work
146
- Yell._deprecate( "0.6.0", "Use :facility= for setting the Syslog facility" )
146
+ Yell.__deprecate__( "0.6.0", "Use :facility= for setting the Syslog facility" )
147
147
 
148
148
  self.facility = values
149
149
  end
@@ -159,7 +159,7 @@ module Yell #:nodoc:
159
159
  def _new_stream
160
160
  return ::Syslog if ::Syslog.opened?
161
161
 
162
- ::Syslog.open( @ident, @options, @facility )
162
+ ::Syslog.open(@ident, @options, @facility)
163
163
  end
164
164
 
165
165
  # Borrowed from [SyslogLogger](https://github.com/seattlerb/sysloglogger)
@@ -3,7 +3,8 @@ $:.unshift File.expand_path('../../lib', __FILE__)
3
3
 
4
4
  require 'yell-adapters-syslog'
5
5
 
6
- require 'rspec'
6
+ require 'rspec/core'
7
+ require 'rspec/expectations'
7
8
  require 'rr'
8
9
 
9
10
  RSpec.configure do |config|
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "yell-adapters-syslog"
5
- s.version = "2.0.1"
5
+ s.version = "2.0.2"
6
6
 
7
7
  s.authors = ["Rudolf Schmidt"]
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yell-adapters-syslog
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rudolf Schmidt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-02 00:00:00.000000000 Z
11
+ date: 2014-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yell
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  version: '0'
61
61
  requirements: []
62
62
  rubyforge_project: yell
63
- rubygems_version: 2.0.6
63
+ rubygems_version: 2.2.2
64
64
  signing_key:
65
65
  specification_version: 4
66
66
  summary: Yell - Your Extensible Logging Library