flatiron-rails 1.0.0 → 1.0.1
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/lib/flatiron_rails.rb +1 -1
- data/templates/flatiron.rb +29 -0
- 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: 9f8a25592da3345aaeda8a088ce2b10bd54e37fe
|
4
|
+
data.tar.gz: 833d84d7ed54c7f8eb5a331f9b0c29d0798b2516
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd560e6cd774bff61cbab835d58f9d339e356fe19cab9197a1abea73cc4f37fa815a4bcc6c9c0415ee2996d7b4785e33f0c7ca3d26b18ffd861dfaeaef8e471f
|
7
|
+
data.tar.gz: 037603c0a52eedc25dc63ab088450625e50a4491cfab58eb1431e045629ff6779dd727a8cd480be496fa1c905812564a5b5b9ea1b8c1ac4ce6bec4c1cac27a53
|
data/lib/flatiron_rails.rb
CHANGED
data/templates/flatiron.rb
CHANGED
@@ -204,9 +204,23 @@ if yes?("Use Devise? [y/N]")
|
|
204
204
|
add_secret_for(:host => 'YOUR PRODUCTION HOST URL/IP HERE', :env => 'production')
|
205
205
|
end
|
206
206
|
|
207
|
+
# Optionally set up Airbrake
|
208
|
+
airbrake = false
|
209
|
+
airbrake_api_key = ""
|
210
|
+
|
211
|
+
if yes?("Install Airbrake for error tracking? [y/N]")
|
212
|
+
gem 'airbrake'
|
213
|
+
|
214
|
+
if yes?("Do you already have an api key? (If not, set one up at https://airbrake.io/account/new/Free) [y/N]")
|
215
|
+
airbrake_api_key = ask("What is it? (Don't worry, you can always set this up later.)")
|
216
|
+
airbrake = true
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
207
220
|
# Bundle
|
208
221
|
system("bundle")
|
209
222
|
|
223
|
+
# Install Devise
|
210
224
|
if devise
|
211
225
|
run('rails generate devise:install')
|
212
226
|
if yes?("Setup user model for Devise? [y/N]")
|
@@ -220,6 +234,13 @@ if devise
|
|
220
234
|
end
|
221
235
|
end
|
222
236
|
|
237
|
+
# Install Airbrake
|
238
|
+
if airbrake
|
239
|
+
if airbrake_api_key.length > 20
|
240
|
+
run("rails generate airbrake --api-key #{airbrake_api_key}")
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
223
244
|
# Generate RSpec files
|
224
245
|
generate(:"rspec:install")
|
225
246
|
|
@@ -395,6 +416,14 @@ file 'STACK.md', <<-STACK.strip_heredoc.chomp
|
|
395
416
|
3. Google Analytics is set up to track your app
|
396
417
|
* Set up an application on Google Analytics
|
397
418
|
* You will need to add your analytics tracking code to `config/secrets.yml`
|
419
|
+
4. Set up Airbrake (Optional)
|
420
|
+
* If you entered your api key during project creation, you're all set!
|
421
|
+
* Otherwise, visit [Airbrake](https://airbrake.io/account/new/Free) and set
|
422
|
+
up a free account.
|
423
|
+
* When it asks for "subdomain", it really means "username" (it's also a required
|
424
|
+
field, even though it doesn't seem like it)
|
425
|
+
* Generate your api key, then on your command line (in the project root), run:
|
426
|
+
`rails g airbrake --api-key your_api_key_here
|
398
427
|
|
399
428
|
Deploying to Heroku:
|
400
429
|
1. `bin/setup [<app_name>]`
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flatiron-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arel English
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-03-
|
13
|
+
date: 2014-03-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|