Permalink
Browse files

Install Refinery

  • Loading branch information...
0 parents commit aa24c32a026dea7b206eb5c431dbe0086e6a1781 @amacneil committed Aug 30, 2012
Showing with 1,284 additions and 0 deletions.
  1. +6 −0 .gitignore
  2. +50 −0 Gemfile
  3. +184 −0 Gemfile.lock
  4. +4 −0 README.md
  5. +7 −0 Rakefile
  6. BIN app/assets/images/rails.png
  7. +15 −0 app/assets/javascripts/application.js
  8. +13 −0 app/assets/stylesheets/application.css
  9. +3 −0 app/controllers/application_controller.rb
  10. 0 app/decorators/controllers/refinery/.gitkeep
  11. 0 app/decorators/models/refinery/.gitkeep
  12. +2 −0 app/helpers/application_helper.rb
  13. 0 app/mailers/.gitkeep
  14. 0 app/models/.gitkeep
  15. +25 −0 app/views/sitemap/index.xml.builder
  16. +4 −0 config.ru
  17. +68 −0 config/application.rb
  18. +6 −0 config/boot.rb
  19. +25 −0 config/database.yml
  20. +5 −0 config/environment.rb
  21. +37 −0 config/environments/development.rb
  22. +67 −0 config/environments/production.rb
  23. +37 −0 config/environments/test.rb
  24. +7 −0 config/initializers/backtrace_silencers.rb
  25. +15 −0 config/initializers/inflections.rb
  26. +5 −0 config/initializers/mime_types.rb
  27. +4 −0 config/initializers/refinery/authentication.rb
  28. +51 −0 config/initializers/refinery/core.rb
  29. +15 −0 config/initializers/refinery/i18n.rb
  30. +44 −0 config/initializers/refinery/images.rb
  31. +52 −0 config/initializers/refinery/pages.rb
  32. +26 −0 config/initializers/refinery/resources.rb
  33. +7 −0 config/initializers/secret_token.rb
  34. +8 −0 config/initializers/session_store.rb
  35. +14 −0 config/initializers/wrap_parameters.rb
  36. +5 −0 config/locales/en.yml
  37. +66 −0 config/routes.rb
  38. +44 −0 db/migrate/20120830041945_create_refinerycms_authentication_schema.refinery_authentication.rb
  39. +16 −0 db/migrate/20120830041946_create_refinerycms_images_schema.refinery_images.rb
  40. +14 −0 db/migrate/20120830041947_create_refinerycms_resources_schema.refinery_resources.rb
  41. +59 −0 db/migrate/20120830041948_create_refinerycms_pages_schema.refinery_pages.rb
  42. +24 −0 db/migrate/20120830041949_create_seo_meta.seo_meta_engine.rb
  43. +152 −0 db/schema.rb
  44. +10 −0 db/seeds.rb
  45. 0 lib/assets/.gitkeep
  46. 0 lib/tasks/.gitkeep
  47. 0 log/.gitkeep
  48. +26 −0 public/404.html
  49. +26 −0 public/422.html
  50. +25 −0 public/500.html
  51. 0 public/favicon.ico
  52. +5 −0 public/robots.txt
  53. +6 −0 script/rails
  54. 0 vendor/assets/javascripts/.gitkeep
  55. 0 vendor/assets/stylesheets/.gitkeep
  56. 0 vendor/plugins/.gitkeep
