imap-backup 1.4.1 → 1.4.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: ba4d1bb4b39acb8ef6aa707597c076634247b4d3c40f825a4211154ed71ed819
4
- data.tar.gz: bec9af3c45916fb5689abf66d32cfd2efc5cd5727aa9c020c04dd288b3196702
3
+ metadata.gz: 37b1f605db79f10d3520f0f718e457d38c839003380f53fc7c1259a16293952e
4
+ data.tar.gz: e13a7ab06d0c3a9e93ef52709de8f23a6fe4eaba720f51a3535aa2b984468df5
5
5
  SHA512:
6
- metadata.gz: 0d8b05fc23db3b9c349b71f3032a5c8425b292ea8ec502f8470b8ac04abb1f08996d1ffdda0bc43a8984706ad8978d8148c20f46322e3a001ceabf593a39320d
7
- data.tar.gz: 00e26007978d585fa5abac837b8129f0f3f36bc5da8018c20d77c050f3e3aff24abb61ea637dbfe4f6351cd87f3d73b76a5e7990f114da4414f96330c92b138f
6
+ metadata.gz: 9961d6f0ddde8b511f77d1cf0a1ebec932d2a98a0b6762c18ea36496365125b451818c1d9565527b146ccb8a7c495e17d6f590600caee8aa7a02d128edf8fe19
7
+ data.tar.gz: 511c7025476ff56508d6538bc74ba382d2af741ba1c2ee8eabf36ceb6ce002b9d18ef51fc731d1aed4e8f20cfbeb998c3ccd39000528cccaa45c365403ffea3f
@@ -19,14 +19,7 @@ class Email::Provider
19
19
  end
20
20
 
21
21
  def options
22
- case provider
23
- when :gmail
24
- {port: 993, ssl: {ssl_version: :TLSv1_2}}
25
- when :fastmail
26
- {port: 993, ssl: true}
27
- else
28
- {port: 993, ssl: true}
29
- end
22
+ {port: 993, ssl: {ssl_version: :TLSv1_2}}
30
23
  end
31
24
 
32
25
  def host
@@ -3,6 +3,6 @@ module Imap; end
3
3
  module Imap::Backup
4
4
  MAJOR = 1
5
5
  MINOR = 4
6
- REVISION = 1
6
+ REVISION = 2
7
7
  VERSION = [MAJOR, MINOR, REVISION].map(&:to_s).join(".")
8
8
  end
@@ -28,6 +28,10 @@ describe Email::Provider do
28
28
  it "returns options" do
29
29
  expect(subject.options).to be_a(Hash)
30
30
  end
31
+
32
+ it "forces TLSv1_2" do
33
+ expect(subject.options[:ssl][:ssl_version]).to eq(:TLSv1_2)
34
+ end
31
35
  end
32
36
 
33
37
  describe "#host" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imap-backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Yates
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-08 00:00:00.000000000 Z
11
+ date: 2019-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake