imap-backup 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b55658c2e579a76e29322a69048814b31069926e
4
- data.tar.gz: 43aa7303ba81aaa1318bcb208be7a8ada52437a9
3
+ metadata.gz: 67b29d9a3aa003996be5342c878f6f8b1913af72
4
+ data.tar.gz: c02b3d254d4dd9a31e7413d544f1addd7d4c819f
5
5
  SHA512:
6
- metadata.gz: 19480ec2c72149a8fefc0eeb6930b673072940b92fa6deae405b2318ab3491894dd1b1e29118ac59640561b8b2396d3a21fb4ff82cc8f40ad0830a375a5bed52
7
- data.tar.gz: 1e9d3f8d900c3eae69e64484d88e506816a4a791b3f260caab01642ffe53f79ce171f3246cf762e05e81f4390108c663e9b4f4f2a5b0e44169325aeae0dc512f
6
+ metadata.gz: 0256eb8c8912aff11b0024a0ab469c108d38de832b25b86773be037c4b1197180aa26c292f637545abbfb9d27703d1b4125feff59c84f8ff1083d3843ec446f4
7
+ data.tar.gz: 3ef69ac66055551d01299647db1d90057f79d976f05a7821d34cacf945dff6e144ccba411d1ceafb081d4262ca2859e9454aebe8d1fbb9d1d688aefa26ce6f04
@@ -1,10 +1,10 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
3
  - 2.0.0
5
4
  - 2.1.5
6
5
  - 2.2.4
7
6
  - 2.3.0
7
+ - 2.4.1
8
8
  branches:
9
9
  only:
10
10
  - master
data/README.md CHANGED
@@ -104,9 +104,11 @@ Specifically, if you are using a self-signed certificate and get SSL errors, e.g
104
104
  }
105
105
  ```
106
106
 
107
- ## Google Apps
107
+ ## GMail
108
108
 
109
109
  * Enable IMAP access to your account via the GMail interface (Settings/Forwarding and POP/IMAP),
110
+ * Under 'Sign-in & security', 'Signing in to Google', 'App passwords', generate a password
111
+ for imap-backup,
110
112
  * In imap-backup setup, set the server to imap.gmail.com
111
113
 
112
114
  # Security
@@ -4,7 +4,7 @@ module Imap::Backup
4
4
  module Configuration; end
5
5
 
6
6
  class Configuration::Asker < Struct.new(:highline)
7
- EMAIL_MATCHER = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i
7
+ EMAIL_MATCHER = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]+$/i
8
8
 
9
9
  def initialize(highline)
10
10
  super
@@ -65,7 +65,7 @@ module Imap::Backup
65
65
  def create_containing_directory
66
66
  mbox_relative_path = File.dirname(mbox_relative_pathname)
67
67
  return if mbox_relative_path == '.'
68
- Utils.make_folder(@path, mbox_relative_path, Serializer::DIRECTORY_PERMISSIONS)
68
+ Utils.make_folder(path, mbox_relative_path, Serializer::DIRECTORY_PERMISSIONS)
69
69
  end
70
70
 
71
71
  def exist?
@@ -81,16 +81,16 @@ module Imap::Backup
81
81
  end
82
82
 
83
83
  def mbox_relative_pathname
84
- @folder + '.mbox'
84
+ folder + '.mbox'
85
85
  end
86
86
 
87
87
  def mbox_pathname
88
- File.join(@path, mbox_relative_pathname)
88
+ File.join(path, mbox_relative_pathname)
89
89
  end
90
90
 
91
91
  def imap_pathname
92
- filename = @folder + '.imap'
93
- File.join(@path, filename)
92
+ filename = folder + '.imap'
93
+ File.join(path, filename)
94
94
  end
95
95
 
96
96
  def lock
@@ -2,7 +2,7 @@ module Imap; end
2
2
 
3
3
  module Imap::Backup
4
4
  MAJOR = 1
5
- MINOR = 1
5
+ MINOR = 2
6
6
  REVISION = 0
7
7
  VERSION = [MAJOR, MINOR, REVISION].map(&:to_s).join('.')
8
8
  end
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.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Yates
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-06 00:00:00.000000000 Z
11
+ date: 2017-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  version: '0'
169
169
  requirements: []
170
170
  rubyforge_project:
171
- rubygems_version: 2.5.1
171
+ rubygems_version: 2.6.11
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Backup GMail (or other IMAP) accounts to disk