cukehub 0.9.3.1 → 0.9.3.2
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/cukehub.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbed123c11cb7c57ecdb807e4bd9c7f64f504bd6
|
4
|
+
data.tar.gz: d974c6b98142daa5a9d0179acbb40fde72bc3ce9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f46767ebb3e114831f2bac98c1523d5797cc46dd76148d0097b39eb4aea0044b4eec9b5924b4594b5ed4c629683178e0657cb1b072de2b120ca578c0098cf290
|
7
|
+
data.tar.gz: 67be8f4fd8d8471e0ae82175e37350b9aa39fcc9aa99b0a4a7e4a145143987dd079069c93647ca289714935495d1b5423bcf04e91342b351e92bd7f74f58ea55
|
data/lib/cukehub.rb
CHANGED
@@ -16,8 +16,8 @@ end
|
|
16
16
|
After do |scenario|
|
17
17
|
ignored_lines = ["Before hook", "After hook", "AfterStep hook"]
|
18
18
|
@steps = scenario.test_steps.map{|step| step.name if !ignored_lines.include?(step.name) }.compact.join("\n")
|
19
|
-
IO.popen("git symbolic-ref --short HEAD") {|pipe|
|
20
|
-
IO.popen("git rev-parse --verify HEAD") {|pipe|
|
19
|
+
IO.popen("git symbolic-ref --short HEAD") {|pipe| @git_branch = pipe.read }
|
20
|
+
IO.popen("git rev-parse --verify HEAD") {|pipe| @git_sha = pipe.read }
|
21
21
|
params = {
|
22
22
|
api_key: @cukehub_api_key,
|
23
23
|
name: scenario.name,
|
@@ -33,7 +33,7 @@ After do |scenario|
|
|
33
33
|
sha: @git_sha.chomp
|
34
34
|
}
|
35
35
|
params[:browser] = @browser.browser.upcase unless @browser.nil?
|
36
|
-
params[:exception]=scenario.exception.
|
36
|
+
params[:exception]=scenario.exception.backtrace.compact.join("\n") unless scenario.passed?
|
37
37
|
|
38
38
|
HTTParty.post("https://cukehub.com/api/v1/results", body: params)
|
39
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.3.
|
4
|
+
version: 0.9.3.2
|
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-02-
|
11
|
+
date: 2017-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|