caboose-cms 0.5.21 → 0.5.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/caboose/block.rb +3 -3
- data/app/models/caboose/category.rb +8 -9
- data/app/models/caboose/media_file.rb +1 -1
- data/app/models/caboose/media_image.rb +2 -2
- data/app/models/caboose/post.rb +2 -1
- data/app/models/caboose/product_image.rb +3 -3
- data/app/models/caboose/user.rb +2 -2
- data/lib/caboose/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWNkNzBkNTU4MjRhNmJhZDlkNTY4NjRiZTAyNzgyMzkwOTRkYjE0Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjI4ZDM2N2VhYmE3OGIzNGM4NDFlMmIzYzg1ZDEzNGIzM2ZmYjI2Mw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTVmMjIyM2I0M2Y2MzE1Zjk0YjhhNDc4MzFiZTk0MThlZDI4ZmQ3MDliZTg3
|
10
|
+
NmZiZGQ4NTczZWY5N2ZkMWFkNTdjZDQ2MTJiMTYwZWZiM2RlMDliZDY1Y2Ix
|
11
|
+
NWU4OGYwY2FkZDhkMzExNjEyZjIwODE3ODI0MDI3ZGIzYTE5NWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTc2MWE5MGQ4NDA3ODk0MjU2ZDVkNzFkODg5MzYzNTY1M2QxMmU5MjNmNzRm
|
14
|
+
YmU4NmM2ZDU4NWY2YmM3NDk5MWVmZTVlYjUzYjhhZmM2NTZkYzEyZTk5ZTIz
|
15
|
+
ZDM2YTMxYzAzZTZlYzhhMzkyMDcyMDJhYTgwNGNkMDlmNGQzYWY=
|
data/app/models/caboose/block.rb
CHANGED
@@ -8,10 +8,10 @@ class Caboose::Block < ActiveRecord::Base
|
|
8
8
|
belongs_to :block_type
|
9
9
|
belongs_to :parent, :foreign_key => 'parent_id', :class_name => 'Caboose::Block'
|
10
10
|
has_many :children, :foreign_key => 'parent_id', :class_name => 'Caboose::Block', :dependent => :delete_all, :order => 'sort_order'
|
11
|
-
has_attached_file :file, :
|
11
|
+
has_attached_file :file, :url => '/assets/uploads/:id.:extension'
|
12
12
|
do_not_validate_attachment_file_type :file
|
13
|
-
has_attached_file :image,
|
14
|
-
:
|
13
|
+
has_attached_file :image,
|
14
|
+
:url => '/assets/uploads/:id_:style.:extension',
|
15
15
|
:default_url => "http://placehold.it/300x300",
|
16
16
|
:styles => {
|
17
17
|
:tiny => '160x120>',
|
@@ -13,18 +13,17 @@ module Caboose
|
|
13
13
|
has_many :products, :through => :category_memberships, :order => 'title'
|
14
14
|
has_many :category_memberships
|
15
15
|
|
16
|
-
has_attached_file :image,
|
17
|
-
:
|
18
|
-
:default_url => '/
|
16
|
+
has_attached_file :image,
|
17
|
+
:url => '/assets/categories/:id_:style.:extension',
|
18
|
+
:default_url => 'http://placehold.it/300x300',
|
19
19
|
:s3_protocol => :https,
|
20
20
|
:styles => {
|
21
|
-
tiny
|
22
|
-
thumb
|
23
|
-
medium
|
24
|
-
large
|
25
|
-
huge
|
21
|
+
:tiny => '100x100>',
|
22
|
+
:thumb => '250x250>',
|
23
|
+
:medium => '400x400>',
|
24
|
+
:large => '800x800>',
|
25
|
+
:huge => '1200x1200>'
|
26
26
|
}
|
27
|
-
|
28
27
|
validates_attachment_content_type :image, :content_type => %w(image/jpeg image/jpg image/png)
|
29
28
|
|
30
29
|
attr_accessible :id,
|
@@ -2,7 +2,7 @@ class Caboose::MediaFile < ActiveRecord::Base
|
|
2
2
|
|
3
3
|
self.table_name = "media_files"
|
4
4
|
belongs_to :media_category
|
5
|
-
has_attached_file :file, :
|
5
|
+
has_attached_file :file, :url => '/assets/media-files/:id.:extension'
|
6
6
|
do_not_validate_attachment_file_type :file
|
7
7
|
attr_accessible :id, :media_category_id, :name, :description
|
8
8
|
|
@@ -6,8 +6,8 @@ class Caboose::MediaImage < ActiveRecord::Base
|
|
6
6
|
self.table_name = "media_images"
|
7
7
|
belongs_to :media_category
|
8
8
|
has_attached_file :image,
|
9
|
-
:
|
10
|
-
:default_url =>
|
9
|
+
:url => '/assets/media-images/:id_:style.:extension',
|
10
|
+
:default_url => 'http://placehold.it/300x300',
|
11
11
|
:styles => {
|
12
12
|
:tiny => '150x200>',
|
13
13
|
:thumb => '300x400>',
|
data/app/models/caboose/post.rb
CHANGED
@@ -14,7 +14,8 @@ class Caboose::Post < ActiveRecord::Base
|
|
14
14
|
:published,
|
15
15
|
:created_at
|
16
16
|
has_attached_file :image,
|
17
|
-
:
|
17
|
+
:url => '/assets/posts/:id_:style.:extension',
|
18
|
+
:default_url => 'http://placehold.it/300x300',
|
18
19
|
:styles => {
|
19
20
|
:tiny => '75x75>',
|
20
21
|
:thumb => '150x150>',
|
@@ -19,9 +19,9 @@ module Caboose
|
|
19
19
|
:square_offset_y,
|
20
20
|
:square_scale_factor
|
21
21
|
|
22
|
-
has_attached_file :image,
|
23
|
-
:
|
24
|
-
:default_url => '/
|
22
|
+
has_attached_file :image,
|
23
|
+
:url => '/assets/products/:product_id_:id_:style.:extension',
|
24
|
+
:default_url => 'http://placehold.it/300x300',
|
25
25
|
:s3_protocol => :https,
|
26
26
|
:styles => {
|
27
27
|
tiny: '100x100>',
|
data/app/models/caboose/user.rb
CHANGED
@@ -4,8 +4,8 @@ class Caboose::User < ActiveRecord::Base
|
|
4
4
|
has_many :role_memberships
|
5
5
|
has_many :roles, :through => :role_memberships
|
6
6
|
has_attached_file :image,
|
7
|
-
:
|
8
|
-
:default_url =>
|
7
|
+
:url => '/assets/users/:id_:style.:extension',
|
8
|
+
:default_url => 'http://placehold.it/300x300',
|
9
9
|
:styles => {
|
10
10
|
:tiny => '150x200>',
|
11
11
|
:thumb => '300x400>',
|
data/lib/caboose/version.rb
CHANGED
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.
|
4
|
+
version: 0.5.22
|
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-10-
|
11
|
+
date: 2014-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|