lazylead 0.10.1 → 0.10.2

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
  SHA256:
3
- metadata.gz: ddf0f9e22eff50a83a0161cc969c6397c326d88a21dcc0a191634645a22bff67
4
- data.tar.gz: ed262c75c351a8bdfc317123b04de69c854af92fe79234b01e85c3664e16a576
3
+ metadata.gz: 1fa41cd073bf1df41fee51ab890e6fd72a379bc0f4fd3d6db118194bbbcad85f
4
+ data.tar.gz: 310978fbc087cb95064a28c86e48f79cd03928217f03701df7976a74d8b0442b
5
5
  SHA512:
6
- metadata.gz: dc478328e0831adf45af81deaf82427e6f279607d3547fafe5c9593707eb3d39642426fc5f0239a0147fd0d007931e2712337a73da49dd33e6e423c16b947f9c
7
- data.tar.gz: 930bb2edee338509549c3afe7d9d0dcea5f5391e7f5f6b6bf9cdfc9f2263cb723efedc0596df4e33babdf9d4c02af1401442dfa1ab7f5ffac6b13dccfb2b160b
6
+ metadata.gz: bacaf9e2ba2a774e979e4957ca8e18623188a419b0a9f5363ea237692dc9977376e78411bbe0fcf0f575a8ac80352258aaa35236554c824302ffa99d4994ebf3
7
+ data.tar.gz: 7df938335a3179983280f254194cb9f1e8e6b3b0de2cf890ed97a38b7056d5aa0a3ec073ec0a3e1c47a5480c7f3f003be1f07a328e5da90a5f4f278e8c5be2ba
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.10.1"
35
+ s.version = "0.10.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.10.1!
48
+ s.post_install_message = "Thanks for installing Lazylead v0.10.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
@@ -70,7 +70,7 @@ tasks instead of solving technical problems."
70
70
  s.add_runtime_dependency "railties", "6.1.3"
71
71
  s.add_runtime_dependency "require_all", "3.0.0"
72
72
  s.add_runtime_dependency "rubyzip", "2.3.2"
73
- s.add_runtime_dependency "rufus-scheduler", "3.7.0"
73
+ s.add_runtime_dependency "rufus-scheduler", "3.8.0"
74
74
  s.add_runtime_dependency "slop", "4.9.1"
75
75
  s.add_runtime_dependency "sqlite3", "1.4.2"
76
76
  s.add_runtime_dependency "tempfile", "0.1.1"
@@ -80,7 +80,7 @@ tasks instead of solving technical problems."
80
80
  s.add_runtime_dependency "vcs4sql", "0.1.1"
81
81
  s.add_runtime_dependency "viewpoint", "1.1.1"
82
82
  s.add_development_dependency "codecov", "0.5.2"
83
- s.add_development_dependency "guard", "2.17.0"
83
+ s.add_development_dependency "guard", "2.18.0"
84
84
  s.add_development_dependency "guard-minitest", "2.4.6"
85
85
  s.add_development_dependency "minitest", "5.14.4"
86
86
  s.add_development_dependency "minitest-fail-fast", "0.1.0"
@@ -35,6 +35,7 @@ module Lazylead
35
35
  end
36
36
 
37
37
  def passed(issue)
38
+ return false if @link.nil? || (@link.is_a?(Array) && @link.empty?)
38
39
  super(issue) || link?(issue)
39
40
  end
40
41
 
@@ -46,7 +47,9 @@ module Lazylead
46
47
  .reject(&:blank?)
47
48
  .flat_map(&:split)
48
49
  .reject(&:blank?)
49
- .any? { |word| word.start_with? @link }
50
+ .any? do |word|
51
+ @link.is_a?(Array) ? @link.any? { |l| word.start_with? l } : word.start_with?(@link)
52
+ end
50
53
  end
51
54
  end
52
55
  end
@@ -36,8 +36,7 @@ module Lazylead
36
36
 
37
37
  def passed(issue)
38
38
  return false if @fields.nil? || @fields.empty?
39
- return true if @fields.all? { |f| non_blank?(issue, f) }
40
- false
39
+ @fields.all? { |f| non_blank?(issue, f) }
41
40
  end
42
41
  end
43
42
  end
@@ -56,9 +56,9 @@ module Lazylead
56
56
 
57
57
  # Detect all pictures in ticket attachments and returns an array with file names.
58
58
  def pictures(issue)
59
- @pictures ||= issue.attachments
60
- .select { |a| @ext.include? File.extname(a.filename).downcase }
61
- .map(&:filename)
59
+ issue.attachments
60
+ .select { |a| @ext.include? File.extname(a.filename).downcase }
61
+ .map(&:filename)
62
62
  end
63
63
  end
64
64
  end
@@ -23,5 +23,5 @@
23
23
  # OR OTHER DEALINGS IN THE SOFTWARE.
24
24
 
25
25
  module Lazylead
26
- VERSION = "0.10.1"
26
+ VERSION = "0.10.2"
27
27
  end
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.10.1
4
+ version: 0.10.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-07-13 00:00:00.000000000 Z
11
+ date: 2021-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -226,14 +226,14 @@ dependencies:
226
226
  requirements:
227
227
  - - '='
228
228
  - !ruby/object:Gem::Version
229
- version: 3.7.0
229
+ version: 3.8.0
230
230
  type: :runtime
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
234
  - - '='
235
235
  - !ruby/object:Gem::Version
236
- version: 3.7.0
236
+ version: 3.8.0
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: slop
239
239
  requirement: !ruby/object:Gem::Requirement
@@ -366,14 +366,14 @@ dependencies:
366
366
  requirements:
367
367
  - - '='
368
368
  - !ruby/object:Gem::Version
369
- version: 2.17.0
369
+ version: 2.18.0
370
370
  type: :development
371
371
  prerelease: false
372
372
  version_requirements: !ruby/object:Gem::Requirement
373
373
  requirements:
374
374
  - - '='
375
375
  - !ruby/object:Gem::Version
376
- version: 2.17.0
376
+ version: 2.18.0
377
377
  - !ruby/object:Gem::Dependency
378
378
  name: guard-minitest
379
379
  requirement: !ruby/object:Gem::Requirement
@@ -791,7 +791,7 @@ licenses:
791
791
  - MIT
792
792
  metadata: {}
793
793
  post_install_message: |-
794
- Thanks for installing Lazylead v0.10.1!
794
+ Thanks for installing Lazylead v0.10.2!
795
795
  Read our blog posts: https://lazylead.org
796
796
  Stay in touch with the community in Telegram: https://t.me/lazylead
797
797
  Follow us on Twitter: https://twitter.com/lazylead