johnhenry 1.0.14 → 1.0.15

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
  SHA1:
3
- metadata.gz: 7d6f3b8a71ee41cb8b313beb13964f44e27b9cfd
4
- data.tar.gz: b8adbb5d6c564192af5df45302a3e29db4bff70f
3
+ metadata.gz: 351b78244b6cceb26d2a9849095050f27c1fb306
4
+ data.tar.gz: a84b3165014407a7b2cfecfddb0064f401ea648f
5
5
  SHA512:
6
- metadata.gz: 50ec09fd99a200d9fc5888dc1eca83bf6fb42d193a2c0d3a5392698edd468114a9a0cce4ef877021a5c148e075567ab24a8b3a9329e87fa7312e0a464bdcdbd1
7
- data.tar.gz: 0339ee24696ee992232a36a0611c75a3a93c4b4b2ce2fb354df64846bb7ff8a5e073c8133609a4709fc7233b317564a4534204a4fa21420d05e85ee922cfb8c7
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`.
@@ -12,6 +12,7 @@
12
12
  font-size: 14px;
13
13
  }
14
14
  }
15
+
15
16
  #common-modules,
16
17
  #google-analytics,
17
18
  #stripe,
@@ -21,6 +22,9 @@
21
22
  font-size: 26px;
22
23
  margin-bottom: 15px;
23
24
  }
25
+ .row img {
26
+ border-radius: 10px;
27
+ }
24
28
  }
25
29
  #readme img {
26
30
  width: 320px;
@@ -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
- after_save :send_signup_email
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
- if Rails.application.config.respond_to?('send_johnhenry_signup_email') &&
18
- Rails.application.config.send_johnhenry_signup_email
19
- JohnHenryMailer.signup(self).deliver
20
- else
21
- Rails.logger.info "Skipped send_signup_email"
22
- end
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
@@ -1,3 +1,3 @@
1
1
  module JohnHenry
2
- VERSION = '1.0.14'
2
+ VERSION = '1.0.15'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: johnhenry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.14
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Derewecki