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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cukehub.rb +4 -4
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c91f1c267885e8c7de631e420cbea9a79981e1b
4
- data.tar.gz: 49cb3ab62a87672d03b69f3fe0d2b03e2214ff67
3
+ metadata.gz: fff7d9b695fdc21e3c866b5c66f14db291af180e
4
+ data.tar.gz: 0920a2f6f5989c3ede2a326cff591e2f6be31967
5
5
  SHA512:
6
- metadata.gz: 45ff520156f9d6c5e2226e44d5394e6bd33934d8a8309d34450948f64eda64f008e4ad4446f9a6a0b8c418f422a502c5465e18856ad421ab6187905119c88fcb
7
- data.tar.gz: 00739833dbd79b38c3cf56519a5e0cb03cce30e0b0b3b34c88a50c5b9a574ebec9641971e3e5ba22444b00c2bf1990f232837fdf07c4037bb319794e76c0e627
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
- @start = Time.now
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, :verify => false)
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.3.3
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-02-19 00:00:00.000000000 Z
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.5.1
68
+ rubygems_version: 2.4.8
69
69
  signing_key:
70
70
  specification_version: 4
71
71
  summary: CukeHub!