raygun 0.0.11 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. data/.gitignore +3 -3
  2. data/.rbenv-version +1 -1
  3. data/README.md +2 -9
  4. data/Rakefile +1 -1
  5. data/TODO.md +0 -5
  6. data/app_prototype/.gitignore +15 -0
  7. data/app_prototype/.rspec +1 -0
  8. data/app_prototype/.rvmrc +1 -0
  9. data/{templates/Gemfile_customized → app_prototype/Gemfile} +1 -0
  10. data/{templates/Guardfile_customized → app_prototype/Guardfile} +6 -0
  11. data/{templates → app_prototype}/Procfile +0 -0
  12. data/{templates/README.md.erb → app_prototype/README.md} +0 -0
  13. data/app_prototype/Rakefile +10 -0
  14. data/app_prototype/app/assets/javascripts/application.js +16 -0
  15. data/app_prototype/app/assets/javascripts/users.js.coffee +3 -0
  16. data/{templates/_app → app_prototype/app}/assets/stylesheets/_footer.less +0 -0
  17. data/{templates/_app → app_prototype/app}/assets/stylesheets/application.css.less +0 -0
  18. data/{templates/_app → app_prototype/app}/controllers/application_controller.rb +1 -0
  19. data/{templates/_app → app_prototype/app}/controllers/password_resets_controller.rb +0 -0
  20. data/{templates/_app → app_prototype/app}/controllers/registrations_controller.rb +2 -0
  21. data/{templates/_app → app_prototype/app}/controllers/user_sessions_controller.rb +1 -1
  22. data/app_prototype/app/controllers/users_controller.rb +41 -0
  23. data/{templates/_app → app_prototype/app}/helpers/application_helper.rb +0 -0
  24. data/app_prototype/app/helpers/users_helper.rb +2 -0
  25. data/app_prototype/app/mailers/.gitkeep +0 -0
  26. data/{templates/_app → app_prototype/app}/mailers/user_mailer.rb +0 -0
  27. data/app_prototype/app/models/.gitkeep +0 -0
  28. data/{templates/_app → app_prototype/app}/models/ability.rb +0 -0
  29. data/{templates/_app → app_prototype/app}/models/user.rb +0 -0
  30. data/{templates/_app → app_prototype/app}/models/user_session.rb +0 -0
  31. data/{templates/_app/views/layouts/application.html.slim.erb → app_prototype/app/views/layouts/application.html.slim} +2 -2
  32. data/{templates/_app → app_prototype/app}/views/password_resets/edit.html.slim +0 -0
  33. data/{templates/_app → app_prototype/app}/views/password_resets/new.html.slim +0 -0
  34. data/{templates/_app → app_prototype/app}/views/registrations/new.html.slim +0 -0
  35. data/{templates/_app → app_prototype/app}/views/user_mailer/activation_needed_email.html.erb +0 -0
  36. data/{templates/_app → app_prototype/app}/views/user_mailer/activation_needed_email.text.erb +0 -0
  37. data/{templates/_app → app_prototype/app}/views/user_mailer/activation_success_email.html.erb +0 -0
  38. data/{templates/_app → app_prototype/app}/views/user_mailer/activation_success_email.text.erb +0 -0
  39. data/{templates/_app → app_prototype/app}/views/user_mailer/reset_password_email.html.erb +0 -0
  40. data/{templates/_app → app_prototype/app}/views/user_mailer/reset_password_email.text.erb +0 -0
  41. data/{templates/_app → app_prototype/app}/views/user_sessions/new.html.slim +0 -0
  42. data/app_prototype/app/views/users/_form.html.slim +12 -0
  43. data/app_prototype/app/views/users/edit.html.slim +5 -0
  44. data/app_prototype/app/views/users/index.html.slim +26 -0
  45. data/app_prototype/app/views/users/new.html.slim +4 -0
  46. data/app_prototype/app/views/users/show.html.slim +17 -0
  47. data/app_prototype/config.ru +8 -0
  48. data/app_prototype/config/application.rb +77 -0
  49. data/app_prototype/config/boot.rb +6 -0
  50. data/{templates/_config/database.yml.erb → app_prototype/config/database.yml} +2 -2
  51. data/app_prototype/config/environment.rb +5 -0
  52. data/app_prototype/config/environments/acceptance.rb +69 -0
  53. data/app_prototype/config/environments/development.rb +39 -0
  54. data/app_prototype/config/environments/production.rb +69 -0
  55. data/app_prototype/config/environments/test.rb +40 -0
  56. data/app_prototype/config/initializers/backtrace_silencers.rb +7 -0
  57. data/app_prototype/config/initializers/inflections.rb +15 -0
  58. data/app_prototype/config/initializers/mime_types.rb +5 -0
  59. data/app_prototype/config/initializers/secret_token.rb +7 -0
  60. data/app_prototype/config/initializers/session_store.rb +8 -0
  61. data/app_prototype/config/initializers/simple_form.rb +142 -0
  62. data/app_prototype/config/initializers/simple_form_bootstrap.rb +45 -0
  63. data/app_prototype/config/initializers/sorcery.rb +398 -0
  64. data/app_prototype/config/initializers/wrap_parameters.rb +14 -0
  65. data/app_prototype/config/locales/en.yml +5 -0
  66. data/app_prototype/config/locales/simple_form.en.yml +26 -0
  67. data/app_prototype/config/routes.rb +21 -0
  68. data/app_prototype/db/migrate/20121128215324_sorcery_core.rb +17 -0
  69. data/app_prototype/db/migrate/20121128215325_sorcery_brute_force_protection.rb +13 -0
  70. data/app_prototype/db/migrate/20121128215326_sorcery_activity_logging.rb +17 -0
  71. data/app_prototype/db/migrate/20121128215327_sorcery_user_activation.rb +17 -0
  72. data/app_prototype/db/migrate/20121128215328_sorcery_remember_me.rb +15 -0
  73. data/app_prototype/db/migrate/20121128215329_sorcery_reset_password.rb +17 -0
  74. data/app_prototype/db/migrate/20121128215330_sorcery_external.rb +14 -0
  75. data/app_prototype/db/migrate/20121128215337_add_admin_to_users.rb +5 -0
  76. data/{templates/_db → app_prototype/db}/sample_data.rb +0 -0
  77. data/app_prototype/db/schema.rb +53 -0
  78. data/app_prototype/db/seeds.rb +7 -0
  79. data/app_prototype/lib/assets/.gitkeep +0 -0
  80. data/app_prototype/lib/tasks/.gitkeep +0 -0
  81. data/{templates/_lib → app_prototype/lib}/tasks/coverage.rake +0 -0
  82. data/{templates/_lib → app_prototype/lib}/tasks/db.rake +0 -0
  83. data/{templates/_lib → app_prototype/lib}/tasks/spec.rake +0 -0
  84. data/{templates/_lib → app_prototype/lib}/templates/rails/scaffold_controller/controller.rb +0 -0
  85. data/{templates/_lib → app_prototype/lib}/templates/rspec/scaffold/controller_spec.rb +1 -1
  86. data/{templates/_lib → app_prototype/lib}/templates/slim/scaffold/_form.html.slim +0 -0
  87. data/{templates/_lib → app_prototype/lib}/templates/slim/scaffold/edit.html.slim +0 -0
  88. data/{templates/_lib → app_prototype/lib}/templates/slim/scaffold/index.html.slim +0 -0
  89. data/{templates/_lib → app_prototype/lib}/templates/slim/scaffold/new.html.slim +0 -0
  90. data/{templates/_lib → app_prototype/lib}/templates/slim/scaffold/show.html.slim +0 -0
  91. data/app_prototype/log/.gitkeep +0 -0
  92. data/app_prototype/public/404.html +26 -0
  93. data/app_prototype/public/422.html +26 -0
  94. data/app_prototype/public/500.html +25 -0
  95. data/app_prototype/public/favicon.ico +0 -0
  96. data/{templates/_public/index.html.erb → app_prototype/public/index.html} +2 -2
  97. data/app_prototype/public/robots.txt +5 -0
  98. data/app_prototype/script/rails +6 -0
  99. data/app_prototype/spec/controllers/user_sessions_controller_spec.rb +42 -0
  100. data/app_prototype/spec/controllers/users_controller_spec.rb +150 -0
  101. data/{templates/_spec → app_prototype/spec}/factories/users.rb +0 -0
  102. data/{templates/_spec → app_prototype/spec}/features/user_sessions_spec.rb +5 -1
  103. data/app_prototype/spec/helpers/users_helper_spec.rb +15 -0
  104. data/{templates/_spec → app_prototype/spec}/javascripts/example_spec.js.coffee +0 -0
  105. data/{templates/_spec → app_prototype/spec}/javascripts/spec.css +0 -0
  106. data/{templates/_spec → app_prototype/spec}/javascripts/spec.js.coffee +0 -0
  107. data/{templates/_spec → app_prototype/spec}/mailers/user_mailer_spec.rb +0 -0
  108. data/{templates/_spec → app_prototype/spec}/models/ability_spec.rb +0 -0
  109. data/{templates/_spec → app_prototype/spec}/models/user_spec.rb +0 -0
  110. data/app_prototype/spec/spec_helper.rb +84 -0
  111. data/{templates/_spec → app_prototype/spec}/support/accept_values.rb +0 -0
  112. data/{templates/_spec → app_prototype/spec}/support/factory_girl.rb +0 -0
  113. data/{templates/_spec → app_prototype/spec}/support/sorcery.rb +0 -0
  114. data/{templates/_spec → app_prototype/spec}/support/user_sessions_feature_helper.rb +0 -0
  115. data/app_prototype/spec/views/users/edit.html.slim_spec.rb +20 -0
  116. data/app_prototype/spec/views/users/index.html.slim_spec.rb +23 -0
  117. data/app_prototype/spec/views/users/new.html.slim_spec.rb +20 -0
  118. data/app_prototype/spec/views/users/show.html.slim_spec.rb +17 -0
  119. data/app_prototype/vendor/assets/javascripts/.gitkeep +0 -0
  120. data/app_prototype/vendor/assets/stylesheets/.gitkeep +0 -0
  121. data/app_prototype/vendor/plugins/.gitkeep +0 -0
  122. data/bin/raygun +48 -6
  123. data/lib/raygun/version.rb +1 -1
  124. data/raygun.gemspec +0 -3
  125. metadata +118 -108
  126. data/lib/raygun/actions.rb +0 -26
  127. data/lib/raygun/app_builder.rb +0 -362
  128. data/lib/raygun/generators/app_generator.rb +0 -188
  129. data/lib/raygun/helpers/ruby_version_helpers.rb +0 -52
  130. data/lib/raygun/raygun.rb +0 -11
  131. data/templates/rbenv-version.erb +0 -1
  132. data/templates/rvmrc.erb +0 -1
