mailto 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1489b60f5885ab72863231dd4e0c287fb5651945b96bcd11d63d9a2261ed664
4
- data.tar.gz: 6f4d3e2a53dd2b7b2c9df3ef5c7147800b6b0a4d9941a82d944b08518fe0bdf3
3
+ metadata.gz: 30bb33b9b120440861292ec7debef7f2da8a1657ca9a4e398ee55716d32e3dd9
4
+ data.tar.gz: 41e5bdd5ac4f9a6fc9cd68efe22ec7118ce65856ef2fdfd65bfc305bf442e9aa
5
5
  SHA512:
6
- metadata.gz: ef31fb17f622a5446d0661f94fa82c60f25bcd71b4d2977e1c7a2d64fcc5fe1a722f45ebd58381ea8bf7d4487338edfc5b1d9ee46895d497df16fbbe9ade7679
7
- data.tar.gz: 60ef731a84b88f3aefa1008bf93b658642188471a9c64739cbaa2142afb860b175cc873d6eace7131228a0dd9148946017c83dfd7a638ae259040ef82ea405e5
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
- Explain the generator
2
+ Installs mailto gem and creates ./app/mailtos/support.txt.erb example template.
3
3
 
4
4
  Example:
5
- bin/rails generate install Thing
5
+ bin/rails generate mailto:install
6
6
 
7
7
  This will create:
8
- what/will/it/create
8
+ app/mailtos/*.txt.erb
@@ -1,4 +1,4 @@
1
- class Mailto::InstallGenerator < Rails::Generators::NamedBase
1
+ class Mailto::InstallGenerator < Rails::Generators::Base
2
2
  source_root File.expand_path("templates", __dir__)
3
3
 
4
4
  def copy_templates
@@ -1,3 +1,3 @@
1
1
  module Mailto
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler