rspec-performance 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -40,6 +40,14 @@ module Spec
|
|
40
40
|
create_http_client_response(response)
|
41
41
|
end
|
42
42
|
|
43
|
+
def add_header(key, value)
|
44
|
+
@headers[key] = value
|
45
|
+
end
|
46
|
+
|
47
|
+
def remove_header(key)
|
48
|
+
@headers.delete(key)
|
49
|
+
end
|
50
|
+
|
43
51
|
def recording?
|
44
52
|
@recording
|
45
53
|
end
|
@@ -72,7 +80,7 @@ module Spec
|
|
72
80
|
cookies_to_send = @cookies.values.reject {|cookie| cookie.name == "path" || cookie.name == "domain" }
|
73
81
|
cookies_to_send.map do |cookie|
|
74
82
|
CGI::escape(cookie.name) + "=" + CGI::escape(cookie.value.first)
|
75
|
-
end.join("
|
83
|
+
end.join("; ")
|
76
84
|
end
|
77
85
|
|
78
86
|
def create_http_client_response(net_http_response)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-performance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Remeika
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-02-
|
12
|
+
date: 2010-02-02 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|