gtfs-reader 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gtfs_reader/log.rb +3 -3
- data/lib/gtfs_reader/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56536b431e5a1d028ffb9befb162a3707f4ae4ae
|
4
|
+
data.tar.gz: 9b570f6da9175aab538e5b425a0950946b18d3fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 278c33c0dc6e256e3c8995a40db2ae7c8bc7d9672f182eed2198da4df14dd756a7e4925da70fe3535a74b850faacc3bd0fcf5bd1dfa0a70b6eee38a591b8db0a
|
7
|
+
data.tar.gz: d1f4ca8f41f9446b96bfed69c38012b8f4b745e389c77f1796bd9a505fa6b607165a75f690a48146058323fa2a86b9c47fbb002d677eccbdecf3c9aac6b353d1
|
data/lib/gtfs_reader/log.rb
CHANGED
@@ -39,7 +39,7 @@ module GtfsReader
|
|
39
39
|
def quiet
|
40
40
|
old_logger = @logger
|
41
41
|
begin
|
42
|
-
@logger =
|
42
|
+
@logger = NoOpLogger.new
|
43
43
|
yield
|
44
44
|
ensure
|
45
45
|
@logger = old_logger
|
@@ -51,7 +51,7 @@ module GtfsReader
|
|
51
51
|
def create_logger
|
52
52
|
Log4r::Logger.new('GtfsReader').tap do |log|
|
53
53
|
out = Log4r::StdoutOutputter.new('log_stdout')
|
54
|
-
out.formatter = PatternFormatter.new pattern: '%d [%l]: %m'
|
54
|
+
out.formatter = Log4r::PatternFormatter.new pattern: '%d [%l]: %m'
|
55
55
|
log.outputters << out
|
56
56
|
log.level = Log4r::INFO
|
57
57
|
log.debug { 'Starting GtfsReader...'.underline.colorize :yellow }
|
@@ -59,7 +59,7 @@ module GtfsReader
|
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
|
-
class
|
62
|
+
class NoOpLogger
|
63
63
|
def method_missing(*args, &block)
|
64
64
|
nil
|
65
65
|
end
|
data/lib/gtfs_reader/version.rb
CHANGED