benchtool 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,9 +5,11 @@ module BenchTool
5
5
  @params = params
6
6
  @options = options
7
7
  # Sample curl status cmd
8
- # curl -IL --cookies '#{cookies}' --header '#{header}' "#{url}"
8
+ # Flag --insecure allows use of self-signed certs
9
+ # curl -siL --insecure --cookies '#{cookies}' --header '#{header}' "#{url}"
9
10
  @parts = {
10
11
  :base => "curl -siL ",
12
+ :insecure => "--insecure ",
11
13
  :cookies => "--cookie '%s' ",
12
14
  :header => "--header '%s' ",
13
15
  :url => "'%s'",
@@ -17,6 +19,7 @@ module BenchTool
17
19
  def to_str
18
20
  cmd = ""
19
21
  cmd << @parts[:base]
22
+ cmd << @parts[:insecure]
20
23
  cmd << @parts[:cookies] % @params[:cookies]
21
24
  unless @params[:headers].empty?
22
25
  @params[:headers].each do |header|
@@ -1,3 +1,3 @@
1
1
  module BenchTool
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benchtool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-24 00:00:00.000000000 Z
12
+ date: 2013-02-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: highline