spree_quick_cart 2.1.13 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/{store → spree/frontend}/quick_cart.js +0 -0
- data/app/assets/javascripts/spree/frontend/spree_quick_cart.js +3 -0
- data/app/assets/stylesheets/{store → spree/frontend}/quick_cart.scss +0 -0
- data/app/assets/stylesheets/spree/frontend/spree_quick_cart.css +4 -0
- data/app/views/spree/api/orders/current.rabl +0 -1
- data/app/views/spree/shared/_quick_cart_add_button.haml +1 -1
- data/spec/controllers/orders_controller_spec.rb +1 -4
- data/spree_quick_cart.gemspec +5 -5
- metadata +14 -14
- data/app/assets/javascripts/store/spree_quick_cart.js +0 -3
- data/app/assets/stylesheets/store/spree_quick_cart.css +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca60c81bcc12f940c52c14e9135831a1fd6097df
|
4
|
+
data.tar.gz: dc67ec071b77a0218e9c6665a2a70a8810fc5026
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 289766e8ce27fda36203640ce61ef1ce39fe9aaf1fd0608d72d8f5b940e3fd9bf232a0473e8a8a4ca0b4d0bb87fa461cc5c34e3a666f00e08947c06f188107d7
|
7
|
+
data.tar.gz: fdcc83e8290f82c5306985fc75f665ae3027889a9eed9308ba639ec11f0191877ca7fc77b64bedb27a6c4d110f11996a2a2014d5d6bbbc9eb4f67927aa11e721
|
File without changes
|
File without changes
|
@@ -3,7 +3,6 @@ object @current_order
|
|
3
3
|
attributes *order_attributes
|
4
4
|
node(:display_item_total) { |o| o.display_item_total.to_s }
|
5
5
|
node(:total_quantity) { |o| o.line_items.sum(:quantity) }
|
6
|
-
node(:display_tax_total) { |o| o.display_tax_total }
|
7
6
|
node(:display_total) { |o| o.display_total.to_s }
|
8
7
|
node(:display_ship_total) { |o| o.display_ship_total }
|
9
8
|
node(:token) { |o| o.token }
|
@@ -20,12 +20,9 @@ describe Spree::Api::OrdersController do
|
|
20
20
|
|
21
21
|
it 'should return order in session' do
|
22
22
|
current_order = double(Spree::Order, id: 666)
|
23
|
-
|
24
|
-
|
25
|
-
session.stub(:[]).with(:order_id).and_return 666
|
23
|
+
controller.should_receive(:current_order)
|
26
24
|
|
27
25
|
spree_get :current, format: :json
|
28
|
-
assigns(:current_order).should == current_order
|
29
26
|
end
|
30
27
|
|
31
28
|
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.1
|
5
|
+
s.version = '2.2.1'
|
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'
|
@@ -15,10 +15,10 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.require_path = 'lib'
|
16
16
|
s.requirements << 'none'
|
17
17
|
|
18
|
-
s.add_dependency 'spree_core', '~> 2.1
|
19
|
-
s.add_dependency 'spree_frontend', '~> 2.1
|
20
|
-
s.add_dependency 'spree_backend', '~> 2.1
|
21
|
-
s.add_dependency 'spree_api', '~> 2.1
|
18
|
+
s.add_dependency 'spree_core', '~> 2.2.1'
|
19
|
+
s.add_dependency 'spree_frontend', '~> 2.2.1'
|
20
|
+
s.add_dependency 'spree_backend', '~> 2.2.1'
|
21
|
+
s.add_dependency 'spree_api', '~> 2.2.1'
|
22
22
|
s.add_dependency 'rabl'
|
23
23
|
|
24
24
|
s.add_development_dependency 'capybara', '~> 2.1'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_quick_cart
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francisco Trindade
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spree_core
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.1
|
19
|
+
version: 2.2.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.1
|
26
|
+
version: 2.2.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: spree_frontend
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.1
|
33
|
+
version: 2.2.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.1
|
40
|
+
version: 2.2.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: spree_backend
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.1
|
47
|
+
version: 2.2.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 2.1
|
54
|
+
version: 2.2.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: spree_api
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.1
|
61
|
+
version: 2.2.1
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.1
|
68
|
+
version: 2.2.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rabl
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -218,10 +218,10 @@ files:
|
|
218
218
|
- LICENSE
|
219
219
|
- README.md
|
220
220
|
- Rakefile
|
221
|
-
- app/assets/javascripts/
|
222
|
-
- app/assets/javascripts/
|
223
|
-
- app/assets/stylesheets/
|
224
|
-
- app/assets/stylesheets/
|
221
|
+
- app/assets/javascripts/spree/frontend/quick_cart.js
|
222
|
+
- app/assets/javascripts/spree/frontend/spree_quick_cart.js
|
223
|
+
- app/assets/stylesheets/spree/frontend/quick_cart.scss
|
224
|
+
- app/assets/stylesheets/spree/frontend/spree_quick_cart.css
|
225
225
|
- app/controllers/spree/api/orders_controller_decorator.rb
|
226
226
|
- app/overrides/quick_cart_add_button.rb
|
227
227
|
- app/views/spree/api/base/current.rabl
|