caboose-store 0.0.22 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTE4N2M4ZWE4NjYwZDEzYzM2MmY3YTA5Y2ViNjc5ZjgwNWU5Yjc2MA==
4
+ NGExNTgzOTE1YTM2OTY5NzI1ZjQ0MWJhZDAzYzBmZWUzZmNhNGRmNg==
5
5
  data.tar.gz: !binary |-
6
- MWZmZmYzNzMyMjJjYjA4MWRjOTk2YTI3ZWNhYzllNDU4NzZlNGI0Yw==
6
+ YTFiZTIxNjlkN2FkYTU5Y2NhNmMwN2VhYTJiMTk2ZTlhZWU4MTg1MQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- Yjg2MzI2OThmMWM1OTk3MzkxMThiM2ZlODk4M2Y4OGVlOWIxMjE5YTM1YjQ2
10
- YWNhNzc0YWYzMmE3OTkzZmQzN2M2NWUyNzRhNTA5MjU4NGVkODM2MTk2MzM0
11
- MjY4YTk3MzNlOTE1YmY2Y2U0ZWQyM2JmYWY2MDU0N2RhZDZmY2Y=
9
+ MDVhY2MyMmJmY2Y5ZWM0NWVkZDBmN2QwMDExZTYyNjA3NWU2YjA2YjUzOTEz
10
+ MjQxZjA4MWY1NzMyNjRjYzhiOTAyNDFjYzhkZmRkYThlYjk0Y2QyMjdlZjFh
11
+ ZTE1Zjk5MzRlYWYyODYwZTI3N2VlN2U0NzliODVhN2FlNWRlMGI=
12
12
  data.tar.gz: !binary |-
13
- NDg1OTllZjE0MWJhMDY4MDAzMzA0MmU3MmI3NTFhYTcwMjRjNGQ4YzU4YTY4
14
- M2FkYmY0MTkzZmU3MGM0ZjVlZjIxNDE3YTc0MzdhY2FkMTI0MTg0NGE4NjU0
15
- NjZlZTI3ZTg4ZDliZjg4YzgyOTc0OWJlOTkzNDNjYjJiOWIwMDU=
13
+ YmMwMGI2MDVkODdmMjIxMmJlNWM1YjY0OTk1YmUyYmNmNmQwNzFjNWJlNDA0
14
+ ZDRkOTA0MWEzOWVjYzEzYTRjZDU2MGUyY2NhYzkzZDEzMmZlN2I2ZTY4ZjA5
15
+ NjFiN2Y5ZWMwNGU5NDNiZjlkNWJmZTM4YmNkOThkN2U1Y2Q1NDc=
@@ -56,7 +56,17 @@
56
56
  <% @orders.each do |order| %>
57
57
  <tr onclick="window.location='/admin/orders/<%= order.id %>';">
58
58
  <td><%= raw order.id %></td>
59
- <td><%= order.customer.nil? ? "Unknown" : "#{order.customer.first_name} #{order.customer.last_name}" %></td>
59
+ <td>
60
+ <% if order.customer.nil? %>
61
+ Unknown
62
+ <% else %>
63
+ <% if order.customer.first_name.strip.length > 0 %>
64
+ <%= order.customer.first_name %> <%= order.customer.last_name %>
65
+ <% else %>
66
+ Guest Customer
67
+ <% end %>
68
+ <% end %>
69
+ </td>
60
70
  <td><%= raw order.date_created %></td>
61
71
  <td align='right'><%= number_to_currency(order.total) %></td>
62
72
  <td><%= raw order.status %></td>
@@ -1,3 +1,3 @@
1
1
  module CabooseStore
2
- VERSION = '0.0.22'
2
+ VERSION = '0.0.23'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-20 00:00:00.000000000 Z
11
+ date: 2014-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: caboose-cms