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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2769f1a139c768e7a80e195b700f92254588b2ea
4
- data.tar.gz: 637fdc17b18e280f718b9711ebe89b3c653882cf
3
+ metadata.gz: ca60c81bcc12f940c52c14e9135831a1fd6097df
4
+ data.tar.gz: dc67ec071b77a0218e9c6665a2a70a8810fc5026
5
5
  SHA512:
6
- metadata.gz: ce897ff76a45007ba80ed1b9575830bf9af1bd519378cfb1324e52e3646def4a2520594ecd8b5125ee773615a301734f2e281fc92e08836c338dc23b3d5a24f2
7
- data.tar.gz: 5f77a5e92062d4d63d9665603c30b6b948d537efb82489fbd9ca5f92445b3f92bb70251db2db70d3ec5b17e38ed05b9eca1631c5915e56e43c6f5d0ce98d50d1
6
+ metadata.gz: 289766e8ce27fda36203640ce61ef1ce39fe9aaf1fd0608d72d8f5b940e3fd9bf232a0473e8a8a4ca0b4d0bb87fa461cc5c34e3a666f00e08947c06f188107d7
7
+ data.tar.gz: fdcc83e8290f82c5306985fc75f665ae3027889a9eed9308ba639ec11f0191877ca7fc77b64bedb27a6c4d110f11996a2a2014d5d6bbbc9eb4f67927aa11e721
@@ -0,0 +1,3 @@
1
+ //= require jquery
2
+ //= require spree/frontend
3
+ //= require spree/frontend/quick_cart
@@ -0,0 +1,4 @@
1
+ /*
2
+ *= require spree/frontend
3
+ *= require spree/frontend/quick_cart
4
+ */
@@ -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 }
@@ -1,5 +1,5 @@
1
1
  .quick-add-to-cart-form
2
- - order = current_order(true)
2
+ - order = current_order(create_order_if_necessary: true)
3
3
  %span.current-order-path(style="display:none")
4
4
  = api_current_order_path
5
5
  = form_tag api_order_line_items_path(order.number), method: :post do
@@ -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
- Spree::Order.should_receive(:find).and_return current_order
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
@@ -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.13'
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.3'
19
- s.add_dependency 'spree_frontend', '~> 2.1.3'
20
- s.add_dependency 'spree_backend', '~> 2.1.3'
21
- s.add_dependency 'spree_api', '~> 2.1.3'
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.13
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-03-25 00:00:00.000000000 Z
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.3
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.3
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.3
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.3
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.3
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.3
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.3
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.3
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/store/quick_cart.js
222
- - app/assets/javascripts/store/spree_quick_cart.js
223
- - app/assets/stylesheets/store/quick_cart.scss
224
- - app/assets/stylesheets/store/spree_quick_cart.css
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
@@ -1,3 +0,0 @@
1
- //= require jquery
2
- //= require store/spree_frontend
3
- //= require store/quick_cart
@@ -1,4 +0,0 @@
1
- /*
2
- *= require store/spree_frontend
3
- *= require store/quick_cart
4
- */