results_keeper 1.0.0 → 1.0.1
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 +5 -5
- data/lib/results_keeper/results_sender.rb +6 -5
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e586ae30b62aafcf7a80977d7599ffdf3f2c4beede1b583a9cb255df0ef54485
|
4
|
+
data.tar.gz: 207825897bb68840963a0f39c961a482056141bfdf9c243eda5589b9c392040b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c72f8c8004fd655aaf8267c417af14d87af24aabeabe56566c4d0e47a99e1a012b741c550789bc4b336a9b1856f9f05163f9eaebe7be1c24a2fccea19f8560a
|
7
|
+
data.tar.gz: 7257c1137e6a8df247f6f42c59363e63db35b48ec0070585507f53c8f7565482f24925cbaf82fd34c8fffe04cc659682db0ed862e05891dae460774c600594b6
|
@@ -4,6 +4,7 @@ require 'rest_client'
|
|
4
4
|
require_relative 'messages'
|
5
5
|
require_relative 'test_data_generator'
|
6
6
|
require_relative 'config'
|
7
|
+
require 'net/http/persistent'
|
7
8
|
|
8
9
|
module RkCucumber
|
9
10
|
class ResultsSender
|
@@ -59,11 +60,11 @@ module RkCucumber
|
|
59
60
|
@body = body.to_json
|
60
61
|
begin
|
61
62
|
uri = URI("#{RkCucumber::Config.config[:report_server_host]}:#{RkCucumber::Config.config[:report_server_port]}#{@path}")
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
63
|
+
http = Net::HTTP::Persistent.new
|
64
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
65
|
+
request = Net::HTTP::Post.new(@path, initheader = {'Content-Type' => 'application/json'})
|
66
|
+
request.body = @body
|
67
|
+
response = http.request(uri, request)
|
67
68
|
RkCucumber::Messages.info_message_to_client(response, message_to_client)
|
68
69
|
JSON.parse(response.body)
|
69
70
|
rescue
|
metadata
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: results_keeper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Kozakov
|
8
|
-
- Volodymyr Zubchynskyi
|
9
8
|
- Ivan Rudyk
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
@@ -41,7 +40,7 @@ dependencies:
|
|
41
40
|
- !ruby/object:Gem::Version
|
42
41
|
version: '0'
|
43
42
|
description: Results Keeper is an application that helps you to track and manage your
|
44
|
-
Cucumber test results using this gem as
|
43
|
+
Cucumber test results using this gem as the client.
|
45
44
|
email: ivankozakov0@gmail.com
|
46
45
|
executables: []
|
47
46
|
extensions: []
|
@@ -73,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
72
|
version: '0'
|
74
73
|
requirements: []
|
75
74
|
rubyforge_project:
|
76
|
-
rubygems_version: 2.
|
75
|
+
rubygems_version: 2.7.8
|
77
76
|
signing_key:
|
78
77
|
specification_version: 4
|
79
78
|
summary: Result Keeper
|