raygun 0.0.18 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- data/{.rbenv-version → .ruby-version} +0 -0
- data/CHANGES.md +17 -4
- data/README.md +1 -1
- data/app_prototype/app/controllers/pages_controller.rb +8 -0
- data/app_prototype/app/views/pages/root.html.slim +9 -0
- data/app_prototype/config/environments/acceptance.rb +1 -1
- data/app_prototype/config/environments/production.rb +1 -1
- data/app_prototype/config/initializers/secret_token.rb +1 -1
- data/app_prototype/config/routes.rb +2 -2
- data/bin/raygun +3 -3
- data/lib/raygun/version.rb +1 -1
- metadata +5 -4
- data/app_prototype/public/index.html +0 -41
File without changes
|
data/CHANGES.md
CHANGED
@@ -1,15 +1,28 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.0.21 [2013-02-01]
|
4
|
+
|
5
|
+
* Turn off threadsafe when running rake tasks (thanks @subakva).
|
6
|
+
|
7
|
+
## 0.0.20 [unreleased]
|
8
|
+
|
9
|
+
* Bug fix and minor output tweak.
|
10
|
+
|
11
|
+
## 0.0.19 [2013-01-29]
|
12
|
+
|
13
|
+
* Pull the rails secret token from the environment so it can be easily set in server environments.
|
14
|
+
* Dump the static index.html for a dynamic version.
|
15
|
+
|
3
16
|
## 0.0.18 [2013-01-24]
|
4
17
|
|
5
|
-
* Support generating an app in the current directory.
|
6
|
-
* Better handling of command line arguments.
|
7
|
-
* Include support for cane quality checks via ```rake spec:cane
|
18
|
+
* Support generating an app in the current directory (thanks @subakva).
|
19
|
+
* Better handling of command line arguments (thanks @subakva).
|
20
|
+
* Include support for cane quality checks via ```rake spec:cane``` (thanks @subakva).
|
8
21
|
|
9
22
|
## 0.0.17 [2013-01-17]
|
10
23
|
|
11
24
|
* Configure .ruby-version, .rvmrc, and Gemfile with the version of ruby used to execute raygun.
|
12
|
-
* Improve the
|
25
|
+
* Improve the default email content.
|
13
26
|
* Improve the raygun and app_prototype READMEs.
|
14
27
|
* Use $PORT to set the server port for Heroku compatibility, with default set in .env.
|
15
28
|
* .ruby-version instead of .rbenv-version (as recommended by rbenv).
|
data/README.md
CHANGED
@@ -50,7 +50,7 @@ To run your new application's specs or fire up its server, you'll need to meet t
|
|
50
50
|
* PhantomJS for JavaScript testing (```brew install phantomjs```)
|
51
51
|
|
52
52
|
The generated app will be configured to use the ruby version that was used to invoke raygun. If you're using
|
53
|
-
another ruby, just change the ```Gemfile```, ```.rvmrc``` and/or ```.
|
53
|
+
another ruby, just change the ```Gemfile```, ```.rvmrc``` and/or ```.ruby-version``` as necessary.
|
54
54
|
|
55
55
|
## Usage
|
56
56
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
.hero-unit
|
2
|
+
h1 Hello, world!
|
3
|
+
|
4
|
+
p Welcome to your newly generated rails application...
|
5
|
+
p Meander around the code to see what's been done for you. Many small, and a few not-so-small, customizations have been made.
|
6
|
+
p Custom generator templates create views that are bootstrap compatible and specs that are factory-aware and follow best practices.
|
7
|
+
p This application also includes authentication and an example of authorization (sign in as user@example.com / password).
|
8
|
+
|
9
|
+
p: a.btn.btn-primary.btn-large href=sign_in_path Sign In
|
@@ -52,7 +52,7 @@ AppPrototype::Application.configure do
|
|
52
52
|
# config.action_mailer.raise_delivery_errors = false
|
53
53
|
|
54
54
|
# Enable threaded mode
|
55
|
-
config.threadsafe!
|
55
|
+
config.threadsafe! unless $rails_rake_task
|
56
56
|
|
57
57
|
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
58
58
|
# the I18n.default_locale when a translation can not be found)
|
@@ -52,7 +52,7 @@ AppPrototype::Application.configure do
|
|
52
52
|
# config.action_mailer.raise_delivery_errors = false
|
53
53
|
|
54
54
|
# Enable threaded mode
|
55
|
-
config.threadsafe!
|
55
|
+
config.threadsafe! unless $rails_rake_task
|
56
56
|
|
57
57
|
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
58
58
|
# the I18n.default_locale when a translation can not be found)
|
@@ -4,4 +4,4 @@
|
|
4
4
|
# If you change this key, all old signed cookies will become invalid!
|
5
5
|
# Make sure the secret is at least 30 characters and all random,
|
6
6
|
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
-
AppPrototype::Application.config.secret_token = '
|
7
|
+
AppPrototype::Application.config.secret_token = ENV['SECRET_TOKEN'] || 'AWAbYFxfy5SxropZl5yIiNiE2bv3lJ7nLcreGI9p'
|
@@ -1,16 +1,16 @@
|
|
1
1
|
AppPrototype::Application.routes.draw do
|
2
2
|
|
3
|
+
root to: 'pages#root'
|
4
|
+
|
3
5
|
match 'sign_in' => 'user_sessions#new', as: :sign_in
|
4
6
|
match 'sign_out' => 'user_sessions#destroy', as: :sign_out
|
5
7
|
|
6
8
|
resources :user_sessions, only: [:new, :create, :destroy]
|
7
9
|
|
8
|
-
#resources :registrations, only: [:new, :create, :activate]
|
9
10
|
match 'sign_up' => 'registrations#new', via: :get, as: :sign_up
|
10
11
|
match 'sign_up' => 'registrations#create', via: :post, as: :sign_up
|
11
12
|
match 'activate/:token' => 'registrations#activate', via: :get, as: :activation
|
12
13
|
|
13
|
-
#resources :password_resets, only: [:new, :create, :edit, :update]
|
14
14
|
match 'forgotten_password' => 'password_resets#new', via: :get, as: :forgotten_password
|
15
15
|
match 'forgotten_password' => 'password_resets#create', via: :post, as: :forgotten_password
|
16
16
|
match 'reset_password/:token' => 'password_resets#edit', via: :get, as: :reset_password
|
data/bin/raygun
CHANGED
@@ -46,12 +46,12 @@ module Raygun
|
|
46
46
|
|
47
47
|
def generate_tokens
|
48
48
|
Dir.chdir(app_dir) do
|
49
|
-
`sed -i '' 's/SUPER_SECRET_TOKEN_REPLACE_ME_TODO/#{SecureRandom.hex(128)}/' #{app_dir}
|
49
|
+
`sed -i '' 's/SUPER_SECRET_TOKEN_REPLACE_ME_TODO/#{SecureRandom.hex(128)}/' #{app_dir}/.env`
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
53
|
def update_ruby_version
|
54
|
-
prototype_ruby_patch_level = File.read(File.expand_path('../../.
|
54
|
+
prototype_ruby_patch_level = File.read(File.expand_path('../../.ruby-version', __FILE__)).strip
|
55
55
|
prototype_ruby_version = prototype_ruby_patch_level.match(/(\d\.\d\.\d).*/)[1]
|
56
56
|
current_ruby_version = RUBY_VERSION
|
57
57
|
current_ruby_patch_level = "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
|
@@ -82,7 +82,7 @@ module Raygun
|
|
82
82
|
puts "# Run the specs (they should all pass)"
|
83
83
|
puts "$ rake"
|
84
84
|
puts ""
|
85
|
-
puts "#
|
85
|
+
puts "# Run the app and check things out"
|
86
86
|
puts "$ foreman start"
|
87
87
|
puts "$ open http://0.0.0.0:3000"
|
88
88
|
puts ""
|
data/lib/raygun/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raygun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.21
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-
|
14
|
+
date: 2013-02-02 00:00:00.000000000 Z
|
15
15
|
dependencies: []
|
16
16
|
description: Carbon Five Rails application generator
|
17
17
|
email:
|
@@ -22,7 +22,7 @@ extensions: []
|
|
22
22
|
extra_rdoc_files: []
|
23
23
|
files:
|
24
24
|
- .gitignore
|
25
|
-
- .
|
25
|
+
- .ruby-version
|
26
26
|
- .rvmrc
|
27
27
|
- CHANGES.md
|
28
28
|
- Gemfile
|
@@ -46,6 +46,7 @@ files:
|
|
46
46
|
- app_prototype/app/assets/stylesheets/_navbar.less
|
47
47
|
- app_prototype/app/assets/stylesheets/application.css.less
|
48
48
|
- app_prototype/app/controllers/application_controller.rb
|
49
|
+
- app_prototype/app/controllers/pages_controller.rb
|
49
50
|
- app_prototype/app/controllers/password_resets_controller.rb
|
50
51
|
- app_prototype/app/controllers/registrations_controller.rb
|
51
52
|
- app_prototype/app/controllers/user_sessions_controller.rb
|
@@ -59,6 +60,7 @@ files:
|
|
59
60
|
- app_prototype/app/models/user.rb
|
60
61
|
- app_prototype/app/models/user_session.rb
|
61
62
|
- app_prototype/app/views/layouts/application.html.slim
|
63
|
+
- app_prototype/app/views/pages/root.html.slim
|
62
64
|
- app_prototype/app/views/password_resets/edit.html.slim
|
63
65
|
- app_prototype/app/views/password_resets/new.html.slim
|
64
66
|
- app_prototype/app/views/registrations/new.html.slim
|
@@ -125,7 +127,6 @@ files:
|
|
125
127
|
- app_prototype/public/422.html
|
126
128
|
- app_prototype/public/500.html
|
127
129
|
- app_prototype/public/favicon.ico
|
128
|
-
- app_prototype/public/index.html
|
129
130
|
- app_prototype/public/robots.txt
|
130
131
|
- app_prototype/script/rails
|
131
132
|
- app_prototype/spec/controllers/user_sessions_controller_spec.rb
|
@@ -1,41 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>App Prototype</title>
|
5
|
-
<link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css"/>
|
6
|
-
<script src="/assets/jquery.js?body=1" type="text/javascript"></script>
|
7
|
-
<script src="/assets/jquery_ujs.js?body=1" type="text/javascript"></script>
|
8
|
-
<script src="/assets/application.js?body=1" type="text/javascript"></script>
|
9
|
-
</head>
|
10
|
-
<body>
|
11
|
-
<div class="wrapper">
|
12
|
-
<div class="container">
|
13
|
-
<header class="navbar navbar-fixed-top">
|
14
|
-
<nav class="navbar-inner">
|
15
|
-
<div class="container">
|
16
|
-
<div class="brand">App Prototype</div>
|
17
|
-
<ul class="nav pull-right">
|
18
|
-
<li><a href="/sign_in">Sign In</a></li>
|
19
|
-
</ul>
|
20
|
-
</div>
|
21
|
-
</nav>
|
22
|
-
</header>
|
23
|
-
|
24
|
-
<div class="hero-unit">
|
25
|
-
<h1>Hello, world!</h1>
|
26
|
-
|
27
|
-
<p>Welcome to your newly generated rails application...</p>
|
28
|
-
<p>Meander around the code to see what's been done for you. Many small, and a few not-so-small, customizations have been made.</p>
|
29
|
-
<p>Custom generator templates create views that are bootstrap compatible and specs that are factory-aware and follow best practices.</p>
|
30
|
-
<p>This application also includes authentication and an example of authorization (sign in as user@example.com / password).</p>
|
31
|
-
|
32
|
-
<p><a class="btn btn-primary btn-large" href="sign_in">Sign In</a></p>
|
33
|
-
</div>
|
34
|
-
</div>
|
35
|
-
<div class="push"></div>
|
36
|
-
</div>
|
37
|
-
<footer>
|
38
|
-
<div class="container"><p>© 2012 All rights reserved.</p></div>
|
39
|
-
</footer>
|
40
|
-
</body>
|
41
|
-
</html>
|