lazylead 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lazylead.gemspec +6 -6
- data/lib/lazylead/task/accuracy/accuracy.rb +1 -1
- data/lib/lazylead/task/accuracy/logs.rb +4 -1
- data/lib/lazylead/task/accuracy/testcase.rb +2 -2
- data/lib/lazylead/version.rb +1 -1
- data/test/lazylead/task/accuracy/logs_test.rb +12 -0
- data/test/lazylead/task/accuracy/testcase_test.rb +27 -0
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 647614608568a2196a8bcccb556662c3680699121f73a545a0c03b33c208b4a9
|
4
|
+
data.tar.gz: 37e8e136922de5193b6d7435a1666e4953b425e3fe33667914f186ac3fb3a930
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7ca726e4354533c8a9dceb965635508c8b7f5ba4a1115135e27378b4494f5c716a0c06a07dff34798fa2a00a5fcba5baf958229e668954f677e6d710625829d
|
7
|
+
data.tar.gz: ca4baff71de48ef8afcac503c576b842311a6f74089f45d2e8d6af4f04762df786842e46dfb38d23019aa87e2642b1c4e3e066eae75102bece6fc756e63269d9
|
data/lazylead.gemspec
CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
|
|
32
32
|
s.rubygems_version = "2.2"
|
33
33
|
s.required_ruby_version = ">=2.6.5"
|
34
34
|
s.name = "lazylead"
|
35
|
-
s.version = "0.7.
|
35
|
+
s.version = "0.7.2"
|
36
36
|
s.license = "MIT"
|
37
37
|
s.summary = "Eliminate the annoying work within bug-trackers."
|
38
38
|
s.description = "Ticketing systems (Github, Jira, etc.) are strongly
|
@@ -45,7 +45,7 @@ tasks instead of solving technical problems."
|
|
45
45
|
s.authors = ["Yurii Dubinka"]
|
46
46
|
s.email = "yurii.dubinka@gmail.com"
|
47
47
|
s.homepage = "http://github.com/dgroup/lazylead"
|
48
|
-
s.post_install_message = "Thanks for installing Lazylead v0.7.
|
48
|
+
s.post_install_message = "Thanks for installing Lazylead v0.7.2!
|
49
49
|
Read our blog posts: https://lazylead.org
|
50
50
|
Stay in touch with the community in Telegram: https://t.me/lazylead
|
51
51
|
Follow us on Twitter: https://twitter.com/lazylead
|
@@ -61,7 +61,7 @@ tasks instead of solving technical problems."
|
|
61
61
|
s.add_runtime_dependency "faraday", "1.3.0"
|
62
62
|
s.add_runtime_dependency "get_process_mem", "0.2.7"
|
63
63
|
s.add_runtime_dependency "inifile", "3.0.0"
|
64
|
-
s.add_runtime_dependency "jira-ruby", "2.1.
|
64
|
+
s.add_runtime_dependency "jira-ruby", "2.1.5"
|
65
65
|
s.add_runtime_dependency "json", "2.5.1"
|
66
66
|
s.add_runtime_dependency "logging", "2.3.0"
|
67
67
|
s.add_runtime_dependency "mail", "2.7.1"
|
@@ -75,16 +75,16 @@ tasks instead of solving technical problems."
|
|
75
75
|
s.add_runtime_dependency "tempfile", "0.1.1"
|
76
76
|
s.add_runtime_dependency "tilt", "2.0.10"
|
77
77
|
s.add_runtime_dependency "tzinfo", "2.0.4"
|
78
|
-
s.add_runtime_dependency "tzinfo-data", "1.
|
78
|
+
s.add_runtime_dependency "tzinfo-data", "1.2021.1"
|
79
79
|
s.add_runtime_dependency "vcs4sql", "0.1.1"
|
80
80
|
s.add_runtime_dependency "viewpoint", "1.1.0"
|
81
|
-
s.add_development_dependency "codecov", "0.
|
81
|
+
s.add_development_dependency "codecov", "0.4.1"
|
82
82
|
s.add_development_dependency "guard", "2.16.2"
|
83
83
|
s.add_development_dependency "guard-minitest", "2.4.6"
|
84
84
|
s.add_development_dependency "minitest", "5.14.3"
|
85
85
|
s.add_development_dependency "minitest-fail-fast", "0.1.0"
|
86
86
|
s.add_development_dependency "minitest-hooks", "1.5.0"
|
87
|
-
s.add_development_dependency "minitest-reporters", "1.4.
|
87
|
+
s.add_development_dependency "minitest-reporters", "1.4.3"
|
88
88
|
s.add_development_dependency "net-ping", "2.0.8"
|
89
89
|
s.add_development_dependency "rake", "13.0.3"
|
90
90
|
s.add_development_dependency "random-port", "0.5.1"
|
@@ -79,7 +79,7 @@ module Lazylead
|
|
79
79
|
def post
|
80
80
|
return if @opts.key? "silent"
|
81
81
|
@issue.post comment
|
82
|
-
@issue.add_label "LL.accuracy", "#{grade(@accuracy)}%"
|
82
|
+
@issue.add_label "LL.accuracy", "#{grade(@accuracy)}%", "#{@accuracy}%"
|
83
83
|
end
|
84
84
|
|
85
85
|
# The jira comment in markdown format
|
@@ -38,7 +38,10 @@ module Lazylead
|
|
38
38
|
name = attachment.attrs["filename"].downcase
|
39
39
|
return false unless attachment.attrs["size"].to_i > 5120
|
40
40
|
return true if File.extname(name).start_with? ".log", ".txt", ".out"
|
41
|
-
@files.any? { |l| name.end_with? l }
|
41
|
+
return true if @files.any? { |l| name.end_with? l }
|
42
|
+
%w[.zip .7z .gz tar.gz].any? do |l|
|
43
|
+
name.end_with?(l) && name.split(/(?:[^a-zA-Z0-9](?<![^\x00-\x7F]))+/).include?("logs")
|
44
|
+
end
|
42
45
|
end
|
43
46
|
end
|
44
47
|
end
|
@@ -38,7 +38,7 @@ module Lazylead
|
|
38
38
|
return false if issue.description.nil?
|
39
39
|
@tc = @ar = @er = -1
|
40
40
|
issue.description.split("\n").reject(&:blank?).each_with_index do |l, i|
|
41
|
-
line = escape l.downcase.gsub(/(\s
|
41
|
+
line = escape l.downcase.gsub(/(\s+|\*|\+)/, "")
|
42
42
|
detect_tc line, i
|
43
43
|
detect_ar line, i
|
44
44
|
detect_er line, i
|
@@ -66,7 +66,7 @@ module Lazylead
|
|
66
66
|
def detect_tc(line, index)
|
67
67
|
return unless @tc.negative?
|
68
68
|
@tc = index if eql? line,
|
69
|
-
%w[testcase: tc: teststeps: teststeps steps: tcsteps:]
|
69
|
+
%w[testcase: tc: teststeps: teststeps steps: tcsteps: tc testcases steps]
|
70
70
|
end
|
71
71
|
|
72
72
|
# Detect index of line with actual result
|
data/lib/lazylead/version.rb
CHANGED
@@ -134,5 +134,17 @@ module Lazylead
|
|
134
134
|
)
|
135
135
|
)
|
136
136
|
end
|
137
|
+
|
138
|
+
test "filename contain word logs" do
|
139
|
+
assert Logs.new.passed(
|
140
|
+
OpenStruct.new(
|
141
|
+
attachments: [
|
142
|
+
OpenStruct.new(
|
143
|
+
attrs: { "size" => 10_241, "filename" => "the some logs]here.gz" }
|
144
|
+
)
|
145
|
+
]
|
146
|
+
)
|
147
|
+
)
|
148
|
+
end
|
137
149
|
end
|
138
150
|
end
|
@@ -246,6 +246,33 @@ module Lazylead
|
|
246
246
|
*{color:#DE10AA}[AR]{color}* = YYYY"
|
247
247
|
end
|
248
248
|
|
249
|
+
test "tc" do
|
250
|
+
assert testcase? "*TC*
|
251
|
+
# Step 1
|
252
|
+
# Step ..
|
253
|
+
# Step N
|
254
|
+
*{color:#00673A}[ER]{color}* = XXXX
|
255
|
+
*{color:#DE10AA}[AR]{color}* = YYYY"
|
256
|
+
end
|
257
|
+
|
258
|
+
test "testcases" do
|
259
|
+
assert testcase? "*Test cases*
|
260
|
+
# Step 1
|
261
|
+
# Step ..
|
262
|
+
# Step N
|
263
|
+
*{color:#00673A}[ER]{color}* = XXXX
|
264
|
+
*{color:#DE10AA}[AR]{color}* = YYYY"
|
265
|
+
end
|
266
|
+
|
267
|
+
test "TC with underline" do
|
268
|
+
assert testcase? "{color:#0747a6}+*Test Steps:*+{color}
|
269
|
+
# Step 1
|
270
|
+
# Step ..
|
271
|
+
# Step N
|
272
|
+
*{color:#00673A}[ER]{color}* = XXXX
|
273
|
+
*{color:#DE10AA}[AR]{color}* = YYYY"
|
274
|
+
end
|
275
|
+
|
249
276
|
# ensure that issue description has a test case, AR and ER
|
250
277
|
def testcase?(desc)
|
251
278
|
Testcase.new.passed(OpenStruct.new(description: desc))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lazylead
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yurii Dubinka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - '='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 2.1.
|
103
|
+
version: 2.1.5
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - '='
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 2.1.
|
110
|
+
version: 2.1.5
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: json
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -296,14 +296,14 @@ dependencies:
|
|
296
296
|
requirements:
|
297
297
|
- - '='
|
298
298
|
- !ruby/object:Gem::Version
|
299
|
-
version: 1.
|
299
|
+
version: 1.2021.1
|
300
300
|
type: :runtime
|
301
301
|
prerelease: false
|
302
302
|
version_requirements: !ruby/object:Gem::Requirement
|
303
303
|
requirements:
|
304
304
|
- - '='
|
305
305
|
- !ruby/object:Gem::Version
|
306
|
-
version: 1.
|
306
|
+
version: 1.2021.1
|
307
307
|
- !ruby/object:Gem::Dependency
|
308
308
|
name: vcs4sql
|
309
309
|
requirement: !ruby/object:Gem::Requirement
|
@@ -338,14 +338,14 @@ dependencies:
|
|
338
338
|
requirements:
|
339
339
|
- - '='
|
340
340
|
- !ruby/object:Gem::Version
|
341
|
-
version: 0.
|
341
|
+
version: 0.4.1
|
342
342
|
type: :development
|
343
343
|
prerelease: false
|
344
344
|
version_requirements: !ruby/object:Gem::Requirement
|
345
345
|
requirements:
|
346
346
|
- - '='
|
347
347
|
- !ruby/object:Gem::Version
|
348
|
-
version: 0.
|
348
|
+
version: 0.4.1
|
349
349
|
- !ruby/object:Gem::Dependency
|
350
350
|
name: guard
|
351
351
|
requirement: !ruby/object:Gem::Requirement
|
@@ -422,14 +422,14 @@ dependencies:
|
|
422
422
|
requirements:
|
423
423
|
- - '='
|
424
424
|
- !ruby/object:Gem::Version
|
425
|
-
version: 1.4.
|
425
|
+
version: 1.4.3
|
426
426
|
type: :development
|
427
427
|
prerelease: false
|
428
428
|
version_requirements: !ruby/object:Gem::Requirement
|
429
429
|
requirements:
|
430
430
|
- - '='
|
431
431
|
- !ruby/object:Gem::Version
|
432
|
-
version: 1.4.
|
432
|
+
version: 1.4.3
|
433
433
|
- !ruby/object:Gem::Dependency
|
434
434
|
name: net-ping
|
435
435
|
requirement: !ruby/object:Gem::Requirement
|
@@ -757,7 +757,7 @@ licenses:
|
|
757
757
|
- MIT
|
758
758
|
metadata: {}
|
759
759
|
post_install_message: |-
|
760
|
-
Thanks for installing Lazylead v0.7.
|
760
|
+
Thanks for installing Lazylead v0.7.2!
|
761
761
|
Read our blog posts: https://lazylead.org
|
762
762
|
Stay in touch with the community in Telegram: https://t.me/lazylead
|
763
763
|
Follow us on Twitter: https://twitter.com/lazylead
|