caboose-cms 0.9.9 → 0.9.10
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/app/controllers/caboose/invoices_controller.rb +9 -17
- data/app/views/caboose/blocks/{_ruby_block.rb → _ruby_block.html.erb} +0 -0
- data/lib/caboose/version.rb +1 -1
- data/lib/tasks/caboose.rake +8 -7
- metadata +2 -18
- data/lib/sample_files/Gemfile +0 -25
- data/lib/sample_files/app/assets/stylesheets/login.css +0 -0
- data/lib/sample_files/app/controllers/application_controller.rb +0 -4
- data/lib/sample_files/app/views/layouts/layout_default.html.erb +0 -28
- data/lib/sample_files/config/application.rb +0 -84
- data/lib/sample_files/config/database.yml +0 -23
- data/lib/sample_files/config/environments/development.rb +0 -44
- data/lib/sample_files/config/environments/production.rb +0 -71
- data/lib/sample_files/config/environments/test.rb +0 -37
- data/lib/sample_files/config/initializers/asset_sync.rb +0 -7
- data/lib/sample_files/config/initializers/caboose.rb +0 -19
- data/lib/sample_files/config/initializers/paperclip.rb +0 -13
- data/lib/sample_files/config/initializers/session_store.rb +0 -1
- data/lib/sample_files/config/routes.rb +0 -8
- data/lib/sample_files/config/tinymce.yml +0 -22
- data/lib/sample_files/timezone_abbreviations.csv +0 -197
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e81451b3af838304812e35368423eb69e32b4d8
|
4
|
+
data.tar.gz: 5be1bedb1a3e1a157b708f4fc8c5a0000b6318b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b62f9a16992a3732733136aa72786e2fe1f3c4a8139d288d290a3d6132c269058aa12134b1a5527d39589221e7b73a8a65413578a14869de61a4fb2f6d249a38
|
7
|
+
data.tar.gz: 585918513b42cc1717a063ab77308bc1a41bbe5b99d493afaf8aa420ac4b999c2044d8a3d75beab54d79964c2d18070d2e27224be691617a4b8a770ba41a2f02
|
@@ -1,14 +1,6 @@
|
|
1
1
|
module Caboose
|
2
2
|
class InvoicesController < Caboose::ApplicationController
|
3
3
|
|
4
|
-
# @route GET /admin/invoices/weird-test
|
5
|
-
def admin_weird_test
|
6
|
-
Caboose.log("Before the admin_weird_test")
|
7
|
-
x = Invoice.new
|
8
|
-
Caboose.log("After the admin_weird_test")
|
9
|
-
render :json => x
|
10
|
-
end
|
11
|
-
|
12
4
|
# @route GET /admin/invoices
|
13
5
|
# @route GET /admin/users/:user_id/invoices
|
14
6
|
def admin_index
|
@@ -51,7 +43,7 @@ module Caboose
|
|
51
43
|
resp.invoice_transactions = invoice.invoice_transactions.reorder(:date_processed).all
|
52
44
|
|
53
45
|
render :json => resp
|
54
|
-
|
46
|
+
end
|
55
47
|
|
56
48
|
# @route GET /admin/invoices/new
|
57
49
|
def admin_new
|
@@ -111,7 +103,7 @@ module Caboose
|
|
111
103
|
invoice.save
|
112
104
|
render :json => { :success => true }
|
113
105
|
end
|
114
|
-
|
106
|
+
|
115
107
|
# @route GET /admin/invoices/:id/capture
|
116
108
|
def capture_funds
|
117
109
|
return if !user_is_allowed('invoices', 'edit')
|
@@ -154,7 +146,7 @@ module Caboose
|
|
154
146
|
|
155
147
|
render :json => resp
|
156
148
|
end
|
157
|
-
|
149
|
+
|
158
150
|
# @route GET /admin/invoices/:id/refund
|
159
151
|
def admin_refund
|
160
152
|
return if !user_is_allowed('invoices', 'edit')
|
@@ -193,7 +185,7 @@ module Caboose
|
|
193
185
|
:invoice_transactions
|
194
186
|
])
|
195
187
|
end
|
196
|
-
|
188
|
+
|
197
189
|
# @route GET /admin/invoices/:id/print
|
198
190
|
def admin_print
|
199
191
|
return if !user_is_allowed('invoices', 'edit')
|
@@ -262,7 +254,7 @@ module Caboose
|
|
262
254
|
|
263
255
|
end
|
264
256
|
end
|
265
|
-
|
257
|
+
|
266
258
|
#invoice.calculate
|
267
259
|
#invoice.calculate_total
|
268
260
|
#resp.attributes['total'] = { 'value' => invoice.total }
|
@@ -285,7 +277,7 @@ module Caboose
|
|
285
277
|
:redirect => '/admin/invoices'
|
286
278
|
})
|
287
279
|
end
|
288
|
-
|
280
|
+
|
289
281
|
# @route GET /admin/invoices/:id/send-for-authorization
|
290
282
|
def admin_send_for_authorization
|
291
283
|
return if !user_is_allowed('invoices', 'edit')
|
@@ -305,7 +297,7 @@ module Caboose
|
|
305
297
|
# @route GET /admin/invoices/city-report
|
306
298
|
def admin_city_report
|
307
299
|
return if !user_is_allowed('invoices', 'view')
|
308
|
-
|
300
|
+
|
309
301
|
@d1 = params[:d1] ? DateTime.strptime("#{params[:d1]} 00:00:00", '%Y-%m-%d %H:%M:%S') : DateTime.strptime(DateTime.now.strftime("%Y-%m-01 00:00:00"), '%Y-%m-%d %H:%M:%S')
|
310
302
|
@d2 = params[:d2] ? DateTime.strptime("#{params[:d2]} 00:00:00", '%Y-%m-%d %H:%M:%S') : @d1 + 1.month
|
311
303
|
@rows = InvoiceReporter.city_report(@site.id, @d1, @d2)
|
@@ -316,14 +308,14 @@ module Caboose
|
|
316
308
|
# @route GET /admin/invoices/summary-report
|
317
309
|
def admin_summary_report
|
318
310
|
return if !user_is_allowed('invoices', 'view')
|
319
|
-
|
311
|
+
|
320
312
|
@d1 = params[:d1] ? DateTime.strptime("#{params[:d1]} 00:00:00", '%Y-%m-%d %H:%M:%S') : DateTime.strptime(DateTime.now.strftime("%Y-%m-01 00:00:00"), '%Y-%m-%d %H:%M:%S')
|
321
313
|
@d2 = params[:d2] ? DateTime.strptime("#{params[:d2]} 00:00:00", '%Y-%m-%d %H:%M:%S') : @d1 + 1.month
|
322
314
|
@rows = InvoiceReporter.summary_report(@site.id, @d1, @d2)
|
323
315
|
|
324
316
|
render :layout => 'caboose/admin'
|
325
317
|
end
|
326
|
-
|
318
|
+
|
327
319
|
# @route GET /admin/invoices/:field-options
|
328
320
|
def admin_options
|
329
321
|
return if !user_is_allowed('invoices', 'view')
|
File without changes
|
data/lib/caboose/version.rb
CHANGED
data/lib/tasks/caboose.rake
CHANGED
@@ -99,26 +99,27 @@ namespace :caboose do
|
|
99
99
|
|
100
100
|
desc "Check ruby syntax in all ruby files"
|
101
101
|
task :check_syntax => :environment do
|
102
|
-
|
103
|
-
|
104
|
-
str = `find #{Rails.root} -name "*.rb"`
|
105
|
-
files = str ? str.strip.split("\n") : []
|
106
|
-
|
102
|
+
|
107
103
|
errors = {}
|
104
|
+
|
105
|
+
puts "Checking syntax in caboose-cms gem ruby files...\n\n"
|
106
|
+
str = `find #{Gem.loaded_specs['caboose-cms'].full_gem_path} -name "*.rb"`
|
107
|
+
files = str ? str.strip.split("\n") : []
|
108
108
|
files.each do |file|
|
109
109
|
str = `ruby -c #{file}`
|
110
110
|
next if str.nil? || str.strip == 'Syntax OK'
|
111
111
|
errors[file] = str
|
112
112
|
end
|
113
113
|
|
114
|
-
|
114
|
+
puts "Checking syntax in application ruby files...\n\n"
|
115
|
+
str = `find #{Rails.root} -name "*.rb"`
|
115
116
|
files = str ? str.strip.split("\n") : []
|
116
117
|
files.each do |file|
|
117
118
|
str = `ruby -c #{file}`
|
118
119
|
next if str.nil? || str.strip == 'Syntax OK'
|
119
120
|
errors[file] = str
|
120
121
|
end
|
121
|
-
|
122
|
+
|
122
123
|
if errors.count == 0
|
123
124
|
puts " \n"
|
124
125
|
puts " █████ \n"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
@@ -1012,7 +1012,7 @@ files:
|
|
1012
1012
|
- app/views/caboose/blocks/_render_function.html.erb
|
1013
1013
|
- app/views/caboose/blocks/_retargeting.html.erb
|
1014
1014
|
- app/views/caboose/blocks/_richtext.html.erb
|
1015
|
-
- app/views/caboose/blocks/_ruby_block.
|
1015
|
+
- app/views/caboose/blocks/_ruby_block.html.erb
|
1016
1016
|
- app/views/caboose/blocks/_select.html.erb
|
1017
1017
|
- app/views/caboose/blocks/_selector_switch_one.html.erb
|
1018
1018
|
- app/views/caboose/blocks/_selector_switch_three.html.erb
|
@@ -1288,22 +1288,6 @@ files:
|
|
1288
1288
|
- lib/caboose/caboose_helper.rb
|
1289
1289
|
- lib/caboose/engine.rb
|
1290
1290
|
- lib/caboose/version.rb
|
1291
|
-
- lib/sample_files/Gemfile
|
1292
|
-
- lib/sample_files/app/assets/stylesheets/login.css
|
1293
|
-
- lib/sample_files/app/controllers/application_controller.rb
|
1294
|
-
- lib/sample_files/app/views/layouts/layout_default.html.erb
|
1295
|
-
- lib/sample_files/config/application.rb
|
1296
|
-
- lib/sample_files/config/database.yml
|
1297
|
-
- lib/sample_files/config/environments/development.rb
|
1298
|
-
- lib/sample_files/config/environments/production.rb
|
1299
|
-
- lib/sample_files/config/environments/test.rb
|
1300
|
-
- lib/sample_files/config/initializers/asset_sync.rb
|
1301
|
-
- lib/sample_files/config/initializers/caboose.rb
|
1302
|
-
- lib/sample_files/config/initializers/paperclip.rb
|
1303
|
-
- lib/sample_files/config/initializers/session_store.rb
|
1304
|
-
- lib/sample_files/config/routes.rb
|
1305
|
-
- lib/sample_files/config/tinymce.yml
|
1306
|
-
- lib/sample_files/timezone_abbreviations.csv
|
1307
1291
|
- lib/tasks/caboose.rake
|
1308
1292
|
- lib/tasks/caboose_sync.rake
|
1309
1293
|
- spec/factories/caboose_blocks.rb
|
data/lib/sample_files/Gemfile
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
ruby '1.9.3'
|
3
|
-
|
4
|
-
gem 'rails', '3.2.15'
|
5
|
-
|
6
|
-
# For heroku
|
7
|
-
# gem 'rails_12factor', :group => :production
|
8
|
-
|
9
|
-
gem 'pg'
|
10
|
-
|
11
|
-
#group :assets do
|
12
|
-
# gem 'sass-rails', '~> 3.2.3'
|
13
|
-
# gem 'coffee-rails', '~> 3.2.1'
|
14
|
-
# gem 'compass-rails'
|
15
|
-
# gem 'uglifier', '>= 1.0.3'
|
16
|
-
#end
|
17
|
-
|
18
|
-
gem 'jquery-rails'
|
19
|
-
gem 'ejs'
|
20
|
-
#gem 'unicorn'
|
21
|
-
|
22
|
-
gem 'caboose-cms', '|CABOOSE_VERSION|'
|
23
|
-
gem 'asset_sync'
|
24
|
-
gem 'unf'
|
25
|
-
gem 'aws-sdk'
|
File without changes
|
@@ -1,28 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Caboose</title>
|
5
|
-
<%= yield :css %>
|
6
|
-
<%= csrf_meta_tags %>
|
7
|
-
</head>
|
8
|
-
<body>
|
9
|
-
<div id='wrapper'>
|
10
|
-
<div id='header'>
|
11
|
-
<%= render :partial => 'layouts/caboose/top_nav' %>
|
12
|
-
</div>
|
13
|
-
<div id='content_wrapper'>
|
14
|
-
<div id='content'>
|
15
|
-
|
16
|
-
<% if yield && yield.strip.length > 0 %>
|
17
|
-
<%= yield %>
|
18
|
-
<% elsif !@page.nil? %>
|
19
|
-
<%= yield :page_content %>
|
20
|
-
<% end %>
|
21
|
-
|
22
|
-
</div>
|
23
|
-
</div>
|
24
|
-
</div>
|
25
|
-
<%= render :partial => 'layouts/caboose/station' %>
|
26
|
-
<%= yield :js %>
|
27
|
-
</body>
|
28
|
-
</html>
|
@@ -1,84 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
require 'rails/all'
|
4
|
-
require 'caboose'
|
5
|
-
|
6
|
-
if defined?(Bundler)
|
7
|
-
# If you precompile assets before deploying to production, use this line
|
8
|
-
Bundler.require(*Rails.groups(:assets => %w(development test)))
|
9
|
-
# If you want your assets lazily compiled in production, use this line
|
10
|
-
# Bundler.require(:default, :assets, Rails.env)
|
11
|
-
end
|
12
|
-
|
13
|
-
module |APP_NAME|
|
14
|
-
class Application < Rails::Application
|
15
|
-
# Settings in config/environments/* take precedence over those specified here.
|
16
|
-
# Application configuration should go into files in config/initializers
|
17
|
-
# -- all .rb files in that directory are automatically loaded.
|
18
|
-
|
19
|
-
# Custom directories with classes and modules you want to be autoloadable.
|
20
|
-
# config.autoload_paths += %W(#{config.root}/extras)
|
21
|
-
|
22
|
-
# Only load the plugins named here, in the order given (default is alphabetical).
|
23
|
-
# :all can be used as a placeholder for all plugins not explicitly named.
|
24
|
-
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
25
|
-
|
26
|
-
# Activate observers that should always be running.
|
27
|
-
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
28
|
-
|
29
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
30
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
31
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
32
|
-
|
33
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
34
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
35
|
-
# config.i18n.default_locale = :de
|
36
|
-
|
37
|
-
# Configure the default encoding used in templates for Ruby 1.9.
|
38
|
-
config.encoding = "utf-8"
|
39
|
-
|
40
|
-
# Configure sensitive parameters which will be filtered from the log file.
|
41
|
-
config.filter_parameters += [:password]
|
42
|
-
|
43
|
-
# Enable escaping HTML in JSON.
|
44
|
-
config.active_support.escape_html_entities_in_json = true
|
45
|
-
|
46
|
-
# Make sure initializers are run when we precompile
|
47
|
-
config.assets.initialize_on_precompile = true
|
48
|
-
|
49
|
-
# Use SQL instead of Active Record's schema dumper when creating the database.
|
50
|
-
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
51
|
-
# like if you have constraints or database-specific column types
|
52
|
-
# config.active_record.schema_format = :sql
|
53
|
-
|
54
|
-
# Enforce whitelist mode for mass assignment.
|
55
|
-
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
56
|
-
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
57
|
-
# parameters by using an attr_accessible or attr_protected declaration.
|
58
|
-
config.active_record.whitelist_attributes = true
|
59
|
-
|
60
|
-
# Enable the asset pipeline
|
61
|
-
config.assets.enabled = true
|
62
|
-
|
63
|
-
# Version of your assets, change this if you want to expire all your assets
|
64
|
-
config.assets.version = '1.0'
|
65
|
-
|
66
|
-
# Add /assets/templates to asset paths
|
67
|
-
config.assets.paths << "#{Rails.root}/app/templates"
|
68
|
-
|
69
|
-
# Action mailer settings
|
70
|
-
config.action_mailer.delivery_method = :smtp
|
71
|
-
config.action_mailer.smtp_settings = {
|
72
|
-
address: '|SMTP_SERVER|',
|
73
|
-
port: 587,
|
74
|
-
domain: '|SMTP_DOMAIN|',
|
75
|
-
user_name: '|SMTP_USER|',
|
76
|
-
password: '|SMTP_PASSWORD|',
|
77
|
-
authentication: 'plain',
|
78
|
-
enable_starttls_auto: true
|
79
|
-
}
|
80
|
-
|
81
|
-
# Make sure caboose loads first
|
82
|
-
#config.railties_order = [Caboose::Engine, :main_app, :all]
|
83
|
-
end
|
84
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
development:
|
2
|
-
adapter: postgresql
|
3
|
-
encoding: unicode
|
4
|
-
database: |APP_NAME_LOWERCASE|_development
|
5
|
-
pool: 5
|
6
|
-
username: root
|
7
|
-
password:
|
8
|
-
|
9
|
-
test:
|
10
|
-
adapter: postgresql
|
11
|
-
encoding: unicode
|
12
|
-
database: |APP_NAME_LOWERCASE|_test
|
13
|
-
pool: 5
|
14
|
-
username: root
|
15
|
-
password:
|
16
|
-
|
17
|
-
production:
|
18
|
-
adapter: postgresql
|
19
|
-
encoding: unicode
|
20
|
-
database: |APP_NAME_LOWERCASE|_production
|
21
|
-
pool: 5
|
22
|
-
username: chester
|
23
|
-
password:
|
@@ -1,44 +0,0 @@
|
|
1
|
-
|APP_NAME|::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
3
|
-
|
4
|
-
# In the development environment your application's code is reloaded on
|
5
|
-
# every request. This slows down response time but is perfect for development
|
6
|
-
# since you don't have to restart the web server when you make code changes.
|
7
|
-
config.cache_classes = false
|
8
|
-
|
9
|
-
# Log error messages when you accidentally call methods on nil.
|
10
|
-
config.whiny_nils = true
|
11
|
-
|
12
|
-
# Show full error reports and disable caching
|
13
|
-
config.consider_all_requests_local = true
|
14
|
-
config.action_controller.perform_caching = false
|
15
|
-
|
16
|
-
# Don't care if the mailer can't send
|
17
|
-
config.action_mailer.raise_delivery_errors = false
|
18
|
-
|
19
|
-
# Print deprecation notices to the Rails logger
|
20
|
-
config.active_support.deprecation = :log
|
21
|
-
|
22
|
-
# Only use best-standards-support built into browsers
|
23
|
-
config.action_dispatch.best_standards_support = :builtin
|
24
|
-
|
25
|
-
# Raise exception on mass assignment protection for Active Record models
|
26
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
27
|
-
|
28
|
-
# Log the query plan for queries taking more than this (works
|
29
|
-
# with SQLite, MySQL, and PostgreSQL)
|
30
|
-
config.active_record.auto_explain_threshold_in_seconds = 0.5
|
31
|
-
|
32
|
-
# Do not compress assets
|
33
|
-
config.assets.compress = false
|
34
|
-
|
35
|
-
# Expands the lines which load the assets
|
36
|
-
config.assets.debug = true
|
37
|
-
|
38
|
-
# Show action mailer errors for development
|
39
|
-
ActionMailer::Base.raise_delivery_errors = true
|
40
|
-
|
41
|
-
# Use Cloudfront for asset hosting
|
42
|
-
#config.action_controller.asset_host = "|CDN_URL|"
|
43
|
-
|
44
|
-
end
|
@@ -1,71 +0,0 @@
|
|
1
|
-
|APP_NAME|::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
3
|
-
|
4
|
-
# Code is not reloaded between requests
|
5
|
-
config.cache_classes = true
|
6
|
-
|
7
|
-
# Full error reports are disabled and caching is turned on
|
8
|
-
config.consider_all_requests_local = true
|
9
|
-
config.action_controller.perform_caching = true
|
10
|
-
|
11
|
-
# Disable Rails's static asset server (Apache or nginx will already do this)
|
12
|
-
config.serve_static_assets = false
|
13
|
-
|
14
|
-
# Compress JavaScripts and CSS
|
15
|
-
config.assets.compress = true
|
16
|
-
|
17
|
-
# Don't fallback to assets pipeline if a precompiled asset is missed
|
18
|
-
config.assets.compile = true
|
19
|
-
|
20
|
-
# Generate digests for assets URLs
|
21
|
-
config.assets.digest = true
|
22
|
-
|
23
|
-
# Defaults to nil and saved in location specified by config.assets.prefix
|
24
|
-
# config.assets.manifest = YOUR_PATH
|
25
|
-
|
26
|
-
# Specifies the header that your server uses for sending files
|
27
|
-
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
28
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
29
|
-
|
30
|
-
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
31
|
-
# config.force_ssl = true
|
32
|
-
|
33
|
-
# See everything in the log (default is :info)
|
34
|
-
# config.log_level = :debug
|
35
|
-
|
36
|
-
# Prepend all log lines with the following tags
|
37
|
-
# config.log_tags = [ :subdomain, :uuid ]
|
38
|
-
|
39
|
-
# Use a different logger for distributed setups
|
40
|
-
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
41
|
-
|
42
|
-
# Use a different cache store in production
|
43
|
-
# config.cache_store = :mem_cache_store
|
44
|
-
|
45
|
-
# Enable serving of images, stylesheets, and JavaScripts from an asset server
|
46
|
-
# config.action_controller.asset_host = "http://assets.example.com"
|
47
|
-
|
48
|
-
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
|
49
|
-
#config.assets.precompile += %w()
|
50
|
-
|
51
|
-
# Disable delivery errors, bad email addresses will be ignored
|
52
|
-
# config.action_mailer.raise_delivery_errors = false
|
53
|
-
|
54
|
-
# Enable threaded mode
|
55
|
-
# config.threadsafe!
|
56
|
-
|
57
|
-
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
58
|
-
# the I18n.default_locale when a translation can not be found)
|
59
|
-
config.i18n.fallbacks = true
|
60
|
-
|
61
|
-
# Send deprecation notices to registered listeners
|
62
|
-
config.active_support.deprecation = :notify
|
63
|
-
|
64
|
-
# Log the query plan for queries taking more than this (works
|
65
|
-
# with SQLite, MySQL, and PostgreSQL)
|
66
|
-
# config.active_record.auto_explain_threshold_in_seconds = 0.5
|
67
|
-
|
68
|
-
# Use Cloudfront for asset hosting
|
69
|
-
config.action_controller.asset_host = "|CDN_URL|"
|
70
|
-
|
71
|
-
end
|
@@ -1,37 +0,0 @@
|
|
1
|
-
|APP_NAME|::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
3
|
-
|
4
|
-
# The test environment is used exclusively to run your application's
|
5
|
-
# test suite. You never need to work with it otherwise. Remember that
|
6
|
-
# your test database is "scratch space" for the test suite and is wiped
|
7
|
-
# and recreated between test runs. Don't rely on the data there!
|
8
|
-
config.cache_classes = true
|
9
|
-
|
10
|
-
# Configure static asset server for tests with Cache-Control for performance
|
11
|
-
config.serve_static_assets = true
|
12
|
-
config.static_cache_control = "public, max-age=3600"
|
13
|
-
|
14
|
-
# Log error messages when you accidentally call methods on nil
|
15
|
-
config.whiny_nils = true
|
16
|
-
|
17
|
-
# Show full error reports and disable caching
|
18
|
-
config.consider_all_requests_local = true
|
19
|
-
config.action_controller.perform_caching = false
|
20
|
-
|
21
|
-
# Raise exceptions instead of rendering exception templates
|
22
|
-
config.action_dispatch.show_exceptions = false
|
23
|
-
|
24
|
-
# Disable request forgery protection in test environment
|
25
|
-
config.action_controller.allow_forgery_protection = false
|
26
|
-
|
27
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
28
|
-
# The :test delivery method accumulates sent emails in the
|
29
|
-
# ActionMailer::Base.deliveries array.
|
30
|
-
config.action_mailer.delivery_method = :test
|
31
|
-
|
32
|
-
# Raise exception on mass assignment protection for Active Record models
|
33
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
34
|
-
|
35
|
-
# Print deprecation notices to the stderr
|
36
|
-
config.active_support.deprecation = :stderr
|
37
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
|
2
|
-
# Salt to ensure passwords are encrypted securely
|
3
|
-
Caboose::salt = '|CABOOSE_SALT|'
|
4
|
-
|
5
|
-
# Where page asset files will be uploaded
|
6
|
-
Caboose::assets_path = Rails.root.join('app', 'assets', 'caboose')
|
7
|
-
|
8
|
-
# Register any caboose plugins
|
9
|
-
#Caboose::plugins << 'MyPlugin'
|
10
|
-
|
11
|
-
Caboose::use_url_params = false
|
12
|
-
|
13
|
-
Caboose::website_name = "|APP_NAME|"
|
14
|
-
Caboose::website_domain = "http://mywebsite.com"
|
15
|
-
Caboose::cdn_domain = "|CDN_URL|"
|
16
|
-
Caboose::email_from = "contact@mywebsite.com"
|
17
|
-
#Caboose::authenticator_class = 'Authenticator'
|
18
|
-
Caboose::use_ab_testing = false
|
19
|
-
Caboose::session_length = 24 # hours
|
@@ -1,13 +0,0 @@
|
|
1
|
-
|APP_NAME|::Application.configure do
|
2
|
-
# Paperclip config for S3 assets
|
3
|
-
config.paperclip_defaults = {
|
4
|
-
:storage => :s3,
|
5
|
-
:s3_credentials => {
|
6
|
-
:bucket => '|S3_BUCKET_NAME|',
|
7
|
-
:access_key_id => '|S3_ACCESS_KEY_ID|',
|
8
|
-
:secret_access_key => '|S3_SECRET_ACCESS_KEY|'
|
9
|
-
},
|
10
|
-
:url => ':s3_alias_url',
|
11
|
-
:s3_host_alias => '|CDN_URL|'
|
12
|
-
}
|
13
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
|APP_NAME|::Application.config.session_store :active_record_store
|
@@ -1,22 +0,0 @@
|
|
1
|
-
|
2
|
-
default:
|
3
|
-
theme_advanced_toolbar_align: left
|
4
|
-
theme_advanced_buttons3_add:
|
5
|
-
- tablecontrols
|
6
|
-
plugins:
|
7
|
-
- table
|
8
|
-
|
9
|
-
caboose:
|
10
|
-
width: '540px'
|
11
|
-
height: '130px'
|
12
|
-
convert_urls: false
|
13
|
-
content_css: '/assets/caboose/tinymce.css'
|
14
|
-
theme_advanced_toolbar_location: top
|
15
|
-
theme_advanced_toolbar_align: left
|
16
|
-
theme_advanced_statusbar_location: bottom
|
17
|
-
theme_advanced_resizing: true
|
18
|
-
theme_advanced_buttons1: "bold,italic,underline,|,bullist,numlist,|,link,unlink,anchor,image,|,tablecontrols,|,code"
|
19
|
-
theme_advanced_buttons2: ""
|
20
|
-
theme_advanced_buttons3: ""
|
21
|
-
theme_advanced_buttons4: ""
|
22
|
-
plugins: "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template"
|
@@ -1,197 +0,0 @@
|
|
1
|
-
"ACDT","Australian Central Daylight Time"
|
2
|
-
"ACST","Australian Central Standard Time"
|
3
|
-
"ACT","ASEAN Common Time"
|
4
|
-
"ADT","Atlantic Daylight Time"
|
5
|
-
"AEDT","Australian Eastern Daylight Time"
|
6
|
-
"AEST","Australian Eastern Standard Time"
|
7
|
-
"AFT","Afghanistan Time"
|
8
|
-
"AKDT","Alaska Daylight Time"
|
9
|
-
"AKST","Alaska Standard Time"
|
10
|
-
"AMST","Amazon Summer Time (Brazil)[1]"
|
11
|
-
"AMST","Armenia Summer Time"
|
12
|
-
"AMT","Amazon Time (Brazil)[2]"
|
13
|
-
"AMT","Armenia Time"
|
14
|
-
"ART","Argentina Time"
|
15
|
-
"AST","Arabia Standard Time"
|
16
|
-
"AST","Atlantic Standard Time"
|
17
|
-
"AWDT","Australian Western Daylight Time"
|
18
|
-
"AWST","Australian Western Standard Time"
|
19
|
-
"AZOST","Azores Standard Time"
|
20
|
-
"AZT","Azerbaijan Time"
|
21
|
-
"BDT","Brunei Time"
|
22
|
-
"BIOT","British Indian Ocean Time"
|
23
|
-
"BIT","Baker Island Time"
|
24
|
-
"BOT","Bolivia Time"
|
25
|
-
"BRT","Brasilia Time"
|
26
|
-
"BST","Bangladesh Standard Time"
|
27
|
-
"BST","British Summer Time (British Standard Time from Feb 1968 to Oct 1971)"
|
28
|
-
"BTT","Bhutan Time"
|
29
|
-
"CAT","Central Africa Time"
|
30
|
-
"CCT","Cocos Islands Time"
|
31
|
-
"CDT","Central Daylight Time (North America)"
|
32
|
-
"CDT","Cuba Daylight Time[3]"
|
33
|
-
"CEDT","Central European Daylight Time"
|
34
|
-
"CEST","Central European Summer Time (Cf. HAEC)"
|
35
|
-
"CET","Central European Time"
|
36
|
-
"CHADT","Chatham Daylight Time"
|
37
|
-
"CHAST","Chatham Standard Time"
|
38
|
-
"CHOT","Choibalsan"
|
39
|
-
"ChST","Chamorro Standard Time"
|
40
|
-
"CHUT","Chuuk Time"
|
41
|
-
"CIST","Clipperton Island Standard Time"
|
42
|
-
"CIT","Central Indonesia Time"
|
43
|
-
"CKT","Cook Island Time"
|
44
|
-
"CLST","Chile Summer Time"
|
45
|
-
"CLT","Chile Standard Time"
|
46
|
-
"COST","Colombia Summer Time"
|
47
|
-
"COT","Colombia Time"
|
48
|
-
"CST","Central Standard Time (North America)"
|
49
|
-
"CST","China Standard Time"
|
50
|
-
"CST","Central Standard Time (Australia)"
|
51
|
-
"CST","Central Summer Time (Australia)"
|
52
|
-
"CST","Cuba Standard Time"
|
53
|
-
"CT","China time"
|
54
|
-
"CVT","Cape Verde Time"
|
55
|
-
"CWST","Central Western Standard Time (Australia) unofficial"
|
56
|
-
"CXT","Christmas Island Time"
|
57
|
-
"DAVT","Davis Time"
|
58
|
-
"DDUT","Dumont d'Urville Time"
|
59
|
-
"DFT","AIX specific equivalent of Central European Time[4]"
|
60
|
-
"EASST","Easter Island Standard Summer Time"
|
61
|
-
"EAST","Easter Island Standard Time"
|
62
|
-
"EAT","East Africa Time"
|
63
|
-
"ECT","Eastern Caribbean Time (does not recognise DST)"
|
64
|
-
"ECT","Ecuador Time"
|
65
|
-
"EDT","Eastern Daylight Time (North America)"
|
66
|
-
"EEDT","Eastern European Daylight Time"
|
67
|
-
"EEST","Eastern European Summer Time"
|
68
|
-
"EET","Eastern European Time"
|
69
|
-
"EGST","Eastern Greenland Summer Time"
|
70
|
-
"EGT","Eastern Greenland Time"
|
71
|
-
"EIT","Eastern Indonesian Time"
|
72
|
-
"EST","Eastern Standard Time (North America)"
|
73
|
-
"EST","Eastern Standard Time (Australia)"
|
74
|
-
"FET","Further-eastern European Time"
|
75
|
-
"FJT","Fiji Time"
|
76
|
-
"FKST","Falkland Islands Standard Time"
|
77
|
-
"FKST","Falkland Islands Summer Time"
|
78
|
-
"FKT","Falkland Islands Time"
|
79
|
-
"FNT","Fernando de Noronha Time"
|
80
|
-
"GALT","Galapagos Time"
|
81
|
-
"GAMT","Gambier Islands"
|
82
|
-
"GET","Georgia Standard Time"
|
83
|
-
"GFT","French Guiana Time"
|
84
|
-
"GILT","Gilbert Island Time"
|
85
|
-
"GIT","Gambier Island Time"
|
86
|
-
"GMT","Greenwich Mean Time"
|
87
|
-
"GST","South Georgia and the South Sandwich Islands"
|
88
|
-
"GST","Gulf Standard Time"
|
89
|
-
"GYT","Guyana Time"
|
90
|
-
"HADT","Hawaii-Aleutian Daylight Time"
|
91
|
-
"HAEC","Heure Avancée d'Europe Centrale francised name for CEST"
|
92
|
-
"HAST","Hawaii-Aleutian Standard Time"
|
93
|
-
"HKT","Hong Kong Time"
|
94
|
-
"HMT","Heard and McDonald Islands Time"
|
95
|
-
"HOVT","Khovd Time"
|
96
|
-
"HST","Hawaii Standard Time"
|
97
|
-
"ICT","Indochina Time"
|
98
|
-
"IDT","Israel Daylight Time"
|
99
|
-
"IOT","Indian Ocean Time"
|
100
|
-
"IRDT","Iran Daylight Time"
|
101
|
-
"IRKT","Irkutsk Time"
|
102
|
-
"IRST","Iran Standard Time"
|
103
|
-
"IST","Indian Standard Time"
|
104
|
-
"IST","Irish Standard Time[5]"
|
105
|
-
"IST","Israel Standard Time"
|
106
|
-
"JST","Japan Standard Time"
|
107
|
-
"KGT","Kyrgyzstan time"
|
108
|
-
"KOST","Kosrae Time"
|
109
|
-
"KRAT","Krasnoyarsk Time"
|
110
|
-
"KST","Korea Standard Time"
|
111
|
-
"LHST","Lord Howe Standard Time"
|
112
|
-
"LHST","Lord Howe Summer Time"
|
113
|
-
"LINT","Line Islands Time"
|
114
|
-
"MAGT","Magadan Time"
|
115
|
-
"MART","Marquesas Islands Time"
|
116
|
-
"MAWT","Mawson Station Time"
|
117
|
-
"MDT","Mountain Daylight Time (North America)"
|
118
|
-
"MET","Middle European Time Same zone as CET"
|
119
|
-
"MEST","Middle European Saving Time Same zone as CEST"
|
120
|
-
"MHT","Marshall Islands"
|
121
|
-
"MIST","Macquarie Island Station Time"
|
122
|
-
"MIT","Marquesas Islands Time"
|
123
|
-
"MMT","Myanmar Time"
|
124
|
-
"MSK","Moscow Time"
|
125
|
-
"MST","Malaysia Standard Time"
|
126
|
-
"MST","Mountain Standard Time (North America)"
|
127
|
-
"MST","Myanmar Standard Time"
|
128
|
-
"MUT","Mauritius Time"
|
129
|
-
"MVT","Maldives Time"
|
130
|
-
"MYT","Malaysia Time"
|
131
|
-
"NCT","New Caledonia Time"
|
132
|
-
"NDT","Newfoundland Daylight Time"
|
133
|
-
"NFT","Norfolk Time"
|
134
|
-
"NPT","Nepal Time"
|
135
|
-
"NST","Newfoundland Standard Time"
|
136
|
-
"NT","Newfoundland Time"
|
137
|
-
"NUT","Niue Time"
|
138
|
-
"NZDT","New Zealand Daylight Time"
|
139
|
-
"NZST","New Zealand Standard Time"
|
140
|
-
"OMST","Omsk Time"
|
141
|
-
"ORAT","Oral Time"
|
142
|
-
"PDT","Pacific Daylight Time (North America)"
|
143
|
-
"PET","Peru Time"
|
144
|
-
"PETT","Kamchatka Time"
|
145
|
-
"PGT","Papua New Guinea Time"
|
146
|
-
"PHOT","Phoenix Island Time"
|
147
|
-
"PHT","Philippine Time"
|
148
|
-
"PKT","Pakistan Standard Time"
|
149
|
-
"PMDT","Saint Pierre and Miquelon Daylight time"
|
150
|
-
"PMST","Saint Pierre and Miquelon Standard Time"
|
151
|
-
"PONT","Pohnpei Standard Time"
|
152
|
-
"PST","Pacific Standard Time (North America)"
|
153
|
-
"PYST","Paraguay Summer Time (South America)[6]"
|
154
|
-
"PYT","Paraguay Time (South America)[7]"
|
155
|
-
"RET","Réunion Time"
|
156
|
-
"ROTT","Rothera Research Station Time"
|
157
|
-
"SAKT","Sakhalin Island time"
|
158
|
-
"SAMT","Samara Time"
|
159
|
-
"SAST","South African Standard Time"
|
160
|
-
"SBT","Solomon Islands Time"
|
161
|
-
"SCT","Seychelles Time"
|
162
|
-
"SGT","Singapore Time"
|
163
|
-
"SLST","Sri Lanka Time"
|
164
|
-
"SRT","Suriname Time"
|
165
|
-
"SST","Samoa Standard Time"
|
166
|
-
"SST","Singapore Standard Time"
|
167
|
-
"SYOT","Showa Station Time"
|
168
|
-
"TAHT","Tahiti Time"
|
169
|
-
"THA","Thailand Standard Time"
|
170
|
-
"TFT","Indian/Kerguelen"
|
171
|
-
"TJT","Tajikistan Time"
|
172
|
-
"TKT","Tokelau Time"
|
173
|
-
"TLT","Timor Leste Time"
|
174
|
-
"TMT","Turkmenistan Time"
|
175
|
-
"TOT","Tonga Time"
|
176
|
-
"TVT","Tuvalu Time"
|
177
|
-
"UCT","Coordinated Universal Time"
|
178
|
-
"ULAT","Ulaanbaatar Time"
|
179
|
-
"UTC","Coordinated Universal Time"
|
180
|
-
"UYST","Uruguay Summer Time"
|
181
|
-
"UYT","Uruguay Standard Time"
|
182
|
-
"UZT","Uzbekistan Time"
|
183
|
-
"VET","Venezuelan Standard Time"
|
184
|
-
"VLAT","Vladivostok Time"
|
185
|
-
"VOLT","Volgograd Time"
|
186
|
-
"VOST","Vostok Station Time"
|
187
|
-
"VUT","Vanuatu Time"
|
188
|
-
"WAKT","Wake Island Time"
|
189
|
-
"WAST","West Africa Summer Time"
|
190
|
-
"WAT","West Africa Time"
|
191
|
-
"WEDT","Western European Daylight Time"
|
192
|
-
"WEST","Western European Summer Time"
|
193
|
-
"WET","Western European Time"
|
194
|
-
"WST","Western Standard Time"
|
195
|
-
"YAKT","Yakutsk Time"
|
196
|
-
"YEKT","Yekaterinburg Time"
|
197
|
-
"Z","Zulu Time (Coordinated Universal Time)"
|