caboose-cms 0.5.227 → 0.5.228

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
- MjIwMjAxYTQzN2M3NTZiYjAxMzkxNDIzNzY0ZDBkNmMwNjkzOWFjYg==
4
+ YmU1ZDMxMTQwNjIyYTBmMzBjMTRkODRlMzFhODk0YzAwMjhmMjU3MQ==
5
5
  data.tar.gz: !binary |-
6
- YWFhZDRlOGU3YTMyNThkMGMxOTg3YTNmNGVlZGUxODEzNjA2YjZmOQ==
6
+ ZWViOGE1NDYzYzBlZWRkMWQwOTU5NWNjODlkOTAyZTlhZWE1MjdlZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- M2RiZjg4NDQxM2QwNzU1MTM1YTc4NzUxY2Q0OTg3ZGEwNjkyYTE1NmEwMDQ2
10
- ZDJkZjZmMzc2MTQ1NTc2NzgwODNmZDQ4ZTNkNDZkNGQ2YzRkMGU3ODdlZjEx
11
- N2ExNWZkM2M2ZDMxM2U3ODkxYjg0ZWViZTY5Y2UzNzU4MTY3YmY=
9
+ MzBkYzc1YTZlMGRjMjU5ZmI1ZTY5MGQyN2FkOTJkZWY3NDYwZTBlZmU5M2Mz
10
+ ZDM3MzNiNmEwMmYxOGY2NmYyY2Y0YWVhYjRlNjkyOGZiYWExMDE5NjdmZjgz
11
+ N2UzZmJiNzk5MmVjNmZkMDVhNWM1MDE0YTQ4MmZkNzA3MmNmMWI=
12
12
  data.tar.gz: !binary |-
13
- YzEyMDU2ODIxMzdlMjdkNjJiMGMxZDI3MDhhY2FiNzhmNDc2N2JjZTE5ZGZh
14
- YzdkMjA5N2YwYmFhMTFlYWNiOWI2NTgzMDY2ZjFhMDgwNjg4MTUyMzQ1NDFj
15
- OTlkM2YwZWI5OGY3MjMxYjZlNzdiYTgwZmFjZDIxNGMwOTI3YTk=
13
+ NDU0ZWZlZGZhMWZkZWQzYjY3N2JiYjY2MzYzY2I5YmEyYjhiMmI1MmUwZjQ5
14
+ NjUxY2M1M2M3MWMzN2I2NmE3ZjdkYjRkNDA2YzQ2YmY0NjkxYTAxOTNlZWMw
15
+ ZTA5YzYzOTQzZGVmN2I1NzRhMDliMmFiYWYyMGQyZWYyMjBmZjU=
@@ -10,10 +10,11 @@ class Caboose::Media < ActiveRecord::Base
10
10
  has_attached_file :image,
11
11
  :path => ':path_prefixmedia/:id_:media_name_:style.:extension',
12
12
  :default_url => 'http://placehold.it/300x300',
13
- :styles => {
14
- :tiny => '150x200>',
15
- :thumb => '300x400>',
16
- :large => '600x800>'
13
+ :styles => {
14
+ :tiny => '160x120>',
15
+ :thumb => '400x300>',
16
+ :large => '640x480>',
17
+ :huge => '1400x1050>'
17
18
  }
18
19
  #:s3_headers => lambda { |attachment| { "Content-Disposition" => "attachment; filename=\"#{attachment.name}\"" }}
19
20
  do_not_validate_attachment_file_type :image
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.227'
2
+ VERSION = '0.5.228'
3
3
  end
@@ -4,12 +4,11 @@ namespace :caboose do
4
4
 
5
5
  desc "Migrate block images to media"
6
6
  task :migrate_block_images_to_media => :environment do
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
-
7
+ Caboose::Block.where("image_file_name is not 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
13
12
  b.delay.migrate_media
14
13
  end
15
14
  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.227
4
+ version: 0.5.228
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry