caboose-cms 0.5.96 → 0.5.97

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
- ZjJiNmUzMTc0YmZhY2VjZTRjY2VjMzA1MzYyNTYzMDQ2ZjFkMzczNw==
4
+ NDg1ZWE4OWMwYTllNDhmMjk0OGRiNjc1NWVhMzFlZWQ4YzgzMDk0Mw==
5
5
  data.tar.gz: !binary |-
6
- ZDcyOTc3ZGQ3Nzk3ZDM3OTJhYmMwZTZkMGM4MjgzYjYyMjUyOTg5YQ==
6
+ ZmVmOTA0MjU4Y2NhYWRiMDYzODdjMGExN2RmMDYzMjc3Mjc1ZmQ4Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWFjODJjNjM0OWEzMjljNmIwZDAyNDc4ODA4YWIyZDc1YTE2OWQ0MTI1YzM2
10
- MTk1NTZmMDE4NzhkNjMzMmY2ZGYxMjYyNjExMmJmNDVkZWUxZDBhMzI2NGRj
11
- Y2JhNmE5MTdmNDQyYzQxMDYwNjlkZGM3NzNmMzkyNzQ0ZDVmZmY=
9
+ ZGVlMjA5NjI2YjMzZmVkZTcwNDQ5MmUwOTQ5MjMwZTYxMjYwODg4YzlhZDUx
10
+ Mzk0ZTk1ZjJmOGJmNWQwMTE2YjEzNDc4NTc1YTVmNzU1NTM3ZWFjNDIyMGM3
11
+ ZThlZjgzMDViODNiZjQwMDQ3NGU0OTQyMWMxMjVkNzk1MmNiOGQ=
12
12
  data.tar.gz: !binary |-
13
- ZDBhMjg2YzY3YTNmM2Y5MjM4OTdjMDM2NzQwZWY4YzhjMGQ3MGVhMjExMmZj
14
- ZmNhM2U2OTQ1MmVmZGIzMWMxMTg2NzNmY2E5ZTAzN2FkZmUxOTVjNzM4ZmVj
15
- ZDU1N2UxMmY1MjQ5ZjMyMzBmMGZmZjA4NTg5NDNlODVkYjgxZTk=
13
+ NjBmZTkwYmIxYTQ5ZDY1ZTk2YjNiMWJiZDgxZGUzZjk3YzM3NjRhNGM4OTE1
14
+ Njc1NTQ1MzI3NmE5OWRlZTQyNjA2ZjZiNGVlNWRiMzdlY2Y2ODE2MjRkZDI4
15
+ NTVhMTI0YzNlOTE5YTQyZTU5YmM4NzZjMmZhMjQ2OTlhMTA1MzA=
@@ -624,8 +624,8 @@ class Caboose::Schema < Caboose::Utilities::Schema
624
624
  [ :alternate_id , :string ],
625
625
  [ :sku , :string ],
626
626
  [ :barcode , :string ],
627
- [ :price , :numeric , :default => 0 ],
628
- [ :sale_price , :numeric , :default => 0 ],
627
+ [ :price , :numeric , :default => 0.00 ],
628
+ [ :sale_price , :numeric , :default => 0.00 ],
629
629
  [ :date_sale_starts , :datetime ],
630
630
  [ :date_sale_end , :datetime ],
631
631
  [ :available , :boolean ],
@@ -1,6 +1,7 @@
1
1
  <%
2
- checked = block.value.to_i
3
- checked = checked == 1 ? true : false
2
+ checked = block.value
3
+ checked = 0 if checked.nil?
4
+ checked = checked == 1 || checked == '1' ? true : false
4
5
  %>
5
6
  <% if editing %>
6
7
  <div id='block_<%= block.id %>'><%= raw block.block_type.description %> = <%= (checked ? "Yes" : "No") %></div>
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.96'
2
+ VERSION = '0.5.97'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.96
4
+ version: 0.5.97
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-10 00:00:00.000000000 Z
11
+ date: 2015-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg