caboose-cms 0.5.226 → 0.5.227

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
- ZDk1Njg3ZjIwNTA4Y2YxNmI5NzI0NDYyYzVjNjEzYzkyYWNhNWI0Zg==
4
+ MjIwMjAxYTQzN2M3NTZiYjAxMzkxNDIzNzY0ZDBkNmMwNjkzOWFjYg==
5
5
  data.tar.gz: !binary |-
6
- MzMwZTcyYjYwMjg1NzQyN2IxZjRiMGNkOTJiOGE3YWUwMDgyOGRmNw==
6
+ YWFhZDRlOGU3YTMyNThkMGMxOTg3YTNmNGVlZGUxODEzNjA2YjZmOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZmU5MzhiZGQ0ZmI0OWI4Y2Q4NGFmMTg1ODU3ZTNiNjJmMDAyNjhhMzVkMWIx
10
- YTgxZTNmYWYxMzFlYzlkYTZmMDUyOTMzZmRiNjE4YTFkNjhhYmQ1NDc2MmE4
11
- ZGZiZGFhMGY1NWJkNDU0Njk4NWVhNjc0ZmMyMzEyMmVhYTVjNWI=
9
+ M2RiZjg4NDQxM2QwNzU1MTM1YTc4NzUxY2Q0OTg3ZGEwNjkyYTE1NmEwMDQ2
10
+ ZDJkZjZmMzc2MTQ1NTc2NzgwODNmZDQ4ZTNkNDZkNGQ2YzRkMGU3ODdlZjEx
11
+ N2ExNWZkM2M2ZDMxM2U3ODkxYjg0ZWViZTY5Y2UzNzU4MTY3YmY=
12
12
  data.tar.gz: !binary |-
13
- MWY3NzA0ZDA5ZmY2MWRiNjRkMTJmNTU0NGQ0ZTliZGI5MjQ5NGQzMWNmZDI2
14
- YTQwYjQ5ODQwMTFlMGFhNDZhNzRiNDljNTZjYmM4ZTdiNzM4MTEwYzNlN2Yz
15
- MDJlM2ZjMjdhOWVjNWRlNjAxNmVhNjY5ZDU4ZTc1N2IyN2YxNDQ=
13
+ YzEyMDU2ODIxMzdlMjdkNjJiMGMxZDI3MDhhY2FiNzhmNDc2N2JjZTE5ZGZh
14
+ YzdkMjA5N2YwYmFhMTFlYWNiOWI2NTgzMDY2ZjFhMDgwNjg4MTUyMzQ1NDFj
15
+ OTlkM2YwZWI5OGY3MjMxYjZlNzdiYTgwZmFjZDIxNGMwOTI3YTk=
@@ -23,6 +23,7 @@ class Caboose::CorePlugin < Caboose::CaboosePlugin
23
23
  nav << item if item['children'].count > 0
24
24
 
25
25
  item = { 'id' => 'content', 'text' => 'Content', 'children' => [] }
26
+ item['children'] << { 'id' => 'media' , 'text' => 'Media' , 'href' => '/admin/media' , 'modal' => false } if user.is_allowed('media' , 'view')
26
27
  item['children'] << { 'id' => 'pages' , 'text' => 'Pages' , 'href' => '/admin/pages' , 'modal' => false } if user.is_allowed('pages' , 'view')
27
28
  item['children'] << { 'id' => 'posts' , 'text' => 'Posts' , 'href' => '/admin/posts' , 'modal' => false } if user.is_allowed('posts' , 'view')
28
29
  item['children'] << { 'id' => 'calendars' , 'text' => 'Calendars' , 'href' => '/admin/calendars' , 'modal' => false } if user.is_allowed('calendars' , 'view')
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.226'
2
+ VERSION = '0.5.227'
3
3
  end
@@ -0,0 +1,5 @@
1
+ http://d9hjv462jiw15.cloudfront.net/uploadsmedia/716_iris_websitev2_sliders_fdacleared_01_huge.jpg
2
+ http://d9hjv462jiw15.cloudfront.net/media/530_unknown_huge.jpeg?1435635361
3
+ http://d9hjv462jiw15.cloudfront.net/media/531_iris-home-managing-change_huge.jpg?1435635361"
4
+ http://d9hjv462jiw15.cloudfront.net/media/533_iris-home-improving-care-newest_huge.jpg?1435635361"
5
+ http://d9hjv462jiw15.cloudfront.net/media/534_iris-home-aligning-stars-new_huge.jpg?1435635361"
@@ -5,6 +5,11 @@ namespace :caboose do
5
5
  desc "Migrate block images to media"
6
6
  task :migrate_block_images_to_media => :environment do
7
7
  Caboose::Block.where("image_file_name is not null and media_id is null").reorder(:id).all.each do |b|
8
+ next if b.page.nil?
9
+ site_id = b.page.site_id
10
+ next if site_id.nil?
11
+ next if site_id == 1
12
+
8
13
  b.delay.migrate_media
9
14
  end
10
15
  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.226
4
+ version: 0.5.227
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
@@ -1067,6 +1067,7 @@ files:
1067
1067
  - lib/sample_files/config/routes.rb
1068
1068
  - lib/sample_files/config/tinymce.yml
1069
1069
  - lib/sample_files/timezone_abbreviations.csv
1070
+ - lib/tasks/#Untitled-1#
1070
1071
  - lib/tasks/caboose.rake
1071
1072
  - lib/tasks/caboose_sync.rake
1072
1073
  - spec/factories/caboose_blocks.rb