data/.gitignore CHANGED
@@ -12,7 +12,7 @@ doc/
12
12
  lib/bundler/man
13
13
  pkg
14
14
  rdoc
15
- spec/reports
16
- test/tmp
17
- test/version_tmp
18
15
  tmp
16
+
17
+ app/prototype/tmp
18
+ app/prototype/log/*.log
@@ -1 +1 @@
1
- 1.9.3-p327-perf
1
+ 1.9.3-p327
data/README.md CHANGED
@@ -52,9 +52,10 @@ Be sure you met these requirements before using raygun, otherwise you won't make
52
52
  Once your project is baked out, you can easily kick the wheels:
53
53
 
54
54
  $ cd your-project
55
+ $ bundle update
55
56
 
56
57
  # Prepare the database: schema and reference / sample data
57
- $ rake db:migrate db:seed db:sample_data
58
+ $ rake db:setup db:sample_data
58
59
 
59
60
  # Run the specs
60
61
  $ rake
@@ -76,11 +77,3 @@ Once your project is baked out, you can easily kick the wheels:
76
77
  Generate an example app using your local development version of raygun
77
78
 
78
79
  ./bin/raygun tmp/example_app
79
-
80
- ### Customizing the generated Rails app
81
-
82
- Changes which can be applied on top of an existing Rails app should be added as `foo_template.rb` files
83
- in `raygun/generators/foo/`.
84
-
85
- Changes which must be performed during the creation of the Rails app should be added to `lib/raygun/app_builder.rb`
86
- and called from an appropriate step in `lib/raygun/generators/app_generator.rb`.
data/Rakefile CHANGED
@@ -1 +1 @@
1
- require "bundler/gem_tasks"
1
+ require 'bundler/gem_tasks'
data/TODO.md CHANGED
@@ -2,21 +2,16 @@
2
2
 
3
3
  Looking for inspiration? Here are some ideas for things that still could be done. Don't forget to check the open issus too.
4
4
 
5
- * Cleanup/refactor raygun code (a few simple helpers would help out a whole lot)
6
5
  * Automated testing of raygun (e.g. generate an app and run its specs?)
7
6
  * Raygun on CI
8
- * Add the concept of an admin / super user
9
7
  * Invite user flow
10
- * Use cancan to restrict access to /users to an admin
11
8
  * Use cancan to allow users to edit only themselves and admins to edit any user
12
9
  * Continue to improve bootstrap view templates
13
10
  * CSS/less best practices for file organization
14
11
  * JS/coffeescript best practices
15
12
  * Add pagination to the default index scaffold (kaminari)
16
- * JS testing
17
13
  * Use foreigner for database constraints
18
14
  * Fast tests best practices
19
- * Use guard (rspec, livereload, js testing, etc)
20
15
  * Paperclip + S3 configuration
21
16
  * Application monitoring
22
17
  * Analytics
@@ -0,0 +1,15 @@
1
+ # See http://help.github.com/ignore-files/ for more about ignoring files.
2
+ #
3
+ # If you find yourself ignoring temporary files generated by your text editor
4
+ # or operating system, you probably want to add a global ignore instead:
5
+ # git config --global core.excludesfile ~/.gitignore_global
6
+
7
+ # Ignore bundler config
8
+ /.bundle
9
+
10
+ # Ignore the default SQLite database.
11
+ /db/*.sqlite3
12
+
13
+ # Ignore all logfiles and tempfiles.
14
+ /log/*.log
15
+ /tmp
@@ -0,0 +1 @@
1
+ --color
@@ -0,0 +1 @@
1
+ rvm use ruby-1.9.3-p327@app_prototype --create
@@ -36,4 +36,5 @@ group :development do
36
36
  gem 'guard-jasmine'
37
37
  gem 'guard-livereload'
38
38
  gem 'rb-fsevent'
39
+ gem 'growl'
39
40
  end
@@ -16,3 +16,9 @@ guard 'rspec' do
16
16
  # Capybara request specs
17
17
  watch(%r{^app/views/(.+)/.*(\.slim)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
18
18
  end
19
+
20
+ guard :jasmine do
21
+ watch(%r{spec/javascripts/spec\.(js\.coffee|js|coffee)$}) { 'spec/javascripts' }
22
+ watch(%r{spec/javascripts/.+_spec\.(js\.coffee|js|coffee)$})
23
+ watch(%r{app/assets/javascripts/(.+?)\.(js\.coffee|js|coffee)(?:\.\w+)*$}) { |m| "spec/javascripts/#{ m[1] }_spec.#{ m[2] }" }
24
+ end
File without changes
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env rake
2
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
3
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
+
5
+ require File.expand_path('../config/application', __FILE__)
6
+
7
+ AppPrototype::Application.load_tasks
8
+
9
+ task(:default).clear
10
+ task default: 'spec'
@@ -0,0 +1,16 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // the compiled file.
9
+ //
10
+ // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
+ // GO AFTER THE REQUIRES BELOW.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require twitter/bootstrap
16
+ //= require_tree .
@@ -0,0 +1,3 @@
1
+ # Place all the behaviors and hooks related to the matching controller here.
2
+ # All this logic will automatically be available in application.js.
3
+ # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -4,6 +4,7 @@ class ApplicationController < ActionController::Base
4
4
  # before_filter :require_login, except: [:not_authenticated]
5
5
 
6
6
  protect_from_forgery
7
+ check_authorization
7
8
 
8
9
  protected
9
10
 
@@ -1,5 +1,7 @@
1
1
  class RegistrationsController < ApplicationController
2
2
 
3
+ skip_authorization_check
4
+
3
5
  def new
4
6
  @user = User.new
5
7
  end
@@ -20,7 +20,7 @@ class UserSessionsController < ApplicationController
20
20
 
21
21
  def destroy
22
22
  logout
23
- redirect_to :users, notice: "Signed out!"
23
+ redirect_to :sign_in, notice: "Signed out!"
24
24
  end
25
25
 
26
26
  end
@@ -0,0 +1,41 @@
1
+ class UsersController < ApplicationController
2
+
3
+ before_filter :require_login
4
+
5
+ load_and_authorize_resource
6
+
7
+ def index
8
+ end
9
+
10
+ def show
11
+ end
12
+
13
+ def new
14
+ end
15
+
16
+ def edit
17
+ end
18
+
19
+ def create
20
+ @user = User.new(params[:user])
21
+
22
+ if @user.save
23
+ redirect_to @user, notice: 'User was successfully created.'
24
+ else
25
+ render action: "new"
26
+ end
27
+ end
28
+
29
+ def update
30
+ if @user.update_attributes(params[:user])
31
+ redirect_to @user, notice: 'User was successfully updated.'
32
+ else
33
+ render action: "edit"
34
+ end
35
+ end
36
+
37
+ def destroy
38
+ @user.destroy
39
+ redirect_to users_url
40
+ end
41
+ end
@@ -0,0 +1,2 @@
1
+ module UsersHelper
2
+ end
File without changes
File without changes
@@ -1,7 +1,7 @@
1
1
  doctype 5
2
2
  html
3
3
  head
4
- title <%= app_name.capitalize %>
4
+ title App Prototype
5
5
  = stylesheet_link_tag 'application', media: 'all'
6
6
  = javascript_include_tag 'application'
7
7
  = csrf_meta_tag
@@ -12,7 +12,7 @@ html
12
12
  header.navbar.navbar-fixed-top
13
13
  nav.navbar-inner
14
14
  .container
15
- .brand <%= app_name.capitalize %>
15
+ .brand App Prototype
16
16
  ul.nav.pull-right
17
17
  - if current_user
18
18
  li.dropdown
@@ -0,0 +1,12 @@
1
+ = simple_form_for(@user) do |f|
2
+ = f.error_notification
3
+
4
+ .form-inputs
5
+ = f.input :email, autofocus: true
6
+ = f.input :name
7
+
8
+ .form-actions
9
+ = f.button :submit, class: 'btn btn-primary'
10
+ '
11
+ = link_to 'Back', users_path, class: 'btn'
12
+
@@ -0,0 +1,5 @@
1
+ .page-header
2
+ h1 Editing user
3
+
4
+ == render 'form'
5
+
@@ -0,0 +1,26 @@
1
+ div.page-header
2
+ h1 Listing users
3
+
4
+ table.table.table-striped
5
+ thead
6
+ tr
7
+ th ID
8
+ th Email
9
+ th Name
10
+ th Actions
11
+
12
+ tbody
13
+ - @users.each do |user|
14
+ tr
15
+ td= link_to_if can?(:show, user), user.id, user_path(user)
16
+ td= user.email
17
+ td= user.name
18
+ td
19
+ - if can? :edit, user
20
+ = link_to 'Edit', edit_user_path(user), class: 'btn btn-mini'
21
+ '
22
+ - if can? :destroy, user
23
+ = link_to 'Destroy', user_path(user), method: :delete, data: { confirm: "Are you sure?" }, class: 'btn btn-mini btn-danger'
24
+
25
+ - if can? :create, User
26
+ = link_to 'New User', new_user_path, class: 'btn btn-primary'
@@ -0,0 +1,4 @@
1
+ .page-header
2
+ h1 Create user
3
+
4
+ == render 'form'
@@ -0,0 +1,17 @@
1
+ .page-header
2
+ h1 User
3
+
4
+ dl
5
+ dt Email
6
+ dd= @user.email
7
+ dt Name
8
+ dd= @user.name
9
+
10
+ - if can?(:edit, @user)
11
+ = link_to 'Edit', edit_user_path(@user), class: 'btn'
12
+ '
13
+ = link_to 'Back', users_path, class: 'btn'
14
+
15
+ - if can?(:destroy, @user)
16
+ '
17
+ = link_to'Destroy', user_path(@user), method: :delete, data: { confirm: "Are you sure?" }, class: 'btn btn-danger'
@@ -0,0 +1,8 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+
5
+ # Disable buffering for real time logging (foreman and heroku).
6
+ $stdout.sync = true
7
+
8
+ run AppPrototype::Application
@@ -0,0 +1,77 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ # Pick the frameworks you want:
4
+ require "active_record/railtie"
5
+ require "action_controller/railtie"
6
+ require "action_mailer/railtie"
7
+ require "active_resource/railtie"
8
+ require "sprockets/railtie"
9
+ # require "rails/test_unit/railtie"
10
+
11
+ if defined?(Bundler)
12
+ # If you precompile assets before deploying to production, use this line
13
+ Bundler.require(*Rails.groups(assets: %w(development test)))
14
+ # If you want your assets lazily compiled in production, use this line
15
+ # Bundler.require(:default, :assets, Rails.env)
16
+ end
17
+
18
+ module AppPrototype
19
+ class Application < Rails::Application
20
+
21
+ config.generators do |generate|
22
+ generate.stylesheets false
23
+ #generate.helper false
24
+ generate.routing_specs false
25
+ #generate.view_specs false
26
+ end
27
+
28
+ # Settings in config/environments/* take precedence over those specified here.
29
+ # Application configuration should go into files in config/initializers
30
+ # -- all .rb files in that directory are automatically loaded.
31
+
32
+ # Custom directories with classes and modules you want to be autoloadable.
33
+ config.autoload_paths += %W(#{config.root}/lib)
34
+
35
+ # Only load the plugins named here, in the order given (default is alphabetical).
36
+ # :all can be used as a placeholder for all plugins not explicitly named.
37
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
38
+
39
+ # Activate observers that should always be running.
40
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
41
+
42
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
43
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
44
+ # config.time_zone = 'Pacific Time (US & Canada)'
45
+
46
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
47
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
48
+ # config.i18n.default_locale = :de
49
+
50
+ # Configure the default encoding used in templates for Ruby 1.9.
51
+ config.encoding = 'utf-8'
52
+
53
+ # Configure sensitive parameters which will be filtered from the log file.
54
+ config.filter_parameters += [:password]
55
+
56
+ # Enable escaping HTML in JSON.
57
+ config.active_support.escape_html_entities_in_json = true
58
+
59
+ # Use SQL instead of Active Record's schema dumper when creating the database.
60
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
61
+ # like if you have constraints or database-specific column types
62
+ # config.active_record.schema_format = :sql
63
+
64
+ # Enforce whitelist mode for mass assignment.
65
+ # This will create an empty whitelist of attributes available for mass-assignment for all models
66
+ # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
67
+ # parameters by using an attr_accessible or attr_protected declaration.
68
+ config.active_record.whitelist_attributes = true
69
+
70
+ # Enable the asset pipeline
71
+ config.assets.enabled = true
72
+ config.assets.initialize_on_precompile = false
73
+
74
+ # Version of your assets, change this if you want to expire all your assets
75
+ config.assets.version = '1.0'
76
+ end
77
+ end
@@ -0,0 +1,6 @@
1
+ require 'rubygems'
2
+
3
+ # Set up gems listed in the Gemfile.
4
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
5
+
6
+ require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])