cukehub 0.8.7 → 0.8.8
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 +34 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 169554bff5a746bf0723b14a9caba7153c7170e0
|
4
|
+
data.tar.gz: 9925cd696ac7eac81c27c047fc4dba683e6dd4f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72900e94345694d3626386a58deba9a7ca87a6b97ee5e87161392ef2af7ee7f1257e7160360daab414d6a9cfdc1895d4201cb07383555e71ae1900c730299ebc
|
7
|
+
data.tar.gz: c2d6a3471b8d9c94cc1253ea35c9d2f196461de86a7802f96407b1e02587f5418fe1156b3e7fb2c79fa1f1382b5a1f96493c9370a31502651afc56dc977c1b43
|
data/lib/cukehub.rb
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'httparty'
|
2
|
+
require 'os'
|
3
|
+
|
4
|
+
if OS.mac? then
|
5
|
+
os = "OSX"
|
6
|
+
elsif OS.linux?
|
7
|
+
os = "Linux"
|
8
|
+
elsif OS.doze?
|
9
|
+
os = "Win"
|
10
|
+
end
|
11
|
+
|
12
|
+
Before do
|
13
|
+
@start = Time.now
|
14
|
+
end
|
15
|
+
|
16
|
+
After do |scenario|
|
17
|
+
IO.popen("git symbolic-ref --short HEAD") {|pipe| puts @git_branch = pipe.read }
|
18
|
+
params = {
|
19
|
+
token: @cukehub_token,
|
20
|
+
name: scenario.name,
|
21
|
+
location: scenario.location,
|
22
|
+
tag: scenario.source_tag_names,
|
23
|
+
status: scenario.status.upcase,
|
24
|
+
machine: Socket.gethostname,
|
25
|
+
os: os,
|
26
|
+
runtime: (Time.now - @start),
|
27
|
+
domain: @domain,
|
28
|
+
branch: @git_branch.chomp
|
29
|
+
}
|
30
|
+
params[:browser] = @browser.browser.upcase unless @browser.nil?
|
31
|
+
params[:exception]=scenario.exception.message unless scenario.passed?
|
32
|
+
|
33
|
+
HTTParty.post("http://cukehub.com/dropin", body: params)
|
34
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cukehub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rich Downie
|
@@ -58,6 +58,7 @@ executables: []
|
|
58
58
|
extensions: []
|
59
59
|
extra_rdoc_files: []
|
60
60
|
files:
|
61
|
+
- lib/cukehub.rb
|
61
62
|
- lib/tasks/cukehub.rake
|
62
63
|
homepage: http://cukehub.com
|
63
64
|
licenses:
|