Skip to content

Commit

Permalink
Install Spree
Browse files Browse the repository at this point in the history
  • Loading branch information
amacneil committed Aug 30, 2012
1 parent aa24c32 commit f6dc943
Show file tree
Hide file tree
Showing 134 changed files with 2,979 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/.bundle
/db/*.sqlite3
/public/spree
/tmp
.DS_Store
*.log
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ gem 'refinerycms-i18n', '~> 2.0.0'
# gem 'refinerycms-inquiries', '~> 2.0.0'
# gem 'refinerycms-search', '~> 2.0.0'
# gem 'refinerycms-page-images', '~> 2.0.0'

gem 'spree', git: 'git://github.com/spree/spree.git', branch: '1-2-stable'
102 changes: 102 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
GIT
remote: git://github.com/spree/spree.git
revision: 14bb58e33dfe4629d91893fddbd53b9aa081f24f
branch: 1-2-stable
specs:
spree (1.2.0)
spree_api (= 1.2.0)
spree_cmd (= 1.2.0)
spree_core (= 1.2.0)
spree_dash (= 1.2.0)
spree_promo (= 1.2.0)
spree_sample (= 1.2.0)
spree_api (1.2.0)
rabl (= 0.6.5)
spree_core (= 1.2.0)
spree_cmd (1.2.0)
thor (>= 0.14.6)
spree_core (1.2.0)
activemerchant (= 1.28.0)
acts_as_list (= 0.1.4)
aws-sdk (~> 1.3.4)
cancan (= 1.6.7)
deface (>= 0.9.0)
ffaker (~> 1.12.0)
highline (= 1.6.11)
jquery-rails (~> 2.0)
kaminari (>= 0.13.0)
money (= 5.0.0)
nested_set (= 1.7.0)
paperclip (~> 2.7)
rails (~> 3.2.8)
ransack (~> 0.7.0)
select2-rails (= 0.0.9)
state_machine (= 1.1.2)
stringex (~> 1.3.2)
spree_dash (1.2.0)
httparty (~> 0.8.1)
spree_core (= 1.2.0)
spree_promo (1.2.0)
spree_core (= 1.2.0)
spree_sample (1.2.0)
spree_core (= 1.2.0)

GEM
remote: https://rubygems.org/
specs:
Expand All @@ -14,6 +57,17 @@ GEM
rack-cache (~> 1.2)
rack-test (~> 0.6.1)
sprockets (~> 2.1.3)
active_utils (1.0.4)
activesupport (>= 2.3.11)
i18n
activemerchant (1.28.0)
active_utils (>= 1.0.2)
activesupport (>= 2.3.11)
builder (>= 2.0.0)
i18n
json (>= 1.5.1)
money
nokogiri
activemodel (3.2.8)
activesupport (= 3.2.8)
builder (~> 3.0.0)
Expand All @@ -29,19 +83,30 @@ GEM
i18n (~> 0.6)
multi_json (~> 1.0)
acts_as_indexed (0.7.8)
acts_as_list (0.1.4)
arel (3.0.2)
awesome_nested_set (2.1.4)
activerecord (>= 3.0.0)
aws-sdk (1.3.9)
httparty (~> 0.7)
json (~> 1.4)
nokogiri (>= 1.4.4)
uuidtools (~> 2.1)
babosa (0.3.8)
bcrypt-ruby (3.0.1)
builder (3.0.0)
cancan (1.6.7)
cocaine (0.3.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)
deface (0.9.1)
nokogiri (~> 1.5.0)
rails (~> 3.1)
devise (2.0.4)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.0.3)
Expand All @@ -52,29 +117,56 @@ GEM
erubis (2.7.0)
execjs (1.4.0)
multi_json (~> 1.0)
ffaker (1.12.1)
friendly_id (4.0.8)
globalize3 (0.2.0)
activemodel (>= 3.0.0)
activerecord (>= 3.0.0)
paper_trail (~> 2)
highline (1.6.11)
hike (1.2.1)
httparty (0.8.3)
multi_json (~> 1.0)
multi_xml
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)
kaminari (0.13.0)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
railties (>= 3.0.0)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.19)
money (5.0.0)
i18n (~> 0.4)
json
multi_json (1.3.6)
multi_xml (0.5.1)
nested_set (1.7.0)
activerecord (>= 3.0.0)
railties (>= 3.0.0)
nokogiri (1.5.5)
orm_adapter (0.0.7)
paper_trail (2.6.3)
activerecord (~> 3.0)
railties (~> 3.0)
paperclip (2.7.0)
activerecord (>= 2.3.0)
activesupport (>= 2.3.2)
cocaine (>= 0.0.2)
mime-types
polyamorous (0.5.0)
activerecord (~> 3.0)
polyglot (0.3.3)
rabl (0.6.5)
activesupport (>= 2.3.14)
multi_json (~> 1.0)
rack (1.4.1)
rack-cache (1.2)
rack (>= 0.4)
Expand All @@ -98,6 +190,10 @@ GEM
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
rake (0.9.2.2)
ransack (0.7.0)
actionpack (~> 3.0)
activerecord (~> 3.0)
polyamorous (~> 0.5.0)
rdoc (3.12)
json (~> 1.4)
refinerycms (2.0.8)
Expand Down Expand Up @@ -149,13 +245,17 @@ GEM
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
select2-rails (0.0.9)
thor (~> 0.14)
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)
state_machine (1.1.2)
stringex (1.3.3)
thor (0.16.0)
tilt (1.3.3)
treetop (1.4.10)
Expand All @@ -166,6 +266,7 @@ GEM
uglifier (1.2.7)
execjs (>= 0.3.0)
multi_json (~> 1.3)
uuidtools (2.1.3)
warden (1.1.1)
rack (>= 1.0)
will_paginate (3.0.3)
Expand All @@ -180,5 +281,6 @@ DEPENDENCIES
refinerycms (~> 2.0.0)
refinerycms-i18n (~> 2.0.0)
sass-rails (~> 3.2.3)
spree!
sqlite3
uglifier (>= 1.0.3)
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
# Refinery & Spree - together at last

Install Refinery:

gem install refinerycms
refinerycms refinery_spree

Add Spree gem:

gem 'spree', git: 'git://github.com/spree/spree.git', branch: '1-2-stable'

Install Spree

rails g spree:install

Update routes.rb

13 changes: 13 additions & 0 deletions app/assets/javascripts/admin/all.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require jquery_ujs

//= require admin/spree_core
//= require admin/spree_promo

//= require_tree .
13 changes: 13 additions & 0 deletions app/assets/javascripts/store/all.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require jquery_ujs

//= require store/spree_core
//= require store/spree_promo

//= require_tree .
12 changes: 12 additions & 0 deletions app/assets/stylesheets/admin/all.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* This is a manifest file that'll automatically include all the stylesheets available in this directory
* and any sub-directories. 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 admin/spree_core
*= require admin/spree_promo
*= require_self
*= require_tree .
*/
12 changes: 12 additions & 0 deletions app/assets/stylesheets/store/all.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* This is a manifest file that'll automatically include all the stylesheets available in this directory
* and any sub-directories. 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 store/spree_core
*= require store/spree_promo
*= require_self
*= require_tree .
*/
13 changes: 13 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@

