lazylead 0.11.2 → 0.11.3

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: 4a9f540303ac3a6fd834b5d67f63e44fa6a5f7ff3a6fdc7b94886d5313399868
4
- data.tar.gz: d0c5dc8e810eeaff607d277c7be3a03976c8dad3df99a9aa30ad39dd97fd5934
3
+ metadata.gz: 85f4a0cb192b81550bc11f25d2b284e51ba3437726f72bcf5b1d13d5b8e1560f
4
+ data.tar.gz: 2740b477357205bb40195e72b4fbd503a30c5c0ae8a729b4bbae4a2b27e7d6e4
5
5
  SHA512:
6
- metadata.gz: 05c9ec86d37fb1a0c187db82aecd82df5bbe4f6913064dd67b453662404a87be8328e0a5ff1cab5cf4c7c778b995ef076cebaa4ec8e29ad456f9bfc74a2b0867
7
- data.tar.gz: f12ed09c28b76276d27de41b7f23b2ebcba36fbd038a4e5154da87f3b1ca1625dd326c987314e91a64f63bf6f3e22d674646c005b5730b66d0edd1087516a169
6
+ metadata.gz: ce207ea7736acab2e0221ef5f09c6f887e1b6d761167f5fa878553f7de0132856d79d647464e90bba21b619d9a33df869af6b4d0016ea00836628acc53a8ba47
7
+ data.tar.gz: 3a9568ea019e7167a80dfb88d1d202f7de64996d4e9dd2091dd08f0cc5a76b3d46195d7ef0ba5232baa0cf92cbaa0f61f36e3138f8a452bb2277d8c7b34d11a8
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.11.2"
35
+ s.version = "0.11.3"
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.11.2!
48
+ s.post_install_message = "Thanks for installing Lazylead v0.11.3!
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
@@ -96,6 +96,7 @@ tasks instead of solving technical problems."
96
96
  s.add_development_dependency "rubocop-performance", "1.11.5"
97
97
  s.add_development_dependency "rubocop-rake", "0.6.0"
98
98
  s.add_development_dependency "rubocop-rspec", "2.4.0"
99
+ s.add_development_dependency "ruby-prof", "1.4.3"
99
100
  s.add_development_dependency "sqlint", "0.2.0"
100
101
  s.add_development_dependency "tempfile", "0.1.1"
101
102
  s.add_development_dependency "xcop", "0.6.3"
@@ -50,8 +50,8 @@ module Lazylead
50
50
  if task.props.key? "no_logs"
51
51
  ORM::Retry.new(task, @log).exec
52
52
  else
53
- ORM::Verbose.new(
54
- ORM::Retry.new(task, @log),
53
+ ORM::Retry.new(
54
+ ORM::Verbose.new(task, @log),
55
55
  @log
56
56
  ).exec
57
57
  end
@@ -0,0 +1,23 @@
1
+ ## Enable profiler
2
+ ```ruby
3
+ require 'ruby-prof'
4
+ alloc = RubyProf.profile(:track_allocations => true) do
5
+ # code
6
+ end
7
+ printer = RubyProf::MultiPrinter.new(alloc)
8
+ printer.print(:path => ".", :profile => "alloc")
9
+ ```
10
+
11
+ ## Jira allocation memory
12
+ Fields: `assignee,summary,priority,duedate,reporter`
13
+
14
+ | Tickets | Bytes | KB | MB |
15
+ | ------------- | :-------: | :-------: | :-------: |
16
+ | 1 | 40 | 0.03 | 0,00003 |
17
+ | 157 | 6280 | 6.13 | 0.59 |
18
+ | 4315 | 172600 | 168.55 | 0.16 |
19
+ | 10379 | 415160 | 405.42 | 0.39 |
20
+ |~10000 | ~400000 | ~390.625 | ~0.38 |
21
+
22
+ ## GitHub allocation memory
23
+ TBD
@@ -46,11 +46,16 @@ module Lazylead
46
46
 
47
47
  def run(sys, postman, opts)
48
48
  init_rules(opts)
49
- opts[:tickets] = sys.issues(opts["jql"], opts.jira_defaults.merge(expand: "changelog"))
50
- .map { |i| Score.new(i, opts) }
51
- .each(&:evaluate)
52
- .each(&:post)
53
- postman.send(opts) unless opts[:tickets].empty?
49
+ tasks = sys.issues(opts["jql"], opts.jira_defaults.merge(expand: "changelog"))
50
+ .map { |i| Score.new(i, opts) }
51
+ .each do |s|
52
+ s.evaluate
53
+ s.post
54
+ end
55
+ unless tasks.empty? && tasks.size <= opts.fetch(:limit, 300).to_i
56
+ opts[:tickets] = tasks
57
+ postman.send(opts)
58
+ end
54
59
  opts
55
60
  end
56
61
 
@@ -34,7 +34,7 @@ module Lazylead
34
34
  @ext = %w[.webm .mkv .flv .flv .vob .ogv .ogg .drc .gif .gifv .mng .avi
35
35
  .mts .m2ts .ts .mov .qt .wmv .yuv .rm .rmvb .viv .asf .amv .mp4
36
36
  .m4p .m4v .mpg .mp2 .mpeg .mpe .mpv .mpg .mpeg .m2v .m4v .svi
37
- .3gp .3g2 .mxf .roq .nsv .flv .f4v .f4p .f4a .f4b]
37
+ .3gp .3g2 .mxf .roq .nsv .flv .f4v .f4p .f4a .f4b .wrf]
38
38
  end
39
39
 
40
40
  # Ensure that ticket has an attachment with video-file extension
@@ -23,5 +23,5 @@
23
23
  # OR OTHER DEALINGS IN THE SOFTWARE.
24
24
 
25
25
  module Lazylead
26
- VERSION = "0.11.2"
26
+ VERSION = "0.11.3"
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.11.2
4
+ version: 0.11.3
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-09-15 00:00:00.000000000 Z
11
+ date: 2021-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -584,6 +584,20 @@ dependencies:
584
584
  - - '='
585
585
  - !ruby/object:Gem::Version
586
586
  version: 2.4.0
587
+ - !ruby/object:Gem::Dependency
588
+ name: ruby-prof
589
+ requirement: !ruby/object:Gem::Requirement
590
+ requirements:
591
+ - - '='
592
+ - !ruby/object:Gem::Version
593
+ version: 1.4.3
594
+ type: :development
595
+ prerelease: false
596
+ version_requirements: !ruby/object:Gem::Requirement
597
+ requirements:
598
+ - - '='
599
+ - !ruby/object:Gem::Version
600
+ version: 1.4.3
587
601
  - !ruby/object:Gem::Dependency
588
602
  name: sqlint
589
603
  requirement: !ruby/object:Gem::Requirement
@@ -700,6 +714,7 @@ files:
700
714
  - lib/lazylead/salt.rb
701
715
  - lib/lazylead/schedule.rb
702
716
  - lib/lazylead/smtp.rb
717
+ - lib/lazylead/system/allocations.md
703
718
  - lib/lazylead/system/empty.rb
704
719
  - lib/lazylead/system/fake.rb
705
720
  - lib/lazylead/system/jira.rb
@@ -815,7 +830,7 @@ licenses:
815
830
  - MIT
816
831
  metadata: {}
817
832
  post_install_message: |-
818
- Thanks for installing Lazylead v0.11.2!
833
+ Thanks for installing Lazylead v0.11.3!
819
834
  Read our blog posts: https://lazylead.org
820
835
  Stay in touch with the community in Telegram: https://t.me/lazylead
821
836
  Follow us on Twitter: https://twitter.com/lazylead