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: ca60c81bcc12f940c52c14e9135831a1fd6097df
4
- data.tar.gz: dc67ec071b77a0218e9c6665a2a70a8810fc5026
3
+ metadata.gz: 6d62a6c8025e5f5ad3e2bf25470ba71f2749cfac
4
+ data.tar.gz: b943bcb7dc7563d8fd34a410681a08bdbdf841f0
5
5
  SHA512:
6
- metadata.gz: 289766e8ce27fda36203640ce61ef1ce39fe9aaf1fd0608d72d8f5b940e3fd9bf232a0473e8a8a4ca0b4d0bb87fa461cc5c34e3a666f00e08947c06f188107d7
7
- data.tar.gz: fdcc83e8290f82c5306985fc75f665ae3027889a9eed9308ba639ec11f0191877ca7fc77b64bedb27a6c4d110f11996a2a2014d5d6bbbc9eb4f67927aa11e721
6
+ metadata.gz: bdd695998f2ba3f21254400bf8e45fc3a3e42db307aafb5d095d81f4ce11479376bf36fcf4547246e23990494fe4b268d67e896d0b67222679d5294722f1bbeb
7
+ data.tar.gz: 37d9251da191bff7c922351659202fd45c07ca41dfcc076b477e60ba96e567fe56f7115e60b6882c547ce92b1bccb6ddb608fd7869ec75f8da1ba7ddd58b611b
data/Gemfile CHANGED
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ gem 'spree_auth_devise', :git => "git://github.com/spree/spree_auth_devise", :branch => '2-2-stable'
3
4
  gemspec
4
5
 
5
6
  gem 'deface'
@@ -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 'app/assets/javascripts/store/all.js', "//= require store/spree_quick_cart\n"
9
- # append_file 'app/assets/javascripts/admin/all.js', "//= require admin/spree_quick_cart\n"
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 'app/assets/stylesheets/store/all.css', " *= require store/spree_quick_cart\n", :before => /\*\//, :verbose => true
14
- # inject_into_file 'app/assets/stylesheets/admin/all.css', " *= require admin/spree_quick_cart\n", :before => /\*\//, :verbose => true
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
@@ -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.1'
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'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_quick_cart
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francisco Trindade