has_active_logger 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ N2ZhNTBiZDliOTE2NmYwNjFkNTVmZGE5NDk5MmI3ZGZjZTM3MTA5Yg==
5
+ data.tar.gz: !binary |-
6
+ NTgwMjMxZGRmYWZlN2Y0ZWVjYzE1NjBhMWZhYzZmYmI0NjU4MzY2NA==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ YWYyZjJlMTI0ZGNhNGUyZjE5MGFlZDExMDg5ZWQxMmRjNzExMmZiNWVlMDAx
10
+ ZDE1MDc4Y2JhYWViYjZjMmJhNWMxYzQ0YjMzZDFkNjNkMGEwYWRjM2QxOWZk
11
+ MTE4NWI1MmMxZDMwMjYyYzE1NjVkNGVkY2IxMDRlMWVjN2MyYTI=
12
+ data.tar.gz: !binary |-
13
+ NzkwY2IxNDNkNGJhZWQzMWNmNWUzMzQwYjAyZTNmZWQ1NTZjMjMwOGYxNTZm
14
+ MTdhYzYwMDE3MjQ1NzEwYWRmZjgyOWNkOGRhOGYwNDgzYWFhODUzZDFhNDAx
15
+ ODU2NzJhMzllN2JlNWVkY2JjYWEyMjNjMTI0YjM1ZTBkNjE0Njk=
@@ -8,18 +8,13 @@ module HasActiveLogger
8
8
  module Mixin
9
9
  extend ActiveSupport::Concern
10
10
 
11
- silence_warnings do
12
- Yell::Formatter::PatternRegexp = /([^%]*)(%\d*)?(#{Yell::Formatter::PatternTable.keys.join('|')})?(.*)/m
13
- end
14
-
15
11
  included do
16
12
  class << self
17
13
  def logger
18
14
  @logger ||= Yell.new do |l|
19
15
  l.adapter :datefile, log_file,
20
16
  level: (:debug..:fatal),
21
- format: Yell.format( "%d [%5L] #%M at %F:%n\n%m\n\n", "%H:%M:%S" ),
22
- date_pattern: "%Y-week-%V",
17
+ format: Yell.format( "%d [%L] #%M at %F:%n\n%m\n\n", "%H:%M:%S" ),
23
18
  symlink_original_filename: true,
24
19
  keep: 4
25
20
  end
@@ -1,3 +1,3 @@
1
1
  module HasActiveLogger
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -4,7 +4,7 @@ module HasActiveLogger
4
4
  describe HasActiveLogger::Mixin do
5
5
  include HasActiveLogger::Mixin
6
6
 
7
- before { self.class.stub!(:rails_log_path).and_return('./log') }
7
+ before { self.class.stub(:rails_log_path).and_return('./log') }
8
8
 
9
9
  describe '#logger' do
10
10
  it { logger.should be_kind_of(Yell::Logger) }
@@ -30,7 +30,7 @@ module HasActiveLogger
30
30
  end
31
31
 
32
32
  context 'when some object' do
33
- let(:message) { mock }
33
+ let(:message) { double }
34
34
  it 'should inspect object' do
35
35
  message.should_receive(:inspect)
36
36
  format_message(message)
metadata CHANGED
@@ -1,52 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_active_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Droidlabs
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-20 00:00:00.000000000 Z
11
+ date: 2013-12-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: yell
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: 1.3.0
19
+ version: 2.0.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: 1.3.0
26
+ version: 2.0.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: json
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - ! '>='
36
32
  - !ruby/object:Gem::Version
37
- version: 1.7.7
33
+ version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - ! '>='
44
39
  - !ruby/object:Gem::Version
45
- version: 1.7.7
40
+ version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: activesupport
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rspec
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ! '>='
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ! '>='
76
67
  - !ruby/object:Gem::Version
@@ -92,27 +83,26 @@ files:
92
83
  homepage:
93
84
  licenses:
94
85
  - MIT
86
+ metadata: {}
95
87
  post_install_message:
96
88
  rdoc_options: []
97
89
  require_paths:
98
90
  - lib
99
91
  required_ruby_version: !ruby/object:Gem::Requirement
100
- none: false
101
92
  requirements:
102
93
  - - ! '>='
103
94
  - !ruby/object:Gem::Version
104
95
  version: '0'
105
96
  required_rubygems_version: !ruby/object:Gem::Requirement
106
- none: false
107
97
  requirements:
108
98
  - - ! '>='
109
99
  - !ruby/object:Gem::Version
110
100
  version: '0'
111
101
  requirements: []
112
102
  rubyforge_project:
113
- rubygems_version: 1.8.23
103
+ rubygems_version: 2.0.5
114
104
  signing_key:
115
- specification_version: 3
105
+ specification_version: 4
116
106
  summary: HasActiveLogger
117
107
  test_files:
118
108
  - spec/has_active_logger/mixin_spec.rb