perf_check 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/perf_check.rb +2 -2
- 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: d095bb79a78a7359752c359b1d2aa7522f5940e3
|
4
|
+
data.tar.gz: dee373ee12cff0dfc9768569631e72b310e30dd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a68878b499d72dedf356b3f4b4d256ce20c4b8d6765eb9061de50361f386922633cdb9f40de20cdebdfdb2284e480031fcffdd0f11ebcf69cef1eeaa81a9baa
|
7
|
+
data.tar.gz: 267b3de573f6fa941ff4dcd2f81d00a31c6cc7459669f87d241674906a670e5de1db8f792c4e958ca4a91eca8c3a3cef92851d6f426d11779bdf063962da4ea7
|
data/lib/perf_check.rb
CHANGED
@@ -13,7 +13,7 @@ class PerfCheck
|
|
13
13
|
attr_reader :app_root, :options, :git, :server, :test_cases
|
14
14
|
attr_accessor :logger
|
15
15
|
|
16
|
-
def initialize(app_root)
|
16
|
+
def initialize(app_root, log: STDERR)
|
17
17
|
@app_root = app_root
|
18
18
|
|
19
19
|
@options = OpenStruct.new(
|
@@ -31,7 +31,7 @@ class PerfCheck
|
|
31
31
|
json: false
|
32
32
|
)
|
33
33
|
|
34
|
-
@logger = Logger.new(
|
34
|
+
@logger = Logger.new(log).tap do |logger|
|
35
35
|
logger.formatter = proc do |severity, datetime, progname, msg|
|
36
36
|
"[#{datetime.strftime("%Y-%m-%d %H:%M:%S")}] #{msg}\n"
|
37
37
|
end
|