caboose-cms 0.5.41 → 0.5.42

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
- MjUyMzA2NmM2MDFkZDAyY2ViZjc4NjAwOWQwZTFjYjQ2MWJhNGVmNQ==
4
+ Y2NmZDM4ZmQ0NDdjOTZlOTVhYWU3OTM5YjkyMTQwNTBlMGFjNDc2ZQ==
5
5
  data.tar.gz: !binary |-
6
- MjIwYjE1MmFiNTJkYmIxZmU1NWEyM2JhM2YwYjViNjM0NGYxYWVkNQ==
6
+ ZmZiNmI2MzI3MjUxZjUwMDIyZTJiN2Q5MDk2OTVlYjYzOTgxMDc5Mw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTZiZGY1NWY2ZDliZTVjMzA1NmMyOWFmOTQ4M2RjZTAzNzhmZmY0Y2Q2OGJj
10
- ODMzMjEzMGU1YjZhMjkzNDNjYTI2MmJhMWQwM2I5ZGQ5ZGYzZTg1ZGU3ZDkz
11
- Y2FjMGFkNGZhNjQ4ODc5ZmU2MjMzMWQ5MGY4NzA2OWI4YmU3ODA=
9
+ ODEwMjA4YzQxMzliM2M4NjdmZTk5NjE3NDlkMzQ5NTU4YzMwZjRhZThjZDlh
10
+ MTRiZWMzMDliM2U3MDkxNWI0YThjOTJkN2I0MTBlZWMzOWI4NGQzNjRlOTdk
11
+ MzYyYmE1ZjIxZTAxNzdkYzY1ZmM0ZmY5NjU0MzBhYTBkZjNlM2Y=
12
12
  data.tar.gz: !binary |-
13
- MGVlNTQwYWE5YmFhOWUwYmM1ZjgyYWU5MWFjM2MyNmIzNDBhNGIxMDQ3NGYw
14
- NDQxMjA2YTdjYjg1NzkwMTI3ODVmOGEyNzdiODNkNGJjZDk2MWM5OWM5YTNl
15
- YmExN2Y0ZmJiYmNhODE4ZjRiYTZkYzdkOTk2NDk2YTk3ZGVkOTg=
13
+ YzcwYTExZDdmMjBmMTgyMjExNWFlOWJkMWFhMzcwOGViNDQ1OWUxNTU5ZGE0
14
+ OWQ3ZmVkZDk5YzQxNDBiODgyYWI5OGRmMTJmZGVjMDg3YTJlZWU2MDM5MWQ1
15
+ NThhM2MyYTI0OTljZmY2MjU2OWE2ZjY2OGZmNzM0NjQyZmVhYWY=
@@ -8,7 +8,7 @@ module Caboose
8
8
  end
9
9
 
10
10
  # Make sure all pages are cached
11
- query = ["select id from pages where id not in (select distinct(page_id) from page_cache"]
11
+ query = ["select id from pages where id not in (select distinct(page_id) from page_cache)"]
12
12
  rows = ActiveRecord::Base.connection.execute(ActiveRecord::Base.send(:sanitize_sql_array, query))
13
13
  if rows
14
14
  rows.each{ |row| self.delay.cache(row['id']) }
@@ -97,7 +97,7 @@ module Caboose
97
97
  elsif File.file?("#{Caboose.root}/app/views/caboose/blocks/_#{bt.name}.html.erb" ) then f = "#{Caboose.root}/app/views/caboose/blocks/_#{bt.name}.html.erb"
98
98
  elsif File.file?("#{Caboose.root}/app/views/caboose/blocks/_#{bt.field_type}.html.erb" ) then f = "#{Caboose.root}/app/views/caboose/blocks/_#{bt.field_type}.html.erb"
99
99
  end
100
- f = File.read(f)
100
+ f = (f && f.to_s.strip.length > 0 ? File.read(f) : '')
101
101
  end
102
102
  f.gsub!(/block\.partial\((.*?),(.*?)\)/ , 'render :partial => \1')
103
103
  f.gsub!(/block\.render\((.*?),(.*?)\)/ , 'render_block_type(block, \1, page, view, controller_view_content, modal, empty_text, editing, css, js, csrf_meta_tags, csrf_meta_tags2, logged_in_user, site)')
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.41'
2
+ VERSION = '0.5.42'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.41
4
+ version: 0.5.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry