-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8ee9c74
Showing
246 changed files
with
9,456 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sandbox |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
eval(File.read(File.dirname(__FILE__) + '/../common_spree_dependencies.rb')) | ||
|
||
gem 'spree_core', :path => '../core' | ||
|
||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,264 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
spree_auth (1.1.0) | ||
cancan (= 1.6.7) | ||
devise (~> 2.0) | ||
spree_core (= 1.1.0) | ||
|
||
PATH | ||
remote: ../core | ||
specs: | ||
spree_core (1.1.0) | ||
activemerchant (= 1.20.4) | ||
acts_as_list (= 0.1.4) | ||
aws-sdk (~> 1.3.4) | ||
deface (>= 0.8.0) | ||
ffaker (~> 1.12.0) | ||
highline (= 1.6.11) | ||
jquery-rails (~> 2.0.0) | ||
kaminari (>= 0.13.0) | ||
nested_set (= 1.7.0) | ||
paperclip (~> 2.7) | ||
rails (>= 3.2.2, <= 3.2.3) | ||
ransack (~> 0.6.0) | ||
state_machine (= 1.1.2) | ||
stringex (~> 1.3.2) | ||
|
||
GEM | ||
remote: http://rubygems.org/ | ||
specs: | ||
actionmailer (3.2.3) | ||
actionpack (= 3.2.3) | ||
mail (~> 2.4.4) | ||
actionpack (3.2.3) | ||
activemodel (= 3.2.3) | ||
activesupport (= 3.2.3) | ||
builder (~> 3.0.0) | ||
erubis (~> 2.7.0) | ||
journey (~> 1.0.1) | ||
rack (~> 1.4.0) | ||
rack-cache (~> 1.2) | ||
rack-test (~> 0.6.1) | ||
sprockets (~> 2.1.2) | ||
active_utils (1.0.3) | ||
activesupport (>= 2.3.11) | ||
i18n | ||
activemerchant (1.20.4) | ||
active_utils (>= 1.0.2) | ||
activesupport (>= 2.3.11) | ||
braintree (>= 2.0.0) | ||
builder (>= 2.0.0) | ||
i18n | ||
json (>= 1.5.1) | ||
money (<= 3.7.1) | ||
activemodel (3.2.3) | ||
activesupport (= 3.2.3) | ||
builder (~> 3.0.0) | ||
activerecord (3.2.3) | ||
activemodel (= 3.2.3) | ||
activesupport (= 3.2.3) | ||
arel (~> 3.0.2) | ||
tzinfo (~> 0.3.29) | ||
activeresource (3.2.3) | ||
activemodel (= 3.2.3) | ||
activesupport (= 3.2.3) | ||
activesupport (3.2.3) | ||
i18n (~> 0.6) | ||
multi_json (~> 1.0) | ||
acts_as_list (0.1.4) | ||
addressable (2.2.7) | ||
arel (3.0.2) | ||
aws-sdk (1.3.9) | ||
httparty (~> 0.7) | ||
json (~> 1.4) | ||
nokogiri (>= 1.4.4) | ||
uuidtools (~> 2.1) | ||
bcrypt-ruby (3.0.1) | ||
braintree (2.16.0) | ||
builder (>= 2.0.0) | ||
builder (3.0.0) | ||
cancan (1.6.7) | ||
capybara (1.1.2) | ||
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) | ||
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.2.0) | ||
database_cleaner (0.7.1) | ||
deface (0.8.0) | ||
nokogiri (~> 1.5.0) | ||
rails (>= 3.0.9) | ||
devise (2.0.4) | ||
bcrypt-ruby (~> 3.0) | ||
orm_adapter (~> 0.0.3) | ||
railties (~> 3.1) | ||
warden (~> 1.1.1) | ||
diff-lcs (1.1.3) | ||
email_spec (1.2.1) | ||
mail (~> 2.2) | ||
rspec (~> 2.0) | ||
erubis (2.7.0) | ||
execjs (1.3.0) | ||
multi_json (~> 1.0) | ||
factory_girl (2.6.4) | ||
activesupport (>= 2.3.9) | ||
factory_girl_rails (1.7.0) | ||
factory_girl (~> 2.6.0) | ||
railties (>= 3.0.0) | ||
ffaker (1.12.1) | ||
ffi (1.0.11) | ||
guard (1.0.1) | ||
ffi (>= 0.5.0) | ||
thor (~> 0.14.6) | ||
guard-rspec (0.5.11) | ||
guard (>= 0.8.4) | ||
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.3) | ||
jquery-rails (2.0.2) | ||
railties (>= 3.2.0, < 5.0) | ||
thor (~> 0.14) | ||
json (1.6.6) | ||
kaminari (0.13.0) | ||
actionpack (>= 3.0.0) | ||
activesupport (>= 3.0.0) | ||
railties (>= 3.0.0) | ||
launchy (2.1.0) | ||
addressable (~> 2.2.6) | ||
mail (2.4.4) | ||
i18n (>= 0.4.0) | ||
mime-types (~> 1.16) | ||
treetop (~> 1.4.8) | ||
mime-types (1.18) | ||
money (3.7.1) | ||
i18n (~> 0.4) | ||
multi_json (1.2.0) | ||
multi_xml (0.4.4) | ||
mysql2 (0.3.11) | ||
nested_set (1.7.0) | ||
activerecord (>= 3.0.0) | ||
railties (>= 3.0.0) | ||
nokogiri (1.5.2) | ||
orm_adapter (0.0.7) | ||
paperclip (2.7.0) | ||
activerecord (>= 2.3.0) | ||
activesupport (>= 2.3.2) | ||
cocaine (>= 0.0.2) | ||
mime-types | ||
pg (0.13.2) | ||
polyamorous (0.5.0) | ||
activerecord (~> 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.3) | ||
actionmailer (= 3.2.3) | ||
actionpack (= 3.2.3) | ||
activerecord (= 3.2.3) | ||
activeresource (= 3.2.3) | ||
activesupport (= 3.2.3) | ||
bundler (~> 1.0) | ||
railties (= 3.2.3) | ||
railties (3.2.3) | ||
actionpack (= 3.2.3) | ||
activesupport (= 3.2.3) | ||
rack-ssl (~> 1.3.2) | ||
rake (>= 0.8.7) | ||
rdoc (~> 3.4) | ||
thor (~> 0.14.6) | ||
rake (0.9.2.2) | ||
ransack (0.6.0) | ||
actionpack (~> 3.0) | ||
activerecord (~> 3.0) | ||
polyamorous (~> 0.5.0) | ||
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.1) | ||
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) | ||
rubyzip (0.9.6.1) | ||
sass (3.1.15) | ||
sass-rails (3.2.5) | ||
railties (~> 3.2.0) | ||
sass (>= 3.1.10) | ||
tilt (~> 1.3) | ||
selenium-webdriver (2.20.0) | ||
childprocess (>= 0.2.5) | ||
ffi (~> 1.0) | ||
multi_json (~> 1.0) | ||
rubyzip | ||
shoulda-matchers (1.0.0) | ||
sprockets (2.1.2) | ||
hike (~> 1.2) | ||
rack (~> 1.0) | ||
tilt (~> 1.1, != 1.3.0) | ||
sqlite3 (1.3.5) | ||
state_machine (1.1.2) | ||
stringex (1.3.3) | ||
thor (0.14.6) | ||
tilt (1.3.3) | ||
treetop (1.4.10) | ||
polyglot | ||
polyglot (>= 0.3.1) | ||
tzinfo (0.3.33) | ||
uuidtools (2.1.2) | ||
warden (1.1.1) | ||
rack (>= 1.0) | ||
xpath (0.1.4) | ||
nokogiri (~> 1.3) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
capybara | ||
coffee-rails (~> 3.2) | ||
database_cleaner (= 0.7.1) | ||
email_spec (~> 1.2.1) | ||
factory_girl_rails (~> 1.7.0) | ||
ffaker | ||
guard | ||
guard-rspec (~> 0.5.0) | ||
json | ||
launchy | ||
multi_json (= 1.2.0) | ||
mysql2 | ||
pg | ||
rspec-rails (~> 2.9.0) | ||
sass-rails (~> 3.2) | ||
selenium-webdriver (= 2.20.0) | ||
shoulda-matchers (~> 1.0.0) | ||
spree_auth! | ||
spree_core! | ||
sqlite3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Copyright (c) 2007-2012, Spree Commerce, Inc. and other contributors | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, | ||
are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, | ||
this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
* Neither the name Spree nor the names of its contributors may be used to | ||
endorse or promote products derived from this software without specific | ||
prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR | ||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Authentication | ||
============== | ||
|
||
Provides authentication and authorization services for use with Spree | ||
|
||
|
||
Overview | ||
-------- | ||
|
||
This gem provides the so-called "core" functionality of Spree and is a requirement for any Spree application or | ||
store. The basic data models as well as product catalog and admin functionality are all provided by this gem. | ||
|
||
|
||
Security Warning | ||
---------------- | ||
|
||
*This gem provides absolutely no authentication and authorization. You are strongly encouraged to install | ||
and use the spree-auth gem in addition to spree-core in order to restrict access to orders and other admin | ||
functionality.* | ||
|
||
|
||
Testing | ||
------- | ||
|
||
You need to do a quick one-time creation of a test application and then you can use it to run the tests. | ||
|
||
bundle exec rake test_app | ||
|
||
Then run the rspec tests | ||
|
||
bundle exec rake spec | ||
|
||
Misc | ||
---- | ||
|
||
authentication by token example | ||
|
||
http://localhost:3000/?auth_token=oWBSN16k6dWx46TtSGcp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
require 'rubygems' | ||
require 'rake' | ||
require 'rake/testtask' | ||
require 'rake/packagetask' | ||
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_auth.gemspec')) | ||
|
||
Gem::PackageTask.new(spec) do |p| | ||
p.gem_spec = spec | ||
end | ||
|
||
desc 'Release to gemcutter' | ||
task :release do | ||
version = File.read(File.expand_path('../../SPREE_VERSION', __FILE__)).strip | ||
cmd = "cd pkg && gem push spree_auth-#{version}.gem"; puts cmd; system cmd | ||
end | ||
|
||
desc 'Generates a dummy app for testing' | ||
task :test_app do | ||
ENV['LIB_NAME'] = 'spree/auth' | ||
Rake::Task['common:test_app'].invoke | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
//= require admin/spree_core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
//= require store/spree_core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/* | ||
*= require admin/spree_core | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/* | ||
*= require store/spree_core | ||
*/ |
Oops, something went wrong.