solidus_backend 2.2.0.beta1 → 2.2.0.rc1

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: 8f80d171de4d00d83aaab31e8a5bf414441b3865
4
- data.tar.gz: b76fb58babd20d169eb08cd4c77ee2b4c4d1ada6
3
+ metadata.gz: 2969081da681633c7dce7e1676d7afcd84a2e42d
4
+ data.tar.gz: ef72fedc9a55167bf7049a8e0fe8e0e7a5c4df5b
5
5
  SHA512:
6
- metadata.gz: ba210fac2ddf64b2a27a254fe37f58f83eaf0a250bea67000031ea992b639fa96bdb9433aca11001b98b29243444671e0a227b1bcf71d7ba926fdcdeda0fd450
7
- data.tar.gz: 95ae582a3e69cdfdbe8da3c4e3ef68c0e2c3a74b3159de70a30f99737e94db51eee75e6bf43256e555c899befee32ee483bd89fabca3a1d53311e9e7faee0582
6
+ metadata.gz: 2349ac38e3b884ed73c1581492fa4c0419dbcbb73e386bcb7b585e8aa666a9358de0bdf7a14c5f4539b736048f85b1d531dfe4cd62b47d3c5ea23d78deea4fef
7
+ data.tar.gz: c8b9346af0a568d128df9af94a98d9a7606bad333aa6fb9b0028c54c5a288a15c26d20bfd76ddf8628ef8677ec56999b65947d9a2f5520ea15b262c3272613ce
@@ -1,13 +1,13 @@
1
1
  body:not(.new-layout) #sidebar {
2
2
  overflow: visible;
3
- border-top: 1px solid $color-border;
4
- margin-top: 17px;
3
+ margin-top: 1.5rem;
5
4
 
6
5
  .sidebar-title {
7
6
  color: $color-2;
8
7
  text-align: center;
9
8
  font-size: 16px;
10
9
  font-weight: $font-weight-bold;
10
+ border-top: 1px solid $color-border;
11
11
 
12
12
  > span {
13
13
  display: inline;
@@ -1,6 +1,10 @@
1
1
  #table-filter {
2
2
 
3
- .field {
3
+ /* This is needed to avoid overriding the bootstrap's styles for
4
+ * .input-group, which sets the form-control's width to 1%.
5
+ * Without this, the date range overflows its container on firefox.
6
+ */
7
+ .field:not(.date-range-filter) {
4
8
  input[type="text"], input[type="phone"],
5
9
  input[type="email"], input[type="number"],
6
10
  input[type="url"] {
@@ -62,7 +62,6 @@ dl {
62
62
  float: left;
63
63
  line-height: 16px;
64
64
  padding: 5px;
65
- text-align: justify;
66
65
  }
67
66
 
68
67
  dt {
@@ -98,7 +98,7 @@ module Spree
98
98
  else
99
99
  @order.contents.advance
100
100
 
101
- if @order.confirm?
101
+ if @order.can_complete?
102
102
  flash[:success] = Spree.t('order_ready_for_confirm')
103
103
  else
104
104
  flash[:error] = @order.errors.full_messages
@@ -111,7 +111,7 @@ module Spree
111
111
  def confirm
112
112
  if @order.completed?
113
113
  redirect_to edit_admin_order_url(@order)
114
- elsif !@order.confirm?
114
+ elsif !@order.can_complete?
115
115
  render template: 'spree/admin/orders/confirm_advance'
116
116
  end
117
117
  end
@@ -1,6 +1,6 @@
1
1
  <%= paginator.render do %>
2
- <nav class="text-xs-center">
3
- <ul class="pagination">
2
+ <nav>
3
+ <ul class="pagination justify-content-center">
4
4
  <%= first_page_tag unless current_page.first? %>
5
5
  <%= prev_page_tag unless current_page.first? %>
6
6
  <% each_page do |page| %>
@@ -163,7 +163,7 @@ describe Spree::Admin::OrdersController, type: :controller do
163
163
  end
164
164
 
165
165
  context 'when successful' do
166
- before { allow(order).to receive(:confirm?).and_return(true) }
166
+ before { allow(order).to receive(:can_complete?).and_return(true) }
167
167
 
168
168
  it 'messages and redirects' do
169
169
  subject
@@ -174,7 +174,7 @@ describe Spree::Admin::OrdersController, type: :controller do
174
174
 
175
175
  context 'when unsuccessful' do
176
176
  before do
177
- allow(order).to receive(:confirm?).and_return(false)
177
+ allow(order).to receive(:can_complete?).and_return(false)
178
178
  allow(order).to receive(:errors).and_return(double(full_messages: ['failed']))
179
179
  end
180
180
 
@@ -203,7 +203,7 @@ describe Spree::Admin::OrdersController, type: :controller do
203
203
  end
204
204
 
205
205
  context 'when in confirm' do
206
- before { allow(order).to receive_messages completed?: false, confirm?: true }
206
+ before { allow(order).to receive_messages completed?: false, can_complete?: true }
207
207
 
208
208
  it 'renders the confirm page' do
209
209
  subject
@@ -213,7 +213,7 @@ describe Spree::Admin::OrdersController, type: :controller do
213
213
  end
214
214
 
215
215
  context 'when before confirm' do
216
- before { allow(order).to receive_messages completed?: false, confirm?: false }
216
+ before { allow(order).to receive_messages completed?: false, can_complete?: false }
217
217
 
218
218
  it 'renders the confirm_advance template (to allow refreshing of the order)' do
219
219
  subject
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: 2.2.0.beta1
4
+ version: 2.2.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-11 00:00:00.000000000 Z
11
+ date: 2017-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_api
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.0.beta1
19
+ version: 2.2.0.rc1
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.2.0.beta1
26
+ version: 2.2.0.rc1
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: 2.2.0.beta1
33
+ version: 2.2.0.rc1
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.2.0.beta1
40
+ version: 2.2.0.rc1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sass-rails
43
43
  requirement: !ruby/object:Gem::Requirement