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,9 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
# Don't change this file!
|
3
|
-
# Configure your app in config/environment.rb and config/environments/*.rb
|
4
|
-
|
5
|
-
|
6
|
-
# Set up gems listed in the Gemfile.
|
7
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
8
|
-
|
9
|
-
require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
|
@@ -1,28 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# This is only an example configuration. Please see the Rails
|
3
|
-
# documentation for more details.
|
4
|
-
#
|
5
|
-
|
6
|
-
development:
|
7
|
-
adapter: mysql2
|
8
|
-
database: <%= project_name%>_blank_dev
|
9
|
-
username:
|
10
|
-
password:
|
11
|
-
host: localhost
|
12
|
-
|
13
|
-
test: &TEST
|
14
|
-
adapter: mysql2
|
15
|
-
database: <%= project_name%>_blank_test
|
16
|
-
username:
|
17
|
-
password:
|
18
|
-
host:
|
19
|
-
|
20
|
-
production:
|
21
|
-
adapter: mysql2
|
22
|
-
database: <%= project_name%>_blank_live
|
23
|
-
username:
|
24
|
-
password:
|
25
|
-
socket: /tmp/mysql.sock
|
26
|
-
|
27
|
-
cucumber:
|
28
|
-
<<: *TEST
|
@@ -1,24 +0,0 @@
|
|
1
|
-
TrustyCms::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/environment.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 webserver 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 caching is turned off
|
13
|
-
config.consider_all_requests_local = true
|
14
|
-
#config.action_view.debug_rjs = true
|
15
|
-
config.action_controller.perform_caching = false
|
16
|
-
|
17
|
-
# Don't care if the mailer can't send
|
18
|
-
config.action_mailer.raise_delivery_errors = false
|
19
|
-
config.domain = ".local"
|
20
|
-
|
21
|
-
config.after_initialize do
|
22
|
-
SiteController.cache_timeout = 0.minutes
|
23
|
-
end
|
24
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
TrustyCms::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/environment.rb
|
3
|
-
|
4
|
-
# The production environment is meant for finished, "live" apps.
|
5
|
-
# Code is not reloaded between requests
|
6
|
-
config.cache_classes = true
|
7
|
-
|
8
|
-
# Use a different logger for distributed setups
|
9
|
-
# config.logger = SyslogLogger.new
|
10
|
-
|
11
|
-
|
12
|
-
# Full error reports are disabled and caching is on
|
13
|
-
config.action_controller.consider_all_requests_local = false
|
14
|
-
config.action_controller.perform_caching = true
|
15
|
-
|
16
|
-
# Enable serving of images, stylesheets, and javascripts from an asset server
|
17
|
-
# config.action_controller.asset_host = "http://assets.example.com"
|
18
|
-
|
19
|
-
# Disable delivery errors if you bad email addresses should just be ignored
|
20
|
-
# config.action_mailer.raise_delivery_errors = false
|
21
|
-
|
22
|
-
# Cache your content for a longer time, the default is 5.minutes
|
23
|
-
# config.after_initialize do
|
24
|
-
# SiteController.cache_timeout = 12.hours
|
25
|
-
# end
|
26
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
TrustyCms::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/environment.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
|
-
# ensure test extensions are loaded
|
11
|
-
# test_extension_dir = File.join(File.expand_path(RADIANT_ROOT), 'test', 'fixtures', 'extensions')
|
12
|
-
# config.extension_paths.unshift test_extension_dir
|
13
|
-
# config.extension_paths.uniq!
|
14
|
-
# if !config.extensions.include?(:all)
|
15
|
-
# config.extensions.concat(Dir["#{test_extension_dir}/*"].sort.map {|x| File.basename(x).sub(/^\d+_/,'')})
|
16
|
-
# config.extensions.uniq!
|
17
|
-
# end
|
18
|
-
|
19
|
-
# Log error messages when you accidentally call methods on nil.
|
20
|
-
config.whiny_nils = true
|
21
|
-
config.domain = ".local"
|
22
|
-
|
23
|
-
# Show full error reports and disable caching
|
24
|
-
config.action_controller.consider_all_requests_local = true
|
25
|
-
config.action_controller.perform_caching = false
|
26
|
-
|
27
|
-
# Disable request forgery protection in test environment
|
28
|
-
config.action_controller.allow_forgery_protection = false
|
29
|
-
|
30
|
-
# Tell ActionMailer not to deliver emails to the real world.
|
31
|
-
# The :test delivery method accumulates sent emails in the
|
32
|
-
# ActionMailer::Base.deliveries array.
|
33
|
-
config.action_mailer.delivery_method = :test
|
34
|
-
end
|
35
|
-
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# config/initializers/secret_token.rb
|
2
|
-
|
3
|
-
# Be sure to restart your server when you modify this file.
|
4
|
-
|
5
|
-
# Your secret key for verifying the integrity of signed cookies.
|
6
|
-
# If you change this key, all old signed cookies will become invalid!
|
7
|
-
# Make sure the secret is at least 30 characters and all random,
|
8
|
-
# no regular words or you'll be exposed to dictionary attacks.
|
9
|
-
TrustyCms::Application.config.secret_token = if Rails.env.development? or Rails.env.test?
|
10
|
-
('x' * 30) # meets minimum requirement of 30 chars long
|
11
|
-
else
|
12
|
-
ENV['SECRET_TOKEN']
|
13
|
-
end
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
TrustyCms::Application.config.session_store :cookie_store, :key => "_<%= project_name %>_session"
|
4
|
-
|
5
|
-
# Use the database for sessions instead of the cookie-based default,
|
6
|
-
# which shouldn't be used to store highly confidential information
|
7
|
-
# (create the session table with "rails generate session_migration")
|
8
|
-
# TestTrusty::Application.config.session_store :active_record_store
|
@@ -1,16 +0,0 @@
|
|
1
|
-
TrustyCms::Application.config do |config|
|
2
|
-
# this file can be used to set defaults, options and validation rules for local configuration settings.
|
3
|
-
# core settings are defined in RADIANT_ROOT/config/initializers/radiant_config.rb and by the corresponding
|
4
|
-
# file in each radiant extension. You probably don't need to add anything here, but in case you do:
|
5
|
-
|
6
|
-
# config.define 'site.show_footer?', :default => "true"
|
7
|
-
# config.define 'S3.bucket', :default => "key", :allow_change => false
|
8
|
-
|
9
|
-
# you can also use this file to set config values (by environment, for example):
|
10
|
-
|
11
|
-
# if RAILS_ENV == 'production'
|
12
|
-
# config['cache.duration'] = 86400
|
13
|
-
# else
|
14
|
-
# config['cache.duration'] = 0
|
15
|
-
# end
|
16
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
2
|
-
# Lessens Debians need to edit.
|
3
|
-
require "rubygems" rescue nil
|
4
|
-
|
5
|
-
# Since Bundler is not really a 'must have' for Rails development just send off
|
6
|
-
# a warning and see if the sytem continues to load, the user can optionally use
|
7
|
-
# RADIANT_NOWARNINGS to disable it.
|
8
|
-
|
9
|
-
if File.file?(ENV['BUNDLE_GEMFILE'])
|
10
|
-
begin
|
11
|
-
require 'bundler/setup'
|
12
|
-
rescue LoadError
|
13
|
-
unless ENV['RADIANT_NOWARNINGS'] == true
|
14
|
-
$stderr.puts 'WARNING: It seems you do not have Bundler installed.'
|
15
|
-
$stderr.puts 'WARNING: You can install it by doing `gem install bundler`'
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
File without changes
|
@@ -1,32 +0,0 @@
|
|
1
|
-
class TrustyCmsGenerator < Rails::Generators::Base
|
2
|
-
source_root File.expand_path('../templates', __FILE__)
|
3
|
-
argument :project_name, type: :string, default: "trusty"
|
4
|
-
|
5
|
-
def generate_config
|
6
|
-
|
7
|
-
template "Rakefile.erb", "Rakefile"
|
8
|
-
template "config.ru.erb", "config.ru"
|
9
|
-
|
10
|
-
template "boot.rb.erb", "config/boot.rb"
|
11
|
-
template "environment.rb.erb", "config/environment.rb"
|
12
|
-
template "application.rb.erb", "config/application.rb"
|
13
|
-
template "preinitializer.rb.erb", "config/preinitializer.rb"
|
14
|
-
template "routes.rb.erb", "config/routes.rb"
|
15
|
-
template "database.yml.erb", "config/database.yml"
|
16
|
-
|
17
|
-
template "environments/development.rb.erb", "config/environments/development.rb"
|
18
|
-
template "environments/test.rb.erb", "config/environments/test.rb"
|
19
|
-
template "environments/production.rb.erb", "config/environments/production.rb"
|
20
|
-
|
21
|
-
template "initializers/trusty_cms_config.rb.erb", "config/initializers/trusty_cms_config.rb"
|
22
|
-
template "initializers/secret_token.rb.erb", "config/initializers/secret_token.rb"
|
23
|
-
template "initializers/session_store.rb.erb", "config/initializers/session_store.rb"
|
24
|
-
|
25
|
-
remove_file 'app/controllers/application_controller.rb'
|
26
|
-
remove_file 'app/helpers/application_helper.rb'
|
27
|
-
remove_file 'app/assets/javascripts/application.js'
|
28
|
-
remove_file 'app/views/layouts/application.html.erb'
|
29
|
-
|
30
|
-
end
|
31
|
-
|
32
|
-
end
|