imap-backup 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +51 -0
- data/README.md +2 -2
- data/bin/imap-backup +1 -1
- data/imap-backup.gemspec +1 -0
- data/lib/imap/backup/configuration/gmail_oauth2.rb +1 -1
- data/lib/imap/backup/version.rb +1 -1
- data/spec/fixtures/connection.yml +1 -1
- data/spec/support/fixtures.rb +7 -2
- data/spec/unit/gmail/authenticator_spec.rb +1 -1
- metadata +18 -4
- data/.travis.yml +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41b597de5360d295f1e974e5014c7b8004749298b4332db083aea95e5aa0815a
|
4
|
+
data.tar.gz: 95da2ebb094473eae711c85b177b6beb10153cfb1f3074942165599f40d54f63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 063bcef552b10a3cdff22d7c92346466533bea168b37d258db4277fe8165edb38967194933b5fd1d17cc5a245f721bcd14201f3f6e604092a39ea17fd4002978
|
7
|
+
data.tar.gz: 9121fda4183536a3a9856ad9fc6e0c1a416d31b44b5dc5e88cb884e3c843cfb668754d2a30fb024399c35aa0137d66ec2143cc2eb5df075b3445120348ae6fd9
|
@@ -0,0 +1,51 @@
|
|
1
|
+
version: 2.1
|
2
|
+
|
3
|
+
orbs:
|
4
|
+
ruby: circleci/ruby@1.1.2
|
5
|
+
|
6
|
+
references:
|
7
|
+
restore: &restore
|
8
|
+
restore_cache:
|
9
|
+
keys:
|
10
|
+
- 'imap.backup.<< parameters.ruby_version >>.{{checksum "imap-backup.gemspec"}}'
|
11
|
+
bundle: &bundle
|
12
|
+
run:
|
13
|
+
name: Install Ruby dependencies
|
14
|
+
command: |
|
15
|
+
bundle install
|
16
|
+
bundle clean
|
17
|
+
save: &save
|
18
|
+
save_cache:
|
19
|
+
key: 'imap.backup.<< parameters.ruby_version >>.{{checksum "imap-backup.gemspec"}}'
|
20
|
+
paths:
|
21
|
+
- vendor/bundle
|
22
|
+
|
23
|
+
jobs:
|
24
|
+
test:
|
25
|
+
parameters:
|
26
|
+
ruby_version:
|
27
|
+
type: string
|
28
|
+
environment:
|
29
|
+
BUNDLE_PATH: ./vendor/bundle
|
30
|
+
DOCKER_IMAP_PORT: 993
|
31
|
+
docker:
|
32
|
+
- image: "cimg/ruby:<< parameters.ruby_version >>"
|
33
|
+
- image: antespi/docker-imap-devel:latest
|
34
|
+
environment:
|
35
|
+
MAIL_ADDRESS: address@example.org
|
36
|
+
MAIL_PASS: pass
|
37
|
+
MAILNAME: example.org
|
38
|
+
steps:
|
39
|
+
- checkout
|
40
|
+
- <<: *restore
|
41
|
+
- <<: *bundle
|
42
|
+
- <<: *save
|
43
|
+
- ruby/rspec-test
|
44
|
+
|
45
|
+
workflows:
|
46
|
+
all-tests:
|
47
|
+
jobs:
|
48
|
+
- test:
|
49
|
+
matrix:
|
50
|
+
parameters:
|
51
|
+
ruby_version: ["2.4", "2.5", "2.6", "2.7"]
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[![Build Status](https://
|
1
|
+
[![Build Status](https://circleci.com/gh/joeyates/imap-backup.svg?style=svg)][Continuous Integration]
|
2
2
|
[![Source Analysis](https://codeclimate.com/github/joeyates/imap-backup/badges/gpa.svg)](https://codeclimate.com/github/joeyates/imap-backup)
|
3
3
|
[![Test Coverage](https://codeclimate.com/github/joeyates/imap-backup/badges/coverage.svg)](https://codeclimate.com/github/joeyates/imap-backup/coverage)
|
4
4
|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
[Source Code]: https://github.com/joeyates/imap-backup "Source code at GitHub"
|
15
15
|
[API documentation]: http://rubydoc.info/gems/imap-backup/frames "RDoc API Documentation at Rubydoc.info"
|
16
16
|
[Rubygem]: http://rubygems.org/gems/imap-backup "Ruby gem at rubygems.org"
|
17
|
-
[Continuous Integration]:
|
17
|
+
[Continuous Integration]: https://circleci.com/gh/joeyates/imap-backup "Build status by CirceCI"
|
18
18
|
|
19
19
|
## GMail
|
20
20
|
|
data/bin/imap-backup
CHANGED
data/imap-backup.gemspec
CHANGED
@@ -29,6 +29,7 @@ Gem::Specification.new do |gem|
|
|
29
29
|
gem.add_development_dependency "pry-byebug"
|
30
30
|
end
|
31
31
|
gem.add_development_dependency "rspec", ">= 3.0.0"
|
32
|
+
gem.add_development_dependency "rspec_junit_formatter"
|
32
33
|
gem.add_development_dependency "rubocop-rspec"
|
33
34
|
gem.add_development_dependency "simplecov"
|
34
35
|
end
|
@@ -8,7 +8,7 @@ module Imap::Backup
|
|
8
8
|
You need to authorize imap_backup to get access to your email.
|
9
9
|
To do so, please follow the instructions here:
|
10
10
|
|
11
|
-
https://github.com/joeyates/imap-backup/docs/setting-up-gmail.md
|
11
|
+
https://github.com/joeyates/imap-backup/blob/main/docs/setting-up-gmail.md
|
12
12
|
|
13
13
|
BANNER
|
14
14
|
|
data/lib/imap/backup/version.rb
CHANGED
data/spec/support/fixtures.rb
CHANGED
@@ -1,6 +1,11 @@
|
|
1
|
+
require "erb"
|
2
|
+
require "yaml"
|
3
|
+
|
1
4
|
def fixture(name)
|
2
5
|
spec_root = File.expand_path("..", File.dirname(__FILE__))
|
3
6
|
fixture_path = File.join(spec_root, "fixtures", "#{name}.yml")
|
4
|
-
|
5
|
-
|
7
|
+
content = File.read(fixture_path)
|
8
|
+
template = ERB.new(content)
|
9
|
+
yaml = template.result(binding)
|
10
|
+
YAML.safe_load(yaml, [Symbol])
|
6
11
|
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: 3.2.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Yates
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gmail_xoauth
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 3.0.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rspec_junit_formatter
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
140
|
name: rubocop-rspec
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -158,12 +172,12 @@ executables:
|
|
158
172
|
extensions: []
|
159
173
|
extra_rdoc_files: []
|
160
174
|
files:
|
175
|
+
- ".circleci/config.yml"
|
161
176
|
- ".gitignore"
|
162
177
|
- ".rspec"
|
163
178
|
- ".rspec-all"
|
164
179
|
- ".rubocop.yml"
|
165
180
|
- ".rubocop_todo.yml"
|
166
|
-
- ".travis.yml"
|
167
181
|
- Gemfile
|
168
182
|
- LICENSE
|
169
183
|
- README.md
|
@@ -276,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
276
290
|
- !ruby/object:Gem::Version
|
277
291
|
version: '0'
|
278
292
|
requirements: []
|
279
|
-
rubygems_version: 3.
|
293
|
+
rubygems_version: 3.0.3
|
280
294
|
signing_key:
|
281
295
|
specification_version: 4
|
282
296
|
summary: Backup GMail (or other IMAP) accounts to disk
|
data/.travis.yml
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
|
3
|
-
services:
|
4
|
-
- docker
|
5
|
-
|
6
|
-
rvm:
|
7
|
-
- 2.4
|
8
|
-
- 2.5
|
9
|
-
- 2.6
|
10
|
-
- 2.7
|
11
|
-
- jruby-19mode
|
12
|
-
|
13
|
-
branches:
|
14
|
-
only:
|
15
|
-
- master
|
16
|
-
|
17
|
-
before_install:
|
18
|
-
- gem update --system
|
19
|
-
- gem update bundler
|
20
|
-
|
21
|
-
script:
|
22
|
-
- docker pull antespi/docker-imap-devel:latest
|
23
|
-
- docker run -d --env MAIL_ADDRESS=address@example.org --env MAIL_PASS=pass --env MAILNAME=example.org --publish 8993:993 antespi/docker-imap-devel:latest
|
24
|
-
- sleep 10
|
25
|
-
- bundle exec rake
|