lines 0.1.21 → 0.1.22
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 +8 -8
- data/CHANGELOG.md +7 -1
- data/lib/lines/version.rb +1 -1
- data/lib/lines.rb +3 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGY1NGIwNzgzMjEwODZjZjA4ZTBhNTZjYTA3YTEzNWYzMTRkYjYyNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWZkYzQxZDk2ZTFkMjYxMzM1OWQyZDI1YTg1ZTc3NTUxYzBjMDZhYQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2I1YTQyMDc5ZThjZjY1NmUzZTQ1NzEzZjE0M2M2MjVhMjNlNTUwMDU3Njk2
|
10
|
+
YmYzYjk5MjE1NjBhMThkMzI1YThkNTVhYzJjNjhjY2MzYTkwMzA0N2EwOTc1
|
11
|
+
NjAwZDUxMDU0ZTgyMDUxNmM5MTc2MjdlZmUzZTAyNTJhZTAwMzY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MGQ0YWU0ZmM5ZWQ4NThhZjRkNWM3N2U4Y2Q3OTc1YmY3M2U0NmE5M2ZlNGIz
|
14
|
+
MmQyYjRlYjc5MTM5ODBiYWRmMjNiYzExMzVlNDYyODA2OTM1NzRmZmRhMzNl
|
15
|
+
MTJkMWFiNzIwMmYyNTYxYzRjMTFhNmJmOTM2YWQ1ODUwNmVmMDM=
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
|
2
|
-
|
2
|
+
0.1.22 / 2013-06-27
|
3
|
+
==================
|
4
|
+
|
5
|
+
* Fixes issue where Syslog is not recognized as an outputter
|
6
|
+
* Fixes issue when Lines.use is given an array of outputters
|
7
|
+
|
8
|
+
0.1.21 / 2013-06-27
|
3
9
|
==================
|
4
10
|
|
5
11
|
* Return self when silencing the Rack::CommonLogger
|
data/lib/lines/version.rb
CHANGED
data/lib/lines.rb
CHANGED
@@ -48,7 +48,7 @@ module Lines
|
|
48
48
|
#
|
49
49
|
# Lines.use(Syslog, $stderr)
|
50
50
|
def use(*outputs)
|
51
|
-
outputters.replace(outputs.map{|o| to_outputter o})
|
51
|
+
outputters.replace(outputs.flatten.map{|o| to_outputter o})
|
52
52
|
end
|
53
53
|
|
54
54
|
# The main function. Used to record objects in the logs as lines.
|
@@ -113,15 +113,8 @@ module Lines
|
|
113
113
|
def to_outputter(out)
|
114
114
|
return out if out.respond_to?(:output)
|
115
115
|
return StreamOutputter.new(out) if out.respond_to?(:write)
|
116
|
-
|
117
|
-
|
118
|
-
when IO
|
119
|
-
StreamOutputter.new(out)
|
120
|
-
when Syslog
|
121
|
-
SyslogOutputter.new
|
122
|
-
else
|
123
|
-
raise ArgumentError, "unknown outputter #{out.inspect}"
|
124
|
-
end
|
116
|
+
return SyslogOutputter.new if out == ::Syslog
|
117
|
+
raise ArgumentError, "unknown outputter #{out.inspect}"
|
125
118
|
end
|
126
119
|
end
|
127
120
|
|