Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

initial commit

  • Loading branch information...
commit 3cbeb82edeafc774d7a978faa4e14ab8a8bf43b0 0 parents
@citrus authored
5 .gitignore
@@ -0,0 +1,5 @@
+*.gem
+.bundle
+.DS_Store
+Gemfile.lock
+pkg/*
2  Gemfile
@@ -0,0 +1,2 @@
+source "http://rubygems.org"
+gemspec
2  Rakefile
@@ -0,0 +1,2 @@
+require 'bundler'
+Bundler::GemHelper.install_tasks
28 lib/spree_drop_shipping.rb
@@ -0,0 +1,28 @@
+require 'spree_core'
+require 'spree_auth'
+
+require 'spree_drop_shipping/custom_hooks'
+
+module SpreeDropShipping
+
+ class Engine < Rails::Engine
+
+ config.autoload_paths += %W(#{config.root}/lib)
+
+ initializer "static assets" do |app|
+ app.middleware.insert_before ::Rack::Lock, ::ActionDispatch::Static, "#{config.root}/public"
+ end
+
+ def self.activate
+
+ Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator.rb")) do |c|
+ Rails.env.production? ? require(c) : load(c)
+ end
+
+ end
+
+ config.to_prepare &method(:activate).to_proc
+
+ end
+
+end
7 lib/spree_drop_shipping/custom_hooks.rb
@@ -0,0 +1,7 @@
+module SpreeDropShipping
+ class CustomHooks < Spree::ThemeSupport::HookListener
+
+ #insert_after :account_summary, 'hooks/account_summary'
+
+ end
+end
3  lib/spree_drop_shipping/version.rb
@@ -0,0 +1,3 @@
+module SpreeDropShipping
+ VERSION = "0.1.0"
+end
38 spree_drop_shipping.gemspec
@@ -0,0 +1,38 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "spree_drop_shipping/version"
+
+Gem::Specification.new do |s|
+ s.name = "spree_drop_shipping"
+ s.version = SpreeDropShipping::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Spencer Steffen"]
+ s.email = ["spencer@citrusme.com"]
+ s.homepage = "https://github.com/citrus/spree_drop_shipping"
+ s.summary = %q{Links products to suppliers and places a combined order with suppliers at the end of the day}
+ s.description = %q{TODO}
+
+ s.rubyforge_project = "spree_drop_shipping"
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+
+ s.require_paths = ["lib"]
+
+ # Spree
+ s.add_dependency('spree_core', '>= 0.50.2')
+ s.add_dependency('spree_auth', '>= 0.50.2')
+
+ # Development
+ s.add_development_dependency('shoulda', '>= 2.11.3')
+ s.add_development_dependency('factory_girl', '>= 2.0.0.beta2')
+ s.add_development_dependency('cucumber', '>= 0.10.2')
+ s.add_development_dependency('capybara', '>= 0.4.1')
+ s.add_development_dependency('selenium-webdriver', '>= 0.1.3')
+ s.add_development_dependency('sqlite3', '>= 1.3.3')
+ s.add_development_dependency('faker', '>= 0.9.5')
+ s.add_development_dependency('spork', '>= 0.9.0.rc5')
+ s.add_development_dependency('spork-testunit', '>= 0.0.5')
+
+end
Please sign in to comment.
Something went wrong with that request. Please try again.