lazylead 0.11.1 → 0.11.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: 333915b333e6a6ed286d3ee7e5b984b30ec77745195d0a522b38453c8946bddd
4
- data.tar.gz: 3ad06509a4714b6317a0f013f61a74e3c3de05b58c424de6faf435fe877c7079
3
+ metadata.gz: 4a9f540303ac3a6fd834b5d67f63e44fa6a5f7ff3a6fdc7b94886d5313399868
4
+ data.tar.gz: d0c5dc8e810eeaff607d277c7be3a03976c8dad3df99a9aa30ad39dd97fd5934
5
5
  SHA512:
6
- metadata.gz: db6709844e1f8175a32fadef567cc661d469ce2fd6fbd69050726bb9d0368e41133765b730c4efb5da353c074db2d9a875e51dfffa3e408b65279a13e7f33b33
7
- data.tar.gz: 2189335ff6852e008d489d582653de84653413396283e92724e7ae2c058549dc8a7d0d11d13f431020ec62517179bcab758b05571aa5067a614f64a4f86116d2
6
+ metadata.gz: 05c9ec86d37fb1a0c187db82aecd82df5bbe4f6913064dd67b453662404a87be8328e0a5ff1cab5cf4c7c778b995ef076cebaa4ec8e29ad456f9bfc74a2b0867
7
+ data.tar.gz: f12ed09c28b76276d27de41b7f23b2ebcba36fbd038a4e5154da87f3b1ca1625dd326c987314e91a64f63bf6f3e22d674646c005b5730b66d0edd1087516a169
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.1"
35
+ s.version = "0.11.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.11.1!
48
+ s.post_install_message = "Thanks for installing Lazylead v0.11.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
@@ -58,7 +58,7 @@ tasks instead of solving technical problems."
58
58
  s.add_runtime_dependency "activerecord", "6.1.3"
59
59
  s.add_runtime_dependency "backtrace", "0.3"
60
60
  s.add_runtime_dependency "colorize", "0.8.1"
61
- s.add_runtime_dependency "faraday", "1.7.1"
61
+ s.add_runtime_dependency "faraday", "1.7.2"
62
62
  s.add_runtime_dependency "get_process_mem", "0.2.7"
63
63
  s.add_runtime_dependency "inifile", "3.0.0"
64
64
  s.add_runtime_dependency "jira-ruby", "2.1.5"
@@ -91,7 +91,7 @@ tasks instead of solving technical problems."
91
91
  s.add_development_dependency "rake", "13.0.6"
92
92
  s.add_development_dependency "random-port", "0.5.1"
93
93
  s.add_development_dependency "rdoc", "6.3.2"
94
- s.add_development_dependency "rubocop", "1.20.0"
94
+ s.add_development_dependency "rubocop", "1.21.0"
95
95
  s.add_development_dependency "rubocop-minitest", "0.15.0"
96
96
  s.add_development_dependency "rubocop-performance", "1.11.5"
97
97
  s.add_development_dependency "rubocop-rake", "0.6.0"
@@ -34,14 +34,14 @@ 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 .gif]
37
+ .3gp .3g2 .mxf .roq .nsv .flv .f4v .f4p .f4a .f4b]
38
38
  end
39
39
 
40
40
  # Ensure that ticket has an attachment with video-file extension
41
41
  def matches?(attach)
42
42
  return true if @ext.any? { |e| e.eql? File.extname(attach.attrs["filename"]).downcase }
43
43
  return false if attach.attrs["mimeType"].nil?
44
- @ext.any? { |e| attach.attrs["mimeType"].include? e[1..] }
44
+ @ext.any? { |e| attach.attrs["mimeType"].end_with? "/#{e[1..]}" }
45
45
  end
46
46
  end
47
47
  end
@@ -51,7 +51,7 @@ module Lazylead
51
51
  private
52
52
 
53
53
  def less_mb(path, megabytes)
54
- (File.size(path).to_f / 2**20).round(2) < megabytes.to_i
54
+ (File.size(path).to_f / (2**20)).round(2) < megabytes.to_i
55
55
  end
56
56
  end
57
57
  end
@@ -23,5 +23,5 @@
23
23
  # OR OTHER DEALINGS IN THE SOFTWARE.
24
24
 
25
25
  module Lazylead
26
- VERSION = "0.11.1"
26
+ VERSION = "0.11.2"
27
27
  end
@@ -72,5 +72,20 @@ module Lazylead
72
72
  )
73
73
  )
74
74
  end
75
+
76
+ test "mime type is xlsx" do
77
+ refute Records.new.passed(
78
+ OpenStruct.new(
79
+ attachments: [
80
+ OpenStruct.new(
81
+ attrs: {
82
+ "filename" => "snapshot.xlsx",
83
+ "mimeType" => "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
84
+ }
85
+ )
86
+ ]
87
+ )
88
+ )
89
+ end
75
90
  end
76
91
  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.1
4
+ version: 0.11.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-09-13 00:00:00.000000000 Z
11
+ date: 2021-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 1.7.1
61
+ version: 1.7.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 1.7.1
68
+ version: 1.7.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: get_process_mem
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -520,14 +520,14 @@ dependencies:
520
520
  requirements:
521
521
  - - '='
522
522
  - !ruby/object:Gem::Version
523
- version: 1.20.0
523
+ version: 1.21.0
524
524
  type: :development
525
525
  prerelease: false
526
526
  version_requirements: !ruby/object:Gem::Requirement
527
527
  requirements:
528
528
  - - '='
529
529
  - !ruby/object:Gem::Version
530
- version: 1.20.0
530
+ version: 1.21.0
531
531
  - !ruby/object:Gem::Dependency
532
532
  name: rubocop-minitest
533
533
  requirement: !ruby/object:Gem::Requirement
@@ -815,7 +815,7 @@ licenses:
815
815
  - MIT
816
816
  metadata: {}
817
817
  post_install_message: |-
818
- Thanks for installing Lazylead v0.11.1!
818
+ Thanks for installing Lazylead v0.11.2!
819
819
  Read our blog posts: https://lazylead.org
820
820
  Stay in touch with the community in Telegram: https://t.me/lazylead
821
821
  Follow us on Twitter: https://twitter.com/lazylead