railman 0.6.16 → 0.6.17

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: 76c7daa4300bd53a7fd0f59004b45f7ebede62e6
4
- data.tar.gz: b8508ed4b453346bf7113987697b31553a866faf
3
+ metadata.gz: 4d927e149899757f6495d0b1458dd5d0d1203168
4
+ data.tar.gz: f37344e22b26172ac97a5bcb379c901031525ee5
5
5
  SHA512:
6
- metadata.gz: 2f88afb20de8f34e1b3ec3d2dd7f6beff9fe428a3080931121331f6ad4195f2a4931c46b492cd89a828514e6d383b8799dc64ffd47f9378113ed191d12104935
7
- data.tar.gz: cc8735af776cf8add9eb0ae1108b912516b35b0b2dbc31164a2cfd3f729a7b185147cb15e1d7496c35519fc882e0651dbbbc5871a3c4266a8caf55cf8d7e83e3
6
+ metadata.gz: 14764c21a3c020a8f0be3af83ee2c49fc2c80e1f742291151cb1997f28bec94352948a1444e04e255a815e99f2d48abc012a0200956d9f4a4241bdfb1c2593a4
7
+ data.tar.gz: f79dce7e46e3b96a13280467be15ff08f361a09350a152120874e68048781a69058cd75d67e0321d339a706fb4a3762601bd7299694f7f79043cdc5fbe880164
@@ -1,3 +1,3 @@
1
1
  module Railman
2
- VERSION = '0.6.16'
2
+ VERSION = '0.6.17'
3
3
  end
@@ -31,6 +31,8 @@ ADMIN_EMAIL = '<%= @config.admin_email %>'
31
31
  EXCEPTION_NOTIFICATION_EMAIL_PREFIX = '[<%= @config.class_name %>] '
32
32
  EXCEPTION_NOTIFICATION_SENDER = 'server@<%= @config.domain %>'
33
33
 
34
+ # CDN host to use for static assets
35
+ CDN_HOST = '*****.cloudfront.net'
34
36
 
35
37
  # Unicorn settings
36
38
  UNICORN_BEHIND_NGINX = true
@@ -13,5 +13,6 @@ test/screenshots
13
13
 
14
14
  .sass-cache
15
15
  public/assets
16
+ refile_uploads
16
17
 
17
18
  brakeman-output.tabs
@@ -1,4 +1,5 @@
1
1
  source 'https://rubygems.org'
2
+ source 'https://rails-assets.org'
2
3
 
3
4
  gem 'dotenv-rails', '2.1.1', require: 'dotenv/rails-now' # load ENV from .env
4
5
 
@@ -1,4 +1,8 @@
1
1
  class ApplicationController < ActionController::Base
2
2
  protect_from_forgery with: :null_session
3
3
  add_flash_types :success, :error, :warning, :info
4
+
5
+ def not_found
6
+ raise ActionController::RoutingError.new('Not Found')
7
+ end
4
8
  end
@@ -59,7 +59,7 @@ Rails.application.configure do
59
59
  config.cache_store = :redis_store, "redis://#{ENV.fetch('REDIS_SERVER')}/<%= @config.app_name %>:#{Rails.env}:cache"
60
60
 
61
61
  # Enable serving of images, stylesheets, and JavaScripts from an asset server.
62
- # config.action_controller.asset_host = 'http://assets.example.com'
62
+ config.action_controller.asset_host = "https://#{ENV['CDN_HOST']}"
63
63
 
64
64
  # Ignore bad email addresses and do not raise email delivery errors.
65
65
  # Set this to true and configure the email server for immediate delivery to raise delivery errors.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.16
4
+ version: 0.6.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Jancev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-21 00:00:00.000000000 Z
11
+ date: 2016-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler