cukehub 0.9.3.1 → 0.9.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cukehub.rb +3 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 252c2b781fdba6462c8f4c0f76523cb5fd81d57c
4
- data.tar.gz: b3b70a1596d4e821413ee74da770ee20fbe97595
3
+ metadata.gz: dbed123c11cb7c57ecdb807e4bd9c7f64f504bd6
4
+ data.tar.gz: d974c6b98142daa5a9d0179acbb40fde72bc3ce9
5
5
  SHA512:
6
- metadata.gz: 0a4b9af49547ec01d304bbaca0ed3ae8f375ea88ea63e3171007caf045c5342f9fbf2ab7bab722e432fd4e52ba12e1600e5bd134ced0afd45e65121eef345d6f
7
- data.tar.gz: 62173de6b0340021e00ef44bf480163a8700ddfe52715fd452e57c8f56103f112292b81d72d05f910962b10a2a04af459c58b2ff234cc2a86f8b75812f421cf8
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| puts @git_branch = pipe.read }
20
- IO.popen("git rev-parse --verify HEAD") {|pipe| puts @git_sha = pipe.read }
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.message unless scenario.passed?
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.1
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-14 00:00:00.000000000 Z
11
+ date: 2017-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty