spree_ajax_add_to_cart 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +14 -0
- data/.rspec +1 -0
- data/.travis.yml +13 -0
- data/Gemfile +6 -0
- data/LICENSE +26 -0
- data/README.md +57 -0
- data/Rakefile +15 -0
- data/Versionfile +11 -0
- data/app/assets/javascripts/admin/spree_ajax_add_to_cart.js +1 -0
- data/app/assets/javascripts/store/spree_ajax_add_to_cart.js +1 -0
- data/app/assets/stylesheets/admin/spree_ajax_add_to_cart.css +3 -0
- data/app/assets/stylesheets/store/spree_ajax_add_to_cart.css +3 -0
- data/app/controllers/spree/orders_controller_decorator.rb +3 -0
- data/app/overrides/ajax_cart_form.rb +4 -0
- data/app/views/spree/orders/populate.js.coffee +1 -0
- data/app/views/spree/orders/populate.js.erb +1 -0
- data/config/locales/en.yml +5 -0
- data/config/routes.rb +3 -0
- data/lib/generators/spree_ajax_add_to_cart/install/install_generator.rb +21 -0
- data/lib/spree_ajax_add_to_cart.rb +2 -0
- data/lib/spree_ajax_add_to_cart/engine.rb +22 -0
- data/lib/spree_ajax_add_to_cart/factories.rb +6 -0
- data/script/rails +7 -0
- data/spec/controllers/orders_controller_spec.rb +17 -0
- data/spec/requests/order_spec.rb +20 -0
- data/spec/spec_helper.rb +67 -0
- data/spree_ajax_add_to_cart.gemspec +31 -0
- metadata +254 -0
data/.gitignore
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
Copyright (c) 2013 [name of plugin creator]
|
2
|
+
All rights reserved.
|
3
|
+
|
4
|
+
Redistribution and use in source and binary forms, with or without modification,
|
5
|
+
are permitted provided that the following conditions are met:
|
6
|
+
|
7
|
+
* Redistributions of source code must retain the above copyright notice,
|
8
|
+
this list of conditions and the following disclaimer.
|
9
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
10
|
+
this list of conditions and the following disclaimer in the documentation
|
11
|
+
and/or other materials provided with the distribution.
|
12
|
+
* Neither the name Spree nor the names of its contributors may be used to
|
13
|
+
endorse or promote products derived from this software without specific
|
14
|
+
prior written permission.
|
15
|
+
|
16
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
20
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
21
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
22
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
23
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
24
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
25
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
26
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/README.md
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
# Welcome to Spree Ajax Add To Cart
|
2
|
+
|
3
|
+
This extension ajxifies 'Add to Cart' button on product page. So, when a user click on 'Add to Cart' button, their "Cart" status will be updated from an ajax response.
|
4
|
+
|
5
|
+
[![Dependency Status](https://gemnasium.com/suryart/spree_ajax_add_to_cart.png)](https://gemnasium.com/suryart/spree_ajax_add_to_cart)
|
6
|
+
[![Build Status](https://travis-ci.org/suryart/spree_ajax_add_to_cart.png?branch=master)](https://travis-ci.org/suryart/spree_ajax_add_to_cart)
|
7
|
+
[![Code Climate](https://codeclimate.com/github/suryart/spree_ajax_add_to_cart.png)](https://codeclimate.com/github/suryart/spree_ajax_add_to_cart)
|
8
|
+
|
9
|
+
|
10
|
+
## INSTALLATION
|
11
|
+
|
12
|
+
### In a rails application with Spree installed include the following line in your Gemfile:
|
13
|
+
* Get the latest greatest from github:
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
gem 'spree_ajax_add_to_cart' , :git => 'git://github.com/suryart/spree_ajax_add_to_cart.git'
|
17
|
+
```
|
18
|
+
|
19
|
+
* Get the 1-3-stable branch for Spree 2.0.x from github:
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
gem 'spree_ajax_add_to_cart' , :git => 'git://github.com/suryart/spree_ajax_add_to_cart.git', :branch => '2-0-stable'
|
23
|
+
```
|
24
|
+
|
25
|
+
* Or get it from rubygems.org by mentioning the following line in your Gemfile:
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
gem 'spree_ajax_add_to_cart', '2.0.0'
|
29
|
+
```
|
30
|
+
|
31
|
+
### Then run the following commands:
|
32
|
+
|
33
|
+
$ bundle install
|
34
|
+
$ rails g spree_ajax_add_to_cart:install
|
35
|
+
$ rake db:migrate
|
36
|
+
$ rails s
|
37
|
+
|
38
|
+
## Testing
|
39
|
+
|
40
|
+
Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.
|
41
|
+
|
42
|
+
$ bundle
|
43
|
+
$ bundle exec rake test_app
|
44
|
+
$ bundle exec rspec spec
|
45
|
+
|
46
|
+
## Contributing
|
47
|
+
|
48
|
+
1. [Fork](https://help.github.com/articles/fork-a-repo) the project
|
49
|
+
2. Make one or more well commented and clean commits to the repository. You can make a new branch here if you are modifying more than one part or feature.
|
50
|
+
3. Add tests for it. This is important so I don’t break it in a future version unintentionally.
|
51
|
+
4. Perform a [pull request](https://help.github.com/articles/using-pull-requests) in github's web interface.
|
52
|
+
|
53
|
+
## NOTE
|
54
|
+
|
55
|
+
The current version supports Spree 2.0.0 or above. Older versions of Spree are unlikely to work, so attempt at your own risk.
|
56
|
+
|
57
|
+
Copyright (c) 2013 Surya Tripathi, released under the New BSD License
|
data/Rakefile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'bundler'
|
2
|
+
Bundler::GemHelper.install_tasks
|
3
|
+
|
4
|
+
require 'rspec/core/rake_task'
|
5
|
+
require 'spree/testing_support/extension_rake'
|
6
|
+
|
7
|
+
RSpec::Core::RakeTask.new
|
8
|
+
|
9
|
+
task :default => [:spec]
|
10
|
+
|
11
|
+
desc 'Generates a dummy app for testing'
|
12
|
+
task :test_app do
|
13
|
+
ENV['LIB_NAME'] = 'spree_ajax_add_to_cart'
|
14
|
+
Rake::Task['extension:test_app'].invoke
|
15
|
+
end
|
data/Versionfile
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# This file is used to designate compatibilty with different versions of Spree
|
2
|
+
# Please see http://spreecommerce.com/documentation/extensions.html#versionfile for details
|
3
|
+
|
4
|
+
# Examples
|
5
|
+
#
|
6
|
+
# '1.2.x' => { :branch => 'master' }
|
7
|
+
# '1.1.x' => { :branch => '1-1-stable' }
|
8
|
+
# '1.0.x' => { :branch => '1-0-stable' }
|
9
|
+
# '0.70.x' => { :branch => '0-70-stable' }
|
10
|
+
# '0.40.x' => { :tag => 'v1.0.0', :version => '1.0.0' }
|
11
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
//= require admin/spree_backend
|
@@ -0,0 +1 @@
|
|
1
|
+
//= require store/spree_frontend
|
@@ -0,0 +1,4 @@
|
|
1
|
+
Deface::Override.new(:virtual_path => 'spree/products/_cart_form',
|
2
|
+
:name => 'remote_cart_form',
|
3
|
+
:replace => "code[erb-loud]:contains('form_for :order, :url => populate_orders_path do |f|')",
|
4
|
+
:erb => "<%= form_for :order, :url => populate_orders_path, :remote => true do |f| %>")
|
@@ -0,0 +1 @@
|
|
1
|
+
($ '#link-to-cart').html("<%= j(link_to_cart) %>")
|
@@ -0,0 +1 @@
|
|
1
|
+
$('#link-to-cart').html("<%= j(link_to_cart) %>");
|
data/config/routes.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
module SpreeAjaxAddToCart
|
2
|
+
module Generators
|
3
|
+
class InstallGenerator < Rails::Generators::Base
|
4
|
+
|
5
|
+
class_option :auto_run_migrations, :type => :boolean, :default => false
|
6
|
+
|
7
|
+
def add_migrations
|
8
|
+
run 'bundle exec rake railties:install:migrations FROM=spree_ajax_add_to_cart'
|
9
|
+
end
|
10
|
+
|
11
|
+
def run_migrations
|
12
|
+
run_migrations = options[:auto_run_migrations] || ['', 'y', 'Y'].include?(ask 'Would you like to run the migrations now? [Y/n]')
|
13
|
+
if run_migrations
|
14
|
+
run 'bundle exec rake db:migrate'
|
15
|
+
else
|
16
|
+
puts 'Skipping rake db:migrate, don\'t forget to run it!'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module SpreeAjaxAddToCart
|
2
|
+
class Engine < Rails::Engine
|
3
|
+
require 'spree/core'
|
4
|
+
isolate_namespace Spree
|
5
|
+
engine_name 'spree_ajax_add_to_cart'
|
6
|
+
|
7
|
+
config.autoload_paths += %W(#{config.root}/lib)
|
8
|
+
|
9
|
+
# use rspec for tests
|
10
|
+
config.generators do |g|
|
11
|
+
g.test_framework :rspec
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.activate
|
15
|
+
Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c|
|
16
|
+
Rails.configuration.cache_classes ? require(c) : load(c)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
config.to_prepare &method(:activate).to_proc
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
# Define your Spree extensions Factories within this file to enable applications, and other extensions to use and override them.
|
3
|
+
#
|
4
|
+
# Example adding this to your spec_helper will load these Factories for use:
|
5
|
+
# require 'spree_ajax_add_to_cart/factories'
|
6
|
+
end
|
data/script/rails
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
2
|
+
|
3
|
+
ENGINE_ROOT = File.expand_path('../..', __FILE__)
|
4
|
+
ENGINE_PATH = File.expand_path('../../lib/spree_ajax_add_to_cart/engine', __FILE__)
|
5
|
+
|
6
|
+
require 'rails/all'
|
7
|
+
require 'rails/engine/commands'
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Spree::OrdersController do
|
4
|
+
let(:user) { create(:user) }
|
5
|
+
let(:order) { Spree::Order.new }
|
6
|
+
|
7
|
+
before do
|
8
|
+
controller.stub(:try_spree_current_user => user)
|
9
|
+
end
|
10
|
+
|
11
|
+
context '#populate' do
|
12
|
+
it 'should ajax post correctly' do
|
13
|
+
spree_post :populate, :format => :js
|
14
|
+
assert_response :success
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Orders' do
|
4
|
+
let!(:product) { create(:product, :available_on => 1.day.ago) }
|
5
|
+
|
6
|
+
stub_authorization!
|
7
|
+
|
8
|
+
it 'should allow a user to add product to cart with ajax', :js => true do
|
9
|
+
|
10
|
+
visit spree.root_path
|
11
|
+
click_link product.name
|
12
|
+
|
13
|
+
expect(find('.product-title').text).to eq(product.name)
|
14
|
+
|
15
|
+
click_button 'Add To Cart'
|
16
|
+
sleep(2)
|
17
|
+
|
18
|
+
expect(find('#link-to-cart a').text).to eq("#{Spree.t(:cart).upcase}: (1) $#{product.price}")
|
19
|
+
end
|
20
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV['RAILS_ENV'] = 'test'
|
3
|
+
|
4
|
+
require File.expand_path('../dummy/config/environment.rb', __FILE__)
|
5
|
+
|
6
|
+
require 'rspec/rails'
|
7
|
+
require 'database_cleaner'
|
8
|
+
|
9
|
+
require 'ffaker'
|
10
|
+
require 'factory_girl'
|
11
|
+
|
12
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
13
|
+
# in spec/support/ and its subdirectories.
|
14
|
+
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }
|
15
|
+
|
16
|
+
# Requires factories defined in spree_core
|
17
|
+
require 'spree/testing_support/factories'
|
18
|
+
require 'spree/testing_support/controller_requests'
|
19
|
+
require 'spree/testing_support/authorization_helpers'
|
20
|
+
require 'spree/testing_support/url_helpers'
|
21
|
+
|
22
|
+
RSpec.configure do |config|
|
23
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
24
|
+
# examples within a transaction, comment the following line or assign false
|
25
|
+
# instead of true.
|
26
|
+
config.use_transactional_fixtures = false
|
27
|
+
|
28
|
+
config.before(:each) do
|
29
|
+
if example.metadata[:js]
|
30
|
+
DatabaseCleaner.strategy = :truncation
|
31
|
+
else
|
32
|
+
DatabaseCleaner.strategy = :transaction
|
33
|
+
end
|
34
|
+
DatabaseCleaner.start
|
35
|
+
reset_spree_preferences
|
36
|
+
end
|
37
|
+
|
38
|
+
config.after(:each) do
|
39
|
+
DatabaseCleaner.clean
|
40
|
+
end
|
41
|
+
|
42
|
+
config.include FactoryGirl::Syntax::Methods
|
43
|
+
|
44
|
+
# == URL Helpers
|
45
|
+
#
|
46
|
+
# Allows access to Spree's routes in specs:
|
47
|
+
#
|
48
|
+
# visit spree.admin_path
|
49
|
+
# current_path.should eql(spree.products_path)
|
50
|
+
config.include Spree::TestingSupport::UrlHelpers
|
51
|
+
config.include Spree::TestingSupport::ControllerRequests
|
52
|
+
config.include Spree::TestingSupport::Preferences
|
53
|
+
config.include Spree::TestingSupport::Flash
|
54
|
+
config.include Capybara::DSL
|
55
|
+
|
56
|
+
# == Mock Framework
|
57
|
+
#
|
58
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
59
|
+
#
|
60
|
+
# config.mock_with :mocha
|
61
|
+
# config.mock_with :flexmock
|
62
|
+
# config.mock_with :rr
|
63
|
+
config.mock_with :rspec
|
64
|
+
|
65
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
66
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
67
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
Gem::Specification.new do |s|
|
3
|
+
s.platform = Gem::Platform::RUBY
|
4
|
+
s.name = 'spree_ajax_add_to_cart'
|
5
|
+
s.version = '2.0.0'
|
6
|
+
s.summary = 'Spree AJAX Add to Cart extension'
|
7
|
+
s.description = 'When the user adds an item to the cart the system will make an Ajax call to add the item to the cart. Once the item has been added the cart details in the header is updated and an alert box displayed informing the user that the item was added.'
|
8
|
+
s.required_ruby_version = '>= 1.9.3'
|
9
|
+
|
10
|
+
s.author = 'Trung Lê'
|
11
|
+
s.email = 'joneslee85@gmail.com'
|
12
|
+
s.homepage = 'http://github.com/suryart/spree_ajax_add_to_cart'
|
13
|
+
|
14
|
+
s.files = `git ls-files`.split("\n")
|
15
|
+
s.test_files = `git ls-files -- {spec}/*`.split("\n")
|
16
|
+
s.require_path = 'lib'
|
17
|
+
s.requirements << 'none'
|
18
|
+
|
19
|
+
s.add_dependency 'spree_core', '~> 2.0.0'
|
20
|
+
|
21
|
+
s.add_development_dependency 'capybara', '~> 2.1'
|
22
|
+
s.add_development_dependency 'coffee-rails'
|
23
|
+
s.add_development_dependency 'database_cleaner'
|
24
|
+
s.add_development_dependency 'factory_girl', '~> 4.2'
|
25
|
+
s.add_development_dependency 'ffaker'
|
26
|
+
s.add_development_dependency 'rspec-rails', '~> 2.13'
|
27
|
+
s.add_development_dependency 'sass-rails'
|
28
|
+
s.add_development_dependency 'selenium-webdriver'
|
29
|
+
s.add_development_dependency 'simplecov'
|
30
|
+
s.add_development_dependency 'sqlite3'
|
31
|
+
end
|
metadata
ADDED
@@ -0,0 +1,254 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: spree_ajax_add_to_cart
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Trung Lê
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-07-04 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: spree_core
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.0.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.0.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: capybara
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '2.1'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '2.1'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: coffee-rails
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: database_cleaner
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: factory_girl
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '4.2'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '4.2'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: ffaker
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: rspec-rails
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '2.13'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '2.13'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: sass-rails
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: selenium-webdriver
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: simplecov
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
- !ruby/object:Gem::Dependency
|
175
|
+
name: sqlite3
|
176
|
+
requirement: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
178
|
+
requirements:
|
179
|
+
- - ! '>='
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
type: :development
|
183
|
+
prerelease: false
|
184
|
+
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
186
|
+
requirements:
|
187
|
+
- - ! '>='
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
description: When the user adds an item to the cart the system will make an Ajax call
|
191
|
+
to add the item to the cart. Once the item has been added the cart details in the
|
192
|
+
header is updated and an alert box displayed informing the user that the item was
|
193
|
+
added.
|
194
|
+
email: joneslee85@gmail.com
|
195
|
+
executables: []
|
196
|
+
extensions: []
|
197
|
+
extra_rdoc_files: []
|
198
|
+
files:
|
199
|
+
- .gitignore
|
200
|
+
- .rspec
|
201
|
+
- .travis.yml
|
202
|
+
- Gemfile
|
203
|
+
- LICENSE
|
204
|
+
- README.md
|
205
|
+
- Rakefile
|
206
|
+
- Versionfile
|
207
|
+
- app/assets/javascripts/admin/spree_ajax_add_to_cart.js
|
208
|
+
- app/assets/javascripts/store/spree_ajax_add_to_cart.js
|
209
|
+
- app/assets/stylesheets/admin/spree_ajax_add_to_cart.css
|
210
|
+
- app/assets/stylesheets/store/spree_ajax_add_to_cart.css
|
211
|
+
- app/controllers/spree/orders_controller_decorator.rb
|
212
|
+
- app/overrides/ajax_cart_form.rb
|
213
|
+
- app/views/spree/orders/populate.js.coffee
|
214
|
+
- app/views/spree/orders/populate.js.erb
|
215
|
+
- config/locales/en.yml
|
216
|
+
- config/routes.rb
|
217
|
+
- lib/generators/spree_ajax_add_to_cart/install/install_generator.rb
|
218
|
+
- lib/spree_ajax_add_to_cart.rb
|
219
|
+
- lib/spree_ajax_add_to_cart/engine.rb
|
220
|
+
- lib/spree_ajax_add_to_cart/factories.rb
|
221
|
+
- script/rails
|
222
|
+
- spec/controllers/orders_controller_spec.rb
|
223
|
+
- spec/requests/order_spec.rb
|
224
|
+
- spec/spec_helper.rb
|
225
|
+
- spree_ajax_add_to_cart.gemspec
|
226
|
+
homepage: http://github.com/suryart/spree_ajax_add_to_cart
|
227
|
+
licenses: []
|
228
|
+
post_install_message:
|
229
|
+
rdoc_options: []
|
230
|
+
require_paths:
|
231
|
+
- lib
|
232
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
233
|
+
none: false
|
234
|
+
requirements:
|
235
|
+
- - ! '>='
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
version: 1.9.3
|
238
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
239
|
+
none: false
|
240
|
+
requirements:
|
241
|
+
- - ! '>='
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
segments:
|
245
|
+
- 0
|
246
|
+
hash: 401721668492262554
|
247
|
+
requirements:
|
248
|
+
- none
|
249
|
+
rubyforge_project:
|
250
|
+
rubygems_version: 1.8.24
|
251
|
+
signing_key:
|
252
|
+
specification_version: 3
|
253
|
+
summary: Spree AJAX Add to Cart extension
|
254
|
+
test_files: []
|