spree_quick_cart 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d62a6c8025e5f5ad3e2bf25470ba71f2749cfac
|
4
|
+
data.tar.gz: b943bcb7dc7563d8fd34a410681a08bdbdf841f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdd695998f2ba3f21254400bf8e45fc3a3e42db307aafb5d095d81f4ce11479376bf36fcf4547246e23990494fe4b268d67e896d0b67222679d5294722f1bbeb
|
7
|
+
data.tar.gz: 37d9251da191bff7c922351659202fd45c07ca41dfcc076b477e60ba96e567fe56f7115e60b6882c547ce92b1bccb6ddb608fd7869ec75f8da1ba7ddd58b611b
|
data/Gemfile
CHANGED
@@ -5,13 +5,13 @@ module SpreeQuickCart
|
|
5
5
|
class_option :auto_run_migrations, :type => :boolean, :default => false
|
6
6
|
|
7
7
|
def add_javascripts
|
8
|
-
append_file '
|
9
|
-
# append_file '
|
8
|
+
append_file 'vendor/assets/javascripts/spree/frontend/all.js', "//= require spree/frontend/spree_quick_cart\n"
|
9
|
+
# append_file 'vendor/assets/javascripts/spree/backend/all.js', "//= require spree/backend/spree_quick_cart\n"
|
10
10
|
end
|
11
11
|
|
12
12
|
def add_stylesheets
|
13
|
-
inject_into_file '
|
14
|
-
# inject_into_file '
|
13
|
+
inject_into_file 'vendor/assets/stylesheets/spree/frontend/all.css', " *= require spree/frontend/spree_quick_cart\n", :before => /\*\//, :verbose => true
|
14
|
+
# inject_into_file 'vendor/assets/stylesheets/spree/backend/all.css', " *= require spree/backend/spree_quick_cart\n", :before => /\*\//, :verbose => true
|
15
15
|
end
|
16
16
|
|
17
17
|
def add_migrations
|
@@ -2,6 +2,12 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe Spree::Api::OrdersController do
|
4
4
|
|
5
|
+
let(:user) { mock_model Spree::User, :last_incomplete_spree_order => nil, :has_spree_role? => true, :spree_api_key => 'fake' }
|
6
|
+
before :each do
|
7
|
+
controller.stub :spree_current_user => user
|
8
|
+
controller.stub :check_authorization
|
9
|
+
end
|
10
|
+
|
5
11
|
describe 'current' do
|
6
12
|
|
7
13
|
before :each do
|
@@ -20,7 +26,7 @@ describe Spree::Api::OrdersController do
|
|
20
26
|
|
21
27
|
it 'should return order in session' do
|
22
28
|
current_order = double(Spree::Order, id: 666)
|
23
|
-
controller.should_receive(:current_order)
|
29
|
+
controller.should_receive(:current_order).at_least(:once)
|
24
30
|
|
25
31
|
spree_get :current, format: :json
|
26
32
|
end
|
data/spree_quick_cart.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.platform = Gem::Platform::RUBY
|
4
4
|
s.name = 'spree_quick_cart'
|
5
|
-
s.version = '2.2.
|
5
|
+
s.version = '2.2.2'
|
6
6
|
s.summary = 'Insert add to cart button in product index page'
|
7
7
|
s.description = 'Adds js quick add to cart button to product catalogue'
|
8
8
|
s.required_ruby_version = '>= 2.0.0'
|