trusty-cms 3.8.2 → 3.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/Gemfile.lock +1 -1
- data/app/helpers/scoped_helper.rb +1 -1
- data/app/models/trusty_cms/config.rb +2 -5
- data/config/application.rb +4 -4
- data/config/initializers/devise.rb +1 -1
- data/db/migrate/{001_create_radiant_tables.rb → 001_create_trusty_tables.rb} +1 -1
- data/db/migrate/20111016150725_extend_page_part_content_limit.rb +0 -2
- data/lib/configuration_extensions/configuration_extensions.rb +9 -9
- data/lib/tasks/extensions.rake +4 -4
- data/lib/tasks/framework.rake +28 -28
- data/lib/tasks/radiant_config.rake +4 -4
- data/lib/trusty_cms.rb +1 -1
- data/lib/trusty_cms/config/definition.rb +1 -1
- data/lib/trusty_cms/extension_loader.rb +1 -1
- data/lib/trusty_cms/extension_path.rb +1 -1
- data/lib/trusty_cms/initializer.rb +14 -14
- data/lib/trusty_cms/taggable.rb +1 -1
- data/lib/trusty_cms/task_support.rb +2 -2
- data/spec/dummy/config/application.rb +8 -8
- data/vendor/extensions/clipped-extension/lib/tasks/clipped_extension_tasks.rake +2 -2
- data/vendor/extensions/multi-site-extension/lib/tasks/scoped_admin_extension_tasks.rake +2 -2
- metadata +3 -103
- data/CONTRIBUTORS.md +0 -279
- data/Vagrantfile +0 -122
- data/app/mailers/password_mailer.rb +0 -10
- data/bin/ci/before_script +0 -10
- data/bin/trusty_test +0 -3
- data/lib/generators/extension/USAGE +0 -30
- data/lib/generators/extension/extension_generator.rb +0 -97
- data/lib/generators/extension/templates/README.md +0 -6
- data/lib/generators/extension/templates/RSpecRakefile +0 -109
- data/lib/generators/extension/templates/Rakefile +0 -25
- data/lib/generators/extension/templates/cucumber.yml +0 -1
- data/lib/generators/extension/templates/cucumber_env.rb +0 -11
- data/lib/generators/extension/templates/cucumber_paths.rb +0 -22
- data/lib/generators/extension/templates/en.yml +0 -3
- data/lib/generators/extension/templates/extension.rb +0 -21
- data/lib/generators/extension/templates/functional_test.rb +0 -15
- data/lib/generators/extension/templates/gemspec.rb +0 -29
- data/lib/generators/extension/templates/lib.rb +0 -8
- data/lib/generators/extension/templates/migration.rb +0 -9
- data/lib/generators/extension/templates/radiant_config.rb +0 -3
- data/lib/generators/extension/templates/routes.rb +0 -5
- data/lib/generators/extension/templates/spec.opts +0 -6
- data/lib/generators/extension/templates/spec_helper.rb +0 -42
- data/lib/generators/extension/templates/tasks.rake +0 -47
- data/lib/generators/extension/templates/test_helper.rb +0 -26
- data/lib/generators/extension_controller/USAGE +0 -36
- data/lib/generators/extension_controller/extension_controller_generator.rb +0 -84
- data/lib/generators/extension_controller/templates/controller.rb +0 -10
- data/lib/generators/extension_controller/templates/controller_spec.rb +0 -23
- data/lib/generators/extension_controller/templates/functional_test.rb +0 -11
- data/lib/generators/extension_controller/templates/helper.rb +0 -2
- data/lib/generators/extension_controller/templates/helper_spec.rb +0 -11
- data/lib/generators/extension_controller/templates/helper_test.rb +0 -4
- data/lib/generators/extension_controller/templates/view.html.erb +0 -2
- data/lib/generators/extension_controller/templates/view_spec.rb +0 -12
- data/lib/generators/extension_mailer/USAGE +0 -17
- data/lib/generators/extension_mailer/extension_mailer_generator.rb +0 -68
- data/lib/generators/extension_mailer/templates/fixture.erb +0 -3
- data/lib/generators/extension_mailer/templates/mailer.rb +0 -15
- data/lib/generators/extension_mailer/templates/unit_test.rb +0 -21
- data/lib/generators/extension_mailer/templates/view.erb +0 -3
- data/lib/generators/extension_migration/USAGE +0 -34
- data/lib/generators/extension_migration/extension_migration_generator.rb +0 -25
- data/lib/generators/extension_migration/templates/migration.rb +0 -11
- data/lib/generators/extension_model/USAGE +0 -35
- data/lib/generators/extension_model/extension_model_generator.rb +0 -68
- data/lib/generators/extension_model/templates/fixtures.yml +0 -19
- data/lib/generators/extension_model/templates/migration.rb +0 -16
- data/lib/generators/extension_model/templates/model.rb +0 -2
- data/lib/generators/extension_model/templates/model_spec.rb +0 -11
- data/lib/generators/extension_model/templates/unit_test.rb +0 -8
- data/lib/generators/generator_base_extension.rb +0 -18
- data/lib/generators/instance/instance_generator.rb +0 -148
- data/lib/generators/instance/templates/databases/db2.yml +0 -40
- data/lib/generators/instance/templates/databases/mysql.yml +0 -47
- data/lib/generators/instance/templates/databases/postgresql.yml +0 -44
- data/lib/generators/instance/templates/databases/sqlite3.yml +0 -16
- data/lib/generators/instance/templates/databases/sqlserver.yml +0 -21
- data/lib/generators/instance/templates/instance_boot.rb +0 -122
- data/lib/generators/instance/templates/instance_config.ru +0 -2
- data/lib/generators/instance/templates/instance_environment.rb +0 -93
- data/lib/generators/instance/templates/instance_gemfile +0 -78
- data/lib/generators/instance/templates/instance_generate +0 -6
- data/lib/generators/instance/templates/instance_radiant_config.rb +0 -16
- data/lib/generators/instance/templates/instance_rakefile +0 -3
- data/lib/generators/instance/templates/instance_routes.rb +0 -1
- data/lib/generators/language_extension/USAGE +0 -27
- data/lib/generators/language_extension/language_extension_generator.rb +0 -71
- data/lib/generators/language_extension/templates/README +0 -3
- data/lib/generators/language_extension/templates/RSpecRakefile +0 -123
- data/lib/generators/language_extension/templates/Rakefile +0 -25
- data/lib/generators/language_extension/templates/available_tags.yml +0 -553
- data/lib/generators/language_extension/templates/cucumber.yml +0 -1
- data/lib/generators/language_extension/templates/cucumber_env.rb +0 -16
- data/lib/generators/language_extension/templates/cucumber_paths.rb +0 -14
- data/lib/generators/language_extension/templates/extension.rb +0 -12
- data/lib/generators/language_extension/templates/functional_test.rb +0 -15
- data/lib/generators/language_extension/templates/gemspec.rb +0 -24
- data/lib/generators/language_extension/templates/lang.yml +0 -181
- data/lib/generators/language_extension/templates/lib.rb +0 -8
- data/lib/generators/language_extension/templates/spec.opts +0 -6
- data/lib/generators/language_extension/templates/spec_helper.rb +0 -36
- data/lib/generators/language_extension/templates/tasks.rake +0 -28
- data/lib/generators/language_extension/templates/test_helper.rb +0 -26
- data/lib/generators/trusty_cms/USAGE +0 -8
- data/lib/generators/trusty_cms/templates/Rakefile.erb +0 -7
- data/lib/generators/trusty_cms/templates/application.rb.erb +0 -149
- data/lib/generators/trusty_cms/templates/boot.rb.erb +0 -9
- data/lib/generators/trusty_cms/templates/config.ru.erb +0 -4
- data/lib/generators/trusty_cms/templates/database.yml.erb +0 -28
- data/lib/generators/trusty_cms/templates/environment.rb.erb +0 -5
- data/lib/generators/trusty_cms/templates/environments/development.rb.erb +0 -24
- data/lib/generators/trusty_cms/templates/environments/production.rb.erb +0 -26
- data/lib/generators/trusty_cms/templates/environments/test.rb.erb +0 -35
- data/lib/generators/trusty_cms/templates/initializers/secret_token.rb.erb +0 -13
- data/lib/generators/trusty_cms/templates/initializers/session_store.rb.erb +0 -8
- data/lib/generators/trusty_cms/templates/initializers/trusty_cms_config.rb.erb +0 -16
- data/lib/generators/trusty_cms/templates/preinitializer.rb.erb +0 -18
- data/lib/generators/trusty_cms/templates/routes.rb.erb +0 -0
- data/lib/generators/trusty_cms/trusty_cms_generator.rb +0 -32
@@ -1,40 +0,0 @@
|
|
1
|
-
# DB2 9.7
|
2
|
-
#
|
3
|
-
# Home Page
|
4
|
-
# http://rubyforge.org/projects/rubyibm/
|
5
|
-
#
|
6
|
-
# To install the ibm_db gem:
|
7
|
-
# On Linux:
|
8
|
-
# $ sudo -s
|
9
|
-
# $ . /home/db2inst1/sqllib/db2profile
|
10
|
-
# $ export IBM_DB_LIB=/opt/ibm/db2/V9.7/lib
|
11
|
-
# $ export IBM_DB_INCLUDE=/opt/ibm/db2/V9.7/include
|
12
|
-
# $ gem install ibm_db
|
13
|
-
#
|
14
|
-
# On Windows:
|
15
|
-
# Issue the command: gem install ibm_db
|
16
|
-
# If prompted, select the mswin32 option
|
17
|
-
#
|
18
|
-
# For more details on the installation and the available connection parameters refer to:
|
19
|
-
# http://rubyforge.org/docman/?group_id=2361
|
20
|
-
|
21
|
-
development:
|
22
|
-
adapter: ibm_db
|
23
|
-
database: <%= app_name[0,4] %>_dev
|
24
|
-
username: db2inst1
|
25
|
-
password:
|
26
|
-
|
27
|
-
# Warning: The database defined as 'test' will be erased and
|
28
|
-
# re-generated from your development database when you run 'rake'.
|
29
|
-
# Do not set this db to the same as development or production.
|
30
|
-
test:
|
31
|
-
adapter: ibm_db
|
32
|
-
database: <%= app_name[0,4] %>_tst
|
33
|
-
username: db2inst1
|
34
|
-
password:
|
35
|
-
|
36
|
-
production:
|
37
|
-
adapter: ibm_db
|
38
|
-
database: <%= app_name[0,4] %>_prd
|
39
|
-
username: db2inst1
|
40
|
-
password:
|
@@ -1,47 +0,0 @@
|
|
1
|
-
# MySQL (default setup). Versions 4.1 and 5.0 are recommended.
|
2
|
-
#
|
3
|
-
# Install the MySQL driver:
|
4
|
-
# gem install mysql
|
5
|
-
# On MacOS X:
|
6
|
-
# gem install mysql -- --include=/usr/local/lib
|
7
|
-
# On Windows:
|
8
|
-
# There is no gem for Windows. Install mysql.so from RubyForApache.
|
9
|
-
# http://rubyforge.org/projects/rubyforapache
|
10
|
-
#
|
11
|
-
# And be sure to use new-style password hashing:
|
12
|
-
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
|
13
|
-
development:
|
14
|
-
adapter: mysql2
|
15
|
-
database: <%= app_name %>_development
|
16
|
-
username: root
|
17
|
-
password:
|
18
|
-
<% if socket -%>
|
19
|
-
socket: <%= socket %>
|
20
|
-
<% else -%>
|
21
|
-
host: localhost
|
22
|
-
<% end -%>
|
23
|
-
|
24
|
-
# Warning: The database defined as 'test' will be erased and
|
25
|
-
# re-generated from your development database when you run 'rake'.
|
26
|
-
# Do not set this db to the same as development or production.
|
27
|
-
test:
|
28
|
-
adapter: mysql2
|
29
|
-
database: <%= app_name %>_test
|
30
|
-
username: root
|
31
|
-
password:
|
32
|
-
<% if socket -%>
|
33
|
-
socket: <%= socket %>
|
34
|
-
<% else -%>
|
35
|
-
host: localhost
|
36
|
-
<% end -%>
|
37
|
-
|
38
|
-
production:
|
39
|
-
adapter: mysql2
|
40
|
-
database: <%= app_name %>_production
|
41
|
-
username: root
|
42
|
-
password:
|
43
|
-
<% if socket -%>
|
44
|
-
socket: <%= socket %>
|
45
|
-
<% else -%>
|
46
|
-
host: localhost
|
47
|
-
<% end -%>
|
@@ -1,44 +0,0 @@
|
|
1
|
-
# PostgreSQL versions 7.4 - 8.1
|
2
|
-
#
|
3
|
-
# Get the C bindings:
|
4
|
-
# gem install postgres
|
5
|
-
# or use the pure-Ruby bindings on Windows:
|
6
|
-
# gem install postgres-pr
|
7
|
-
development:
|
8
|
-
adapter: postgresql
|
9
|
-
database: <%= app_name %>_development
|
10
|
-
username: <%= app_name %>
|
11
|
-
password:
|
12
|
-
|
13
|
-
# Connect on a TCP socket. Omitted by default since the client uses a
|
14
|
-
# domain socket that doesn't need configuration. Windows does not have
|
15
|
-
# domain sockets, so uncomment these lines.
|
16
|
-
#host: localhost
|
17
|
-
#port: 5432
|
18
|
-
|
19
|
-
# Schema search path. The server defaults to $user,public
|
20
|
-
#schema_search_path: myapp,sharedapp,public
|
21
|
-
|
22
|
-
# Character set encoding. The server defaults to sql_ascii.
|
23
|
-
#encoding: UTF8
|
24
|
-
|
25
|
-
# Minimum log levels, in increasing order:
|
26
|
-
# debug5, debug4, debug3, debug2, debug1,
|
27
|
-
# info, notice, warning, error, log, fatal, or panic
|
28
|
-
# The server defaults to notice.
|
29
|
-
#min_messages: warning
|
30
|
-
|
31
|
-
# Warning: The database defined as 'test' will be erased and
|
32
|
-
# re-generated from your development database when you run 'rake'.
|
33
|
-
# Do not set this db to the same as development or production.
|
34
|
-
test:
|
35
|
-
adapter: postgresql
|
36
|
-
database: <%= app_name %>_test
|
37
|
-
username: <%= app_name %>
|
38
|
-
password:
|
39
|
-
|
40
|
-
production:
|
41
|
-
adapter: postgresql
|
42
|
-
database: <%= app_name %>_production
|
43
|
-
username: <%= app_name %>
|
44
|
-
password:
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# SQLite version 3.x
|
2
|
-
# gem install sqlite3-ruby
|
3
|
-
development:
|
4
|
-
adapter: sqlite3
|
5
|
-
database: db/development.sqlite3.db
|
6
|
-
|
7
|
-
# Warning: The database defined as 'test' will be erased and
|
8
|
-
# re-generated from your development database when you run 'rake'.
|
9
|
-
# Do not set this db to the same as development or production.
|
10
|
-
test:
|
11
|
-
adapter: sqlite3
|
12
|
-
database: db/test.sqlite3.db
|
13
|
-
|
14
|
-
production:
|
15
|
-
adapter: sqlite3
|
16
|
-
database: db/production.sqlite3.db
|
@@ -1,21 +0,0 @@
|
|
1
|
-
development:
|
2
|
-
adapter: sqlserver
|
3
|
-
database: <%= app_name %>_development
|
4
|
-
username: <%= app_name %>
|
5
|
-
password:
|
6
|
-
|
7
|
-
# Warning: The database defined as 'test' will be erased and
|
8
|
-
# re-generated from your development database when you run 'rake'.
|
9
|
-
# Do not set this db to the same as development or production.
|
10
|
-
test:
|
11
|
-
adapter: sqlserver
|
12
|
-
database: <%= app_name %>_test
|
13
|
-
username: <%= app_name %>
|
14
|
-
password:
|
15
|
-
|
16
|
-
production:
|
17
|
-
adapter: sqlserver
|
18
|
-
database: <%= app_name %>_production
|
19
|
-
username: <%= app_name %>
|
20
|
-
password:
|
21
|
-
|
@@ -1,122 +0,0 @@
|
|
1
|
-
# Don't change this file!
|
2
|
-
# Configure your app in config/environment.rb and config/environments/*.rb
|
3
|
-
|
4
|
-
Rails.root = "#{File.dirname(__FILE__)}/.." unless defined?(Rails.root)
|
5
|
-
Rails.env = (ENV['RAILS_ENV'] || 'development').dup unless defined?(Rails.env)
|
6
|
-
|
7
|
-
module Rails
|
8
|
-
class << self
|
9
|
-
def vendor_rails?
|
10
|
-
File.exist?("#{Rails.root}/vendor/rails")
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
module TrustyCms
|
16
|
-
class << self
|
17
|
-
def boot!
|
18
|
-
unless booted?
|
19
|
-
preinitialize
|
20
|
-
pick_boot.run
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
def booted?
|
25
|
-
defined? TrustyCms::Initializer
|
26
|
-
end
|
27
|
-
|
28
|
-
def pick_boot
|
29
|
-
case
|
30
|
-
when app?
|
31
|
-
AppBoot.new
|
32
|
-
when vendor?
|
33
|
-
VendorBoot.new
|
34
|
-
else
|
35
|
-
GemBoot.new
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
def vendor?
|
40
|
-
File.exist?("#{Rails.root}/vendor/radiant")
|
41
|
-
end
|
42
|
-
|
43
|
-
def app?
|
44
|
-
File.exist?("#{Rails.root}/lib/radiant.rb")
|
45
|
-
end
|
46
|
-
|
47
|
-
def preinitialize
|
48
|
-
load(preinitializer_path) if File.exist?(preinitializer_path)
|
49
|
-
end
|
50
|
-
|
51
|
-
def loaded_via_gem?
|
52
|
-
pick_boot.is_a? GemBoot
|
53
|
-
end
|
54
|
-
|
55
|
-
def preinitializer_path
|
56
|
-
"#{Rails.root}/config/preinitializer.rb"
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
class Boot
|
61
|
-
def run
|
62
|
-
load_mutex
|
63
|
-
load_initializer
|
64
|
-
end
|
65
|
-
|
66
|
-
# RubyGems from version 1.6 does not require thread but Rails depend on it
|
67
|
-
# This should newer rails do automaticly
|
68
|
-
def load_mutex
|
69
|
-
begin
|
70
|
-
require "thread" unless defined?(Mutex)
|
71
|
-
rescue LoadError => e
|
72
|
-
$stderr.puts %(Mutex could not be initialized. #{load_error_message})
|
73
|
-
exit 1
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
def load_initializer
|
78
|
-
begin
|
79
|
-
require 'trusty_cms'
|
80
|
-
require 'trusty_cms/initializer'
|
81
|
-
rescue LoadError => e
|
82
|
-
$stderr.puts %(TrustyCms could not be initialized. #{load_error_message})
|
83
|
-
exit 1
|
84
|
-
end
|
85
|
-
TrustyCms::Initializer.run(:set_load_path)
|
86
|
-
TrustyCms::Initializer.run(:install_gem_spec_stubs)
|
87
|
-
Rails::GemDependency.add_frozen_gem_path
|
88
|
-
end
|
89
|
-
end
|
90
|
-
|
91
|
-
class VendorBoot < Boot
|
92
|
-
def load_initializer
|
93
|
-
$LOAD_PATH.unshift "#{Rails.root}/vendor/trusty_cms/lib"
|
94
|
-
super
|
95
|
-
end
|
96
|
-
|
97
|
-
def load_error_message
|
98
|
-
"Please verify that vendor/radiant contains a complete copy of the TrustyCms sources."
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
|
-
class AppBoot < Boot
|
103
|
-
def load_initializer
|
104
|
-
$LOAD_PATH.unshift "#{Rails.root}/lib"
|
105
|
-
super
|
106
|
-
end
|
107
|
-
|
108
|
-
def load_error_message
|
109
|
-
"Please verify that you have a complete copy of the TrustyCms sources."
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
class GemBoot < Boot
|
114
|
-
# The location and version of the radiant gem should be set in your Gemfile
|
115
|
-
def load_error_message
|
116
|
-
"Have you run `bundle install`?'."
|
117
|
-
end
|
118
|
-
end
|
119
|
-
end
|
120
|
-
|
121
|
-
# All that for this:
|
122
|
-
TrustyCms.boot!
|
@@ -1,93 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file
|
2
|
-
|
3
|
-
# Uncomment below to force Rails into production mode when
|
4
|
-
# you don't control web/app server and can't set it the proper way
|
5
|
-
# ENV['RAILS_ENV'] ||= 'production'
|
6
|
-
|
7
|
-
# Specifies gem version of Rails to use when vendor/rails is not present
|
8
|
-
require File.join(File.dirname(__FILE__), 'boot')
|
9
|
-
|
10
|
-
require 'radius'
|
11
|
-
|
12
|
-
YAML::ENGINE.yamler = 'syck' if RUBY_VERSION =~ /1.9/
|
13
|
-
|
14
|
-
TrustyCms::Initializer.run do |config|
|
15
|
-
# Skip frameworks you're not going to use (only works if using vendor/rails).
|
16
|
-
# To use Rails without a database, you must remove the Active Record framework
|
17
|
-
# config.frameworks -= [ :action_mailer ]
|
18
|
-
|
19
|
-
# Only load the extensions named here, in the order given. By default all
|
20
|
-
# extensions in vendor/extensions are loaded, in alphabetical order. :all
|
21
|
-
# can be used as a placeholder for all extensions not explicitly named.
|
22
|
-
# config.extensions = [ :all ]
|
23
|
-
|
24
|
-
# Unload the extensions named here.
|
25
|
-
# config.ignore_extensions []
|
26
|
-
|
27
|
-
# Your secret key for verifying cookie session data integrity.
|
28
|
-
# If you change this key, all old sessions will become invalid!
|
29
|
-
# Make sure the secret is at least 30 characters and all random,
|
30
|
-
# no regular words or you'll be exposed to dictionary attacks.
|
31
|
-
config.action_controller.session = {
|
32
|
-
:key => '_<%= app_name %>_session',
|
33
|
-
:secret => <% require 'digest/sha1' %>'<%= Digest::SHA1.hexdigest("--#{app_name}--#{Time.now.to_s}--#{rand(10000000)}--") %>'
|
34
|
-
}
|
35
|
-
|
36
|
-
# Comment out this line if you want to turn off all caching, or
|
37
|
-
# add options to modify the behavior. In the majority of deployment
|
38
|
-
# scenarios it is desirable to leave TrustyCms's cache enabled and in
|
39
|
-
# the default configuration.
|
40
|
-
#
|
41
|
-
# Additional options:
|
42
|
-
# :use_x_sendfile => true
|
43
|
-
# Turns on X-Sendfile support for Apache with mod_xsendfile or lighttpd.
|
44
|
-
# :use_x_accel_redirect => '/some/virtual/path'
|
45
|
-
# Turns on X-Accel-Redirect support for nginx. You have to provide
|
46
|
-
# a path that corresponds to a virtual location in your webserver
|
47
|
-
# configuration.
|
48
|
-
# :entitystore => "radiant:tmp/cache/entity"
|
49
|
-
# Sets the entity store type (preceding the colon) and storage
|
50
|
-
# location (following the colon, relative to Rails.root).
|
51
|
-
# We recommend you use radiant: since this will enable manual expiration.
|
52
|
-
# :metastore => "radiant:tmp/cache/meta"
|
53
|
-
# Sets the meta store type and storage location. We recommend you use
|
54
|
-
# radiant: since this will enable manual expiration and acceleration headers.
|
55
|
-
config.middleware.use Rack::Cache,
|
56
|
-
:private_headers => ['Authorization'],
|
57
|
-
:entitystore => "radiant:tmp/cache/entity",
|
58
|
-
:metastore => "radiant:tmp/cache/meta",
|
59
|
-
:verbose => false,
|
60
|
-
:allow_reload => false,
|
61
|
-
:allow_revalidate => false
|
62
|
-
# TODO: There's got to be a better place for this, but in order for assets to work fornow, we need ConditionalGet
|
63
|
-
# TODO: Workaround from: https://github.com/rtomayko/rack-cache/issues/80
|
64
|
-
config.middleware.insert_before(Rack::ConditionalGet, Rack::Cache)
|
65
|
-
config.assets.enabled = true
|
66
|
-
|
67
|
-
# Use the database for sessions instead of the cookie-based default,
|
68
|
-
# which shouldn't be used to store highly confidential information
|
69
|
-
# (create the session table with 'rake db:sessions:create')
|
70
|
-
config.action_controller.session_store = :cookie_store
|
71
|
-
|
72
|
-
# Activate observers that should always be running
|
73
|
-
config.active_record.observers = :user_action_observer
|
74
|
-
|
75
|
-
# Make Active Record use UTC-base instead of local time
|
76
|
-
config.time_zone = 'UTC'
|
77
|
-
|
78
|
-
# Set the default field error proc
|
79
|
-
config.action_view.field_error_proc = Proc.new do |html, instance|
|
80
|
-
if html !~ /label/
|
81
|
-
%{<span class="error-with-field">#{html} <span class="error">#{[instance.error_message].flatten.first}</span></span>}.html_safe
|
82
|
-
else
|
83
|
-
html
|
84
|
-
end
|
85
|
-
end
|
86
|
-
|
87
|
-
config.after_initialize do
|
88
|
-
# Add new inflection rules using the following format:
|
89
|
-
ActiveSupport::Inflector.inflections do |inflect|
|
90
|
-
inflect.uncountable 'config'
|
91
|
-
end
|
92
|
-
end
|
93
|
-
end
|
@@ -1,78 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
# If you make any changes in this file, please run `bundle install`.
|
4
|
-
# If new versions of your installed gems are available, run `bundle update`
|
5
|
-
|
6
|
-
gem "radiant", "~> <%= radiant_version %>"
|
7
|
-
|
8
|
-
# alternatively, in development
|
9
|
-
# gem "trusty_cms", :path => "/path/to/trusty_cms/root"
|
10
|
-
|
11
|
-
# Uncomment to support CoffeeScript with a JS runtime (used in the Sheets extension)
|
12
|
-
# gem "execjs"
|
13
|
-
# And you may need one of these:
|
14
|
-
# gem "mustang" # Google V8 for Ruby
|
15
|
-
# gem "therubyracer" # Google V8 for Ruby
|
16
|
-
# gem "therubyrhino" # Mozilla Rhino for JRuby
|
17
|
-
# gem "johnson" # Mozilla SpiderMonkey for Ruby
|
18
|
-
|
19
|
-
# SQLite is the default database connection but only suitable for local use
|
20
|
-
<%= '# ' unless db == 'sqlite3' %>gem "sqlite3", "~> 1.3.5"
|
21
|
-
|
22
|
-
# To use MySQL2
|
23
|
-
<%= '# ' unless db == 'mysql2' %>"mysql2", "~> 0.4.2"
|
24
|
-
|
25
|
-
# Postgres
|
26
|
-
<%= '# ' unless db == 'postgresql' %>gem "pg", "~> 0.11.0"
|
27
|
-
|
28
|
-
# IBM DB2
|
29
|
-
<%= '# ' unless db == 'db2' %>gem "db2", "~> 2.6.2"
|
30
|
-
|
31
|
-
# SQL Server
|
32
|
-
<%= '# ' unless db == 'sqlserver' %>gem "tiny_tds"
|
33
|
-
<%= '# ' unless db == 'sqlserver' %>gem "activerecord-sqlserver-adapter", "~> 3.1.0"
|
34
|
-
|
35
|
-
# Default Extensions
|
36
|
-
gem "radiant-archive-extension", "~> 1.0.7"
|
37
|
-
gem "radiant-clipped-extension", "~> 1.1.0"
|
38
|
-
gem "radiant-debug-extension", "~> 1.0.2"
|
39
|
-
gem "radiant-exporter-extension", "~> 1.1.0"
|
40
|
-
gem "radiant-markdown_filter-extension", "~> 1.0.2"
|
41
|
-
gem "radiant-sheets-extension", "~> 1.1.0"
|
42
|
-
gem "radiant-snippets-extension", "~> 1.1.2"
|
43
|
-
gem "radiant-site_templates-extension", "~> 1.0.6"
|
44
|
-
gem "radiant-smarty_pants_filter-extension", "~> 1.0.2"
|
45
|
-
gem "radiant-textile_filter-extension", "~> 1.0.4"
|
46
|
-
|
47
|
-
|
48
|
-
# Language packs
|
49
|
-
# gem "radiant-dutch_language_pack-extension", "~> 1.0.1"
|
50
|
-
# gem "radiant-french_language_pack-extension", "~> 1.0.0"
|
51
|
-
# gem "radiant-german_language_pack-extension", "~> 1.0.1"
|
52
|
-
# gem "radiant-italian_language_pack-extension", "~> 1.0.0"
|
53
|
-
# gem "radiant-japanese_language_pack-extension", "~> 1.0.0"
|
54
|
-
# gem "radiant-russian_language_pack-extension", "~> 1.0.0"
|
55
|
-
|
56
|
-
# A standard gem extension
|
57
|
-
# gem "radiant-example-extension", :version => "~> 1.0.0"
|
58
|
-
|
59
|
-
# Your own forked extension
|
60
|
-
# gem "radiant-modified-extension", :git => "git://github.com/your/fork.git"
|
61
|
-
|
62
|
-
# A local extension in development
|
63
|
-
# gem "radiant-new-extension", :path => "/path/to/extension/root"
|
64
|
-
|
65
|
-
# Gems you would like to have in your development environment
|
66
|
-
# group :development do
|
67
|
-
# gem "wirble"
|
68
|
-
# end
|
69
|
-
|
70
|
-
# If you're running tests or specs
|
71
|
-
# group :test do
|
72
|
-
# gem "cucumber-rails", "~> 0.3.2"
|
73
|
-
# gem "database_cleaner", "~> 0.6.5"
|
74
|
-
# gem "webrat", "~> 0.7.3"
|
75
|
-
# gem "rspec-rails", "~> 1.3.3"
|
76
|
-
# gem "sqlite3", "~> 1.3.4"
|
77
|
-
# gem "ZenTest", "4.6.2"
|
78
|
-
# end
|