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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 351b78244b6cceb26d2a9849095050f27c1fb306
4
- data.tar.gz: a84b3165014407a7b2cfecfddb0064f401ea648f
3
+ metadata.gz: 6bcdcd7232c350da398d0557599b4da5d1bcd257
4
+ data.tar.gz: ad50480b88929a99918d9b1732020af026d0a932
5
5
  SHA512:
6
- metadata.gz: 16c91f11120ab7b99de560be91a1375a6048b13768284b3d4a732c896406237e5e1ac7cb4d1cc3aa9bba258f70f7d90651f2e40449b9856e7869776e886d79e5
7
- data.tar.gz: 2b470d384b8e20552ac29fe1172345da6cad1ec9675e1e66a41d3141aa0bc68a45b231d38c519a297131a4fd9c833ddbc9c8ee40e35ac4f4a25e272864f010c5
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 Stripe and Google Analytics:
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
@@ -12,7 +12,6 @@
12
12
  font-size: 14px;
13
13
  }
14
14
  }
15
-
16
15
  #common-modules,
17
16
  #google-analytics,
18
17
  #stripe,
@@ -22,9 +21,6 @@
22
21
  font-size: 26px;
23
22
  margin-bottom: 15px;
24
23
  }
25
- .row img {
26
- border-radius: 10px;
27
- }
28
24
  }
29
25
  #readme img {
30
26
  width: 320px;
@@ -1,3 +1,3 @@
1
1
  module JohnHenry
2
- VERSION = '1.0.15'
2
+ VERSION = '1.0.16'
3
3
  end
@@ -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(%w(app assets javascripts application.js), 12, code)
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.15
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-10 00:00:00.000000000 Z
11
+ date: 2014-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails