Skip to content

Instantly share code, notes, and snippets.

@jasherai
Created September 3, 2011 15:58
Show Gist options
  • Save jasherai/1191388 to your computer and use it in GitHub Desktop.
Save jasherai/1191388 to your computer and use it in GitHub Desktop.
Only in refine_rails/app/views/layouts: application.html.erb
Only in refine/app/views/layouts: application.html.erb.backup
Only in refine/app/views: sitemap
Only in refine: autotest
diff -ru refine_rails/config/application.rb refine/config/application.rb
--- refine_rails/config/application.rb 2011-09-03 16:27:37.262463871 +0100
+++ refine/config/application.rb 2011-09-03 16:24:03.601372171 +0100
@@ -1,6 +1,12 @@
require File.expand_path('../boot', __FILE__)
-require 'rails/all'
+# 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
@@ -9,7 +15,7 @@
# Bundler.require(:default, :assets, Rails.env)
end
-module RefineRails
+module Refine
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
Only in refine/config: database.yml.mysql
Only in refine/config: database.yml.postgresql
Only in refine/config: database.yml.sqlite3
diff -ru refine_rails/config/environment.rb refine/config/environment.rb
--- refine_rails/config/environment.rb 2011-09-03 16:27:37.262463871 +0100
+++ refine/config/environment.rb 2011-09-03 16:24:03.601372171 +0100
@@ -2,4 +2,4 @@
require File.expand_path('../application', __FILE__)
# Initialize the rails application
-RefineRails::Application.initialize!
+Refine::Application.initialize!
diff -ru refine_rails/config/environments/development.rb refine/config/environments/development.rb
--- refine_rails/config/environments/development.rb 2011-09-03 16:27:37.262463871 +0100
+++ refine/config/environments/development.rb 2011-09-03 16:24:36.879984678 +0100
@@ -1,4 +1,4 @@
-RefineRails::Application.configure do
+Refine::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
@@ -28,3 +28,7 @@
# Expands the lines which load the assets
config.assets.debug = true
end
+Refinery.rescue_not_found = false
+# When true will use Amazon's Simple Storage Service on your production machine
+# instead of the default file system for resources and images
+Refinery.s3_backend = !(ENV['S3_KEY'].nil? || ENV['S3_SECRET'].nil?)
diff -ru refine_rails/config/environments/production.rb refine/config/environments/production.rb
--- refine_rails/config/environments/production.rb 2011-09-03 16:27:37.262463871 +0100
+++ refine/config/environments/production.rb 2011-09-03 16:24:36.889984258 +0100
@@ -1,4 +1,4 @@
-RefineRails::Application.configure do
+Refine::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# Code is not reloaded between requests
@@ -15,7 +15,7 @@
config.assets.compress = true
# Don't fallback to assets pipeline if a precompiled asset is missed
- config.assets.compile = false
+ config.assets.compile = true
# Generate digests for assets URLs
config.assets.digest = true
@@ -58,3 +58,7 @@
# Send deprecation notices to registered listeners
config.active_support.deprecation = :notify
end
+Refinery.rescue_not_found = true
+# When true will use Amazon's Simple Storage Service on your production machine
+# instead of the default file system for resources and images
+Refinery.s3_backend = !(ENV['S3_KEY'].nil? || ENV['S3_SECRET'].nil?)
diff -ru refine_rails/config/environments/test.rb refine/config/environments/test.rb
--- refine_rails/config/environments/test.rb 2011-09-03 16:27:37.262463871 +0100
+++ refine/config/environments/test.rb 2011-09-03 16:24:36.879984678 +0100
@@ -1,4 +1,4 @@
-RefineRails::Application.configure do
+Refine::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
@@ -40,3 +40,7 @@
# Allow pass debug_assets=true as a query parameter to load pages with unpackaged assets
config.assets.allow_debugging = true
end
+Refinery.rescue_not_found = false
+# When true will use Amazon's Simple Storage Service on your production machine
+# instead of the default file system for resources and images
+Refinery.s3_backend = !(ENV['S3_KEY'].nil? || ENV['S3_SECRET'].nil?)
Only in refine/config: i18n-js.yml
Only in refine/config/initializers: devise.rb
diff -ru refine_rails/config/initializers/secret_token.rb refine/config/initializers/secret_token.rb
--- refine_rails/config/initializers/secret_token.rb 2011-09-03 16:27:37.262463871 +0100
+++ refine/config/initializers/secret_token.rb 2011-09-03 16:24:03.611371757 +0100
@@ -4,4 +4,4 @@
# 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.
-RefineRails::Application.config.secret_token = 'e2bbf157c72ee79cf98be992d9c0a82a603ca13079cc009cb82eb1fa3961eab1b9d3bfea3a5af4b09c89d270893fba4df516ef3d2b001b2e6670954918e86c7c'
+Refine::Application.config.secret_token = 'c2f18d1c4566fdf17758883d45ef51b4ae9ebd4fe1db539558a9ca724cd54ab60c5dd3bb48887d8ebbcbf13ddfdfa052e7545c99c6cff1ca24bfbcb0783603c4'
diff -ru refine_rails/config/initializers/session_store.rb refine/config/initializers/session_store.rb
--- refine_rails/config/initializers/session_store.rb 2011-09-03 16:27:37.262463871 +0100
+++ refine/config/initializers/session_store.rb 2011-09-03 16:24:03.611371757 +0100
@@ -1,8 +1,8 @@
# Be sure to restart your server when you modify this file.
-RefineRails::Application.config.session_store :cookie_store, key: '_refine_rails_session'
+Refine::Application.config.session_store :cookie_store, key: '_refine_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")
-# RefineRails::Application.config.session_store :active_record_store
+# Refine::Application.config.session_store :active_record_store
diff -ru refine_rails/config/routes.rb refine/config/routes.rb
--- refine_rails/config/routes.rb 2011-09-03 16:27:37.262463871 +0100
+++ refine/config/routes.rb 2011-09-03 16:24:03.591372595 +0100
@@ -1,4 +1,4 @@
-RefineRails::Application.routes.draw do
+Refine::Application.routes.draw do
# The priority is based upon order of creation:
# first created -> highest priority.
diff -ru refine_rails/config.ru refine/config.ru
--- refine_rails/config.ru 2011-09-03 16:27:37.252464294 +0100
+++ refine/config.ru 2011-09-03 16:24:03.551374264 +0100
@@ -1,4 +1,4 @@
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
-run RefineRails::Application
+run Refine::Application
Only in refine/db: development.sqlite3
Only in refine/db: migrate
Only in refine/db: schema.rb
Only in refine/db: seeds
diff -ru refine_rails/db/seeds.rb refine/db/seeds.rb
--- refine_rails/db/seeds.rb 2011-09-03 16:27:37.272463457 +0100
+++ refine/db/seeds.rb 2011-09-03 16:24:36.889984258 +0100
@@ -5,3 +5,8 @@
#
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
# Mayor.create(name: 'Emanuel', city: cities.first)
+# Refinery seeds
+Dir[Rails.root.join('db', 'seeds', '*.rb').to_s].each do |file|
+ puts "Loading db/seeds/#{file.split(File::SEPARATOR).last}"
+ load(file)
+end
diff -ru refine_rails/Gemfile refine/Gemfile
--- refine_rails/Gemfile 2011-09-03 16:51:24.842942895 +0100
+++ refine/Gemfile 2011-09-03 16:24:03.651370088 +0100
@@ -1,6 +1,6 @@
source 'http://rubygems.org'
-gem 'rails', '3.1.0'
+# gem 'rails', '3.1.0'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
@@ -27,9 +27,26 @@
# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'
-group :test do
- # Pretty printed test output
- gem 'turn', :require => false
-end
+
+# REFINERY CMS ================================================================
+# Anything you put in here will be overridden when the app gets updated.
gem 'refinerycms', :git => 'git://github.com/resolve/refinerycms.git'
+gem 'awesome_nested_set', :git => 'git://github.com/collectiveidea/awesome_nested_set.git'
+
+# END REFINERY CMS ============================================================
+
+# USER DEFINED
+
+
+# Specify additional Refinery CMS Engines here (all optional):
+# gem 'refinerycms-inquiries', '~> 1.0'
+# gem "refinerycms-news", '~> 1.2'
+# gem 'refinerycms-blog', '~> 1.6'
+# gem 'refinerycms-page-images', '~> 1.0'
+
+# Add i18n support (optional, you can remove this if you really want to).
+gem 'refinerycms-i18n', '~> 2.0.0', :git => 'git://github.com/parndt/refinerycms-i18n'
+
+gem 'therubyracer'
+# END USER DEFINED
Only in refine_rails: Gemfile~
diff -ru refine_rails/Gemfile.lock refine/Gemfile.lock
--- refine_rails/Gemfile.lock 2011-09-03 16:51:43.022184938 +0100
+++ refine/Gemfile.lock 2011-09-03 16:24:23.080560007 +0100
@@ -1,4 +1,19 @@
GIT
+ remote: git://github.com/collectiveidea/awesome_nested_set.git
+ revision: 99ddcfa45d038336c53ece0ca122cc89e5e73388
+ specs:
+ awesome_nested_set (2.0.2)
+ activerecord (>= 3.0.0)
+
+GIT
+ remote: git://github.com/parndt/refinerycms-i18n
+ revision: 9393bfcc7d27ef95802cb3920936c608501ac8a7
+ specs:
+ refinerycms-i18n (2.0.0)
+ refinerycms-core (~> 2.0.0)
+ routing-filter (>= 0.2.3)
+
+GIT
remote: git://github.com/resolve/refinerycms.git
revision: 03fea14a1bc498b2ee893f16f59e47cc5d4ed438
specs:
@@ -88,10 +103,7 @@
activesupport (3.1.0)
multi_json (~> 1.0)
acts_as_indexed (0.7.3)
- ansi (1.3.0)
arel (2.2.1)
- awesome_nested_set (2.0.1)
- activerecord (>= 3.0.0)
babosa (0.3.5)
bcrypt-ruby (3.0.0)
builder (3.0.0)
@@ -122,6 +134,7 @@
jquery-rails (1.0.13)
railties (~> 3.0)
thor (~> 0.14)
+ libv8 (3.3.10.2)
mail (2.3.0)
i18n (>= 0.4.0)
mime-types (~> 1.16)
@@ -158,6 +171,8 @@
thor (~> 0.14.6)
rake (0.9.2)
rdoc (3.9.4)
+ routing-filter (0.2.4)
+ actionpack
sass (3.1.7)
sass-rails (3.1.0)
actionpack (~> 3.1.0)
@@ -170,14 +185,14 @@
rack (~> 1.0)
tilt (!= 1.3.0, ~> 1.1)
sqlite3 (1.3.4)
+ therubyracer (0.9.4)
+ libv8 (~> 3.3.10)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
truncate_html (0.5.1)
- turn (0.8.2)
- ansi (>= 1.2.2)
tzinfo (0.3.29)
uglifier (1.0.2)
execjs (>= 0.3.0)
@@ -190,11 +205,12 @@
ruby
DEPENDENCIES
+ awesome_nested_set!
coffee-rails (~> 3.1.0)
jquery-rails
- rails (= 3.1.0)
refinerycms!
+ refinerycms-i18n (~> 2.0.0)!
sass-rails (~> 3.1.0)
sqlite3
- turn
+ therubyracer
uglifier
diff -ru refine_rails/.gitignore refine/.gitignore
--- refine_rails/.gitignore 2011-09-03 16:27:37.252464294 +0100
+++ refine/.gitignore 2011-09-03 16:24:36.889984258 +0100
@@ -3,3 +3,80 @@
log/*.log
tmp/
.sass-cache/
+# Rails
+.bundle
+db/*.sqlite3
+db/*.sqlite3-journal
+*.log
+tmp
+tmp/**/*
+
+# Documentation
+doc/api
+doc/app
+.yardoc
+.yardopts
+coverage
+
+# Public Uploads
+public/system/*
+public/themes/*
+
+# Public Cache
+public/javascripts/cache
+public/stylesheets/cache
+
+# Vendor Cache
+vendor/cache
+
+# Acts as Indexed
+index/**/*
+
+# Refinery Specific
+*.tmproj
+*.autobackupbyrefinery.*
+refinerycms-*.gem
+.autotest
+
+# Mac
+.DS_Store
+
+# Windows
+Thumbs.db
+
+# NetBeans
+nbproject
+
+# Eclipse
+.project
+
+# Redcar
+.redcar
+
+# Rubinius
+*.rbc
+
+# Vim
+*.swp
+*.swo
+
+# RubyMine
+.idea
+
+# E-texteditor
+.eprj
+
+# Backup
+*~
+
+# Capybara Bug
+capybara-*html
+
+# sass
+.sass-cache
+.sass-cache/*
+
+#rvm
+.rvmrc
+.rvmrc.*
+
Only in refine: index
Only in refine/log: development.log
Only in refine_rails/public: index.html
Only in refine/public: index.html.backup
diff -ru refine_rails/Rakefile refine/Rakefile
--- refine_rails/Rakefile 2011-09-03 16:27:37.252464294 +0100
+++ refine/Rakefile 2011-09-03 16:24:03.551374264 +0100
@@ -4,4 +4,4 @@
require File.expand_path('../config/application', __FILE__)
-RefineRails::Application.load_tasks
+Refine::Application.load_tasks
Only in refine_rails: test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment