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 +4 -4
- data/LICENSE.txt +1 -1
- data/imap_guard.gemspec +1 -1
- data/lib/imap_guard/guard.rb +1 -1
- data/spec/imap_guard/guard_spec.rb +1 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f36a278a938e32e8c512ff775efd692a7b222f2632ed69459dbb3e2e6f99c0e2
|
4
|
+
data.tar.gz: 7236188f1bb6c01b728ea8922701563b430f294d20942ad6530f874d09722156
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c238bb886fb1480699090e6badb827114d998d14f390392bc26a376de8d71684bfb0465c190cde4339d5ed4e967bd50e9450599c937ae32efd5945fed8dfa654
|
7
|
+
data.tar.gz: 994ae01b1c06f52d5f346fa45aa18b03f5c4dc650b1cdf3a54fc1cb00314202c8cf8c25a4a6c5a666b6a31dfd2ea22ae9ff9659170c58caff99c31c5880ba312
|
data/LICENSE.txt
CHANGED
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.
|
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"
|
data/lib/imap_guard/guard.rb
CHANGED
@@ -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
|
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
|
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.
|
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:
|
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.
|
99
|
+
rubygems_version: 3.5.6
|
100
100
|
signing_key:
|
101
101
|
specification_version: 4
|
102
102
|
summary: A guard for your IMAP server
|