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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/perf_check.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91e2d21b9cdd0bc7563541f3ba663b3d0b3c2aec
4
- data.tar.gz: 58e23ccccd65260a6f13b65408dd1a0eb2764f1c
3
+ metadata.gz: d095bb79a78a7359752c359b1d2aa7522f5940e3
4
+ data.tar.gz: dee373ee12cff0dfc9768569631e72b310e30dd3
5
5
  SHA512:
6
- metadata.gz: 5583890d0bf9d29d83c84d289738a2b3875d08560b1c40482935a91d32c67d634a11b7c831059288e8f35e924abd25847e29ffd9941aff86af3fd6b4273d2eac
7
- data.tar.gz: 97ef4e0ec1d45adaf2934cf21fb3be117ad6763d5d3df0357216d621190dff0e1b3bc395c740838f821e860b8402f74ac09f0299150bcc9f98e2b8d74b94d4b4
6
+ metadata.gz: 5a68878b499d72dedf356b3f4b4d256ce20c4b8d6765eb9061de50361f386922633cdb9f40de20cdebdfdb2284e480031fcffdd0f11ebcf69cef1eeaa81a9baa
7
+ data.tar.gz: 267b3de573f6fa941ff4dcd2f81d00a31c6cc7459669f87d241674906a670e5de1db8f792c4e958ca4a91eca8c3a3cef92851d6f426d11779bdf063962da4ea7
@@ -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(STDERR).tap do |logger|
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perf_check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - rubytune