lazylead 0.5.0 → 0.6.2
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/Rakefile +4 -3
- data/bin/lazylead +6 -4
- data/lazylead.gemspec +4 -3
- data/lib/lazylead/cli/app.rb +11 -3
- data/lib/lazylead/email.rb +0 -20
- data/lib/lazylead/exchange.rb +16 -29
- data/lib/lazylead/log.rb +2 -1
- data/lib/lazylead/model.rb +7 -0
- data/lib/lazylead/opts.rb +49 -1
- data/lib/lazylead/postman.rb +18 -17
- data/lib/lazylead/smtp.rb +3 -1
- data/lib/lazylead/system/jira.rb +30 -8
- data/lib/lazylead/task/accuracy/accuracy.rb +10 -1
- data/lib/lazylead/task/accuracy/logs.rb +7 -3
- data/lib/lazylead/task/accuracy/records.rb +1 -1
- data/lib/lazylead/task/accuracy/servers.rb +1 -1
- data/lib/lazylead/task/accuracy/stacktrace.rb +50 -10
- data/lib/lazylead/task/accuracy/testcase.rb +23 -6
- data/lib/lazylead/task/assignment.rb +96 -0
- data/lib/lazylead/task/fix_version.rb +6 -0
- data/lib/lazylead/task/svn/diff.rb +77 -0
- data/lib/lazylead/task/svn/grep.rb +132 -0
- data/lib/lazylead/task/svn/touch.rb +101 -0
- data/lib/lazylead/version.rb +1 -1
- data/lib/messages/illegal_assignee_change.erb +123 -0
- data/lib/messages/illegal_fixversion_change.erb +8 -0
- data/lib/messages/svn_diff.erb +110 -0
- data/lib/messages/{svn_log.erb → svn_diff_attachment.erb} +19 -9
- data/lib/messages/svn_grep.erb +114 -0
- data/test/lazylead/model_test.rb +10 -0
- data/test/lazylead/opts_test.rb +35 -0
- data/test/lazylead/postman_test.rb +8 -5
- data/test/lazylead/system/jira_test.rb +14 -7
- data/test/lazylead/task/accuracy/logs_test.rb +62 -2
- data/test/lazylead/task/accuracy/score_test.rb +46 -0
- data/test/lazylead/task/accuracy/stacktrace_test.rb +227 -0
- data/test/lazylead/task/accuracy/testcase_test.rb +49 -0
- data/test/lazylead/task/assignment_test.rb +53 -0
- data/test/lazylead/task/fix_version_test.rb +1 -0
- data/test/lazylead/task/savepoint_test.rb +7 -4
- data/test/lazylead/task/svn/diff_test.rb +97 -0
- data/test/lazylead/task/svn/grep_test.rb +103 -0
- data/test/lazylead/task/{touch_test.rb → svn/touch_test.rb} +7 -34
- data/upgrades/sqlite/999.testdata.sql +2 -1
- metadata +48 -20
- data/lib/lazylead/task/touch.rb +0 -119
@@ -197,6 +197,55 @@ module Lazylead
|
|
197
197
|
[^screenshot-1.png]"
|
198
198
|
end
|
199
199
|
|
200
|
+
test "tc with colored ar er" do
|
201
|
+
assert testcase? "*TC:*
|
202
|
+
# Step 1
|
203
|
+
# Step 2
|
204
|
+
# Step ..
|
205
|
+
# Step N
|
206
|
+
{color:#00673A}ER{color}: XXXX
|
207
|
+
{color:#DE10AA}AR{color}: YYYY"
|
208
|
+
end
|
209
|
+
|
210
|
+
test "tc with colored bold ar er" do
|
211
|
+
assert testcase? "*TC:*
|
212
|
+
# Step 1
|
213
|
+
# Step 2
|
214
|
+
# Step ..
|
215
|
+
# Step N
|
216
|
+
*{color:#00673A}ER{color}* = XXXX
|
217
|
+
*{color:#DE10AA}AR{color}* = YYYY"
|
218
|
+
end
|
219
|
+
|
220
|
+
test "tc with ar er in brackets" do
|
221
|
+
assert testcase? "*TC Steps:*
|
222
|
+
# Step 1
|
223
|
+
# Step ..
|
224
|
+
# Step N
|
225
|
+
*[ER]* = XXXX
|
226
|
+
*[AR]* = YYYY"
|
227
|
+
end
|
228
|
+
|
229
|
+
test "tc with ar er in noformat" do
|
230
|
+
assert testcase? "*TC Steps:*
|
231
|
+
# Step 1
|
232
|
+
# Step ..
|
233
|
+
# Step N
|
234
|
+
{noformat}
|
235
|
+
*[ER]* = XXXX
|
236
|
+
*[AR]* = YYYY
|
237
|
+
{noformat}"
|
238
|
+
end
|
239
|
+
|
240
|
+
test "tc with colored ar er in brackets" do
|
241
|
+
assert testcase? "*TC Steps:*
|
242
|
+
# Step 1
|
243
|
+
# Step ..
|
244
|
+
# Step N
|
245
|
+
*{color:#00673A}[ER]{color}* = XXXX
|
246
|
+
*{color:#DE10AA}[AR]{color}* = YYYY"
|
247
|
+
end
|
248
|
+
|
200
249
|
# ensure that issue description has a test case, AR and ER
|
201
250
|
def testcase?(desc)
|
202
251
|
Testcase.new.passed(OpenStruct.new(description: desc))
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# The MIT License
|
4
|
+
#
|
5
|
+
# Copyright (c) 2019-2020 Yurii Dubinka
|
6
|
+
#
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
# of this software and associated documentation files (the "Software"),
|
9
|
+
# to deal in the Software without restriction, including without limitation
|
10
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
+
# and/or sell copies of the Software, and to permit persons to whom
|
12
|
+
# the Software is furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included
|
15
|
+
# in all copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
22
|
+
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
23
|
+
# OR OTHER DEALINGS IN THE SOFTWARE.
|
24
|
+
|
25
|
+
require "mail"
|
26
|
+
|
27
|
+
require_relative "../../test"
|
28
|
+
require_relative "../../../lib/lazylead/smtp"
|
29
|
+
require_relative "../../../lib/lazylead/opts"
|
30
|
+
require_relative "../../../lib/lazylead/postman"
|
31
|
+
require_relative "../../../lib/lazylead/task/assignment"
|
32
|
+
|
33
|
+
module Lazylead
|
34
|
+
class AssignmentTest < Lazylead::Test
|
35
|
+
test "alert in case assignee changed by not authorized person" do
|
36
|
+
Lazylead::Smtp.new.enable
|
37
|
+
Task::Assignment.new.run(
|
38
|
+
NoAuthJira.new("https://jira.spring.io"),
|
39
|
+
Postman.new,
|
40
|
+
Opts.new(
|
41
|
+
"to" => "lead@company.com",
|
42
|
+
"from" => "ll@company.com",
|
43
|
+
"jql" => "key in ('DATAJDBC-480') and assignee is not empty",
|
44
|
+
"allowed" => "tom,mike,bob",
|
45
|
+
"subject" => "Assignment: How dare you?",
|
46
|
+
"template" => "lib/messages/illegal_assignee_change.erb"
|
47
|
+
)
|
48
|
+
)
|
49
|
+
assert_email "Assignment: How dare you?",
|
50
|
+
%w[DATAJDBC-480 01-Apr-2020 Minor Mark\ Paluch tom,mike,bob EntityInstantiators]
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -42,6 +42,7 @@ module Lazylead
|
|
42
42
|
"from" => "ll@company.com",
|
43
43
|
"jql" => "key in ('DATAJDBC-480') and fixVersion is not empty",
|
44
44
|
"allowed" => "tom,mike,bob",
|
45
|
+
"fields" => "description,reporter,priority,summary,created,fixVersions",
|
45
46
|
"subject" => "FixVersion: How dare you?",
|
46
47
|
"template" => "lib/messages/illegal_fixversion_change.erb"
|
47
48
|
)
|
@@ -24,6 +24,7 @@
|
|
24
24
|
|
25
25
|
require_relative "../../test"
|
26
26
|
require_relative "../../../lib/lazylead/smtp"
|
27
|
+
require_relative "../../../lib/lazylead/opts"
|
27
28
|
require_relative "../../../lib/lazylead/postman"
|
28
29
|
require_relative "../../../lib/lazylead/task/savepoint"
|
29
30
|
|
@@ -36,10 +37,12 @@ module Lazylead
|
|
36
37
|
Task::Savepoint.new.run(
|
37
38
|
[],
|
38
39
|
Postman.new,
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
40
|
+
Opts.new(
|
41
|
+
"from" => "fake@email.com",
|
42
|
+
"subject" => "[LL] Configuration backup",
|
43
|
+
"template" => "lib/messages/savepoint.erb",
|
44
|
+
"to" => "big.boss@example.com"
|
45
|
+
)
|
43
46
|
)
|
44
47
|
assert_equal 'text/markdown; filename="readme.md"',
|
45
48
|
Mail::TestMailer.deliveries
|
@@ -0,0 +1,97 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# The MIT License
|
4
|
+
#
|
5
|
+
# Copyright (c) 2019-2020 Yurii Dubinka
|
6
|
+
#
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
# of this software and associated documentation files (the "Software"),
|
9
|
+
# to deal in the Software without restriction, including without limitation
|
10
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
+
# and/or sell copies of the Software, and to permit persons to whom
|
12
|
+
# the Software is furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included
|
15
|
+
# in all copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
22
|
+
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
23
|
+
# OR OTHER DEALINGS IN THE SOFTWARE.
|
24
|
+
|
25
|
+
require "mail"
|
26
|
+
require_relative "../../../test"
|
27
|
+
require_relative "../../../../lib/lazylead/smtp"
|
28
|
+
require_relative "../../../../lib/lazylead/opts"
|
29
|
+
require_relative "../../../../lib/lazylead/postman"
|
30
|
+
require_relative "../../../../lib/lazylead/task/svn/diff"
|
31
|
+
|
32
|
+
module Lazylead
|
33
|
+
class DiffTest < Lazylead::Test
|
34
|
+
test "changes since revision" do
|
35
|
+
skip "No svn credentials provided" unless env? "svn_log_user",
|
36
|
+
"svn_log_password"
|
37
|
+
skip "No internet connection to riouxsvn.com" unless ping? "riouxsvn.com"
|
38
|
+
Lazylead::Smtp.new.enable
|
39
|
+
Task::Svn::Diff.new.run(
|
40
|
+
[],
|
41
|
+
Postman.new,
|
42
|
+
Opts.new(
|
43
|
+
"from" => "svnlog@test.com",
|
44
|
+
"svn_url" => "https://svn.riouxsvn.com/touch4ll",
|
45
|
+
"svn_user" => ENV["svn_log_user"],
|
46
|
+
"svn_password" => ENV["svn_log_password"],
|
47
|
+
"commit_url" => "https://view.commit.com?rev=",
|
48
|
+
"user" => "https://user.com?id=",
|
49
|
+
"to" => "lead@fake.com",
|
50
|
+
"since_rev" => "1",
|
51
|
+
"subject" => "[SVN] Changed since rev1",
|
52
|
+
"template" => "lib/messages/svn_diff.erb",
|
53
|
+
"template-attachment" => "lib/messages/svn_diff_attachment.erb"
|
54
|
+
)
|
55
|
+
)
|
56
|
+
assert_email_line "[SVN] Changed since rev1",
|
57
|
+
%w[r2 by dgroup at 2020-08-16]
|
58
|
+
end
|
59
|
+
|
60
|
+
test "changes since revision with attachment" do
|
61
|
+
skip "No svn credentials provided" unless env? "svn_log_user",
|
62
|
+
"svn_log_password"
|
63
|
+
skip "No internet connection to riouxsvn.com" unless ping? "riouxsvn.com"
|
64
|
+
skip "No postman credentials provided" unless env? "LL_SMTP_HOST",
|
65
|
+
"LL_SMTP_PORT",
|
66
|
+
"LL_SMTP_USER",
|
67
|
+
"LL_SMTP_PASS",
|
68
|
+
"LL_SMTP_TO",
|
69
|
+
"LL_SMTP_FROM"
|
70
|
+
Lazylead::Smtp.new(
|
71
|
+
Log.new,
|
72
|
+
NoSalt.new,
|
73
|
+
smtp_host: ENV["LL_SMTP_HOST"],
|
74
|
+
smtp_port: ENV["LL_SMTP_PORT"],
|
75
|
+
smtp_user: ENV["LL_SMTP_USER"],
|
76
|
+
smtp_pass: ENV["LL_SMTP_PASS"]
|
77
|
+
).enable
|
78
|
+
Task::Svn::Diff.new.run(
|
79
|
+
[],
|
80
|
+
Postman.new,
|
81
|
+
Opts.new(
|
82
|
+
"from" => ENV["LL_SMTP_FROM"],
|
83
|
+
"svn_url" => "https://svn.riouxsvn.com/touch4ll",
|
84
|
+
"svn_user" => ENV["svn_log_user"],
|
85
|
+
"svn_password" => ENV["svn_log_password"],
|
86
|
+
"commit_url" => "https://view.commit.com?rev=",
|
87
|
+
"user" => "https://user.com?id=",
|
88
|
+
"to" => ENV["LL_SMTP_TO"],
|
89
|
+
"since_rev" => "1",
|
90
|
+
"subject" => "[SVN] Changed since rev1",
|
91
|
+
"template" => "lib/messages/svn_diff.erb",
|
92
|
+
"template-attachment" => "lib/messages/svn_diff_attachment.erb"
|
93
|
+
)
|
94
|
+
)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
@@ -0,0 +1,103 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# The MIT License
|
4
|
+
#
|
5
|
+
# Copyright (c) 2019-2020 Yurii Dubinka
|
6
|
+
#
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
# of this software and associated documentation files (the "Software"),
|
9
|
+
# to deal in the Software without restriction, including without limitation
|
10
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
+
# and/or sell copies of the Software, and to permit persons to whom
|
12
|
+
# the Software is furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included
|
15
|
+
# in all copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
22
|
+
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
23
|
+
# OR OTHER DEALINGS IN THE SOFTWARE.
|
24
|
+
|
25
|
+
require "mail"
|
26
|
+
require_relative "../../../test"
|
27
|
+
require_relative "../../../../lib/lazylead/smtp"
|
28
|
+
require_relative "../../../../lib/lazylead/opts"
|
29
|
+
require_relative "../../../../lib/lazylead/postman"
|
30
|
+
require_relative "../../../../lib/lazylead/task/svn/grep"
|
31
|
+
|
32
|
+
module Lazylead
|
33
|
+
class GrepTest < Lazylead::Test
|
34
|
+
test "changes with text" do
|
35
|
+
skip "No svn credentials provided" unless env? "svn_log_user",
|
36
|
+
"svn_log_password"
|
37
|
+
skip "No internet connection to riouxsvn.com" unless ping? "riouxsvn.com"
|
38
|
+
Lazylead::Smtp.new.enable
|
39
|
+
Task::Svn::Grep.new.run(
|
40
|
+
[],
|
41
|
+
Postman.new,
|
42
|
+
Opts.new(
|
43
|
+
"from" => "svnlog@test.com",
|
44
|
+
"text" => "ping",
|
45
|
+
"svn_url" => "https://svn.riouxsvn.com/touch4ll",
|
46
|
+
"svn_user" => ENV["svn_log_user"],
|
47
|
+
"svn_password" => ENV["svn_log_password"],
|
48
|
+
"commit_url" => "https://view.commit.com?rev=",
|
49
|
+
"user" => "https://user.com?id=",
|
50
|
+
"to" => "lead@fake.com",
|
51
|
+
"now" => "2020-08-17T00:00:00+01:00",
|
52
|
+
"period" => "864000",
|
53
|
+
"subject" => "[SVN] Changes with text",
|
54
|
+
"template" => "lib/messages/svn_grep.erb"
|
55
|
+
)
|
56
|
+
)
|
57
|
+
assert_email_line "[SVN] Changes with text",
|
58
|
+
%w[r2 by dgroup at 2020-08-16]
|
59
|
+
end
|
60
|
+
|
61
|
+
test "test" do
|
62
|
+
diff = <<~MSG
|
63
|
+
|
64
|
+
r3 | dgroup | 2020-08-16 11:27:01 +0300 (Sun, 16 Aug 2020) | 1 line
|
65
|
+
|
66
|
+
Add description for 189 issue
|
67
|
+
|
68
|
+
Index: 189.md
|
69
|
+
===================================================================
|
70
|
+
--- 189.md (nonexistent)
|
71
|
+
+++ 189.md (revision 3)
|
72
|
+
@@ -0,0 +1,9 @@
|
73
|
+
+*Issue 189*
|
74
|
+
+https://github.com/dgroup/lazylead/issues/189
|
75
|
+
+
|
76
|
+
+Find stable svn repo which can be used for stable test, for
|
77
|
+
+now only floating repo used for testing locally. Also, create a new
|
78
|
+
+method "ping" which can be used during tests like
|
79
|
+
+```ruby
|
80
|
+
+skip "No connection available to svn repo" unless ping("https://riouxsvn.com")
|
81
|
+
+```
|
82
|
+
|
83
|
+
Index: readme.md
|
84
|
+
===================================================================
|
85
|
+
--- readme.md (revision 2)
|
86
|
+
+++ readme.md (revision 3)
|
87
|
+
@@ -3,4 +3,5 @@
|
88
|
+
More
|
89
|
+
- https://github.com/dgroup/lazylead
|
90
|
+
- https://github.com/dgroup/lazylead/blob/master/lib/lazylead/task/touch.rb
|
91
|
+
- - https://github.com/dgroup/lazylead/blob/master/test/lazylead/task/touch_test.rb
|
92
|
+
|
93
|
+
+ - https://github.com/dgroup/lazylead/blob/master/test/lazylead/task/touch_test.rb
|
94
|
+
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
MSG
|
99
|
+
assert_equal 15, Entry.new(diff).diff(%w[ping]).size,
|
100
|
+
"There is one commit with 'ping' word where diff has 14 lines"
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
@@ -23,20 +23,20 @@
|
|
23
23
|
# OR OTHER DEALINGS IN THE SOFTWARE.
|
24
24
|
|
25
25
|
require "mail"
|
26
|
-
require_relative "
|
27
|
-
require_relative "
|
28
|
-
require_relative "
|
29
|
-
require_relative "
|
30
|
-
require_relative "
|
26
|
+
require_relative "../../../test"
|
27
|
+
require_relative "../../../../lib/lazylead/smtp"
|
28
|
+
require_relative "../../../../lib/lazylead/opts"
|
29
|
+
require_relative "../../../../lib/lazylead/postman"
|
30
|
+
require_relative "../../../../lib/lazylead/task/svn/touch"
|
31
31
|
|
32
32
|
module Lazylead
|
33
|
-
class
|
33
|
+
class TouchTest < Lazylead::Test
|
34
34
|
test "important files changed in svn repo" do
|
35
35
|
skip "No svn credentials provided" unless env? "svn_touch_user",
|
36
36
|
"svn_touch_password"
|
37
37
|
skip "No internet connection to riouxsvn.com" unless ping? "riouxsvn.com"
|
38
38
|
Lazylead::Smtp.new.enable
|
39
|
-
Task::
|
39
|
+
Task::Svn::Touch.new.run(
|
40
40
|
[],
|
41
41
|
Postman.new,
|
42
42
|
Opts.new(
|
@@ -58,31 +58,4 @@ module Lazylead
|
|
58
58
|
%w[3 dgroup /189.md Add\ description\ for\ 189\ issue]
|
59
59
|
end
|
60
60
|
end
|
61
|
-
|
62
|
-
class SvnLogTest < Lazylead::Test
|
63
|
-
test "changes since revision" do
|
64
|
-
skip "No svn credentials provided" unless env? "svn_log_user",
|
65
|
-
"svn_log_password"
|
66
|
-
skip "No internet connection to riouxsvn.com" unless ping? "riouxsvn.com"
|
67
|
-
Lazylead::Smtp.new.enable
|
68
|
-
Task::SvnLog.new.run(
|
69
|
-
[],
|
70
|
-
Postman.new,
|
71
|
-
Opts.new(
|
72
|
-
"from" => "svnlog@test.com",
|
73
|
-
"svn_url" => "https://svn.riouxsvn.com/touch4ll",
|
74
|
-
"svn_user" => ENV["svn_log_user"],
|
75
|
-
"svn_password" => ENV["svn_log_password"],
|
76
|
-
"commit_url" => "https://view.commit.com?rev=",
|
77
|
-
"user" => "https://user.com?id=",
|
78
|
-
"to" => "lead@fake.com",
|
79
|
-
"since_rev" => "1",
|
80
|
-
"subject" => "[SVN] Changed since rev1",
|
81
|
-
"template" => "lib/messages/svn_log.erb"
|
82
|
-
)
|
83
|
-
)
|
84
|
-
assert_email_line "[SVN] Changed since rev1",
|
85
|
-
%w[r2 by dgroup at 2020-08-16]
|
86
|
-
end
|
87
|
-
end
|
88
61
|
end
|
@@ -37,4 +37,5 @@ values ('echo', 'cron:* * * * *', 'false', 1, 1, 1, 'Lazylead::Task::Echo', '{}'
|
|
37
37
|
('task with complex cc', '', 'false', 165, 1, 1, 'Lazylead::Task::Echo','{"cc":{"type":"Lazylead::PredefinedCC","opts": {"jvm":"tom@fake.com","jdbc":"mike@fake.com"}}}'),
|
38
38
|
('issue 171', '', 'false', 171, 1, 1, 'Lazylead::Task::Echo', '{"envkey":"${key171}"}'),
|
39
39
|
('issue 195', '', 'false', 195, 1, 1, 'Lazylead::Task::Accuracy', '{"key":"value"}'),
|
40
|
-
('issue 130', 'in:0.001s', 'true', 130, 1, 1, 'Lazylead::Task::EchoIO', '{}')
|
40
|
+
('issue 130', 'in:0.001s', 'true', 130, 1, 1, 'Lazylead::Task::EchoIO', '{}'),
|
41
|
+
('issue 260', 'cron:* * * * *', 'false', 260, 1, 1, 'Lazylead::Task::EchoIO', '{abc}');
|
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.
|
4
|
+
version: 0.6.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: 2020-
|
11
|
+
date: 2020-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: colorize
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.8.1
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.8.1
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: faraday
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,7 +165,7 @@ dependencies:
|
|
151
165
|
- !ruby/object:Gem::Version
|
152
166
|
version: 2.1.2
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
168
|
+
name: require_all
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
156
170
|
requirements:
|
157
171
|
- - '='
|
@@ -165,61 +179,61 @@ dependencies:
|
|
165
179
|
- !ruby/object:Gem::Version
|
166
180
|
version: 3.0.0
|
167
181
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
182
|
+
name: rufus-scheduler
|
169
183
|
requirement: !ruby/object:Gem::Requirement
|
170
184
|
requirements:
|
171
185
|
- - '='
|
172
186
|
- !ruby/object:Gem::Version
|
173
|
-
version: 3.
|
187
|
+
version: 3.6.0
|
174
188
|
type: :runtime
|
175
189
|
prerelease: false
|
176
190
|
version_requirements: !ruby/object:Gem::Requirement
|
177
191
|
requirements:
|
178
192
|
- - '='
|
179
193
|
- !ruby/object:Gem::Version
|
180
|
-
version: 3.
|
194
|
+
version: 3.6.0
|
181
195
|
- !ruby/object:Gem::Dependency
|
182
|
-
name:
|
196
|
+
name: slop
|
183
197
|
requirement: !ruby/object:Gem::Requirement
|
184
198
|
requirements:
|
185
199
|
- - '='
|
186
200
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
201
|
+
version: '4.4'
|
188
202
|
type: :runtime
|
189
203
|
prerelease: false
|
190
204
|
version_requirements: !ruby/object:Gem::Requirement
|
191
205
|
requirements:
|
192
206
|
- - '='
|
193
207
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
208
|
+
version: '4.4'
|
195
209
|
- !ruby/object:Gem::Dependency
|
196
|
-
name:
|
210
|
+
name: sqlite3
|
197
211
|
requirement: !ruby/object:Gem::Requirement
|
198
212
|
requirements:
|
199
213
|
- - '='
|
200
214
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
215
|
+
version: 1.4.2
|
202
216
|
type: :runtime
|
203
217
|
prerelease: false
|
204
218
|
version_requirements: !ruby/object:Gem::Requirement
|
205
219
|
requirements:
|
206
220
|
- - '='
|
207
221
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
222
|
+
version: 1.4.2
|
209
223
|
- !ruby/object:Gem::Dependency
|
210
|
-
name:
|
224
|
+
name: tempfile
|
211
225
|
requirement: !ruby/object:Gem::Requirement
|
212
226
|
requirements:
|
213
227
|
- - '='
|
214
228
|
- !ruby/object:Gem::Version
|
215
|
-
version: 1.
|
229
|
+
version: 0.1.0
|
216
230
|
type: :runtime
|
217
231
|
prerelease: false
|
218
232
|
version_requirements: !ruby/object:Gem::Requirement
|
219
233
|
requirements:
|
220
234
|
- - '='
|
221
235
|
- !ruby/object:Gem::Version
|
222
|
-
version: 1.
|
236
|
+
version: 0.1.0
|
223
237
|
- !ruby/object:Gem::Dependency
|
224
238
|
name: tilt
|
225
239
|
requirement: !ruby/object:Gem::Requirement
|
@@ -616,20 +630,26 @@ files:
|
|
616
630
|
- lib/lazylead/task/accuracy/testcase.rb
|
617
631
|
- lib/lazylead/task/accuracy/wiki.rb
|
618
632
|
- lib/lazylead/task/alert.rb
|
633
|
+
- lib/lazylead/task/assignment.rb
|
619
634
|
- lib/lazylead/task/confluence_ref.rb
|
620
635
|
- lib/lazylead/task/echo.rb
|
621
636
|
- lib/lazylead/task/fix_version.rb
|
622
637
|
- lib/lazylead/task/missing_comment.rb
|
623
638
|
- lib/lazylead/task/propagate_down.rb
|
624
639
|
- lib/lazylead/task/savepoint.rb
|
625
|
-
- lib/lazylead/task/
|
640
|
+
- lib/lazylead/task/svn/diff.rb
|
641
|
+
- lib/lazylead/task/svn/grep.rb
|
642
|
+
- lib/lazylead/task/svn/touch.rb
|
626
643
|
- lib/lazylead/version.rb
|
627
644
|
- lib/messages/accuracy.erb
|
628
645
|
- lib/messages/due_date_expired.erb
|
646
|
+
- lib/messages/illegal_assignee_change.erb
|
629
647
|
- lib/messages/illegal_fixversion_change.erb
|
630
648
|
- lib/messages/missing_comment.erb
|
631
649
|
- lib/messages/savepoint.erb
|
632
|
-
- lib/messages/
|
650
|
+
- lib/messages/svn_diff.erb
|
651
|
+
- lib/messages/svn_diff_attachment.erb
|
652
|
+
- lib/messages/svn_grep.erb
|
633
653
|
- lib/messages/svn_touch.erb
|
634
654
|
- license.txt
|
635
655
|
- readme.md
|
@@ -651,11 +671,13 @@ files:
|
|
651
671
|
- test/lazylead/task/accuracy/environment_test.rb
|
652
672
|
- test/lazylead/task/accuracy/logs_test.rb
|
653
673
|
- test/lazylead/task/accuracy/records_test.rb
|
674
|
+
- test/lazylead/task/accuracy/score_test.rb
|
654
675
|
- test/lazylead/task/accuracy/servers_test.rb
|
655
676
|
- test/lazylead/task/accuracy/stacktrace_test.rb
|
656
677
|
- test/lazylead/task/accuracy/testcase_test.rb
|
657
678
|
- test/lazylead/task/accuracy/wiki_test.rb
|
658
679
|
- test/lazylead/task/assignee_alert_test.rb
|
680
|
+
- test/lazylead/task/assignment_test.rb
|
659
681
|
- test/lazylead/task/confluence_ref_test.rb
|
660
682
|
- test/lazylead/task/duedate_test.rb
|
661
683
|
- test/lazylead/task/echo_test.rb
|
@@ -663,7 +685,9 @@ files:
|
|
663
685
|
- test/lazylead/task/missing_comment_test.rb
|
664
686
|
- test/lazylead/task/propagate_down_test.rb
|
665
687
|
- test/lazylead/task/savepoint_test.rb
|
666
|
-
- test/lazylead/task/
|
688
|
+
- test/lazylead/task/svn/diff_test.rb
|
689
|
+
- test/lazylead/task/svn/grep_test.rb
|
690
|
+
- test/lazylead/task/svn/touch_test.rb
|
667
691
|
- test/lazylead/version_test.rb
|
668
692
|
- test/sqlite_test.rb
|
669
693
|
- test/test.rb
|
@@ -674,7 +698,7 @@ licenses:
|
|
674
698
|
- MIT
|
675
699
|
metadata: {}
|
676
700
|
post_install_message: |-
|
677
|
-
Thanks for installing Lazylead v0.
|
701
|
+
Thanks for installing Lazylead v0.6.2!
|
678
702
|
Read our blog posts: https://lazylead.org
|
679
703
|
Stay in touch with the community in Telegram: https://t.me/lazylead
|
680
704
|
Follow us on Twitter: https://twitter.com/lazylead
|
@@ -717,11 +741,13 @@ test_files:
|
|
717
741
|
- test/lazylead/task/accuracy/environment_test.rb
|
718
742
|
- test/lazylead/task/accuracy/logs_test.rb
|
719
743
|
- test/lazylead/task/accuracy/records_test.rb
|
744
|
+
- test/lazylead/task/accuracy/score_test.rb
|
720
745
|
- test/lazylead/task/accuracy/servers_test.rb
|
721
746
|
- test/lazylead/task/accuracy/stacktrace_test.rb
|
722
747
|
- test/lazylead/task/accuracy/testcase_test.rb
|
723
748
|
- test/lazylead/task/accuracy/wiki_test.rb
|
724
749
|
- test/lazylead/task/assignee_alert_test.rb
|
750
|
+
- test/lazylead/task/assignment_test.rb
|
725
751
|
- test/lazylead/task/confluence_ref_test.rb
|
726
752
|
- test/lazylead/task/duedate_test.rb
|
727
753
|
- test/lazylead/task/echo_test.rb
|
@@ -729,7 +755,9 @@ test_files:
|
|
729
755
|
- test/lazylead/task/missing_comment_test.rb
|
730
756
|
- test/lazylead/task/propagate_down_test.rb
|
731
757
|
- test/lazylead/task/savepoint_test.rb
|
732
|
-
- test/lazylead/task/
|
758
|
+
- test/lazylead/task/svn/diff_test.rb
|
759
|
+
- test/lazylead/task/svn/grep_test.rb
|
760
|
+
- test/lazylead/task/svn/touch_test.rb
|
733
761
|
- test/lazylead/version_test.rb
|
734
762
|
- test/sqlite_test.rb
|
735
763
|
- test/test.rb
|