cukehub 0.9.6 → 1.0.0

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 +9 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc26c2f72d4ad85a978419dfd3dc6ad0f3b1e4e3
4
- data.tar.gz: 8ed538862327b217ae2ffb780c336d8e972975e8
3
+ metadata.gz: 83340362eeaf222ff09f91c6ec93161fcb532a94
4
+ data.tar.gz: 42ec1873bba461c96c5138121c3af26dbf665bfc
5
5
  SHA512:
6
- metadata.gz: 7a15be730f9291c2d5a5fa4e6ad01d4be96c765e693403e712aa54f38dfaa40098d5b79d4839292899a823db67e61cc1965b987751a224143ed8c39e9abcf4ab
7
- data.tar.gz: f3a10d49b216710707222b964b937e1e40e7ce27cb5dea9a0ad537289c38630b3f1de8d6fc42b1965a0046cb19cce5119869ec192c5a27fb1c0794966afb466d
6
+ metadata.gz: e7649826a0a36a0fb14e09795298fe1429a7a5de6ec3996adacbd8c2dfcc82ad03107ab8aee15a8945813bd9ded4a22706324e1c01e044ad37d3592daec979e7
7
+ data.tar.gz: 72b18a1411705ad0d0274c26c0be859779ff601ba34b89a5b9494d988e298068892e7d8c3c2195369f61f39c6aa2bf467d967c1a34c2c221a1e0e0a58e3c5074
@@ -34,7 +34,15 @@ After do |scenario|
34
34
  branch: @git_branch.chomp,
35
35
  sha: @git_sha.chomp
36
36
  }
37
- params[:browser] = @browser.browser unless @browser.nil?
37
+ if @browser.inspect =~ /Selenium/
38
+ params[:browser] = @browser.browser unless @browser.nil?
39
+ elsif @driver.inspect =~ /Selenium/
40
+ params[:browser] = @driver.browser unless @driver.nil?
41
+ elsif @browser.inspect =~ /Watir/
42
+ params[:browser] = @browser.name unless @browser.nil?
43
+ elsif @driver.inspect =~ /Watir/
44
+ params[:browser] = @driver.name unless @driver.nil?
45
+ end
38
46
  params[:exception]=scenario.exception.backtrace.compact.join("\n") unless scenario.passed?
39
47
 
40
48
  HTTParty.post("https://cukehub.com/api/v1/results", headers: headers, body: params, verify: false)
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.6
4
+ version: 1.0.0
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-10-09 00:00:00.000000000 Z
11
+ date: 2017-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -38,7 +38,7 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: Cucumber Test Management
41
+ description: The Fourth Amigo
42
42
  email: rich@cukehub.com
43
43
  executables: []
44
44
  extensions: []