raygun 0.0.32 → 0.0.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.ruby-version +1 -1
- data/CHANGES.md +5 -0
- data/bin/raygun +1 -1
- data/lib/raygun/version.rb +1 -1
- data/rails_32/.ruby-version +1 -1
- data/rails_32/Gemfile +2 -1
- data/rails_32/README.md +12 -1
- data/rails_32/config.ru +3 -0
- data/rails_40/.ruby-version +1 -1
- data/rails_40/Gemfile +2 -2
- data/rails_40/Guardfile +6 -5
- data/rails_40/README.md +12 -1
- data/rails_40/config.ru +3 -0
- metadata +7 -9
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a963ff0bec70e834b463f5160d23005df560a863
|
4
|
+
data.tar.gz: 7ea0876404e14ece6b23e51e6a69b0c2b9ee52c4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c460a51f57ee62a80988b9d1443c588964d3bb310ec80d03806f3817408e921a505395c7418fc830f1c574fd4062c6e5b54b6a7f12da89e947062cda2b127bb5
|
7
|
+
data.tar.gz: b81c2c9d15fda971de9dc9c0b607c27cbc5bb0f6377c820291b76e731f253dd0f031e66e82c182daaa8206994ae3bbb30ed341114fe5e7a4dee4e1a2c431161d
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-
|
1
|
+
ruby-2.0.0-p247
|
data/CHANGES.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.0.33 [2013-07-08]
|
4
|
+
|
5
|
+
* Raygun defaults to generating Rails 4 apps now (use -r 32 for Rails 3.2).
|
6
|
+
* Incluide a recipe for rack-canonical-host (#105). Set ENV['HOSTNAME'] to enable.
|
7
|
+
|
3
8
|
## 0.0.32 [2013-06-18]
|
4
9
|
|
5
10
|
* Rails 4: enable guard-livereload with a tweak to support .less files.
|
data/bin/raygun
CHANGED
@@ -145,7 +145,7 @@ module Raygun
|
|
145
145
|
raygun = nil
|
146
146
|
options = OpenStruct.new
|
147
147
|
options.target_dir = nil
|
148
|
-
options.prototype = '
|
148
|
+
options.prototype = 'rails_40'
|
149
149
|
|
150
150
|
parser = OptionParser.new do |opts|
|
151
151
|
opts.banner = "Usage: raygun [options] NEW_APP_DIRECTORY"
|
data/lib/raygun/version.rb
CHANGED
data/rails_32/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.0.0-p247
|
data/rails_32/Gemfile
CHANGED
data/rails_32/README.md
CHANGED
@@ -8,7 +8,7 @@ Generated with [Raygun](https://github.com/carbonfive/raygun).
|
|
8
8
|
|
9
9
|
To run the specs or fire up the server, be sure you have these:
|
10
10
|
|
11
|
-
* Ruby
|
11
|
+
* Ruby 2.0.0-p247
|
12
12
|
* PostgreSQL 9.x with superuser 'postgres' with no password (```createuser -s postgres```)
|
13
13
|
* PhantomJS for JavaScript testing (```brew install phantomjs```)
|
14
14
|
|
@@ -53,6 +53,17 @@ Install the heroku toolbelt if you don't already have it (https://toolbelt.herok
|
|
53
53
|
$ git push heroku master
|
54
54
|
$ heroku run rake db:setup
|
55
55
|
|
56
|
+
### Environment Variables
|
57
|
+
|
58
|
+
Several common features and operational parameters can be set using environment variables. These are all optional.
|
59
|
+
|
60
|
+
* ```HOSTNAME``` - Canonical hostname for this application. Other incoming requests will be redirected to this hostname.
|
61
|
+
* ```BASIC_AUTH_PASSWORD``` - Enable basic auth with this password.
|
62
|
+
* ```BASIC_AUTH_USER``` - Set a basic auth username (not required, password enables basic auth).
|
63
|
+
* ```PORT``` - Port to listen on (default: 3000).
|
64
|
+
* ```UNICORN_WORKERS``` - Number of unicorn workers to spawn (default: development 1, otherwisee 3) .
|
65
|
+
* ```UNICORN_BACKLOG``` - Depth of unicorn backlog (default: 16).
|
66
|
+
|
56
67
|
# Considerations
|
57
68
|
|
58
69
|
...
|
data/rails_32/config.ru
CHANGED
@@ -5,6 +5,9 @@ require ::File.expand_path('../config/environment', __FILE__)
|
|
5
5
|
# Disable buffering for real time logging, see: https://devcenter.heroku.com/articles/logging#writing-to-your-log
|
6
6
|
$stdout.sync = true
|
7
7
|
|
8
|
+
# Redirect to the custom (canonical) hostname.
|
9
|
+
use Rack::CanonicalHost, ENV['HOSTNAME'] if ENV['HOSTNAME']
|
10
|
+
|
8
11
|
# Optional Basic Auth - Enabled if BASIC_AUTH_PASSWORD is set. User is optional (any value will be accepted).
|
9
12
|
BASIC_AUTH_USER = ENV['BASIC_AUTH_USER']
|
10
13
|
BASIC_AUTH_PASSWORD = ENV['BASIC_AUTH_PASSWORD']
|
data/rails_40/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.0-
|
1
|
+
2.0.0-p247
|
data/rails_40/Gemfile
CHANGED
data/rails_40/Guardfile
CHANGED
@@ -26,8 +26,9 @@ guard :rspec do
|
|
26
26
|
watch(%r{^app/views/(.+)/.*(\.slim)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
|
27
27
|
end
|
28
28
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
29
|
+
guard :jasmine do
|
30
|
+
watch(%r{spec/javascripts/spec\.(js\.coffee|js|coffee)$}) { 'spec/javascripts' }
|
31
|
+
watch(%r{spec/javascripts/.+_spec\.(js\.coffee|js|coffee)$})
|
32
|
+
watch(%r{app/assets/javascripts/(.+?)\.(js\.coffee|js|coffee)(?:\.\w+)*$}) { |m| "spec/javascripts/#{ m[1] }_spec.#{ m[2] }" }
|
33
|
+
end
|
34
|
+
|
data/rails_40/README.md
CHANGED
@@ -8,7 +8,7 @@ Generated with [Raygun](https://github.com/carbonfive/raygun).
|
|
8
8
|
|
9
9
|
To run the specs or fire up the server, be sure you have these:
|
10
10
|
|
11
|
-
* Ruby 2.0.0-
|
11
|
+
* Ruby 2.0.0-p247
|
12
12
|
* PostgreSQL 9.x with superuser 'postgres' with no password (```createuser -s postgres```)
|
13
13
|
* PhantomJS for JavaScript testing (```brew install phantomjs```)
|
14
14
|
|
@@ -61,6 +61,17 @@ Install the heroku toolbelt if you don't already have it (https://toolbelt.herok
|
|
61
61
|
$ git push heroku master
|
62
62
|
$ heroku run rake db:setup
|
63
63
|
|
64
|
+
### Environment Variables
|
65
|
+
|
66
|
+
Several common features and operational parameters can be set using environment variables. These are all optional.
|
67
|
+
|
68
|
+
* ```HOSTNAME``` - Canonical hostname for this application. Other incoming requests will be redirected to this hostname.
|
69
|
+
* ```BASIC_AUTH_PASSWORD``` - Enable basic auth with this password.
|
70
|
+
* ```BASIC_AUTH_USER``` - Set a basic auth username (not required, password enables basic auth).
|
71
|
+
* ```PORT``` - Port to listen on (default: 3000).
|
72
|
+
* ```UNICORN_WORKERS``` - Number of unicorn workers to spawn (default: development 1, otherwisee 3) .
|
73
|
+
* ```UNICORN_BACKLOG``` - Depth of unicorn backlog (default: 16).
|
74
|
+
|
64
75
|
# Considerations
|
65
76
|
|
66
77
|
...
|
data/rails_40/config.ru
CHANGED
@@ -2,6 +2,9 @@
|
|
2
2
|
|
3
3
|
require ::File.expand_path('../config/environment', __FILE__)
|
4
4
|
|
5
|
+
# Redirect to the custom (canonical) hostname.
|
6
|
+
use Rack::CanonicalHost, ENV['HOSTNAME'] if ENV['HOSTNAME']
|
7
|
+
|
5
8
|
# Optional Basic Auth - Enabled if BASIC_AUTH_PASSWORD is set. User is optional (any value will be accepted).
|
6
9
|
BASIC_AUTH_USER = ENV['BASIC_AUTH_USER']
|
7
10
|
BASIC_AUTH_PASSWORD = ENV['BASIC_AUTH_PASSWORD']
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raygun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.33
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Christian Nelson
|
@@ -11,7 +10,7 @@ authors:
|
|
11
10
|
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain: []
|
14
|
-
date: 2013-
|
13
|
+
date: 2013-07-08 00:00:00.000000000 Z
|
15
14
|
dependencies: []
|
16
15
|
description: Carbon Five Rails application generator
|
17
16
|
email:
|
@@ -253,27 +252,26 @@ files:
|
|
253
252
|
- raygun.gemspec
|
254
253
|
homepage: https://github.com/carbonfive/raygun
|
255
254
|
licenses: []
|
255
|
+
metadata: {}
|
256
256
|
post_install_message:
|
257
257
|
rdoc_options: []
|
258
258
|
require_paths:
|
259
259
|
- lib
|
260
260
|
required_ruby_version: !ruby/object:Gem::Requirement
|
261
|
-
none: false
|
262
261
|
requirements:
|
263
|
-
- -
|
262
|
+
- - '>='
|
264
263
|
- !ruby/object:Gem::Version
|
265
264
|
version: '0'
|
266
265
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
267
|
-
none: false
|
268
266
|
requirements:
|
269
|
-
- -
|
267
|
+
- - '>='
|
270
268
|
- !ruby/object:Gem::Version
|
271
269
|
version: '0'
|
272
270
|
requirements: []
|
273
271
|
rubyforge_project:
|
274
|
-
rubygems_version:
|
272
|
+
rubygems_version: 2.0.3
|
275
273
|
signing_key:
|
276
|
-
specification_version:
|
274
|
+
specification_version: 4
|
277
275
|
summary: Generates and customizes Rails applications with Carbon Five best practices
|
278
276
|
baked in.
|
279
277
|
test_files: []
|