logcast 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logcast/broadcaster.rb +7 -3
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a2746d63df4476b6f08089cf47a2b193d918e3f
|
4
|
+
data.tar.gz: 037c4086009af9af2b19e21a2399c19604796092
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9339100d94dfcfcde1def919451347738600e59c0bf13dca1dc40f2e517607ea81e0b8f25c7b403ae5953c764cbe8c9749391a0599b1e9eb7dcce455d950a15b
|
7
|
+
data.tar.gz: 36adc5cb7164f46b369f780a2785121868dd17ffe024107c63a706b2de0d2d32065ba24662f09ca688dd9e0b10fc9e2471b408f2628ed7f3f1aeb8b6b33c4c99
|
data/lib/logcast/broadcaster.rb
CHANGED
@@ -8,6 +8,11 @@ class Logcast::Broadcaster
|
|
8
8
|
subscriber.instance_variable_set(:@logcast_original_subscriber, original_subscriber)
|
9
9
|
end
|
10
10
|
|
11
|
+
# Apply existing level to the new subscriber.
|
12
|
+
if subscribers.any?
|
13
|
+
subscriber.level = subscribers.first.level
|
14
|
+
end
|
15
|
+
|
11
16
|
if block
|
12
17
|
if already_subscribed?(subscriber)
|
13
18
|
yield
|
@@ -33,12 +38,11 @@ class Logcast::Broadcaster
|
|
33
38
|
|
34
39
|
subscribers.each do |subscriber|
|
35
40
|
if subscriber.respond_to?(name)
|
36
|
-
responded =
|
37
|
-
subscriber.send(name, *args, &block)
|
41
|
+
responded = subscriber.send(name, *args, &block)
|
38
42
|
end
|
39
43
|
end
|
40
44
|
|
41
|
-
|
45
|
+
responded || super
|
42
46
|
end
|
43
47
|
|
44
48
|
private
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logcast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Davidovitz
|
@@ -9,34 +9,34 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-02-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '0'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: activesupport
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
description: Broadcasts logs, including support for Rails version 2.3 through 3.2.
|
@@ -46,9 +46,9 @@ executables: []
|
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
|
+
- lib/logcast.rb
|
49
50
|
- lib/logcast/broadcaster.rb
|
50
51
|
- lib/logcast/rails.rb
|
51
|
-
- lib/logcast.rb
|
52
52
|
homepage: http://developer.zendesk.com
|
53
53
|
licenses:
|
54
54
|
- Apache License Version 2.0
|
@@ -59,17 +59,17 @@ require_paths:
|
|
59
59
|
- lib
|
60
60
|
required_ruby_version: !ruby/object:Gem::Requirement
|
61
61
|
requirements:
|
62
|
-
- -
|
62
|
+
- - ">="
|
63
63
|
- !ruby/object:Gem::Version
|
64
64
|
version: 1.8.7
|
65
65
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: 1.3.6
|
70
70
|
requirements: []
|
71
71
|
rubyforge_project:
|
72
|
-
rubygems_version: 2.0.
|
72
|
+
rubygems_version: 2.2.0.rc.1
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Log Broadcaster
|