Skip to content

Commit

Permalink
Spree 1-0 initial
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis 'jumph4x authored and jumph4x committed Mar 23, 2012
1 parent bc10a3f commit 1071e98
Show file tree
Hide file tree
Showing 62 changed files with 819 additions and 288 deletions.
18 changes: 1 addition & 17 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,22 @@
.loadpath
.project
*.swp
public/dispatch.cgi
public/dispatch.fcgi
public/dispatch.rb
httpd
pgsql
spec/dummy
config/*-public.asc
config/database.yml
config/mongrel_cluster.yml
db/*.sql
db/*.sqlite3*
db/schema.rb
doc/**/*
lib/products_index_profiler.rb
log/*.log
pkg
public/assets
public/attachments
public/blank_iframe.html
public/images
public/javascripts
public/stylesheets
public/ckeditora
spree.gemspec
spree_dev
spree_test
tmp
vendor/rails
vendor/extensions/google_base
public/google_base.xml
public/template_google_base.xml
coverage/*
var
TAGS
nbproject
vendor/extensions/theme_default/app/stylesheets/*.css
4 changes: 4 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--color
--format
progress
--backtrace
13 changes: 13 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
source 'http://rubygems.org'

gem 'rails'

if RUBY_VERSION < "1.9"
gem "ruby-debug"
else
gem "ruby-debug19"
end

gemspec
gem 'spree'
gem 'ffaker'
243 changes: 243 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,243 @@
PATH
remote: .
specs:
spree_multi_domain (1.3.05)
spree_core (~> 1.0.3)

GEM
remote: http://rubygems.org/
specs:
actionmailer (3.1.4)
actionpack (= 3.1.4)
mail (~> 2.3.0)
actionpack (3.1.4)
activemodel (= 3.1.4)
activesupport (= 3.1.4)
builder (~> 3.0.0)
erubis (~> 2.7.0)
i18n (~> 0.6)
rack (~> 1.3.6)
rack-cache (~> 1.1)
rack-mount (~> 0.8.2)
rack-test (~> 0.6.1)
sprockets (~> 2.0.3)
active_utils (1.0.3)
activesupport (>= 2.3.11)
i18n
activemerchant (1.20.1)
active_utils (>= 1.0.1)
activesupport (>= 2.3.11)
braintree (>= 2.0.0)
builder (>= 2.0.0)
i18n
json (>= 1.5.1)
money (<= 3.7.1)
activemodel (3.1.4)
activesupport (= 3.1.4)
builder (~> 3.0.0)
i18n (~> 0.6)
activerecord (3.1.4)
activemodel (= 3.1.4)
activesupport (= 3.1.4)
arel (~> 2.2.3)
tzinfo (~> 0.3.29)
activeresource (3.1.4)
activemodel (= 3.1.4)
activesupport (= 3.1.4)
activesupport (3.1.4)
multi_json (~> 1.0)
acts_as_list (0.1.4)
archive-tar-minitar (0.5.2)
arel (2.2.3)
bcrypt-ruby (3.0.1)
braintree (2.14.0)
builder (>= 2.0.0)
builder (3.0.0)
cancan (1.6.7)
capybara (1.0.1)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
selenium-webdriver (~> 2.0)
xpath (~> 0.1.4)
childprocess (0.3.1)
ffi (~> 1.0.6)
cocaine (0.2.1)
columnize (0.3.6)
deface (0.8.0)
nokogiri (~> 1.5.0)
rails (>= 3.0.9)
devise (1.4.8)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.0.3)
warden (~> 1.0.3)
diff-lcs (1.1.3)
erubis (2.7.0)
factory_girl (2.6.4)
activesupport (>= 2.3.9)
ffaker (1.12.1)
ffi (1.0.11)
highline (1.6.8)
hike (1.2.1)
i18n (0.6.0)
jquery-rails (1.0.19)
railties (~> 3.0)
thor (~> 0.14)
json (1.6.5)
kaminari (0.13.0)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
railties (>= 3.0.0)
linecache19 (0.5.12)
ruby_core_source (>= 0.1.4)
mail (2.3.3)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
meta_search (1.1.1)
actionpack (~> 3.1.0)
activerecord (~> 3.1.0)
activesupport (~> 3.1.0)
polyamorous (~> 0.5.0)
mime-types (1.18)
money (3.7.1)
i18n (~> 0.4)
multi_json (1.1.0)
nested_set (1.6.8)
activerecord (>= 3.0.0)
railties (>= 3.0.0)
nokogiri (1.5.2)
orm_adapter (0.0.6)
paperclip (2.5.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)
rack (1.3.6)
rack-cache (1.2)
rack (>= 0.4)
rack-mount (0.8.3)
rack (>= 1.0.0)
rack-ssl (1.3.2)
rack
rack-test (0.6.1)
rack (>= 1.0)
rails (3.1.4)
actionmailer (= 3.1.4)
actionpack (= 3.1.4)
activerecord (= 3.1.4)
activeresource (= 3.1.4)
activesupport (= 3.1.4)
bundler (~> 1.0)
railties (= 3.1.4)
railties (3.1.4)
actionpack (= 3.1.4)
activesupport (= 3.1.4)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)
rspec (2.9.0)
rspec-core (~> 2.9.0)
rspec-expectations (~> 2.9.0)
rspec-mocks (~> 2.9.0)
rspec-core (2.9.0)
rspec-expectations (2.9.0)
diff-lcs (~> 1.1.3)
rspec-mocks (2.9.0)
rspec-rails (2.9.0)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec (~> 2.9.0)
ruby-debug-base19 (0.11.25)
columnize (>= 0.3.1)
linecache19 (>= 0.5.11)
ruby_core_source (>= 0.1.4)
ruby-debug19 (0.11.6)
columnize (>= 0.3.1)
linecache19 (>= 0.5.11)
ruby-debug-base19 (>= 0.11.19)
ruby_core_source (0.1.5)
archive-tar-minitar (>= 0.5.2)
rubyzip (0.9.6.1)
selenium-webdriver (2.20.0)
childprocess (>= 0.2.5)
ffi (~> 1.0)
multi_json (~> 1.0)
rubyzip
spree (1.0.3)
spree_api (= 1.0.3)
spree_auth (= 1.0.3)
spree_cmd (= 1.0.3)
spree_core (= 1.0.3)
spree_dash (= 1.0.3)
spree_promo (= 1.0.3)
spree_sample (= 1.0.3)
spree_api (1.0.3)
spree_auth (= 1.0.3)
spree_core (= 1.0.3)
spree_auth (1.0.3)
cancan (= 1.6.7)
devise (= 1.4.8)
spree_core (= 1.0.3)
spree_cmd (1.0.3)
spree_core (1.0.3)
activemerchant (= 1.20.1)
acts_as_list (= 0.1.4)
deface (>= 0.7.2)
ffaker (~> 1.12.0)
highline (= 1.6.8)
jquery-rails (>= 1.0.18, <= 1.0.19)
kaminari (>= 0.13.0)
meta_search (= 1.1.1)
nested_set (= 1.6.8)
paperclip (= 2.5.0)
rails (>= 3.1.1, <= 3.1.4)
state_machine (= 1.1.1)
stringex (~> 1.3.0)
spree_dash (1.0.3)
spree_core (= 1.0.3)
spree_promo (1.0.3)
spree_auth (= 1.0.3)
spree_core (= 1.0.3)
spree_sample (1.0.3)
spree_core (= 1.0.3)
sprockets (2.0.3)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.5)
state_machine (1.1.1)
stringex (1.3.2)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.32)
warden (1.0.6)
rack (>= 1.0)
xpath (0.1.4)
nokogiri (~> 1.3)

PLATFORMS
ruby

DEPENDENCIES
capybara (= 1.0.1)
factory_girl
ffaker
rails
rspec-rails (~> 2.7)
ruby-debug19
spree
spree_multi_domain!
sqlite3
22 changes: 18 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
require 'rubygems'
# encoding: utf-8
ENV['LIB_NAME'] = 'spree_multi_domain'

require 'rake'
require 'rake/testtask'
require 'rake/packagetask'
require 'rake/gempackagetask'
require 'rubygems/package_task'
require 'rspec/core/rake_task'
require 'spree/core/testing_support/common_rake'

RSpec::Core::RakeTask.new

task :default => [:spec]

spec = eval(File.read('spree_multi_domain.gemspec'))

Rake::GemPackageTask.new(spec) do |p|
Gem::PackageTask.new(spec) do |p|
p.gem_spec = spec
end

Expand All @@ -15,4 +23,10 @@ task :release => :package do
require 'rake/gemcutter'
Rake::Gemcutter::Tasks.new(spec).define
Rake::Task['gem:push'].invoke
end
end

desc "Generates a dummy app for testing"
task :test_app do
ENV['LIB_NAME'] = 'spree_multi_domain'
Rake::Task['common:test_app'].invoke
end
9 changes: 5 additions & 4 deletions Versionfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"0.30.x" => { :branch => "0-30-x" }
"0.40.x" => { :branch => "0-40-stable" }
"0.50.x" => { :branch => "0-40-stable" }
"1.0.x" => { :branch => "master"}
"0.70.x" => { :branch => "0-60-stable" }
"0.60.x" => { :branch => "0-60-stable" }
"0.70.x" => { :branch => "master" }
"0.50.x" => { :branch => "0-40-stable" }
"0.40.x" => { :branch => "0-40-stable" }
"0.30.x" => { :branch => "0-30-x" }
8 changes: 0 additions & 8 deletions app/controllers/admin/stores_controller.rb

This file was deleted.

12 changes: 0 additions & 12 deletions app/controllers/products_controller_decorator.rb

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
Admin::ProductsController.class_eval do
Spree::Admin::ProductsController.class_eval do
update.before :set_stores

create.before :add_to_all_stores

private
def set_stores
@product.store_ids = nil unless params[:product].key? :store_ids
end

def add_to_all_stores
end
end
3 changes: 3 additions & 0 deletions app/controllers/spree/admin/stores_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class Spree::Admin::StoresController < Spree::Admin::ResourceController

end
Loading

0 comments on commit 1071e98

Please sign in to comment.