auto_previews 0.1.0 → 0.1.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/README.md +2 -2
- data/lib/auto_previews/preview_extensions.rb +1 -1
- data/lib/auto_previews/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 39634f4fcc4be9d331e7378994e5af381c9cc01f9736e4a6b86463549bc5a684
|
|
4
|
+
data.tar.gz: bde650a68376fbd4a2f272c13f357a393f0ca73ab4268384ab5963fd40ec5af6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 638dc9696d81cce18e3abeac51da71803d1054e2f9ba3c59339cedb73ab15390971928f4324dc40012f9983f80ec3ec89cc58018ce859496cfd3cffd224f5262
|
|
7
|
+
data.tar.gz: 8cf18f0f0bfbc61d3f26b34db4e5af7e516ac50ba18f115f75e50c0f9e78d472fe4064416d5c1e40b55513fbbeddda771e3d1d3b3c7bce85760c7f534570759e
|
data/README.md
CHANGED
|
@@ -94,9 +94,9 @@ Passing a proc will `call`; passing a symbol will call the given method on the m
|
|
|
94
94
|
class OneOffMailer < ApplicationMailer
|
|
95
95
|
previews_for model: false,
|
|
96
96
|
params: {
|
|
97
|
-
subject:
|
|
97
|
+
subject: "Hi",
|
|
98
98
|
body: -> { FFaker::CheesyLingo.paragraph },
|
|
99
|
-
}
|
|
99
|
+
}
|
|
100
100
|
end
|
|
101
101
|
```
|
|
102
102
|
|
|
@@ -57,7 +57,7 @@ module AutoPreviews
|
|
|
57
57
|
scope = config[:scope]
|
|
58
58
|
scoped_collection = model
|
|
59
59
|
if scope.is_a?(Proc)
|
|
60
|
-
scoped_collection = scoped_collection.
|
|
60
|
+
scoped_collection = scoped_collection.instance_exec(&scope)
|
|
61
61
|
elsif scope.is_a?(Symbol)
|
|
62
62
|
scoped_collection = scoped_collection.send(scope)
|
|
63
63
|
else
|
metadata
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: auto_previews
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josh Brody
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-07-
|
|
11
|
+
date: 2020-07-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "~>"
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: 6.0.3
|
|
20
17
|
- - ">="
|
|
21
18
|
- !ruby/object:Gem::Version
|
|
22
19
|
version: '5.1'
|
|
20
|
+
- - "~>"
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: 6.0.3
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
26
|
requirements:
|
|
27
|
-
- - "~>"
|
|
28
|
-
- !ruby/object:Gem::Version
|
|
29
|
-
version: 6.0.3
|
|
30
27
|
- - ">="
|
|
31
28
|
- !ruby/object:Gem::Version
|
|
32
29
|
version: '5.1'
|
|
30
|
+
- - "~>"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: 6.0.3
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: sqlite3
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
79
79
|
- !ruby/object:Gem::Version
|
|
80
80
|
version: '0'
|
|
81
81
|
requirements: []
|
|
82
|
-
rubygems_version: 3.
|
|
82
|
+
rubygems_version: 3.0.3
|
|
83
83
|
signing_key:
|
|
84
84
|
specification_version: 4
|
|
85
85
|
summary: Automatically create mailer previews for your mailers.
|