allure-ruby-adaptor-api 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec93800a48fa4e5adb42fb3c80f244963ea73992
4
- data.tar.gz: 8e588d287c72f8335bb0d1ca9048e7d1274f79d5
3
+ metadata.gz: 57a03078cf21cf53f9863a3a4e624e6524c211ce
4
+ data.tar.gz: 8ed78a565955775e06fb2a0c84e4b40fbaa89952
5
5
  SHA512:
6
- metadata.gz: 30a73a20e04e5fcb92bff3ed3e9b3a8291549438cd87d41a759a3cca82ef09fe02f2c65ce5c8185fdbde6d3bfbf76023e3868d12d8f4cd84261155fe45b0ddc3
7
- data.tar.gz: b5507728937f32d6567949abb64ad9c2aca6bb2c599a06fc2eabfeac6febcdc8fefd0c4078dea773ea2eb20c90560516debcfcc2ba31f00e0ae7a1060674cba2
6
+ metadata.gz: 2ce378ce96864516e8d0f3d163769f8773ee5ca7a07463ca7bcfe271b81b1c664809b231fa31352f813929ad857e38add53110e3e09d0d15c29f5361ad372dd9
7
+ data.tar.gz: 9f2a4f54e99c7b7678a995f57595b055e27c3028545482de758c7cdf390c37d0cc6da04b2f738b0d3c1b6d5270783eb53df4f43bcec0d3c31556b6f6360624c3
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- allure-ruby-adaptor-api (0.6.6)
4
+ allure-ruby-adaptor-api (0.7.1)
5
5
  mimemagic
6
- nokogiri (~> 1.6.0)
6
+ nokogiri (~> 1.7)
7
7
  uuid
8
8
 
9
9
  GEM
@@ -11,13 +11,13 @@ GEM
11
11
  specs:
12
12
  macaddr (1.7.1)
13
13
  systemu (~> 2.6.2)
14
- mimemagic (0.2.1)
15
- mini_portile (0.6.2)
16
- nokogiri (1.6.6.2)
17
- mini_portile (~> 0.6.0)
14
+ mimemagic (0.3.2)
15
+ mini_portile2 (2.3.0)
16
+ nokogiri (1.8.2)
17
+ mini_portile2 (~> 2.3.0)
18
18
  rake (10.3.2)
19
- systemu (2.6.4)
20
- uuid (2.3.7)
19
+ systemu (2.6.5)
20
+ uuid (2.3.8)
21
21
  macaddr (~> 1.0)
22
22
 
23
23
  PLATFORMS
@@ -27,3 +27,6 @@ DEPENDENCIES
27
27
  allure-ruby-adaptor-api!
28
28
  bundler
29
29
  rake
30
+
31
+ BUNDLED WITH
32
+ 1.13.7
@@ -62,10 +62,10 @@ module AllureRubyAdaptorApi
62
62
  end
63
63
  end
64
64
 
65
- def start_step(suite, test, step)
65
+ def start_step(suite, test, step, step_id = step)
66
66
  MUTEX.synchronize do
67
- LOGGER.debug "Starting step #{suite}.#{test}.#{step}"
68
- self.suites[suite][:tests][test][:steps][step] = {
67
+ LOGGER.debug "Starting step #{suite}.#{test}.#{step}.#{step_id}"
68
+ self.suites[suite][:tests][test][:steps][step_id] = {
69
69
  :title => step,
70
70
  :start => timestamp,
71
71
  :attachments => []
@@ -101,11 +101,13 @@ module AllureRubyAdaptorApi
101
101
  end
102
102
  end
103
103
 
104
- def stop_step(suite, test, step, status = :passed)
104
+ def stop_step(suite, test, step, step_id = '', status = :passed)
105
+ step_id = step if step_id == ''
105
106
  MUTEX.synchronize do
106
- LOGGER.debug "Stopping step #{suite}.#{test}.#{step}"
107
- self.suites[suite][:tests][test][:steps][step][:stop] = timestamp
108
- self.suites[suite][:tests][test][:steps][step][:status] = status
107
+ LOGGER.debug "Stopping step #{suite}.#{test}.#{step}.#{step_id}"
108
+ self.suites[suite][:tests][test][:steps][step_id][:stop] = timestamp
109
+ self.suites[suite][:tests][test][:steps][step_id][:status] = status
110
+ self.suites[suite][:tests][test][:steps][step_id][:name] = name
109
111
  end
110
112
  end
111
113
 
@@ -136,10 +138,10 @@ module AllureRubyAdaptorApi
136
138
  end
137
139
  end
138
140
  xml.steps do
139
- test[:steps].each do |step_title, step_obj|
141
+ test[:steps].each do |step_id, step_obj|
140
142
  xml.step(:start => step_obj[:start] || 0, :stop => step_obj[:stop] || 0, :status => step_obj[:status]) do
141
- xml.send :name, step_title
142
- xml.send :title, step_title
143
+ xml.send :name, test[:steps][step_id][:title]
144
+ xml.send :title, test[:steps][step_id][:title]
143
145
  xml_attachments(xml, step_obj[:attachments])
144
146
  end
145
147
  end
@@ -1,6 +1,6 @@
1
1
  module AllureRubyAdaptorApi # :nodoc:
2
2
  module Version # :nodoc:
3
- STRING = '0.7.0'
3
+ STRING = '0.7.1'
4
4
  ALLURE = '1.4.6'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: allure-ruby-adaptor-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Sadykov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-28 00:00:00.000000000 Z
11
+ date: 2018-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -120,8 +120,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  requirements: []
122
122
  rubyforge_project:
123
- rubygems_version: 2.5.1
123
+ rubygems_version: 2.4.8
124
124
  signing_key:
125
125
  specification_version: 4
126
- summary: allure-ruby-adaptor-api-0.7.0
126
+ summary: allure-ruby-adaptor-api-0.7.1
127
127
  test_files: []