module RefinerySpree
class Application < Rails::Application

config.to_prepare do
# Load application's model / class decorators
Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
Rails.configuration.cache_classes ? require(c) : load(c)
end

# Load application's view overrides
Dir.glob(File.join(File.dirname(__FILE__), "../app/overrides/*.rb")) do |c|
Rails.configuration.cache_classes ? require(c) : load(c)
end
end

# 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.
Expand Down
2 changes: 2 additions & 0 deletions config/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@

# Initialize the rails application
RefinerySpree::Application.initialize!

ActiveRecord::Base.include_root_in_json = true
14 changes: 14 additions & 0 deletions config/initializers/spree.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Configure Spree Preferences
#
# Note: Initializing preferences available within the Admin will overwrite any changes that were made through the user interface when you restart.
# If you would like users to be able to update a setting with the Admin it should NOT be set here.
#
# In order to initialize a setting do:
# config.setting_name = 'new value'
Spree.config do |config|
# Example:
# Uncomment to override the default site name.
# config.site_name = "Spree Demo Site"
end

Spree.user_class = "Spree::LegacyUser"
7 changes: 7 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
RefinerySpree::Application.routes.draw do

# This line mounts Spree's routes at the root of your application.
# This means, any requests to URLs such as /products, will go to Spree::ProductsController.
# If you would like to change where this engine is mounted, simply change the :at option to something different.
#
# We ask that you don't use the :as option here, as Spree relies on it being the default of "spree"
mount Spree::Core::Engine, :at => '/'

# 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.
Expand Down
2 changes: 2 additions & 0 deletions config/spree.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
version: 1.2.0
Loading

0 comments on commit f6dc943

Please sign in to comment.