cukehub 0.9.3.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cukehub.rb +4 -4
- 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: fff7d9b695fdc21e3c866b5c66f14db291af180e
|
4
|
+
data.tar.gz: 0920a2f6f5989c3ede2a326cff591e2f6be31967
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8de1895dfad57738ad5e33334c59af6dc82177453e56e295b23dfa32578d44078e3116f5cdb15f50e20fc47f76bda06fba79b0aee16d648e50e642df12f16289
|
7
|
+
data.tar.gz: a0c891efc4c845e44f59246658409e4e93a0fdf9b74f96256b50609f759c69f4fac0dad72a0f539199d79726d2942595fda28867dd3b4210323d0bf0cef75fda
|
data/lib/cukehub.rb
CHANGED
@@ -10,7 +10,7 @@ elsif OS.doze?
|
|
10
10
|
end
|
11
11
|
|
12
12
|
Before do
|
13
|
-
|
13
|
+
@start = Time.now
|
14
14
|
end
|
15
15
|
|
16
16
|
After do |scenario|
|
@@ -18,8 +18,8 @@ After do |scenario|
|
|
18
18
|
@steps = scenario.test_steps.map{|step| step.name if !ignored_lines.include?(step.name) }.compact.join("\n")
|
19
19
|
IO.popen("git symbolic-ref --short HEAD") {|pipe| @git_branch = pipe.read }
|
20
20
|
IO.popen("git rev-parse --verify HEAD") {|pipe| @git_sha = pipe.read }
|
21
|
+
headers = { "Authorization" => "Token token=\"#{@cukehub_api_key}\""}
|
21
22
|
params = {
|
22
|
-
api_key: @cukehub_api_key,
|
23
23
|
name: scenario.name,
|
24
24
|
location: scenario.location,
|
25
25
|
tag: scenario.source_tag_names,
|
@@ -35,5 +35,5 @@ After do |scenario|
|
|
35
35
|
params[:browser] = @browser.browser.upcase unless @browser.nil?
|
36
36
|
params[:exception]=scenario.exception.backtrace.compact.join("\n") unless scenario.passed?
|
37
37
|
|
38
|
-
HTTParty.post("https://cukehub.com/api/v1/results", body: params, :
|
39
|
-
end
|
38
|
+
HTTParty.post("https://cukehub.com/api/v1/results", headers: headers, body: params, verify: false)
|
39
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cukehub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rich Downie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
65
|
version: '0'
|
66
66
|
requirements: []
|
67
67
|
rubyforge_project:
|
68
|
-
rubygems_version: 2.
|
68
|
+
rubygems_version: 2.4.8
|
69
69
|
signing_key:
|
70
70
|
specification_version: 4
|
71
71
|
summary: CukeHub!
|