imap_guard 2.0.0 → 2.0.1

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: 25df25da92ea0dae5ec4d6aaf9484049aa9713cc358ad43e6fce41628e2007a3
4
- data.tar.gz: '0028b947283d027fa80184fbcbc211e922539644a452e4ed859c4ea3822ec832'
3
+ metadata.gz: f36a278a938e32e8c512ff775efd692a7b222f2632ed69459dbb3e2e6f99c0e2
4
+ data.tar.gz: 7236188f1bb6c01b728ea8922701563b430f294d20942ad6530f874d09722156
5
5
  SHA512:
6
- metadata.gz: 87d43bcba3020e0d2ec1b4a7e5d589abff5fa842ce83ab3405c2216818cfd43c877003613a4d65cb42abe190ab75d72435ab577efdd1dc914ebc77b87f46d74a
7
- data.tar.gz: 4279c2dd1877d4f83508094d0725298d8e08ea1940c0c925c89a4842ffd196465b0cb3186555f73dbf15e50cafbda2b884d8982df0b3162dd1740a608316765a
6
+ metadata.gz: c238bb886fb1480699090e6badb827114d998d14f390392bc26a376de8d71684bfb0465c190cde4339d5ed4e967bd50e9450599c937ae32efd5945fed8dfa654
7
+ data.tar.gz: 994ae01b1c06f52d5f346fa45aa18b03f5c4dc650b1cdf3a54fc1cb00314202c8cf8c25a4a6c5a666b6a31dfd2ea22ae9ff9659170c58caff99c31c5880ba312
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013-2022 Cédric Félizard
1
+ Copyright (c) 2013-2024 Cédric Félizard
2
2
 
3
3
  MIT License
4
4
 
data/imap_guard.gemspec CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "imap_guard"
8
- spec.version = "2.0.0"
8
+ spec.version = "2.0.1"
9
9
  spec.authors = ["Cédric Félizard"]
10
10
  spec.email = ["cedric@felizard.fr"]
11
11
  spec.description = "A guard for your IMAP server"
@@ -37,7 +37,7 @@ module ImapGuard
37
37
  # @see http://www.ruby-doc.org/stdlib-1.9.3/libdoc/net/imap/rdoc/Net/IMAP.html#method-c-new
38
38
  # @return [void]
39
39
  def login
40
- @imap = Net::IMAP.new(@settings.host, @settings.port, true, nil, false)
40
+ @imap = Net::IMAP.new(@settings.host, port: @settings.port, ssl: true)
41
41
  @imap.login(@settings.username, @settings.password)
42
42
  verbose.puts "Logged in successfully"
43
43
  end
@@ -226,11 +226,9 @@ module ImapGuard
226
226
  it "freezes the settings" do
227
227
  guard = described_class.new(settings)
228
228
 
229
- exception = (RUBY_VERSION >= "2.1.0" ? RuntimeError : TypeError)
230
-
231
229
  expect do
232
230
  guard.settings.host = "example.net"
233
- end.to raise_error(exception, /frozen/)
231
+ end.to raise_error RuntimeError, /frozen/
234
232
  end
235
233
 
236
234
  it "raises ArgumentError if any required key is missing" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imap_guard
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cédric Félizard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-23 00:00:00.000000000 Z
11
+ date: 2024-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  requirements: []
99
- rubygems_version: 3.4.6
99
+ rubygems_version: 3.5.6
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: A guard for your IMAP server