perf_check 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23884a41bf4dfbacdb78a7bdcefca40f04be31d6
4
- data.tar.gz: b681691b4d719917a2bd4457d0515c2724099d7d
3
+ metadata.gz: 6c9de073c9a842393f42b25f300465e7b504be65
4
+ data.tar.gz: 35142b1c5a1476aa487d6f615ade810329381652
5
5
  SHA512:
6
- metadata.gz: c5dcc15c1175d612b3f5b6d1ec23b45ec554b3504701ad5862fe3cda08f51f9ae7280e2a2fdf5efc82be74262fec6aa1b878905b2cde4665c1ad3b989bf23702
7
- data.tar.gz: 45ebdf7dec8ec81257f6d772c5117cdb70d940fa973f86c97478121faa83ca12aed03668ef2efafd5841cee2f7c0083a168e45682026ef28c42082d667b26a72
6
+ metadata.gz: f22cb7a95b11694582a554eb20900230f913a983b8e781f3e3be71fd18ecc9851575e3d06e3498bc7d30e809d451d7360b194caab654ce37e6eda087723c5387
7
+ data.tar.gz: cda3c33ea5c320b9973c8ebc118e21256c261c0b44488baabc5604266999a8dba5dec6645c57cc02fef2b86188aa6e436438f43d36da9be0c5ad8a47164a15cd
@@ -6,6 +6,7 @@ class PerfCheck
6
6
  number_of_requests: 10,
7
7
  reference: 'master',
8
8
  cookie: nil,
9
+ headers: {},
9
10
  http_statuses: [200],
10
11
  verify_responses: false,
11
12
  caching: true,
@@ -27,6 +27,7 @@ class PerfCheck
27
27
 
28
28
  headers = {'Cookie' => "#{cookie}".strip}
29
29
  headers['Accept'] = 'text/html,application/xhtml+xml,application/xml'
30
+ headers.merge!(PerfCheck.config.headers)
30
31
 
31
32
  (options.number_of_requests+1).times do |i|
32
33
  profile = server.profile do |http|
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.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - rubytune