johnhenry 1.0.15 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -5
- data/app/assets/stylesheets/johnhenry/home.css.scss +0 -4
- data/lib/johnhenry/version.rb +1 -1
- data/lib/tasks/johnhenry_tasks.rake +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bcdcd7232c350da398d0557599b4da5d1bcd257
|
4
|
+
data.tar.gz: ad50480b88929a99918d9b1732020af026d0a932
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 024507c6ede4c28acd33da7b2290ad304b244e352d78c4519a2a2dbbcb06ba3e3a87244a64105e4883a3a5c4093e9074ca61b3d56807c9f6fa5e5d060475cbec
|
7
|
+
data.tar.gz: c6023aa2e4e8548da4ec18c858e0f3e7d4f69bdfb02e1c560ec97a8e807d138589c186ae594fe5793fa0702a92d2e300bff7638143387b00b713065e7129e492
|
data/README.md
CHANGED
@@ -100,24 +100,32 @@ heroku restart
|
|
100
100
|
Congratulations! You made something on the internet!
|
101
101
|
|
102
102
|
## Extended / Optional Setup
|
103
|
-
1. Set up
|
104
|
-
https://www.google.com/analytics/web/#management/Settings
|
103
|
+
1. Set up Google Analytics. You can sign up at:
|
104
|
+
`https://www.google.com/analytics/web/#management/Settings`
|
105
|
+
|
105
106
|
```bash
|
106
107
|
heroku config:set \
|
107
108
|
GOOGLE_ANALYTICS_DOMAIN=sampleproject.herokuapp.com \
|
108
|
-
GOOGLE_ANALYTICS_UA=UA-56346779-1
|
109
|
-
STRIPE_PUBLISHABLE_KEY=pk_zv4FnnuZ28LFHccVSajbQQaTxnaZl
|
110
|
-
STRIPE_SECRET_KEY=lbVrAG8WhPb2cHG9ryBBi1psT4ZREpm8
|
109
|
+
GOOGLE_ANALYTICS_UA=UA-56346779-1
|
111
110
|
```
|
112
111
|
1. Google Webmaster Tools
|
113
112
|
After setting up Google Analytics, it's easy to link to Webmaster tools:
|
114
113
|
`https://www.google.com/webmasters/tools/home?hl=en`
|
115
114
|
|
115
|
+
1. Set up Stripe keys
|
116
|
+
```bash
|
117
|
+
heroku config:set \
|
118
|
+
STRIPE_PUBLISHABLE_KEY=pk_zv4FnnuZ28LFHccVSajbQQaTxnaZl \
|
119
|
+
STRIPE_SECRET_KEY=lbVrAG8WhPb2cHG9ryBBi1psT4ZREpm8
|
120
|
+
```
|
121
|
+
|
116
122
|
1. Add the free tier of SendGrid to enable user account emails:
|
117
123
|
```bash
|
118
124
|
heroku addons:add sendgrid:starter
|
119
125
|
heroku config:add BCC_EMAILS=you@example.com
|
120
126
|
```
|
127
|
+
Setting `BCC_EMAILS` will BCC the provided email with any email sent though
|
128
|
+
`JohnHenryMailer`.
|
121
129
|
|
122
130
|
1. Add pgbackups and take your first database backup:
|
123
131
|
```bash
|
data/lib/johnhenry/version.rb
CHANGED
@@ -82,8 +82,12 @@ namespace :john_henry do
|
|
82
82
|
end
|
83
83
|
|
84
84
|
def install_javascript
|
85
|
+
glob = %w(app assets javascripts application.js)
|
85
86
|
code = ["//= require johnhenry/application\n"]
|
86
|
-
insert_into_file_after(
|
87
|
+
insert_into_file_after(glob, 12, code)
|
88
|
+
source = File.join(Rails.root, *glob)
|
89
|
+
lines = File.readlines(source).reject { |line| line =~ /turbolinks/ }
|
90
|
+
File.open(source, 'w') { |f| f.write(lines.join) }
|
87
91
|
end
|
88
92
|
|
89
93
|
def install_stylesheets
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: johnhenry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Derewecki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|