caboose-cms 0.4.37 → 0.4.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/app/models/caboose/schema.rb +1 -1
- data/app/views/caboose/blocks/admin_edit.html.erb +5 -12
- data/lib/caboose/engine.rb +16 -11
- 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
|
+
MjE4YTAxZTM2NTRlZDg5OTMzYWNjNmJlYjgzZDRmOGNiNjUzYzJkYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NmRhMDdiMjM2MzMxMTcxMGVjZGMyMWMwNmFhYzM5MTQyMDg4YjBhMA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2M1ZDYzNjQzNzFkZjY2OWNjNzczYmM0ZThjZjNmZTc3ODhlMDAyOWQzNGNk
|
10
|
+
MzE3NTNkYTc1ODNkMGQwOGNlNmU4YmYxZWYwZTlmMmJhNjEwOTRmZmYzZTZi
|
11
|
+
ZTM5NzUyNWUxNzFmMTBiYjA1MjAxY2MzM2Q4MDhkYjZkNWM1ZTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWYxMTkwZjYzMTNkYjMyZTMzNTgxMDdiMjM1MzBhOTFlZGFmMWY3MjBjM2I1
|
14
|
+
YzJlZGU2N2Y5MGQ3MzdiZGU3ZGEwYmY0ZWZhNjNiYzRlOGY0Yjk2YmFmNzU3
|
15
|
+
Mjk2NDViMmIyYzk0MTNlNzQyMzI4ODIyOGM4ZjAwNTJmZmJmMTk=
|
@@ -351,7 +351,7 @@ class Caboose::Schema < Caboose::Utilities::Schema
|
|
351
351
|
Caboose::BlockType.create(:name => 'text', :description => 'Text', :field_type => 'text', :default => '', :width => 800, :height => 400, :fixed_placeholder => false)
|
352
352
|
end
|
353
353
|
if !Caboose::BlockType.where(:name => 'richtext').exists?
|
354
|
-
Caboose::BlockType.create(:name => 'richtext', :description => 'Text', :field_type => 'richtext', :default => '', :width => 800, :height => 400, :fixed_placeholder => false)
|
354
|
+
Caboose::BlockType.create(:name => 'richtext', :description => 'Rich Text', :field_type => 'richtext', :default => '', :width => 800, :height => 400, :fixed_placeholder => false)
|
355
355
|
else
|
356
356
|
bt = Caboose::BlockType.where(:name => 'richtext').first
|
357
357
|
bt.field_type = 'richtext'
|
@@ -1,7 +1,4 @@
|
|
1
1
|
<%
|
2
|
-
Caboose.log(@block.block_type.field_type)
|
3
|
-
|
4
|
-
|
5
2
|
update_on_close = false
|
6
3
|
@block.block_type.children.each do |bt|
|
7
4
|
update_on_close = true if bt.field_type == 'image' || bt.field_type == 'file'
|
@@ -99,15 +96,11 @@ $(document).ready(function() {
|
|
99
96
|
|
100
97
|
</script>
|
101
98
|
<% if @block.block_type.field_type == 'richtext' %>
|
102
|
-
<script src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script>
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
#= raw @document_domain ";
|
108
|
-
#</script>
|
109
|
-
%>
|
110
|
-
<%= tinymce :caboose, width: '800px', height:'300px' %>
|
99
|
+
<script src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script>
|
100
|
+
<%= tinymce :caboose,
|
101
|
+
:width => '800px',
|
102
|
+
:height => '300px'
|
103
|
+
%>
|
111
104
|
<% end %>
|
112
105
|
|
113
106
|
<% end %>
|
data/lib/caboose/engine.rb
CHANGED
@@ -18,17 +18,22 @@ end
|
|
18
18
|
module Caboose
|
19
19
|
|
20
20
|
def Caboose.log(message, title = nil)
|
21
|
-
if (Rails.logger.nil?)
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
else
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
end
|
21
|
+
#if (Rails.logger.nil?)
|
22
|
+
# puts "\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
|
23
|
+
# puts title.to_s unless title.nil?
|
24
|
+
# puts message
|
25
|
+
# puts ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n"
|
26
|
+
#else
|
27
|
+
# Rails.logger.debug("\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
|
28
|
+
# Rails.logger.debug(title.to_s) unless title.nil?
|
29
|
+
# Rails.logger.debug(message)
|
30
|
+
# Rails.logger.debug(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n")
|
31
|
+
#end
|
32
|
+
|
33
|
+
puts "\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
|
34
|
+
puts title.to_s unless title.nil?
|
35
|
+
puts message
|
36
|
+
puts ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n"
|
32
37
|
end
|
33
38
|
|
34
39
|
def Caboose.plugin_hook(*args)
|
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.4.
|
4
|
+
version: 0.4.38
|
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-07-
|
11
|
+
date: 2014-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|