rspec-mailer_matcher 0.1.1 → 0.1.2
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/dependabot.yml +36 -0
- data/.github/workflows/release.yml +52 -0
- data/.github/workflows/test.yml +20 -0
- data/README.md +11 -3
- data/lib/mailer_matcher/version.rb +1 -1
- data/rspec-mailer_matcher.gemspec +2 -3
- metadata +14 -29
- data/Gemfile.lock +0 -92
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1b8849da66d7a1c28bc68c648dc5400476ec0ec97e78c98e18bbbc66f88c0df0
|
|
4
|
+
data.tar.gz: c3c43e2d812eba78de21372cd979e478ecf2058dc546c4236b3470348c9ef428
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3efbd737b7ba04959fe63e00c63793d6f7a799a84c5269e0e05e43b50f9bb0f8a0a56649856267fad9128b1999be43949eca552a79bf5bfd6eb6d858045661d1
|
|
7
|
+
data.tar.gz: 0e7be1021032915217fe581471f3365ec928e007627683977529b79bb4117d04f9fa4dd656b16db7de8db9ebfa72e38008e1785637961935282d261b5a81ab9e
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: bundler
|
|
4
|
+
directory: "/"
|
|
5
|
+
schedule:
|
|
6
|
+
interval: daily
|
|
7
|
+
open-pull-requests-limit: 10
|
|
8
|
+
ignore:
|
|
9
|
+
- dependency-name: nokogiri
|
|
10
|
+
versions:
|
|
11
|
+
- 1.11.1
|
|
12
|
+
- 1.11.2
|
|
13
|
+
- dependency-name: actionmailer
|
|
14
|
+
versions:
|
|
15
|
+
- 6.1.1
|
|
16
|
+
- 6.1.2
|
|
17
|
+
- 6.1.2.1
|
|
18
|
+
- 6.1.3
|
|
19
|
+
- dependency-name: actionview
|
|
20
|
+
versions:
|
|
21
|
+
- 6.1.1
|
|
22
|
+
- 6.1.2
|
|
23
|
+
- 6.1.2.1
|
|
24
|
+
- 6.1.3
|
|
25
|
+
- dependency-name: activesupport
|
|
26
|
+
versions:
|
|
27
|
+
- 6.1.1
|
|
28
|
+
- 6.1.2
|
|
29
|
+
- 6.1.2.1
|
|
30
|
+
- 6.1.3
|
|
31
|
+
- dependency-name: actionpack
|
|
32
|
+
versions:
|
|
33
|
+
- 6.1.1
|
|
34
|
+
- 6.1.2
|
|
35
|
+
- 6.1.2.1
|
|
36
|
+
- 6.1.3
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
bump:
|
|
7
|
+
description: "Version bump type"
|
|
8
|
+
required: true
|
|
9
|
+
type: choice
|
|
10
|
+
options:
|
|
11
|
+
- patch
|
|
12
|
+
- minor
|
|
13
|
+
- major
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: write
|
|
17
|
+
id-token: write
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
release:
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v6
|
|
24
|
+
|
|
25
|
+
- name: Set up Ruby
|
|
26
|
+
uses: ruby/setup-ruby@v1
|
|
27
|
+
with:
|
|
28
|
+
ruby-version: ruby
|
|
29
|
+
bundler-cache: true
|
|
30
|
+
|
|
31
|
+
- name: Install gem-release
|
|
32
|
+
run: gem install gem-release
|
|
33
|
+
|
|
34
|
+
- name: Configure git
|
|
35
|
+
run: |
|
|
36
|
+
git config user.name "github-actions[bot]"
|
|
37
|
+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
38
|
+
|
|
39
|
+
- name: Bump version, commit, tag, push
|
|
40
|
+
id: version
|
|
41
|
+
run: |
|
|
42
|
+
gem bump --version ${{ inputs.bump }} --file lib/mailer_matcher/version.rb --tag --push
|
|
43
|
+
new=$(ruby -r ./lib/mailer_matcher/version -e 'print MailerMatcher::VERSION')
|
|
44
|
+
echo "tag=v${new}" >> "$GITHUB_OUTPUT"
|
|
45
|
+
|
|
46
|
+
- name: Create GitHub Release
|
|
47
|
+
run: gh release create "${{ steps.version.outputs.tag }}" --generate-notes
|
|
48
|
+
env:
|
|
49
|
+
GH_TOKEN: ${{ github.token }}
|
|
50
|
+
|
|
51
|
+
- name: Publish gem to RubyGems
|
|
52
|
+
uses: rubygems/release-gem@v1
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
|
|
3
|
+
on: [push]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
strategy:
|
|
9
|
+
matrix:
|
|
10
|
+
ruby: ["3.3", "3.4", "4.0"]
|
|
11
|
+
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v6
|
|
14
|
+
- name: Set up Ruby
|
|
15
|
+
uses: ruby/setup-ruby@v1
|
|
16
|
+
with:
|
|
17
|
+
ruby-version: ${{ matrix.ruby }}
|
|
18
|
+
bundler-cache: true
|
|
19
|
+
- name: Build and test with Rake
|
|
20
|
+
run: bundle exec rake
|
data/README.md
CHANGED
|
@@ -19,13 +19,21 @@ Or install it yourself as:
|
|
|
19
19
|
|
|
20
20
|
## Usage
|
|
21
21
|
|
|
22
|
+
First of all, add the following line to your `spec_helper.rb` or `rails_helper.rb`:
|
|
23
|
+
|
|
24
|
+
```ruby
|
|
25
|
+
require 'rspec-mailer_matcher'
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Then, you can use `deliver` matcher:
|
|
29
|
+
|
|
22
30
|
```ruby
|
|
23
31
|
it {
|
|
24
|
-
expect { _any_action_ }.to deliver
|
|
32
|
+
expect { _any_action_ }.to deliver to: 'to@example.org', from: 'from@example.org', subject: 'Hello world'
|
|
25
33
|
}
|
|
26
34
|
```
|
|
27
35
|
|
|
28
|
-
or using `subject` block
|
|
36
|
+
or using `subject` block:
|
|
29
37
|
|
|
30
38
|
```ruby
|
|
31
39
|
subject {
|
|
@@ -33,7 +41,7 @@ subject {
|
|
|
33
41
|
}
|
|
34
42
|
|
|
35
43
|
it {
|
|
36
|
-
is_expected.to deliver
|
|
44
|
+
is_expected.to deliver to: 'to@example.org', from: 'from@example.org', subject: 'Hello world'
|
|
37
45
|
}
|
|
38
46
|
```
|
|
39
47
|
|
|
@@ -37,7 +37,6 @@ Gem::Specification.new do |spec|
|
|
|
37
37
|
spec.require_paths = ["lib"]
|
|
38
38
|
|
|
39
39
|
spec.add_dependency "actionmailer"
|
|
40
|
-
spec.add_development_dependency "
|
|
41
|
-
spec.add_development_dependency "
|
|
42
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
|
40
|
+
spec.add_development_dependency "rake"
|
|
41
|
+
spec.add_development_dependency "rspec"
|
|
43
42
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-mailer_matcher
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- d-mato
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: actionmailer
|
|
@@ -24,48 +23,34 @@ dependencies:
|
|
|
24
23
|
- - ">="
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
25
|
version: '0'
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: bundler
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - "~>"
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '1.17'
|
|
34
|
-
type: :development
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '1.17'
|
|
41
26
|
- !ruby/object:Gem::Dependency
|
|
42
27
|
name: rake
|
|
43
28
|
requirement: !ruby/object:Gem::Requirement
|
|
44
29
|
requirements:
|
|
45
|
-
- - "
|
|
30
|
+
- - ">="
|
|
46
31
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
32
|
+
version: '0'
|
|
48
33
|
type: :development
|
|
49
34
|
prerelease: false
|
|
50
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
36
|
requirements:
|
|
52
|
-
- - "
|
|
37
|
+
- - ">="
|
|
53
38
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '
|
|
39
|
+
version: '0'
|
|
55
40
|
- !ruby/object:Gem::Dependency
|
|
56
41
|
name: rspec
|
|
57
42
|
requirement: !ruby/object:Gem::Requirement
|
|
58
43
|
requirements:
|
|
59
|
-
- - "
|
|
44
|
+
- - ">="
|
|
60
45
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
46
|
+
version: '0'
|
|
62
47
|
type: :development
|
|
63
48
|
prerelease: false
|
|
64
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
50
|
requirements:
|
|
66
|
-
- - "
|
|
51
|
+
- - ">="
|
|
67
52
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
53
|
+
version: '0'
|
|
69
54
|
description: Rspec macther for ActionMailer
|
|
70
55
|
email:
|
|
71
56
|
- telnetstat@gmail.com
|
|
@@ -73,11 +58,13 @@ executables: []
|
|
|
73
58
|
extensions: []
|
|
74
59
|
extra_rdoc_files: []
|
|
75
60
|
files:
|
|
61
|
+
- ".github/dependabot.yml"
|
|
62
|
+
- ".github/workflows/release.yml"
|
|
63
|
+
- ".github/workflows/test.yml"
|
|
76
64
|
- ".gitignore"
|
|
77
65
|
- ".rspec"
|
|
78
66
|
- ".travis.yml"
|
|
79
67
|
- Gemfile
|
|
80
|
-
- Gemfile.lock
|
|
81
68
|
- LICENSE.txt
|
|
82
69
|
- README.md
|
|
83
70
|
- Rakefile
|
|
@@ -90,7 +77,6 @@ homepage: https://github.com/d-mato/rspec-mailer_matcher
|
|
|
90
77
|
licenses:
|
|
91
78
|
- MIT
|
|
92
79
|
metadata: {}
|
|
93
|
-
post_install_message:
|
|
94
80
|
rdoc_options: []
|
|
95
81
|
require_paths:
|
|
96
82
|
- lib
|
|
@@ -105,8 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
105
91
|
- !ruby/object:Gem::Version
|
|
106
92
|
version: '0'
|
|
107
93
|
requirements: []
|
|
108
|
-
rubygems_version:
|
|
109
|
-
signing_key:
|
|
94
|
+
rubygems_version: 4.0.6
|
|
110
95
|
specification_version: 4
|
|
111
96
|
summary: Rspec macther for ActionMailer
|
|
112
97
|
test_files: []
|
data/Gemfile.lock
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
rspec-mailer_matcher (0.1.1)
|
|
5
|
-
actionmailer
|
|
6
|
-
|
|
7
|
-
GEM
|
|
8
|
-
remote: https://rubygems.org/
|
|
9
|
-
specs:
|
|
10
|
-
actionmailer (5.2.2)
|
|
11
|
-
actionpack (= 5.2.2)
|
|
12
|
-
actionview (= 5.2.2)
|
|
13
|
-
activejob (= 5.2.2)
|
|
14
|
-
mail (~> 2.5, >= 2.5.4)
|
|
15
|
-
rails-dom-testing (~> 2.0)
|
|
16
|
-
actionpack (5.2.2)
|
|
17
|
-
actionview (= 5.2.2)
|
|
18
|
-
activesupport (= 5.2.2)
|
|
19
|
-
rack (~> 2.0)
|
|
20
|
-
rack-test (>= 0.6.3)
|
|
21
|
-
rails-dom-testing (~> 2.0)
|
|
22
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
23
|
-
actionview (5.2.2)
|
|
24
|
-
activesupport (= 5.2.2)
|
|
25
|
-
builder (~> 3.1)
|
|
26
|
-
erubi (~> 1.4)
|
|
27
|
-
rails-dom-testing (~> 2.0)
|
|
28
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
|
29
|
-
activejob (5.2.2)
|
|
30
|
-
activesupport (= 5.2.2)
|
|
31
|
-
globalid (>= 0.3.6)
|
|
32
|
-
activesupport (5.2.2)
|
|
33
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
34
|
-
i18n (>= 0.7, < 2)
|
|
35
|
-
minitest (~> 5.1)
|
|
36
|
-
tzinfo (~> 1.1)
|
|
37
|
-
builder (3.2.3)
|
|
38
|
-
concurrent-ruby (1.1.4)
|
|
39
|
-
crass (1.0.4)
|
|
40
|
-
diff-lcs (1.3)
|
|
41
|
-
erubi (1.8.0)
|
|
42
|
-
globalid (0.4.1)
|
|
43
|
-
activesupport (>= 4.2.0)
|
|
44
|
-
i18n (1.4.0)
|
|
45
|
-
concurrent-ruby (~> 1.0)
|
|
46
|
-
loofah (2.2.3)
|
|
47
|
-
crass (~> 1.0.2)
|
|
48
|
-
nokogiri (>= 1.5.9)
|
|
49
|
-
mail (2.7.1)
|
|
50
|
-
mini_mime (>= 0.1.1)
|
|
51
|
-
mini_mime (1.0.1)
|
|
52
|
-
mini_portile2 (2.4.0)
|
|
53
|
-
minitest (5.11.3)
|
|
54
|
-
nokogiri (1.9.1)
|
|
55
|
-
mini_portile2 (~> 2.4.0)
|
|
56
|
-
rack (2.0.6)
|
|
57
|
-
rack-test (1.1.0)
|
|
58
|
-
rack (>= 1.0, < 3)
|
|
59
|
-
rails-dom-testing (2.0.3)
|
|
60
|
-
activesupport (>= 4.2.0)
|
|
61
|
-
nokogiri (>= 1.6)
|
|
62
|
-
rails-html-sanitizer (1.0.4)
|
|
63
|
-
loofah (~> 2.2, >= 2.2.2)
|
|
64
|
-
rake (10.5.0)
|
|
65
|
-
rspec (3.8.0)
|
|
66
|
-
rspec-core (~> 3.8.0)
|
|
67
|
-
rspec-expectations (~> 3.8.0)
|
|
68
|
-
rspec-mocks (~> 3.8.0)
|
|
69
|
-
rspec-core (3.8.0)
|
|
70
|
-
rspec-support (~> 3.8.0)
|
|
71
|
-
rspec-expectations (3.8.2)
|
|
72
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
73
|
-
rspec-support (~> 3.8.0)
|
|
74
|
-
rspec-mocks (3.8.0)
|
|
75
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
76
|
-
rspec-support (~> 3.8.0)
|
|
77
|
-
rspec-support (3.8.0)
|
|
78
|
-
thread_safe (0.3.6)
|
|
79
|
-
tzinfo (1.2.5)
|
|
80
|
-
thread_safe (~> 0.1)
|
|
81
|
-
|
|
82
|
-
PLATFORMS
|
|
83
|
-
ruby
|
|
84
|
-
|
|
85
|
-
DEPENDENCIES
|
|
86
|
-
bundler (~> 1.17)
|
|
87
|
-
rake (~> 10.0)
|
|
88
|
-
rspec (~> 3.0)
|
|
89
|
-
rspec-mailer_matcher!
|
|
90
|
-
|
|
91
|
-
BUNDLED WITH
|
|
92
|
-
1.17.2
|