perf_check 0.1.0 → 0.1.1

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/test_case.rb +2 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 206189556ad2cf4715e244faceaf080d9b919006
4
- data.tar.gz: ccac24e750e16f5096e050b335e0f4dbb9c75a41
3
+ metadata.gz: 2d34aaf3aa40817cfe8ac6f6e00357da051c6855
4
+ data.tar.gz: 158f5996b44d75d5999909952715068f1f5f3984
5
5
  SHA512:
6
- metadata.gz: 57a0025e7c8ee476620b4a4c3f748e79b9cd86c6adb56aad5baed6bed6dcf49001ebd92ca3643d703db1f6082af480c988832380d0593cca71b43bf7982687a1
7
- data.tar.gz: 19a85872206132dea420c82f20599619c8f36d6c01f4a2b3155afa92d612c458fcbc17daa72e7a3f026b8976a48838734d729c4f96af26db76a9bb38adaebc97
6
+ metadata.gz: ff7b9258d900af3f851ffa546b05851b49995861e31c3e866d82c47141ba21a54a694bf08d2da8bebd615fddcf601d710521d44aee1e10baa811c3b0d3ca98b0
7
+ data.tar.gz: edd58cb96e37aa5dfbb1dd3125d737f42a04f0db52d52e0880289131dd0e4a347ee68eb91fba25a3f9622e485880e0760a959080195b1015890551ba6f7f7dcf
@@ -35,14 +35,13 @@ class PerfCheck
35
35
  end
36
36
 
37
37
  unless options.http_statuses.include? profile.response_code
38
- File.open("public/perf_check_failed_request.html", 'w') do |error_dump|
38
+ File.open("tmp/perf_check/failed_request.html", 'w') do |error_dump|
39
39
  error_dump.write(profile.response_body)
40
40
  end
41
41
  error = sprintf("\t%2i:\tFAILED! (HTTP %d)", i, profile.response_code)
42
42
  puts(error.red.bold)
43
43
  puts("\t The server responded with a non-2xx status for this request.")
44
- print("\t The response has been written to public")
45
- puts("/perf_check_failed_request.html".blue)
44
+ puts("\t The response has been written to tmp/perf_check/failed_request.html")
46
45
  exit(1)
47
46
  end
48
47
 
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - rubytune