logcast 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/logcast/broadcaster.rb +5 -8
  3. metadata +10 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a2746d63df4476b6f08089cf47a2b193d918e3f
4
- data.tar.gz: 037c4086009af9af2b19e21a2399c19604796092
3
+ metadata.gz: 21dc3c5e63bbb5bb1adab5da4f69a140004372b0
4
+ data.tar.gz: 356c0e385de67bbf6c9b8ae64ba78ec81db4d44d
5
5
  SHA512:
6
- metadata.gz: 9339100d94dfcfcde1def919451347738600e59c0bf13dca1dc40f2e517607ea81e0b8f25c7b403ae5953c764cbe8c9749391a0599b1e9eb7dcce455d950a15b
7
- data.tar.gz: 36adc5cb7164f46b369f780a2785121868dd17ffe024107c63a706b2de0d2d32065ba24662f09ca688dd9e0b10fc9e2471b408f2628ed7f3f1aeb8b6b33c4c99
6
+ metadata.gz: b1ccc36d1563e0a2e22007aeec0008576f74aace97a016da8062d901bfd5eb93e51332e032b6c1b85b98a85acfb896cffce7286d8fd206a25c01eea93527de28
7
+ data.tar.gz: 0b4798fb32ace0ea39f9e43ebb3e823e751c8624add5fc5e70af74f0f19bb2c0641b4f2cdffdc67f1bfe9ccc2343f0e784011b6ea0cb72e32aeab5f04417571b
@@ -34,15 +34,12 @@ class Logcast::Broadcaster
34
34
  end
35
35
 
36
36
  def method_missing(name, *args, &block)
37
- responded = false
38
-
39
- subscribers.each do |subscriber|
40
- if subscriber.respond_to?(name)
41
- responded = subscriber.send(name, *args, &block)
42
- end
37
+ responding = subscribers.select { |s| s.respond_to?(name) }
38
+ if responding.any?
39
+ responding.map { |s| s.send(name, *args, &block) }.last
40
+ else
41
+ super
43
42
  end
44
-
45
- responded || super
46
43
  end
47
44
 
48
45
  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.3
4
+ version: 1.0.4
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-02-07 00:00:00.000000000 Z
12
+ date: 2014-02-10 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
50
49
  - lib/logcast/broadcaster.rb
51
50
  - 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.2.0.rc.1
72
+ rubygems_version: 2.1.11
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Log Broadcaster