webtester 0.1.4 → 0.1.5
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.
- checksums.yaml +4 -4
- data/lib/request.rb +6 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf6faf955f1451e07f5d62724ace1b34fd73baea
|
4
|
+
data.tar.gz: df3c5041f8472b86f22567907624a6530b6073de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f732293723ba4e6e035e55f70ef8d44341142deabc4037fb7aeb19736631b756d766cf909adb36b072b1ee722bba7322251705bf6598bcc9fa0638daf371fb5
|
7
|
+
data.tar.gz: 436d72524e26980bb4d5f43bd62388c0f49be1926532ca8b9f02a64040c65bac7195b6983eb00494dccdc7db99707177dd2adc5aa13b3ce587c0402b42da2003
|
data/lib/request.rb
CHANGED
@@ -81,7 +81,12 @@ module WT
|
|
81
81
|
|
82
82
|
begin
|
83
83
|
req['Cookie'] = @headers['Cookie'].to_s if @headers['Cookie']
|
84
|
-
|
84
|
+
|
85
|
+
if @request_data.is_a?(String)
|
86
|
+
req.body = @request_data
|
87
|
+
else
|
88
|
+
req.body = URI.encode_www_form @request_data if @request_data.length > 0
|
89
|
+
end
|
85
90
|
|
86
91
|
http = nil
|
87
92
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webtester
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Diego F. Nascimento
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: " A simple API to create HTTP Request tests. "
|
14
14
|
email: diego.fnascimento@gmail.com
|
@@ -45,7 +45,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
45
45
|
version: '0'
|
46
46
|
requirements: []
|
47
47
|
rubyforge_project:
|
48
|
-
rubygems_version: 2.4.5
|
48
|
+
rubygems_version: 2.4.5.1
|
49
49
|
signing_key:
|
50
50
|
specification_version: 4
|
51
51
|
summary: Web Application Request Tester
|