moto 0.9.5 → 0.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/reporting/listeners/webui.rb +4 -2
- data/lib/test/metadata.rb +18 -0
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cd224b216e3280449fad4b81ac1414cd3e57c7ab
|
|
4
|
+
data.tar.gz: b47888b034e16c7f76941c37fadf3e0ece5710ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b822b00eb2c1ed26c67937f5ae281a7d2037dd6d3d9f57f217c1b482c65b828256844890b8592690523c36ffa47b05d7993a396575556e40de0ad282174b0d6e
|
|
7
|
+
data.tar.gz: fa12104c2e37a2332b47ca48a5cae3fd5854bea84003d4fa3b4fd6215ad11f6c67a6286dd1bb3fd615da1ffbd5dc4898baa2e6431c4cd8474c0451430819c859
|
|
@@ -28,7 +28,6 @@ module Moto
|
|
|
28
28
|
@send_log_on_pass = config[:send_log_on_pass]
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
|
|
32
31
|
def start_run
|
|
33
32
|
|
|
34
33
|
# Create Suite, if it did exist already nothing new will be created and existing data will be sent in the response
|
|
@@ -90,7 +89,6 @@ module Moto
|
|
|
90
89
|
@run = JSON.parse(response, symbolize_names: true)
|
|
91
90
|
end
|
|
92
91
|
|
|
93
|
-
|
|
94
92
|
def start_test(test_status, test_metadata)
|
|
95
93
|
|
|
96
94
|
# Prepare data for new Test
|
|
@@ -108,6 +106,10 @@ module Moto
|
|
|
108
106
|
test_data[:tags] = test_metadata.tags.join(',')
|
|
109
107
|
end
|
|
110
108
|
|
|
109
|
+
if !test_metadata.description.empty?
|
|
110
|
+
test_data[:description] = test_metadata.description
|
|
111
|
+
end
|
|
112
|
+
|
|
111
113
|
test_data = test_data.to_json
|
|
112
114
|
|
|
113
115
|
# Create new Test based on prepared data
|
data/lib/test/metadata.rb
CHANGED
|
@@ -62,6 +62,24 @@ module Moto
|
|
|
62
62
|
@ticket_urls
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
+
# @return [Array] of [String] which represent contents of #TICKET_URL
|
|
66
|
+
def description
|
|
67
|
+
if @description.nil?
|
|
68
|
+
matches = text.scan(/^#(\s*)DESC:(.*?)$/)
|
|
69
|
+
|
|
70
|
+
@description = ''
|
|
71
|
+
|
|
72
|
+
if !matches.empty?
|
|
73
|
+
matches.each do |match|
|
|
74
|
+
@description += match[1] + "\n"
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
@description
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
|
|
65
83
|
# Overriden eql? so various comparisons, array substractions etc. can be perfromed on
|
|
66
84
|
# Metadata objects with them being represented by test's location
|
|
67
85
|
def eql?(other)
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: moto
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bartek Wilczek
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2016-11-
|
|
14
|
+
date: 2016-11-25 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: activesupport
|