caboose-cms 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/assets/javascripts/caboose/admin_media_index.js +1 -1
- data/lib/caboose/version.rb +1 -1
- data/lib/tasks/caboose.rake +65 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTNmZGI0YjRhODYxZDlhNTFlNGU3ODYxYTE3OGEwZTYxMjE3NDZjNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzMxNGVmZWRlNDg2ZDhjZmE3NzlmZWIzMmZiNzE2MjAyYWFhMWIzOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmY3OTMyYTZlZmRiNjhmNTYwNTEyMTg0ODU3OWRiOWE5YTBhZmMwMTc5NDY4
|
10
|
+
YTI3NWRjOGY0ZTdiZWQ1OTYyOTMyODNmZDQzMzIwNTlmMjZkMjdlZGM5MDFi
|
11
|
+
MjdmMmE3MGU2YTJkMDY0ZjhjNzFiNDgzNDNiODBmNzZhYjA2ZmY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OGQ5NmVhMTJjZDFlYWIwODJkZjM0ZjI4MTUyZTcwZDE4NzdiZGVkMmQxMGMy
|
14
|
+
MmI5YjY2N2YyODhjOWQ2NmJhMDUwMmY4YTBiODA0N2M2NDQxZGU1NWZiNDQw
|
15
|
+
OTg2YTlmMjg2NDQzZWUwYTYwYTlkMzc5YTFiYzFhODQ0ZWE3YzY=
|
@@ -66,7 +66,7 @@ MediaController.prototype = {
|
|
66
66
|
},
|
67
67
|
file_data_name: 'file', // optional, but better be specified directly
|
68
68
|
filters: {
|
69
|
-
max_file_size: '
|
69
|
+
max_file_size: '100mb', // Maximum file size
|
70
70
|
mime_types: [{ title: "Upload files", extensions: "jpg,jpeg,png,gif,tif,tiff,pdf,doc,docx,odt,odp,ods,ppt,pptx,xls,xlsx,zip,tgz,csv,txt" }] // Specify what files to browse for
|
71
71
|
},
|
72
72
|
flash_swf_url: '../../js/Moxie.swf', // Flash settings
|
data/lib/caboose/version.rb
CHANGED
data/lib/tasks/caboose.rake
CHANGED
@@ -2,6 +2,71 @@ require "caboose/version"
|
|
2
2
|
|
3
3
|
namespace :caboose do
|
4
4
|
|
5
|
+
desc "Create a new lite site"
|
6
|
+
task :create_site => :environment do
|
7
|
+
puts "\n"
|
8
|
+
puts "--------------------------------------------------------------------------------\n"
|
9
|
+
puts "Create a new Nine Lite site\n"
|
10
|
+
puts "--------------------------------------------------------------------------------\n"
|
11
|
+
|
12
|
+
input = ''
|
13
|
+
STDOUT.puts "What is the name of the site?"
|
14
|
+
input = STDIN.gets.chomp
|
15
|
+
puts "\n"
|
16
|
+
|
17
|
+
input2 = ''
|
18
|
+
STDOUT.puts "What is the ID of the home page?"
|
19
|
+
input2 = STDIN.gets.chomp
|
20
|
+
puts "\n"
|
21
|
+
|
22
|
+
input3 = ''
|
23
|
+
STDOUT.puts "E-commerce? (y/n)"
|
24
|
+
input3 = STDIN.gets.chomp
|
25
|
+
puts "\n"
|
26
|
+
|
27
|
+
if !input.blank? && !input2.blank? && !input3.blank?
|
28
|
+
helper = SiteHelper.new(input,input2,input3)
|
29
|
+
helper.create_site
|
30
|
+
|
31
|
+
puts "\n"
|
32
|
+
puts "--------------------------------------------------------------------------------\n"
|
33
|
+
puts "Choo! Choo! Your site is set up!\n"
|
34
|
+
puts "--------------------------------------------------------------------------------\n"
|
35
|
+
else
|
36
|
+
puts "Invalid site name or home page ID"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
desc "Create blocks for new site"
|
41
|
+
task :create_site_blocks => :environment do
|
42
|
+
puts "\n"
|
43
|
+
puts "--------------------------------------------------------------------------------\n"
|
44
|
+
puts "Create blocks for new site\n"
|
45
|
+
puts "--------------------------------------------------------------------------------\n"
|
46
|
+
|
47
|
+
input = ''
|
48
|
+
STDOUT.puts "What is the name of the site?"
|
49
|
+
input = STDIN.gets.chomp
|
50
|
+
puts "\n"
|
51
|
+
|
52
|
+
input2 = ''
|
53
|
+
STDOUT.puts "E-commerce? (y/n)"
|
54
|
+
input2 = STDIN.gets.chomp
|
55
|
+
puts "\n"
|
56
|
+
|
57
|
+
if !input.blank? && !input2.blank?
|
58
|
+
helper = SiteHelper.new(input,"0",input2)
|
59
|
+
helper.create_site_blocks
|
60
|
+
|
61
|
+
puts "\n"
|
62
|
+
puts "--------------------------------------------------------------------------------\n"
|
63
|
+
puts "Choo! Choo! Your blocks have been created!\n"
|
64
|
+
puts "--------------------------------------------------------------------------------\n"
|
65
|
+
else
|
66
|
+
puts "Invalid site name."
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
5
70
|
desc "Reprocess media images"
|
6
71
|
task :reprocess_media_images => :environment do
|
7
72
|
Caboose::Media.where("image_file_name is not null").reorder(:id).all.each do |m|
|
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.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|