mailto 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/generators/mailto/install/USAGE +3 -3
- data/lib/generators/mailto/install/install_generator.rb +1 -1
- data/lib/mailto/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 30bb33b9b120440861292ec7debef7f2da8a1657ca9a4e398ee55716d32e3dd9
|
|
4
|
+
data.tar.gz: 41e5bdd5ac4f9a6fc9cd68efe22ec7118ce65856ef2fdfd65bfc305bf442e9aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c7a6516765dabc2d0f6f2d447342283f3918c327b013588e32c7b6f0c25d62b01d7eaa311df36648c3c2b18158fe8368e9aeb3c3c2a004450ad1e5cfaa4be17a
|
|
7
|
+
data.tar.gz: 38e6d3631baa96842af893e33821ae6a42abafd300c37fbe81b71f81c8b7f8307ebdb85a60d1aa53a0ef1916d683732a02e8e2a008be92d5fb4d7842b95ae1f1
|
data/README.md
CHANGED
|
@@ -20,7 +20,7 @@ This creates the `./app/mailtos` directory and populates it with a few example t
|
|
|
20
20
|
|
|
21
21
|
## Usage
|
|
22
22
|
|
|
23
|
-
Create a mailto template in the `app/mailtos` folder that looks like this:
|
|
23
|
+
Create a mailto template in the `app/mailtos/support.txt.erb` folder that looks like this:
|
|
24
24
|
|
|
25
25
|
```txt
|
|
26
26
|
---
|
|
@@ -37,7 +37,7 @@ Here's my browser information: <%= request.user_agent %>
|
|
|
37
37
|
Cheers!
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
Then load the `mail_to_template` view helper from any of your views:
|
|
40
|
+
Then load the `mail_to_template :support, "send us an email"` view helper from any of your views:
|
|
41
41
|
|
|
42
42
|
```
|
|
43
43
|
<h1>Get help!</h1>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Description:
|
|
2
|
-
|
|
2
|
+
Installs mailto gem and creates ./app/mailtos/support.txt.erb example template.
|
|
3
3
|
|
|
4
4
|
Example:
|
|
5
|
-
bin/rails generate install
|
|
5
|
+
bin/rails generate mailto:install
|
|
6
6
|
|
|
7
7
|
This will create:
|
|
8
|
-
|
|
8
|
+
app/mailtos/*.txt.erb
|
data/lib/mailto/version.rb
CHANGED