6 .gitignore
@@ -0,0 +1,6 @@
+/.bundle
+/db/*.sqlite3
+/tmp
+.DS_Store
+*.log
+*.pid
50 Gemfile
@@ -0,0 +1,50 @@
+source 'https://rubygems.org'
+
+gem 'rails', '3.2.8'
+
+# Bundle edge Rails instead:
+# gem 'rails', :git => 'git://github.com/rails/rails.git'
+
+group :development, :test do
+ gem 'sqlite3'
+end
+
+
+# Gems used only for assets and not required
+# in production environments by default.
+group :assets do
+ gem 'sass-rails', '~> 3.2.3'
+ gem 'coffee-rails', '~> 3.2.1'
+
+ # See https://github.com/sstephenson/execjs#readme for more supported runtimes
+ # gem 'therubyracer', :platforms => :ruby
+
+ gem 'uglifier', '>= 1.0.3'
+end
+
+gem 'jquery-rails', '~> 2.0.0'
+
+# To use ActiveModel has_secure_password
+# gem 'bcrypt-ruby', '~> 3.0.0'
+
+# To use Jbuilder templates for JSON
+# gem 'jbuilder'
+
+# Use unicorn as the app server
+# gem 'unicorn'
+
+# Deploy with Capistrano
+# gem 'capistrano'
+
+# To use debugger
+# gem 'debugger'
+
+# Refinery CMS
+gem 'refinerycms', '~> 2.0.0'
+
+# Specify additional Refinery CMS Extensions here (all optional):
+gem 'refinerycms-i18n', '~> 2.0.0'
+# gem 'refinerycms-blog', '~> 2.0.0'
+# gem 'refinerycms-inquiries', '~> 2.0.0'
+# gem 'refinerycms-search', '~> 2.0.0'
+# gem 'refinerycms-page-images', '~> 2.0.0'
184 Gemfile.lock
@@ -0,0 +1,184 @@
+GEM
+ remote: https://rubygems.org/
+ specs:
+ actionmailer (3.2.8)
+ actionpack (= 3.2.8)
+ mail (~> 2.4.4)
+ actionpack (3.2.8)
+ activemodel (= 3.2.8)
+ activesupport (= 3.2.8)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ journey (~> 1.0.4)
+ rack (~> 1.4.0)
+ rack-cache (~> 1.2)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.1.3)
+ activemodel (3.2.8)
+ activesupport (= 3.2.8)
+ builder (~> 3.0.0)
+ activerecord (3.2.8)
+ activemodel (= 3.2.8)
+ activesupport (= 3.2.8)
+ arel (~> 3.0.2)
+ tzinfo (~> 0.3.29)
+ activeresource (3.2.8)
+ activemodel (= 3.2.8)
+ activesupport (= 3.2.8)
+ activesupport (3.2.8)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
+ acts_as_indexed (0.7.8)
+ arel (3.0.2)
+ awesome_nested_set (2.1.4)
+ activerecord (>= 3.0.0)
+ babosa (0.3.8)
+ bcrypt-ruby (3.0.1)
+ builder (3.0.0)
+ coffee-rails (3.2.2)
+ coffee-script (>= 2.2.0)
+ railties (~> 3.2.0)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.3.3)
+ devise (2.0.4)
+ bcrypt-ruby (~> 3.0)
+ orm_adapter (~> 0.0.3)
+ railties (~> 3.1)
+ warden (~> 1.1.1)
+ dragonfly (0.9.12)
+ rack
+ erubis (2.7.0)
+ execjs (1.4.0)
+ multi_json (~> 1.0)
+ friendly_id (4.0.8)
+ globalize3 (0.2.0)
+ activemodel (>= 3.0.0)
+ activerecord (>= 3.0.0)
+ paper_trail (~> 2)
+ hike (1.2.1)
+ i18n (0.6.0)
+ journey (1.0.4)
+ jquery-rails (2.0.3)
+ railties (>= 3.1.0, < 5.0)
+ thor (~> 0.14)
+ json (1.7.5)
+ mail (2.4.4)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.19)
+ multi_json (1.3.6)
+ orm_adapter (0.0.7)
+ paper_trail (2.6.3)
+ activerecord (~> 3.0)
+ railties (~> 3.0)
+ polyglot (0.3.3)
+ rack (1.4.1)
+ rack-cache (1.2)
+ rack (>= 0.4)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rails (3.2.8)
+ actionmailer (= 3.2.8)
+ actionpack (= 3.2.8)
+ activerecord (= 3.2.8)
+ activeresource (= 3.2.8)
+ activesupport (= 3.2.8)
+ bundler (~> 1.0)
+ railties (= 3.2.8)
+ railties (3.2.8)
+ actionpack (= 3.2.8)
+ activesupport (= 3.2.8)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (>= 0.14.6, < 2.0)
+ rake (0.9.2.2)
+ rdoc (3.12)
+ json (~> 1.4)
+ refinerycms (2.0.8)
+ bundler (~> 1.0)
+ refinerycms-authentication (= 2.0.8)
+ refinerycms-core (= 2.0.8)
+ refinerycms-dashboard (= 2.0.8)
+ refinerycms-images (= 2.0.8)
+ refinerycms-pages (= 2.0.8)
+ refinerycms-resources (= 2.0.8)
+ refinerycms-authentication (2.0.8)
+ devise (~> 2.0.0)
+ orm_adapter (~> 0.0.7)
+ refinerycms-core (= 2.0.8)
+ refinerycms-core (2.0.8)
+ acts_as_indexed (~> 0.7.7)
+ awesome_nested_set (~> 2.1.3)
+ coffee-rails (~> 3.2.1)
+ friendly_id (~> 4.0.1)
+ globalize3 (~> 0.2.0)
+ jquery-rails (~> 2.0.0)
+ rails (>= 3.1.3, < 3.3)
+ sass-rails (~> 3.2.3)
+ truncate_html (~> 0.5)
+ uglifier (>= 1.0.3)
+ will_paginate (~> 3.0.2)
+ refinerycms-dashboard (2.0.8)
+ refinerycms-core (= 2.0.8)
+ refinerycms-i18n (2.0.2)
+ refinerycms-core (~> 2.0.0)
+ routing-filter (>= 0.2.3)
+ refinerycms-images (2.0.8)
+ dragonfly (~> 0.9.8)
+ rack-cache (>= 0.5.3)
+ refinerycms-core (= 2.0.8)
+ refinerycms-pages (2.0.8)
+ awesome_nested_set (~> 2.1.3)
+ babosa (!= 0.3.6)
+ refinerycms-core (= 2.0.8)
+ seo_meta (~> 1.3.0)
+ refinerycms-resources (2.0.8)
+ dragonfly (~> 0.9.8)
+ rack-cache (>= 0.5.3)
+ refinerycms-core (= 2.0.8)
+ routing-filter (0.3.1)
+ actionpack
+ sass (3.2.1)
+ sass-rails (3.2.5)
+ railties (~> 3.2.0)
+ sass (>= 3.1.10)
+ tilt (~> 1.3)
+ seo_meta (1.3.0)
+ railties (>= 3.0.0)
+ sprockets (2.1.3)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ sqlite3 (1.3.6)
+ thor (0.16.0)
+ tilt (1.3.3)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ truncate_html (0.5.5)
+ tzinfo (0.3.33)
+ uglifier (1.2.7)
+ execjs (>= 0.3.0)
+ multi_json (~> 1.3)
+ warden (1.1.1)
+ rack (>= 1.0)
+ will_paginate (3.0.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ coffee-rails (~> 3.2.1)
+ jquery-rails (~> 2.0.0)
+ rails (= 3.2.8)
+ refinerycms (~> 2.0.0)
+ refinerycms-i18n (~> 2.0.0)
+ sass-rails (~> 3.2.3)
+ sqlite3
+ uglifier (>= 1.0.3)
4 README.md
@@ -0,0 +1,4 @@
+# Refinery & Spree - together at last
+
+ gem install refinerycms
+ refinerycms refinery_spree
7 Rakefile
@@ -0,0 +1,7 @@
+#!/usr/bin/env rake
+# Add your own tasks in files placed in lib/tasks ending in .rake,
+# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
+
+require File.expand_path('../config/application', __FILE__)
+
+RefinerySpree::Application.load_tasks
BIN app/assets/images/rails.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 app/assets/javascripts/application.js
@@ -0,0 +1,15 @@
+// This is a manifest file that'll be compiled into application.js, which will include all the files
+// listed below.
+//
+// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
+// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
+//
+// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
+// the compiled file.
+//
+// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
+// GO AFTER THE REQUIRES BELOW.
+//
+//= require jquery
+//= require jquery_ujs
+//= require_tree .
13 app/assets/stylesheets/application.css
@@ -0,0 +1,13 @@
+/*
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
+ * listed below.
+ *
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
+ *
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
+ * compiled file, but it's generally better to create a new file per style scope.
+ *
+ *= require_self
+ *= require_tree .
+ */
3 app/controllers/application_controller.rb
@@ -0,0 +1,3 @@
+class ApplicationController < ActionController::Base
+ protect_from_forgery
+end
0 app/decorators/controllers/refinery/.gitkeep
No changes.
0 app/decorators/models/refinery/.gitkeep
No changes.
2 app/helpers/application_helper.rb
@@ -0,0 +1,2 @@
+module ApplicationHelper
+end
0 app/mailers/.gitkeep
No changes.
0 app/models/.gitkeep
No changes.
25 app/views/sitemap/index.xml.builder
@@ -0,0 +1,25 @@
+xml.instruct!
+
+xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do
+
+ @locales.each do |locale|
+ ::I18n.locale = locale
+ ::Refinery::Page.live.in_menu.includes(:parts).each do |page|
+ # exclude sites that are external to our own domain.
+ page_url = if page.url.is_a?(Hash)
+ # This is how most pages work without being overriden by link_url
+ page.url.merge({:only_path => false})
+ elsif page.url.to_s !~ /^http/
+ # handle relative link_url addresses.
+ [request.protocol, request.host_with_port, page.url].join
+ end
+
+ # Add XML entry only if there is a valid page_url found above.
+ xml.url do
+ xml.loc url_for(page_url)
+ xml.lastmod page.updated_at.to_date
+ end if page_url.present? and page.show_in_menu?
+ end
+ end
+
+end
4 config.ru
@@ -0,0 +1,4 @@
+# This file is used by Rack-based servers to start the application.
+
+require ::File.expand_path('../config/environment', __FILE__)
+run RefinerySpree::Application
68 config/application.rb
@@ -0,0 +1,68 @@
+require File.expand_path('../boot', __FILE__)
+
+# Pick the frameworks you want:
+require "active_record/railtie"
+require "action_controller/railtie"
+require "action_mailer/railtie"
+require "active_resource/railtie"
+require "sprockets/railtie"
+# require "rails/test_unit/railtie"
+
+if defined?(Bundler)
+ # If you precompile assets before deploying to production, use this line
+ Bundler.require(*Rails.groups(:assets => %w(development test)))
+ # If you want your assets lazily compiled in production, use this line
+ # Bundler.require(:default, :assets, Rails.env)
+end
+
+module RefinerySpree
+ class Application < Rails::Application
+ # Settings in config/environments/* take precedence over those specified here.
+ # Application configuration should go into files in config/initializers
+ # -- all .rb files in that directory are automatically loaded.
+
+ # Custom directories with classes and modules you want to be autoloadable.
+ # config.autoload_paths += %W(#{config.root}/extras)
+
+ # Only load the plugins named here, in the order given (default is alphabetical).
+ # :all can be used as a placeholder for all plugins not explicitly named.
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
+
+ # Activate observers that should always be running.
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
+
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
+ # config.time_zone = 'Central Time (US & Canada)'
+
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
+ # config.i18n.default_locale = :de
+
+ # Configure the default encoding used in templates for Ruby 1.9.
+ config.encoding = "utf-8"
+
+ # Configure sensitive parameters which will be filtered from the log file.
+ config.filter_parameters += [:password]
+
+ # Enable escaping HTML in JSON.
+ config.active_support.escape_html_entities_in_json = true
+
+ # Use SQL instead of Active Record's schema dumper when creating the database.
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
+ # like if you have constraints or database-specific column types
+ # config.active_record.schema_format = :sql
+
+ # Enforce whitelist mode for mass assignment.
+ # This will create an empty whitelist of attributes available for mass-assignment for all models
+ # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
+ # parameters by using an attr_accessible or attr_protected declaration.
+ config.active_record.whitelist_attributes = true
+
+ # Enable the asset pipeline
+ config.assets.enabled = true
+
+ # Version of your assets, change this if you want to expire all your assets
+ config.assets.version = '1.0'
+ end
+end
6 config/boot.rb
@@ -0,0 +1,6 @@
+require 'rubygems'
+
+# Set up gems listed in the Gemfile.
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
+
+require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
25 config/database.yml
@@ -0,0 +1,25 @@
+# SQLite version 3.x
+# gem install sqlite3
+#
+# Ensure the SQLite 3 gem is defined in your Gemfile
+# gem 'sqlite3'
+development:
+ adapter: sqlite3
+ database: db/development.sqlite3
+ pool: 5
+ timeout: 5000
+
+# Warning: The database defined as "test" will be erased and
+# re-generated from your development database when you run "rake".
+# Do not set this db to the same as development or production.
+test:
+ adapter: sqlite3
+ database: db/test.sqlite3
+ pool: 5
+ timeout: 5000
+
+production:
+ adapter: sqlite3
+ database: db/production.sqlite3
+ pool: 5
+ timeout: 5000
5 config/environment.rb
@@ -0,0 +1,5 @@
+# Load the rails application
+require File.expand_path('../application', __FILE__)
+
+# Initialize the rails application
+RefinerySpree::Application.initialize!
37 config/environments/development.rb
@@ -0,0 +1,37 @@
+RefinerySpree::Application.configure do
+ # Settings specified here will take precedence over those in config/application.rb
+
+ # In the development environment your application's code is reloaded on
+ # every request. This slows down response time but is perfect for development
+ # since you don't have to restart the web server when you make code changes.
+ config.cache_classes = false
+
+ # Log error messages when you accidentally call methods on nil.
+ config.whiny_nils = true
+
+ # Show full error reports and disable caching
+ config.consider_all_requests_local = true
+ config.action_controller.perform_caching = false
+
+ # Don't care if the mailer can't send
+ config.action_mailer.raise_delivery_errors = false
+
+ # Print deprecation notices to the Rails logger
+ config.active_support.deprecation = :log
+
+ # Only use best-standards-support built into browsers
+ config.action_dispatch.best_standards_support = :builtin
+
+ # Raise exception on mass assignment protection for Active Record models
+ config.active_record.mass_assignment_sanitizer = :strict
+
+ # Log the query plan for queries taking more than this (works
+ # with SQLite, MySQL, and PostgreSQL)
+ config.active_record.auto_explain_threshold_in_seconds = 0.5
+
+ # Do not compress assets
+ config.assets.compress = false
+
+ # Expands the lines which load the assets
+ config.assets.debug = true
+end
67 config/environments/production.rb
@@ -0,0 +1,67 @@
+RefinerySpree::Application.configure do
+ # Settings specified here will take precedence over those in config/application.rb
+
+ # Code is not reloaded between requests
+ config.cache_classes = true
+
+ # Full error reports are disabled and caching is turned on
+ config.consider_all_requests_local = false
+ config.action_controller.perform_caching = true
+
+ # Disable Rails's static asset server (Apache or nginx will already do this)
+ config.serve_static_assets = false
+
+ # Compress JavaScripts and CSS
+ config.assets.compress = true
+
+ # Don't fallback to assets pipeline if a precompiled asset is missed
+ config.assets.compile = true
+
+ # Generate digests for assets URLs
+ config.assets.digest = true
+
+ # Defaults to nil and saved in location specified by config.assets.prefix
+ # config.assets.manifest = YOUR_PATH
+
+ # Specifies the header that your server uses for sending files
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
+
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
+ # config.force_ssl = true
+
+ # See everything in the log (default is :info)
+ # config.log_level = :debug
+
+ # Prepend all log lines with the following tags
+ # config.log_tags = [ :subdomain, :uuid ]
+
+ # Use a different logger for distributed setups
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
+
+ # Use a different cache store in production
+ # config.cache_store = :mem_cache_store
+
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
+ # config.action_controller.asset_host = "http://assets.example.com"
+
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
+ # config.assets.precompile += %w( search.js )
+
+ # Disable delivery errors, bad email addresses will be ignored
+ # config.action_mailer.raise_delivery_errors = false
+
+ # Enable threaded mode
+ # config.threadsafe!
+
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
+ # the I18n.default_locale when a translation can not be found)
+ config.i18n.fallbacks = true
+
+ # Send deprecation notices to registered listeners
+ config.active_support.deprecation = :notify
+
+ # Log the query plan for queries taking more than this (works
+ # with SQLite, MySQL, and PostgreSQL)
+ # config.active_record.auto_explain_threshold_in_seconds = 0.5
+end
37 config/environments/test.rb
@@ -0,0 +1,37 @@
+RefinerySpree::Application.configure do
+ # Settings specified here will take precedence over those in config/application.rb
+
+ # The test environment is used exclusively to run your application's
+ # test suite. You never need to work with it otherwise. Remember that
+ # your test database is "scratch space" for the test suite and is wiped
+ # and recreated between test runs. Don't rely on the data there!
+ config.cache_classes = true
+
+ # Configure static asset server for tests with Cache-Control for performance
+ config.serve_static_assets = true
+ config.static_cache_control = "public, max-age=3600"
+
+ # Log error messages when you accidentally call methods on nil
+ config.whiny_nils = true
+
+ # Show full error reports and disable caching
+ config.consider_all_requests_local = true
+ config.action_controller.perform_caching = false
+
+ # Raise exceptions instead of rendering exception templates
+ config.action_dispatch.show_exceptions = false
+
+ # Disable request forgery protection in test environment
+ config.action_controller.allow_forgery_protection = false
+
+ # Tell Action Mailer not to deliver emails to the real world.
+ # The :test delivery method accumulates sent emails in the
+ # ActionMailer::Base.deliveries array.
+ config.action_mailer.delivery_method = :test
+
+ # Raise exception on mass assignment protection for Active Record models
+ config.active_record.mass_assignment_sanitizer = :strict
+
+ # Print deprecation notices to the stderr
+ config.active_support.deprecation = :stderr
+end
7 config/initializers/backtrace_silencers.rb
@@ -0,0 +1,7 @@
+# Be sure to restart your server when you modify this file.
+
+# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
+# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
+
+# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
+# Rails.backtrace_cleaner.remove_silencers!
15 config/initializers/inflections.rb
@@ -0,0 +1,15 @@
+# Be sure to restart your server when you modify this file.
+
+# Add new inflection rules using the following format
+# (all these examples are active by default):
+# ActiveSupport::Inflector.inflections do |inflect|
+# inflect.plural /^(ox)$/i, '\1en'
+# inflect.singular /^(ox)en/i, '\1'
+# inflect.irregular 'person', 'people'
+# inflect.uncountable %w( fish sheep )
+# end
+#
+# These inflection rules are supported but not enabled by default:
+# ActiveSupport::Inflector.inflections do |inflect|
+# inflect.acronym 'RESTful'
+# end
5 config/initializers/mime_types.rb
@@ -0,0 +1,5 @@
+# Be sure to restart your server when you modify this file.
+
+# Add new mime types for use in respond_to blocks:
+# Mime::Type.register "text/richtext", :rtf
+# Mime::Type.register_alias "text/html", :iphone
4 config/initializers/refinery/authentication.rb
@@ -0,0 +1,4 @@
+Refinery::Authentication.configure do |config|
+ # Configure whether to allow superuser to assign roles
+ # config.superuser_can_assign_roles = false
+end
51 config/initializers/refinery/core.rb
@@ -0,0 +1,51 @@
+Refinery::Core.configure do |config|
+ # When true will rescue all not found errors and display a friendly error page
+ config.rescue_not_found = Rails.env.production?
+
+ # When true this will force SSL redirection in all Refinery backend controllers.
+ # config.force_ssl = false
+
+ # When true will use Amazon's Simple Storage Service instead of
+ # the default file system for storing resources and images
+ config.s3_backend = !(ENV['S3_KEY'].nil? || ENV['S3_SECRET'].nil?)
+
+ # Whenever Refinery caches anything and can set a cache key, it will add
+ # a prefix to the cache key containing the string you set here.
+ # config.base_cache_key = :refinery
+
+ # Site name
+ # config.site_name = "Company Name"
+
+ # This activates Google Analytics tracking within your website. If this
+ # config is left blank or set to UA-xxxxxx-x then no remote calls to
+ # Google Analytics are made.
+ # config.google_analytics_page_code = "UA-xxxxxx-x"
+
+ # Enable/disable authenticity token on frontend
+ # config.authenticity_token_on_frontend = true
+
+ # Hide/show child pages in menu
+ # config.menu_hide_children = false
+
+ # CSS class selectors for menu helper
+ # config.menu_css = {:selected=>"selected", :first=>"first", :last=>"last"}
+
+ # Should set this if concerned about DOS attacks. See
+ # http://markevans.github.com/dragonfly/file.Configuration.html#Configuration
+ # config.dragonfly_secret = "637a2debf56f6a34f2d302c2ab392fcfdde19769210a47b0"
+
+ # Show/hide IE6 upgrade message in the backend
+ # config.ie6_upgrade_message_enabled = true
+
+ # Show/hide browser update message in the backend
+ # config.show_internet_explorer_upgrade_message = false
+
+ # Add extra tags to the wymeditor whitelist e.g. = {'tag' => {'attributes' => {'1' => 'href'}}} or just {'tag' => {}}
+ # config.wymeditor_whitelist_tags = {}
+
+ # Register extra javascript for backend
+ # config.register_javascript "prototype-rails"
+
+ # Register extra stylesheet for backend (optional options)
+ # config.register_stylesheet "custom", :media => 'screen'
+end
15 config/initializers/refinery/i18n.rb
@@ -0,0 +1,15 @@
+# encoding: utf-8
+
+Refinery::I18n.configure do |config|
+ # config.enabled = true
+
+ # config.default_locale = :en
+
+ # config.current_locale = :en
+
+ # config.default_frontend_locale = :en
+
+ # config.frontend_locales = [:en]
+
+ # config.locales = {:en=>"English", :fr=>"Français", :nl=>"Nederlands", :"pt-BR"=>"Português", :da=>"Dansk", :nb=>"Norsk Bokmål", :sl=>"Slovenian", :es=>"Español", :it=>"Italiano", :de=>"Deutsch", :lv=>"Latviski", :ru=>"Русский", :sv=>"Svenska", :pl=>"Polski", :"zh-CN"=>"Simplified Chinese", :"zh-TW"=>"Traditional Chinese", :el=>"Ελληνικά", :rs=>"Srpski", :cs=>"Česky", :sk=>"Slovenský", :ja=>"日本語", :bg=>"Български"}
+end
44 config/initializers/refinery/images.rb
@@ -0,0 +1,44 @@
+Refinery::Images.configure do |config|
+ # Configures the maximum allowed upload size (in bytes) for an image
+ # config.max_image_size = 5242880
+
+ # Configure how many images per page should be displayed when a dialog is presented that contains images
+ # config.pages_per_dialog = 18
+
+ # Configure how many images per page should be displayed when a dialog is presented that
+ # contains images and image resize options
+ # config.pages_per_dialog_that_have_size_options = 12
+
+ # Configure how many images per page should be displayed in the list of images in the admin area
+ # config.pages_per_admin_index = 20
+
+ # Configure image sizes
+ # config.user_image_sizes = {:small=>"110x110>", :medium=>"225x255>", :large=>"450x450>"}
+
+ # Configure white-listed mime types for validation
+ # config.whitelisted_mime_types = ["image/jpeg", "image/png", "image/gif", "image/tiff"]
+
+ # Configure image view options
+ # config.image_views = [:grid, :list]
+
+ # Configure default image view
+ # config.preferred_image_view = :grid
+
+ # Configure S3 (you can also use ENV for this)
+ # The s3_backend setting by default defers to the core setting for this but can be set just for images.
+ # config.s3_backend = Refinery::Core.s3_backend
+ # config.s3_bucket_name = ENV['S3_BUCKET']
+ # config.s3_access_key_id = ENV['S3_KEY']
+ # config.s3_secret_access_key = ENV['S3_SECRET']
+ # config.s3_region = ENV['S3_REGION]
+
+ # Configure Dragonfly
+ # This is where in the middleware stack to insert the Dragonfly middleware
+ # config.dragonfly_insert_before = "ActionDispatch::Callbacks"
+ # config.dragonfly_secret = "637a2debf56f6a34f2d302c2ab392fcfdde19769210a47b0"
+ # If you decide to trust file extensions replace :ext below with :format
+ # config.dragonfly_url_format = "/system/images/:job/:basename.:ext"
+ # config.datastore_root_path = "/Users/adrian/Sites/refinery_spree/public/system/refinery/images"
+ # config.trust_file_extensions = false
+
+end
52 config/initializers/refinery/pages.rb
@@ -0,0 +1,52 @@
+Refinery::Pages.configure do |config|
+ # Configure specific page templates
+ # config.types.register :home do |home|
+ # home.parts = %w[intro body]
+ # end
+
+ # Configure global page default parts
+ # config.default_parts = ["Body", "Side Body"]
+
+ # Configure whether to allow adding new page parts
+ # config.new_page_parts = false
+
+ # Configure whether to enable marketable_urls
+ # config.marketable_urls = true
+
+ # Configure how many pages per page should be displayed when a dialog is presented that contains a links to pages
+ # config.pages_per_dialog = 14
+
+ # Configure how many pages per page should be displayed in the list of pages in the admin area
+ # config.pages_per_admin_index = 20
+
+ # Configure whether to strip diacritics from Western characters
+ # config.approximate_ascii = false
+
+ # Configure whether to strip non-ASCII characters from the friendly_id string
+ # config.strip_non_ascii = false
+
+ # Set this to true if you want to override slug which automatically gets generated
+ # when you create a page
+ # config.use_custom_slugs = false
+
+ # Set this to true if you want backend pages to be cached
+ # config.cache_pages_backend = false
+
+ # Set this to true to activate full-page-cache
+ # config.cache_pages_full = false
+
+ # Set this to true to fully expand the page hierarchy in the admin
+ # config.auto_expand_admin_tree = true
+
+ # config.layout_template_whitelist = ["application"]
+
+ # config.view_template_whitelist = ["home", "show"]
+
+ # config.use_layout_templates = false
+
+ # config.use_view_templates = false
+
+ # config.page_title = {:chain_page_title=>false, :ancestors=>{:separator=>" | ", :class=>"ancestors", :tag=>"span"}, :page_title=>{:class=>nil, :tag=>nil, :wrap_if_not_chained=>false}}
+
+ # config.absolute_page_links = false
+end
26 config/initializers/refinery/resources.rb
@@ -0,0 +1,26 @@
+Refinery::Resources.configure do |config|
+ # Configures the maximum allowed upload size (in bytes) for a file upload
+ # config.max_file_size = 52428800
+
+ # Configure how many resources per page should be displayed when a dialog is presented that contains resources
+ # config.pages_per_dialog = 12
+
+ # Configure how many resources per page should be displayed in the list of resources in the admin area
+ # config.pages_per_admin_index = 20
+
+ # Configure S3 (you can also use ENV for this)
+ # The s3_backend setting by default defers to the core setting for this but can be set just for resources.
+ # config.s3_backend = Refinery::Core.s3_backend
+ # config.s3_bucket_name = ENV['S3_BUCKET']
+ # config.s3_access_key_id = ENV['S3_KEY']
+ # config.s3_secret_access_key = ENV['S3_SECRET']
+ # config.s3_region = ENV['S3_REGION]
+
+ # Configure Dragonfly
+ # This is where in the middleware stack to insert the Dragonfly middleware
+ # config.dragonfly_insert_before = "ActionDispatch::Callbacks"
+ # config.dragonfly_secret = "637a2debf56f6a34f2d302c2ab392fcfdde19769210a47b0"
+ # config.dragonfly_url_format = "/system/resources/:job/:basename.:format"
+ # config.datastore_root_path = "/Users/adrian/Sites/refinery_spree/public/system/refinery/resources"
+
+end
7 config/initializers/secret_token.rb
@@ -0,0 +1,7 @@
+# Be sure to restart your server when you modify this file.
+
+# Your secret key for verifying the integrity of signed cookies.
+# If you change this key, all old signed cookies will become invalid!
+# Make sure the secret is at least 30 characters and all random,
+# no regular words or you'll be exposed to dictionary attacks.
+RefinerySpree::Application.config.secret_token = 'e2e5150d408b2c809ffb7e468e3ea3b200f4281a0bfdcfbb42356cffc9115bf9491d42733b6239add6012e8ae1fc56086969c0a27b6c7bd301fb1f62351f4eac'
8 config/initializers/session_store.rb
@@ -0,0 +1,8 @@
+# Be sure to restart your server when you modify this file.
+
+RefinerySpree::Application.config.session_store :cookie_store, key: '_refinery_spree_session'
+
+# Use the database for sessions instead of the cookie-based default,
+# which shouldn't be used to store highly confidential information
+# (create the session table with "rails generate session_migration")
+# RefinerySpree::Application.config.session_store :active_record_store
14 config/initializers/wrap_parameters.rb
@@ -0,0 +1,14 @@
+# Be sure to restart your server when you modify this file.
+#
+# This file contains settings for ActionController::ParamsWrapper which
+# is enabled by default.
+
+# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
+ActiveSupport.on_load(:action_controller) do
+ wrap_parameters format: [:json]
+end
+
+# Disable root element in JSON by default.
+ActiveSupport.on_load(:active_record) do
+ self.include_root_in_json = false
+end
5 config/locales/en.yml
@@ -0,0 +1,5 @@
+# Sample localization file for English. Add more files in this directory for other locales.
+# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
+
+en:
+ hello: "Hello world"
66 config/routes.rb
@@ -0,0 +1,66 @@
+RefinerySpree::Application.routes.draw do
+
+ # This line mounts Refinery's routes at the root of your application.
+ # This means, any requests to the root URL of your application will go to Refinery::PagesController#home.
+ # If you would like to change where this extension is mounted, simply change the :at option to something different.
+ #
+ # We ask that you don't use the :as option here, as Refinery relies on it being the default of "refinery"
+ mount Refinery::Core::Engine, :at => '/'
+
+ # The priority is based upon order of creation:
+ # first created -> highest priority.
+
+ # Sample of regular route:
+ # match 'products/:id' => 'catalog#view'
+ # Keep in mind you can assign values other than :controller and :action
+
+ # Sample of named route:
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
+ # This route can be invoked with purchase_url(:id => product.id)
+
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
+ # resources :products
+
+ # Sample resource route with options:
+ # resources :products do
+ # member do
+ # get 'short'
+ # post 'toggle'
+ # end
+ #
+ # collection do
+ # get 'sold'
+ # end
+ # end
+
+ # Sample resource route with sub-resources:
+ # resources :products do
+ # resources :comments, :sales
+ # resource :seller
+ # end
+
+ # Sample resource route with more complex sub-resources
+ # resources :products do
+ # resources :comments
+ # resources :sales do
+ # get 'recent', :on => :collection
+ # end
+ # end
+
+ # Sample resource route within a namespace:
+ # namespace :admin do
+ # # Directs /admin/products/* to Admin::ProductsController
+ # # (app/controllers/admin/products_controller.rb)
+ # resources :products
+ # end
+
+ # You can have the root of your site routed with "root"
+ # just remember to delete public/index.html.
+ # root :to => 'welcome#index'
+
+ # See how all your routes lay out with "rake routes"
+
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
+ # Note: This route will make all actions in every controller accessible via GET requests.
+ # match ':controller(/:action(/:id))(.:format)'
+end
44 ...igrate/20120830041945_create_refinerycms_authentication_schema.refinery_authentication.rb
@@ -0,0 +1,44 @@
+# This migration comes from refinery_authentication (originally 20100913234705)
+class CreateRefinerycmsAuthenticationSchema < ActiveRecord::Migration
+ def change
+ # Postgres apparently requires the roles_users table to exist before creating the roles table.
+ create_table :refinery_roles_users, :id => false do |t|
+ t.integer :user_id
+ t.integer :role_id
+ end
+
+ add_index :refinery_roles_users, [:role_id, :user_id]
+ add_index :refinery_roles_users, [:user_id, :role_id]
+
+ create_table :refinery_roles do |t|
+ t.string :title
+ end
+
+ create_table :refinery_user_plugins do |t|
+ t.integer :user_id
+ t.string :name
+ t.integer :position
+ end
+
+ add_index :refinery_user_plugins, :name
+ add_index :refinery_user_plugins, [:user_id, :name], :unique => true
+
+ create_table :refinery_users do |t|
+ t.string :username, :null => false
+ t.string :email, :null => false
+ t.string :encrypted_password, :null => false
+ t.datetime :current_sign_in_at
+ t.datetime :last_sign_in_at
+ t.string :current_sign_in_ip
+ t.string :last_sign_in_ip
+ t.integer :sign_in_count
+ t.datetime :remember_created_at
+ t.string :reset_password_token
+ t.datetime :reset_password_sent_at
+
+ t.timestamps
+ end
+
+ add_index :refinery_users, :id
+ end
+end
16 db/migrate/20120830041946_create_refinerycms_images_schema.refinery_images.rb
@@ -0,0 +1,16 @@
+# This migration comes from refinery_images (originally 20100913234707)
+class CreateRefinerycmsImagesSchema < ActiveRecord::Migration
+ def change
+ create_table :refinery_images do |t|
+ t.string :image_mime_type
+ t.string :image_name
+ t.integer :image_size
+ t.integer :image_width
+ t.integer :image_height
+ t.string :image_uid
+ t.string :image_ext
+
+ t.timestamps
+ end
+ end
+end
14 db/migrate/20120830041947_create_refinerycms_resources_schema.refinery_resources.rb
@@ -0,0 +1,14 @@
+# This migration comes from refinery_resources (originally 20100913234709)
+class CreateRefinerycmsResourcesSchema < ActiveRecord::Migration
+ def change
+ create_table :refinery_resources do |t|
+ t.string :file_mime_type
+ t.string :file_name
+ t.integer :file_size
+ t.string :file_uid
+ t.string :file_ext
+
+ t.timestamps
+ end
+ end
+end
59 db/migrate/20120830041948_create_refinerycms_pages_schema.refinery_pages.rb
@@ -0,0 +1,59 @@
+# This migration comes from refinery_pages (originally 20100913234708)
+class CreateRefinerycmsPagesSchema < ActiveRecord::Migration
+ def up
+ create_table :refinery_page_parts do |t|
+ t.integer :refinery_page_id
+ t.string :title
+ t.text :body
+ t.integer :position
+
+ t.timestamps
+ end
+
+ add_index :refinery_page_parts, :id
+ add_index :refinery_page_parts, :refinery_page_id
+
+ create_table :refinery_pages do |t|
+ t.integer :parent_id
+ t.string :path
+ t.string :slug
+ t.boolean :show_in_menu, :default => true
+ t.string :link_url
+ t.string :menu_match
+ t.boolean :deletable, :default => true
+ t.boolean :draft, :default => false
+ t.boolean :skip_to_first_child, :default => false
+ t.integer :lft
+ t.integer :rgt
+ t.integer :depth
+ t.string :view_template
+ t.string :layout_template
+
+ t.timestamps
+ end
+
+ add_index :refinery_pages, :depth
+ add_index :refinery_pages, :id
+ add_index :refinery_pages, :lft
+ add_index :refinery_pages, :parent_id
+ add_index :refinery_pages, :rgt
+
+ Refinery::PagePart.create_translation_table!({
+ :body => :text
+ })
+
+ Refinery::Page.create_translation_table!({
+ :title => :string,
+ :custom_slug => :string,
+ :menu_title => :string,
+ :slug => :string
+ })
+ end
+
+ def down
+ drop_table :refinery_page_parts
+ drop_table :refinery_pages
+ Refinery::PagePart.drop_translation_table!
+ Refinery::Page.drop_translation_table!
+ end
+end
24 db/migrate/20120830041949_create_seo_meta.seo_meta_engine.rb
@@ -0,0 +1,24 @@
+# This migration comes from seo_meta_engine (originally 20110329222114)
+class CreateSeoMeta < ActiveRecord::Migration
+
+ def self.up
+ create_table :seo_meta do |t|
+ t.integer :seo_meta_id
+ t.string :seo_meta_type
+
+ t.string :browser_title
+ t.string :meta_keywords
+ t.text :meta_description
+
+ t.timestamps
+ end
+
+ add_index :seo_meta, :id
+ add_index :seo_meta, [:seo_meta_id, :seo_meta_type]
+ end
+
+ def self.down
+ drop_table :seo_meta
+ end
+
+end
152 db/schema.rb
@@ -0,0 +1,152 @@
+# encoding: UTF-8
+# This file is auto-generated from the current state of the database. Instead
+# of editing this file, please use the migrations feature of Active Record to
+# incrementally modify your database, and then regenerate this schema definition.
+#
+# Note that this schema.rb definition is the authoritative source for your
+# database schema. If you need to create the application database on another
+# system, you should be using db:schema:load, not running all the migrations
+# from scratch. The latter is a flawed and unsustainable approach (the more migrations
+# you'll amass, the slower it'll run and the greater likelihood for issues).
+#
+# It's strongly recommended to check this file into your version control system.
+
+ActiveRecord::Schema.define(:version => 20120830041949) do
+
+ create_table "refinery_images", :force => true do |t|
+ t.string "image_mime_type"
+ t.string "image_name"
+ t.integer "image_size"
+ t.integer "image_width"
+ t.integer "image_height"
+ t.string "image_uid"
+ t.string "image_ext"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ end
+
+ create_table "refinery_page_part_translations", :force => true do |t|
+ t.integer "refinery_page_part_id"
+ t.string "locale"
+ t.text "body"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ end
+
+ add_index "refinery_page_part_translations", ["locale"], :name => "index_refinery_page_part_translations_on_locale"
+ add_index "refinery_page_part_translations", ["refinery_page_part_id"], :name => "index_f9716c4215584edbca2557e32706a5ae084a15ef"
+
+ create_table "refinery_page_parts", :force => true do |t|
+ t.integer "refinery_page_id"
+ t.string "title"
+ t.text "body"
+ t.integer "position"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ end
+
+ add_index "refinery_page_parts", ["id"], :name => "index_refinery_page_parts_on_id"
+ add_index "refinery_page_parts", ["refinery_page_id"], :name => "index_refinery_page_parts_on_refinery_page_id"
+
+ create_table "refinery_page_translations", :force => true do |t|
+ t.integer "refinery_page_id"
+ t.string "locale"
+ t.string "title"
+ t.string "custom_slug"
+ t.string "menu_title"
+ t.string "slug"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ end
+
+ add_index "refinery_page_translations", ["locale"], :name => "index_refinery_page_translations_on_locale"
+ add_index "refinery_page_translations", ["refinery_page_id"], :name => "index_d079468f88bff1c6ea81573a0d019ba8bf5c2902"
+
+ create_table "refinery_pages", :force => true do |t|
+ t.integer "parent_id"
+ t.string "path"
+ t.string "slug"
+ t.boolean "show_in_menu", :default => true
+ t.string "link_url"
+ t.string "menu_match"
+ t.boolean "deletable", :default => true
+ t.boolean "draft", :default => false
+ t.boolean "skip_to_first_child", :default => false
+ t.integer "lft"
+ t.integer "rgt"
+ t.integer "depth"
+ t.string "view_template"
+ t.string "layout_template"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ end
+
+ add_index "refinery_pages", ["depth"], :name => "index_refinery_pages_on_depth"
+ add_index "refinery_pages", ["id"], :name => "index_refinery_pages_on_id"
+ add_index "refinery_pages", ["lft"], :name => "index_refinery_pages_on_lft"
+ add_index "refinery_pages", ["parent_id"], :name => "index_refinery_pages_on_parent_id"
+ add_index "refinery_pages", ["rgt"], :name => "index_refinery_pages_on_rgt"
+
+ create_table "refinery_resources", :force => true do |t|
+ t.string "file_mime_type"
+ t.string "file_name"
+ t.integer "file_size"
+ t.string "file_uid"
+ t.string "file_ext"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ end
+
+ create_table "refinery_roles", :force => true do |t|
+ t.string "title"
+ end
+
+ create_table "refinery_roles_users", :id => false, :force => true do |t|
+ t.integer "user_id"
+ t.integer "role_id"
+ end
+
+ add_index "refinery_roles_users", ["role_id", "user_id"], :name => "index_refinery_roles_users_on_role_id_and_user_id"
+ add_index "refinery_roles_users", ["user_id", "role_id"], :name => "index_refinery_roles_users_on_user_id_and_role_id"
+
+ create_table "refinery_user_plugins", :force => true do |t|
+ t.integer "user_id"
+ t.string "name"
+ t.integer "position"
+ end
+
+ add_index "refinery_user_plugins", ["name"], :name => "index_refinery_user_plugins_on_name"
+ add_index "refinery_user_plugins", ["user_id", "name"], :name => "index_refinery_user_plugins_on_user_id_and_name", :unique => true
+
+ create_table "refinery_users", :force => true do |t|
+ t.string "username", :null => false
+ t.string "email", :null => false
+ t.string "encrypted_password", :null => false
+ t.datetime "current_sign_in_at"
+ t.datetime "last_sign_in_at"
+ t.string "current_sign_in_ip"
+ t.string "last_sign_in_ip"
+ t.integer "sign_in_count"
+ t.datetime "remember_created_at"
+ t.string "reset_password_token"
+ t.datetime "reset_password_sent_at"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ end
+
+ add_index "refinery_users", ["id"], :name => "index_refinery_users_on_id"
+
+ create_table "seo_meta", :force => true do |t|
+ t.integer "seo_meta_id"
+ t.string "seo_meta_type"
+ t.string "browser_title"
+ t.string "meta_keywords"
+ t.text "meta_description"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ end
+
+ add_index "seo_meta", ["id"], :name => "index_seo_meta_on_id"
+ add_index "seo_meta", ["seo_meta_id", "seo_meta_type"], :name => "index_seo_meta_on_seo_meta_id_and_seo_meta_type"
+
+end
10 db/seeds.rb
@@ -0,0 +1,10 @@
+# This file should contain all the record creation needed to seed the database with its default values.
+# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
+#
+# Examples:
+#
+# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
+# Mayor.create(name: 'Emanuel', city: cities.first)
+
+# Added by Refinery CMS Pages extension
+Refinery::Pages::Engine.load_seed
0 lib/assets/.gitkeep
No changes.
0 lib/tasks/.gitkeep
No changes.
0 log/.gitkeep
No changes.
26 public/404.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>The page you were looking for doesn't exist (404)</title>
+ <style type="text/css">
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
+ div.dialog {
+ width: 25em;
+ padding: 0 4em;
+ margin: 4em auto 0 auto;
+ border: 1px solid #ccc;
+ border-right-color: #999;
+ border-bottom-color: #999;
+ }
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
+ </style>
+</head>
+
+<body>
+ <!-- This file lives in public/404.html -->
+ <div class="dialog">
+ <h1>The page you were looking for doesn't exist.</h1>
+ <p>You may have mistyped the address or the page may have moved.</p>
+ </div>
+</body>
+</html>
26 public/422.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>The change you wanted was rejected (422)</title>
+ <style type="text/css">
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
+ div.dialog {
+ width: 25em;
+ padding: 0 4em;
+ margin: 4em auto 0 auto;
+ border: 1px solid #ccc;
+ border-right-color: #999;
+ border-bottom-color: #999;
+ }
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
+ </style>
+</head>
+
+<body>
+ <!-- This file lives in public/422.html -->
+ <div class="dialog">
+ <h1>The change you wanted was rejected.</h1>
+ <p>Maybe you tried to change something you didn't have access to.</p>
+ </div>
+</body>
+</html>
25 public/500.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>We're sorry, but something went wrong (500)</title>
+ <style type="text/css">
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
+ div.dialog {
+ width: 25em;
+ padding: 0 4em;
+ margin: 4em auto 0 auto;
+ border: 1px solid #ccc;
+ border-right-color: #999;
+ border-bottom-color: #999;
+ }
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
+ </style>
+</head>
+
+<body>
+ <!-- This file lives in public/500.html -->
+ <div class="dialog">
+ <h1>We're sorry, but something went wrong.</h1>
+ </div>
+</body>
+</html>
0 public/favicon.ico
No changes.
5 public/robots.txt
@@ -0,0 +1,5 @@
+# See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
+#
+# To ban all spiders from the entire site uncomment the next two lines:
+# User-Agent: *
+# Disallow: /
6 script/rails
@@ -0,0 +1,6 @@
+#!/usr/bin/env ruby
+# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
+
+APP_PATH = File.expand_path('../../config/application', __FILE__)
+require File.expand_path('../../config/boot', __FILE__)
+require 'rails/commands'
0 vendor/assets/javascripts/.gitkeep
No changes.
0 vendor/assets/stylesheets/.gitkeep
No changes.
0 vendor/plugins/.gitkeep
No changes.

0 comments on commit aa24c32

Please sign in to comment.