johnhenry 1.0.14 → 1.0.15
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 +9 -0
- data/app/assets/stylesheets/johnhenry/home.css.scss +4 -0
- data/app/models/john_henry_user.rb +7 -7
- data/lib/johnhenry/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 351b78244b6cceb26d2a9849095050f27c1fb306
|
4
|
+
data.tar.gz: a84b3165014407a7b2cfecfddb0064f401ea648f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16c91f11120ab7b99de560be91a1375a6048b13768284b3d4a732c896406237e5e1ac7cb4d1cc3aa9bba258f70f7d90651f2e40449b9856e7869776e886d79e5
|
7
|
+
data.tar.gz: 2b470d384b8e20552ac29fe1172345da6cad1ec9675e1e66a41d3141aa0bc68a45b231d38c519a297131a4fd9c833ddbc9c8ee40e35ac4f4a25e272864f010c5
|
data/README.md
CHANGED
@@ -101,6 +101,7 @@ Congratulations! You made something on the internet!
|
|
101
101
|
|
102
102
|
## Extended / Optional Setup
|
103
103
|
1. Set up Stripe and Google Analytics:
|
104
|
+
https://www.google.com/analytics/web/#management/Settings
|
104
105
|
```bash
|
105
106
|
heroku config:set \
|
106
107
|
GOOGLE_ANALYTICS_DOMAIN=sampleproject.herokuapp.com \
|
@@ -108,10 +109,14 @@ GOOGLE_ANALYTICS_UA=UA-56346779-1 \
|
|
108
109
|
STRIPE_PUBLISHABLE_KEY=pk_zv4FnnuZ28LFHccVSajbQQaTxnaZl
|
109
110
|
STRIPE_SECRET_KEY=lbVrAG8WhPb2cHG9ryBBi1psT4ZREpm8
|
110
111
|
```
|
112
|
+
1. Google Webmaster Tools
|
113
|
+
After setting up Google Analytics, it's easy to link to Webmaster tools:
|
114
|
+
`https://www.google.com/webmasters/tools/home?hl=en`
|
111
115
|
|
112
116
|
1. Add the free tier of SendGrid to enable user account emails:
|
113
117
|
```bash
|
114
118
|
heroku addons:add sendgrid:starter
|
119
|
+
heroku config:add BCC_EMAILS=you@example.com
|
115
120
|
```
|
116
121
|
|
117
122
|
1. Add pgbackups and take your first database backup:
|
@@ -149,6 +154,10 @@ heroku config:set NEW_RELIC_APP_NAME="SampleProject"
|
|
149
154
|
git push heroku master
|
150
155
|
```
|
151
156
|
|
157
|
+
|
158
|
+
1. Custom Bootstrap color theme:
|
159
|
+
http://www.lavishbootstrap.com/
|
160
|
+
|
152
161
|
# Contributing
|
153
162
|
Bug fixes are welcome as pull requests against master. If you have bigger ideas,
|
154
163
|
please get in contact with me at `derewecki@gmail.com`.
|
@@ -4,7 +4,7 @@ class JohnHenryUser < ActiveRecord::Base
|
|
4
4
|
# :confirmable, :lockable, :timeoutable and :omniauthable
|
5
5
|
devise :database_authenticatable, :registerable,
|
6
6
|
:recoverable, :rememberable, :trackable, :validatable
|
7
|
-
|
7
|
+
after_create :send_signup_email, if: :john_henry_signup_email_enabled?
|
8
8
|
|
9
9
|
def guess_name_from_email
|
10
10
|
s = email.split('@').first.try(:titleize)
|
@@ -14,11 +14,11 @@ class JohnHenryUser < ActiveRecord::Base
|
|
14
14
|
private
|
15
15
|
|
16
16
|
def send_signup_email
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
17
|
+
JohnHenryMailer.signup(self).deliver
|
18
|
+
end
|
19
|
+
|
20
|
+
def john_henry_signup_email_enabled?
|
21
|
+
Rails.application.config.respond_to?('send_johnhenry_signup_email') &&
|
22
|
+
Rails.application.config.send_johnhenry_signup_email
|
23
23
|
end
|
24
24
|
end
|
data/lib/johnhenry/version.rb
CHANGED