solidus_backend 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of solidus_backend might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 06989a896502698f667c9003187bae8aaaa01d44
4
- data.tar.gz: f1804fb9406cc68260ab5630bec3bac3217cbe79
3
+ metadata.gz: 06d6b1de7edd33beb1e425946b6368e3b804bd7b
4
+ data.tar.gz: 0e87d015e40b26ed474a0df0ce5b98dc4c12c0e1
5
5
  SHA512:
6
- metadata.gz: 4df80190b2cab7f56d803c754e55901f88dc314024e9256b5113f0641e2df1a700b5bcbe345b2a0c10b70485229d976f47958a5b13fe569af6b17bb92de2e22c
7
- data.tar.gz: 83fefa9cbf10943d2a68b2f0872f5515c7d175023ebaeaecad97092553ac442ce49f478d492783ab1e6fb23cfafdf797b024ac4471221707f22d754207c4167b
6
+ metadata.gz: 2a351cd2e1752f8bbe4660638e2cb4e14049c4b593f51ac1e435bab322375e699f5b43381347ad88b5fb06f5b1d1a8169433a7f676c06bfe62190932fc546960
7
+ data.tar.gz: 8632a4e4621c2ceacca0f756db80904f96dcedc37d05bb12c342d89d6a9b4f2336641ec0152291f3ab5c921e3e3395a7e15a26cd94e61568e37a934453d5f256
@@ -82,7 +82,7 @@ module Spree
82
82
  end
83
83
 
84
84
  def render_after_create_error
85
- load_stock_locations
85
+ load_source_stock_locations
86
86
  super
87
87
  end
88
88
 
data/lib/spree/backend.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  require 'rails/all'
2
2
  require 'jquery-rails'
3
3
  require 'jquery-ui-rails'
4
+ require 'coffee-rails'
5
+ require 'sass-rails'
4
6
  require 'bourbon'
5
7
  require 'select2-rails'
6
8
  require 'handlebars_assets'
@@ -21,6 +21,8 @@ Gem::Specification.new do |s|
21
21
  s.add_dependency 'solidus_api', s.version
22
22
  s.add_dependency 'solidus_core', s.version
23
23
 
24
+ s.add_dependency 'sass-rails'
25
+ s.add_dependency 'coffee-rails'
24
26
  s.add_dependency 'bourbon', '>= 4', '< 6'
25
27
  s.add_dependency 'jquery-rails'
26
28
  s.add_dependency 'jquery-ui-rails', '~> 5.0.0'
@@ -96,6 +96,18 @@ module Spree
96
96
  expect(assigns(:stock_transfer).created_by).to eq(user)
97
97
  end
98
98
  end
99
+
100
+ # Regression spec for Solidus issue #1087
101
+ context "missing source_stock_location parameter" do
102
+ subject do
103
+ spree_post :create, stock_transfer: { source_location_id: nil, description: nil }
104
+ end
105
+
106
+ it "sets a flash error" do
107
+ subject
108
+ expect(flash[:error]).to eq assigns(:stock_transfer).errors.full_messages.join(', ')
109
+ end
110
+ end
99
111
  end
100
112
 
101
113
  context "#receive" do
@@ -31,6 +31,17 @@ describe 'Stock Transfers', :type => :feature, :js => true do
31
31
  expect(page).to have_css(:div, '#finalize-stock-transfer-warning')
32
32
  expect(page).to have_content("NY")
33
33
  end
34
+
35
+ # Regression spec for Solidus issue #1087
36
+ it 'displays an error if no source location is selected' do
37
+ create(:stock_location_with_items, name: 'NY')
38
+ create(:stock_location, name: 'SF')
39
+ visit spree.new_admin_stock_transfer_path
40
+ fill_in 'stock_transfer_description', with: description
41
+ click_button 'Continue'
42
+
43
+ expect(page).to have_content("Source location can't be blank")
44
+ end
34
45
  end
35
46
 
36
47
  describe 'view a stock transfer' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-07 00:00:00.000000000 Z
11
+ date: 2017-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_api
@@ -16,28 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.2.2
19
+ version: 1.2.3
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: 1.2.2
26
+ version: 1.2.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: solidus_core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 1.2.2
33
+ version: 1.2.3
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: 1.2.2
40
+ version: 1.2.3
41
+ - !ruby/object:Gem::Dependency
42
+ name: sass-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: coffee-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: bourbon
43
71
  requirement: !ruby/object:Gem::Requirement
@@ -754,7 +782,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
754
782
  requirements:
755
783
  - none
756
784
  rubyforge_project: solidus_backend
757
- rubygems_version: 2.5.1
785
+ rubygems_version: 2.6.11
758
786
  signing_key:
759
787
  specification_version: 4
760
788
  summary: Admin interface for the Solidus e-commerce framework.