mail_grabber 1.2.1 → 1.3.0

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: 0dd58a8c4a209377bde0a889539208418aa1245b1b42a3e1799a4976711b01c4
4
- data.tar.gz: e8fa33ca7477ff7c0366eb5239f8718e6e1b000693288b282406084489cfa398
3
+ metadata.gz: d5ed200e3646e50bca4fcc83c87f5f1d73526ff259f20c32b5e173f2e736a6de
4
+ data.tar.gz: ba1a3991959017efe34d664bcfa41dcd70a2d5dd8d24118bb2478e9dd77aec1d
5
5
  SHA512:
6
- metadata.gz: f328e5349f02f4a4f0236f85b1712d9795ca9a41b74662d231c781c045f1122fa816dc1d49d10bae9026fd4c4da57fd3f193cef6aa2cb98ad0966367e6d0fb90
7
- data.tar.gz: 5eb4c771eefb94b130e601d5be15fe816eb8503d5a0c93997a3c2a2e46b151d6c11e76cee6e38c0665c6c9b6b88009f33b811e6a0e81a775e40165d222787dc3
6
+ metadata.gz: 98479ae02348b9870c88d7bbbdaafc29a33ba19100411da2007ee0fbf37f8155c6f693a417ba61ac59744b92c409a52ece95567678ec3f7de4b6a05f9c4cb1a2
7
+ data.tar.gz: 50595e7c0dd1b0db976f8641e4ef4621202e730f02af7c1617765f3498e675dc13045a8d0793d7d76bda86f6f0ebf4fa91a56a9792ea04240fd65e0838bfd6b8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Change log
2
2
 
3
+ ## 1.3.0 (2022-10-04)
4
+
5
+ ### Changes
6
+
7
+ * Replace rack to rackup gem as a dependency.
8
+ In the rack 3.x gem it was extracted rackup command, Rack::Server, Rack::Handler, Rack::Lobster and related code into a separate gem.
9
+ * Update bundler and gems.
10
+
11
+ ### Bug fixes
12
+
13
+ * Fix infinite scroll.
14
+ In the new Chrome browser, the scrollTop is a float and not an integer. Because of that, the infinite scroll was stopped working.
15
+ * Override webrick server for capybara in RSpec configuration.
16
+ At this moment capybara does not support the new rack/rackup changes.
17
+
18
+
3
19
  ## 1.2.1 (2022-05-27)
4
20
 
5
21
  ### Changes
@@ -35,7 +51,7 @@
35
51
  ### Changes
36
52
 
37
53
  * Update documentation.
38
- * Change javascript to hide HTML tab if mail does not have HTML part.
54
+ * Change JavaScript to hide HTML tab if mail does not have HTML part.
39
55
  * Refactoring the JavaScript code.
40
56
  * Change the documentation uri in the gemspec file.
41
57
  * Update .rubocop.yml.
@@ -239,7 +239,7 @@ module MailGrabber
239
239
  if File.exist?(db_location)
240
240
  SQLite3::Database.new(db_location, **DATABASE[:params])
241
241
  else
242
- Dir.mkdir(DATABASE[:folder]) unless Dir.exist?(DATABASE[:folder])
242
+ FileUtils.mkdir_p(DATABASE[:folder])
243
243
 
244
244
  SQLite3::Database.new(db_location, **DATABASE[:params]).tap do |db|
245
245
  create_mail_table(db)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MailGrabber
4
- VERSION = '1.2.1'
4
+ VERSION = '1.3.0'
5
5
  end
@@ -77,7 +77,7 @@ var MailGrabberApplication = {
77
77
  var scrollTop = messageList.scrollTop;
78
78
  var clientHeight = messageList.clientHeight;
79
79
 
80
- if(scrollHeight - scrollTop === clientHeight &&
80
+ if(scrollTop + clientHeight >= scrollHeight - 0.5 &&
81
81
  !MailGrabberVariables.messageListReloading) {
82
82
  MailGrabberApplication.getMessageList();
83
83
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail_grabber
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Norbert Szivós
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-27 00:00:00.000000000 Z
11
+ date: 2022-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail
@@ -25,19 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.5'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rack
28
+ name: rackup
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.2.3.1
33
+ version: '0.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.2.3.1
40
+ version: '0.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sqlite3
43
43
  requirement: !ruby/object:Gem::Requirement