mail_room 0.11.0 → 0.11.1
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 +4 -4
- data/.github/workflows/ci.yml +2 -2
- data/CHANGELOG.md +4 -0
- data/lib/mail_room/delivery/postback.rb +13 -1
- data/lib/mail_room/version.rb +1 -1
- data/mail_room.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 19af01fda7b569451fb82914c0f0e58ea2cfac4e4e1ac9c4d9a9675639f17ce8
|
|
4
|
+
data.tar.gz: 8136e87b65e4ba1601b11067206fc723096d7b9b3db54d17b749642c4c00f84c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 490ad54534238439f740a917d3b010a19e5b710dcdcc87b265b48f9e7df1632a27cd492ee626872db8e7fe44f96dab56deb770bc394a9a4748089f80eefed5ce
|
|
7
|
+
data.tar.gz: c73bcb68f9a2b2bb3a9002a8a6eff236876bfbd2d22a9c83272f748796247aa9582e4a87153425ecd773b4e848e768addb74bf3bbbbf611cde199b5a76c43f7e
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -31,7 +31,7 @@ jobs:
|
|
|
31
31
|
- '3.0'
|
|
32
32
|
- '2.7'
|
|
33
33
|
steps:
|
|
34
|
-
- uses: actions/checkout@
|
|
34
|
+
- uses: actions/checkout@v4
|
|
35
35
|
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
36
36
|
uses: ruby/setup-ruby@v1
|
|
37
37
|
with:
|
|
@@ -43,7 +43,7 @@ jobs:
|
|
|
43
43
|
rubocop:
|
|
44
44
|
runs-on: ubuntu-latest
|
|
45
45
|
steps:
|
|
46
|
-
- uses: actions/checkout@
|
|
46
|
+
- uses: actions/checkout@v4
|
|
47
47
|
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
48
48
|
uses: ruby/setup-ruby@v1
|
|
49
49
|
with:
|
data/CHANGELOG.md
CHANGED
|
@@ -71,7 +71,7 @@ module MailRoom
|
|
|
71
71
|
connection = Faraday.new
|
|
72
72
|
|
|
73
73
|
if @delivery_options.token_auth?
|
|
74
|
-
connection
|
|
74
|
+
config_token_auth(connection)
|
|
75
75
|
elsif @delivery_options.basic_auth?
|
|
76
76
|
config_basic_auth(connection)
|
|
77
77
|
end
|
|
@@ -101,6 +101,18 @@ module MailRoom
|
|
|
101
101
|
request.headers[@delivery_options.jwt.header] = @delivery_options.jwt.token
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
+
def config_token_auth(connection)
|
|
105
|
+
# connection.token_auth was removed in Faraday v2 in favor of connection.request(:authorization, 'Token', token)
|
|
106
|
+
if defined?(connection.token_auth)
|
|
107
|
+
connection.token_auth @delivery_options.token
|
|
108
|
+
else
|
|
109
|
+
connection.request(
|
|
110
|
+
:authorization, 'Token',
|
|
111
|
+
@delivery_options.token
|
|
112
|
+
)
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
104
116
|
def config_basic_auth(connection)
|
|
105
117
|
if defined?(connection.basic_auth)
|
|
106
118
|
connection.basic_auth(
|
data/lib/mail_room/version.rb
CHANGED
data/mail_room.gemspec
CHANGED
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |gem|
|
|
|
24
24
|
gem.add_development_dependency "rake"
|
|
25
25
|
gem.add_development_dependency "rspec", "~> 3.9"
|
|
26
26
|
gem.add_development_dependency "rubocop", "~> 1.11"
|
|
27
|
-
gem.add_development_dependency "mocha", "~>
|
|
27
|
+
gem.add_development_dependency "mocha", "~> 2.0"
|
|
28
28
|
gem.add_development_dependency "simplecov"
|
|
29
29
|
|
|
30
30
|
# for testing delivery methods
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mail_room
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.11.
|
|
4
|
+
version: 0.11.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tony Pitale
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-02-
|
|
11
|
+
date: 2024-02-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: net-imap
|
|
@@ -106,14 +106,14 @@ dependencies:
|
|
|
106
106
|
requirements:
|
|
107
107
|
- - "~>"
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
|
-
version: '
|
|
109
|
+
version: '2.0'
|
|
110
110
|
type: :development
|
|
111
111
|
prerelease: false
|
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
|
113
113
|
requirements:
|
|
114
114
|
- - "~>"
|
|
115
115
|
- !ruby/object:Gem::Version
|
|
116
|
-
version: '
|
|
116
|
+
version: '2.0'
|
|
117
117
|
- !ruby/object:Gem::Dependency
|
|
118
118
|
name: simplecov
|
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|