caboose-cms 0.5.123 → 0.5.124
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/caboose/engine.rb +2 -2
- data/lib/caboose/version.rb +1 -1
- metadata +1 -2
- data/lib/caboose/#Untitled-1# +0 -264
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NGY5NjcwMmI1ZWJmYWI4NmZkNGE1ZGY2N2M3OWU4NzQ0NTkwOWI2MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGE2ZmE4MTZjZjkxNWY3YmJmYTQzZmIyYjRjOWY2ZWI3OWExMjBmZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzljNTMwODgxMTgxMjIxN2VjMmM0ZGRjMTA1MGUzZTlhZjFmZDQ5NTRmOWY4
|
10
|
+
ZmRmM2EyNmUxOTE1ODUzZGNhZDAwNjQ5OTQyNmFjNDNkOTJiYjk1NDE0M2Ew
|
11
|
+
MjQ4NDJhNGM1NjMwMTdiNWNkYTRmODlkMDBiOTg4NDFjNTZlYmQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDc3OWE3ODYzYWRmNjkyYTdmZmUyM2IxMmQ1ODQwYmQ1MzAzNTRjMDU5MjQ1
|
14
|
+
YTJmYjA1MWJhYmVlMjQyMGQ2ZDlkOGYyZTFiMTU5ODk5YTMwYjkwOTgwZjI0
|
15
|
+
OGY3Yzc3ZjJmNGY1MDk2Y2U0YTgwZTA5MmU5NmI0YzE0Njg3N2U=
|
data/lib/caboose/engine.rb
CHANGED
@@ -104,14 +104,14 @@ module Caboose
|
|
104
104
|
'colorbox-rails.css',
|
105
105
|
'colorbox-rails/colorbox-rails.css',
|
106
106
|
'jquery-ui.css',
|
107
|
-
'*/css/application.css' # Site CSS
|
107
|
+
'*/css/application.css', # Site CSS
|
108
108
|
|
109
109
|
# Fonts
|
110
110
|
'caboose/fonts/avenir-medium.eot',
|
111
111
|
'caboose/fonts/avenir-medium.ttf',
|
112
112
|
'caboose/fonts/big_noodle_titling_oblique.ttf',
|
113
113
|
'caboose/fonts/big_noodle_titling.ttf',
|
114
|
-
'caboose/icons.txt'
|
114
|
+
'caboose/icons.txt'
|
115
115
|
|
116
116
|
]
|
117
117
|
end
|
data/lib/caboose/version.rb
CHANGED
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.
|
4
|
+
version: 0.5.124
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
@@ -894,7 +894,6 @@ files:
|
|
894
894
|
- config/tinymce.yml
|
895
895
|
- db/migrate/000_add_linked_resources_to_page.rb
|
896
896
|
- lib/caboose.rb
|
897
|
-
- lib/caboose/#Untitled-1#
|
898
897
|
- lib/caboose/caboose_helper.rb
|
899
898
|
- lib/caboose/engine.rb
|
900
899
|
- lib/caboose/version.rb
|
data/lib/caboose/#Untitled-1#
DELETED
@@ -1,264 +0,0 @@
|
|
1
|
-
|
2
|
-
require 'tinymce-rails'
|
3
|
-
require 'jquery-ui-rails'
|
4
|
-
require 'colorbox-rails'
|
5
|
-
require 'paperclip'
|
6
|
-
|
7
|
-
class ActiveRecord::Base
|
8
|
-
# (PLU)cks a single uni(Q)ue field
|
9
|
-
def self.pluq(field, compact = true, sort = true)
|
10
|
-
arr = self.uniq.pluck(field)
|
11
|
-
return [] if arr.nil?
|
12
|
-
arr = arr.compact if compact
|
13
|
-
arr = arr.sort if sort
|
14
|
-
return arr
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
module Caboose
|
19
|
-
|
20
|
-
def Caboose.log(message, title = nil)
|
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.info("\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
|
28
|
-
Rails.logger.info(title.to_s) unless title.nil?
|
29
|
-
Rails.logger.info(message)
|
30
|
-
Rails.logger.info(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n")
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
def Caboose.plugin_hook(*args)
|
35
|
-
resp = nil
|
36
|
-
args[0] = args[0].to_sym
|
37
|
-
Caboose.plugins.each do |mod|
|
38
|
-
#resp = mod.constantize.send(*args)
|
39
|
-
if (mod.constantize.respond_to?(args[0]))
|
40
|
-
resp = mod.constantize.send(*args)
|
41
|
-
end
|
42
|
-
end
|
43
|
-
return resp
|
44
|
-
end
|
45
|
-
|
46
|
-
def Caboose.json(obj, defaultvalue = "", options = {})
|
47
|
-
return defaultvalue.to_json if obj.nil?
|
48
|
-
return obj.to_json(options)
|
49
|
-
end
|
50
|
-
|
51
|
-
# Strips html and returns the text that breaks closest to the given length
|
52
|
-
def Caboose.teaser_text(str, length = 100)
|
53
|
-
return '' if str.nil?
|
54
|
-
str2 = ActionController::Base.helpers.strip_tags(str).gsub("\n", ' ')
|
55
|
-
return '' if str2.nil? || str2.length == 0
|
56
|
-
if str2.length > length
|
57
|
-
i = str2.index(' ', length)
|
58
|
-
if i.nil?
|
59
|
-
i = length
|
60
|
-
else
|
61
|
-
i = i - 1
|
62
|
-
end
|
63
|
-
str2 = str2[0..i]
|
64
|
-
str2[str2.length-1] = "" if str2.ends_with?(",")
|
65
|
-
str2 = "#{str2}..."
|
66
|
-
end
|
67
|
-
return str2
|
68
|
-
end
|
69
|
-
|
70
|
-
class Engine < ::Rails::Engine
|
71
|
-
isolate_namespace Caboose
|
72
|
-
require 'jquery-rails'
|
73
|
-
initializer 'caboose.assets.precompile' do |app|
|
74
|
-
app.config.assets.precompile += [
|
75
|
-
|
76
|
-
# Images
|
77
|
-
'caboose/caboose_logo_small.png',
|
78
|
-
'caboose/caboose_nav_black.png',
|
79
|
-
'caboose/caboose_nav.png',
|
80
|
-
'caboose/default_user_pic.png',
|
81
|
-
'caboose/loading_black_on_white.gif',
|
82
|
-
'caboose/loading_green.gif',
|
83
|
-
'caboose/loading_small_black_on_white.gif',
|
84
|
-
'caboose/loading_small_white_on_black.gif',
|
85
|
-
'caboose/loading_white_on_black.gif',
|
86
|
-
'caboose/search.png',
|
87
|
-
|
88
|
-
# Javascript
|
89
|
-
'caboose/admin_block_edit.js',
|
90
|
-
'caboose/admin_edit_order.js',
|
91
|
-
'caboose/admin_images_index.js',
|
92
|
-
'caboose/admin_main.js',
|
93
|
-
'caboose/admin_page_edit_content.js',
|
94
|
-
'caboose/admin_page_new_blocks.js',
|
95
|
-
'caboose/admin_products.js',
|
96
|
-
'caboose/admin.js',
|
97
|
-
'caboose/application.js',
|
98
|
-
'caboose/authorize.net.js',
|
99
|
-
'caboose/cart.js',
|
100
|
-
'caboose/cart_old.js',
|
101
|
-
'caboose/checkout_addresses.js',
|
102
|
-
'caboose/checkout_gift_cards.js',
|
103
|
-
'caboose/checkout_login_register.js',
|
104
|
-
'caboose/checkout_module.js',
|
105
|
-
'caboose/checkout_payment.js',
|
106
|
-
'caboose/checkout_shipping.js',
|
107
|
-
'caboose/checkout.js',
|
108
|
-
'caboose/date_format.js',
|
109
|
-
'caboose/imageZoom.js',
|
110
|
-
'caboose/jquery.detect.js',
|
111
|
-
'caboose/jquery.fileupload.js',
|
112
|
-
'caboose/jquery.iframe-transport.js',
|
113
|
-
'caboose/jquery.placeholder.js',
|
114
|
-
'caboose/jquery.timepicker.js',
|
115
|
-
'caboose/lodash.min.js',
|
116
|
-
'caboose/main.js',
|
117
|
-
'caboose/modal_integration.js',
|
118
|
-
'caboose/modal.js',
|
119
|
-
'caboose/model/all.js',
|
120
|
-
'caboose/model/attribute.js',
|
121
|
-
'caboose/model/bound_checkbox_multiple.js',
|
122
|
-
'caboose/model/bound_checkbox.js',
|
123
|
-
'caboose/model/bound_code.js',
|
124
|
-
'caboose/model/bound_color.js',
|
125
|
-
'caboose/model/bound_control.js',
|
126
|
-
'caboose/model/bound_date.js',
|
127
|
-
'caboose/model/bound_file.js',
|
128
|
-
'caboose/model/bound_image.js',
|
129
|
-
'caboose/model/bound_richtext.js',
|
130
|
-
'caboose/model/bound_s3_image.js',
|
131
|
-
'caboose/model/bound_select.js',
|
132
|
-
'caboose/model/bound_text.js',
|
133
|
-
'caboose/model/bound_textarea.js',
|
134
|
-
'caboose/model/bound_time.js',
|
135
|
-
'caboose/model/class.js',
|
136
|
-
'caboose/model/index_table_bak.js',
|
137
|
-
'caboose/model/index_table.js',
|
138
|
-
'caboose/model/model_binder.js',
|
139
|
-
'caboose/model/model.js',
|
140
|
-
'caboose/model/pager.js',
|
141
|
-
'caboose/model/s3.js',
|
142
|
-
'caboose/model.form.page.js',
|
143
|
-
'caboose/model.form.user.js',
|
144
|
-
'caboose/product.js',
|
145
|
-
'caboose/s3upload.js',
|
146
|
-
'caboose/shortcut.js',
|
147
|
-
'caboose/spectrum.js',
|
148
|
-
'caboose/station.js',
|
149
|
-
'caboose/testing.js',
|
150
|
-
'jquery.js',
|
151
|
-
'jquery_ujs.js',
|
152
|
-
'jquery-ui.js',
|
153
|
-
'colorbox-rails/jquery.colorbox-min.js',
|
154
|
-
'colorbox-rails.js',
|
155
|
-
'colorbox-rails/colorbox-links.js',
|
156
|
-
'tinymce/plugins/caboose/plugin.js',
|
157
|
-
'tinymce/preinit.js',
|
158
|
-
'tinymce/plugins/caboose/plugin.js',
|
159
|
-
'tinymce/themes/modern/theme.js',
|
160
|
-
'tinymce/plugins/advlist/plugin.js',
|
161
|
-
'tinymce/plugins/lists/plugin.js',
|
162
|
-
'tinymce/plugins/autolink/plugin.js',
|
163
|
-
'tinymce/plugins/link/plugin.js',
|
164
|
-
'tinymce/plugins/image/plugin.js',
|
165
|
-
'tinymce/plugins/charmap/plugin.js',
|
166
|
-
'tinymce/plugins/print/plugin.js',
|
167
|
-
'tinymce/plugins/preview/plugin.js',
|
168
|
-
'tinymce/plugins/hr/plugin.js',
|
169
|
-
'tinymce/plugins/anchor/plugin.js',
|
170
|
-
'tinymce/plugins/searchreplace/plugin.js',
|
171
|
-
'tinymce/plugins/pagebreak/plugin.js',
|
172
|
-
'tinymce/plugins/wordcount/plugin.js',
|
173
|
-
'tinymce/plugins/visualblocks/plugin.js',
|
174
|
-
'tinymce/plugins/visualchars/plugin.js',
|
175
|
-
'tinymce/plugins/code/plugin.js',
|
176
|
-
'tinymce/plugins/fullscreen/plugin.js',
|
177
|
-
'tinymce/plugins/insertdatetime/plugin.js',
|
178
|
-
'tinymce/plugins/media/plugin.js',
|
179
|
-
'tinymce/plugins/nonbreaking/plugin.js',
|
180
|
-
'tinymce/plugins/table/plugin.js',
|
181
|
-
'tinymce/plugins/contextmenu/plugin.js',
|
182
|
-
'tinymce/plugins/directionality/plugin.js',
|
183
|
-
'tinymce/plugins/emoticons/plugin.js',
|
184
|
-
'tinymce/plugins/paste/plugin.js',
|
185
|
-
'tinymce/plugins/template/plugin.js',
|
186
|
-
'tinymce/plugins/textcolor/plugin.js',
|
187
|
-
'tinymce/plugins/caboose/plugin.js',
|
188
|
-
|
189
|
-
# Site JS
|
190
|
-
'*/js/application.js',
|
191
|
-
|
192
|
-
# CSS
|
193
|
-
'caboose/admin_crumbtrail.css',
|
194
|
-
'caboose/admin_images_index.css',
|
195
|
-
'caboose/admin_main.css',
|
196
|
-
'caboose/admin_page_edit_content.css',
|
197
|
-
'caboose/admin_products.css',
|
198
|
-
'caboose/admin.css',
|
199
|
-
'caboose/application.css',
|
200
|
-
'caboose/bound_input.css',
|
201
|
-
'caboose/caboose.css',
|
202
|
-
'caboose/cart.css',
|
203
|
-
'caboose/checkout.css',
|
204
|
-
'caboose/fonts/avenir-medium.eot',
|
205
|
-
'caboose/fonts/avenir-medium.ttf',
|
206
|
-
'caboose/fonts/big_noodle_titling_oblique.ttf',
|
207
|
-
'caboose/fonts/big_noodle_titling.ttf',
|
208
|
-
'caboose/fonts.css',
|
209
|
-
'caboose/icomoon_fonts.css',
|
210
|
-
'caboose/icons.txt',
|
211
|
-
'caboose/jquery.timepicker.css',
|
212
|
-
'caboose/login.css',
|
213
|
-
'caboose/message_boxes.css',
|
214
|
-
'caboose/modal.css',
|
215
|
-
'caboose/model_binder.css',
|
216
|
-
'caboose/page_bar_generator.css',
|
217
|
-
'caboose/print.css',
|
218
|
-
'caboose/product_images.css',
|
219
|
-
'caboose/product_options.css',
|
220
|
-
'caboose/register.css',
|
221
|
-
'caboose/responsive.css',
|
222
|
-
'caboose/spectrum.css',
|
223
|
-
'caboose/station_modal.css',
|
224
|
-
'caboose/station_sidebar.css',
|
225
|
-
'caboose/tinymce.css',
|
226
|
-
'colorbox-rails.css',
|
227
|
-
'colorbox-rails/colorbox-rails.css',
|
228
|
-
'jquery-ui.css',
|
229
|
-
|
230
|
-
# Site CSS
|
231
|
-
'*/css/application.css'
|
232
|
-
|
233
|
-
]
|
234
|
-
end
|
235
|
-
|
236
|
-
# Configure rspec
|
237
|
-
config.generators do |g|
|
238
|
-
g.test_framework :rspec, :fixture => false
|
239
|
-
g.fixture_replacement :factory_girl, :dir => 'spec/factories'
|
240
|
-
g.assets false
|
241
|
-
g.helper false
|
242
|
-
end
|
243
|
-
|
244
|
-
end
|
245
|
-
end
|
246
|
-
|
247
|
-
#initializer 'caboose_store.payment_processor', :after => :finish_hook do |app|
|
248
|
-
# case Caboose::payment_processor
|
249
|
-
# when 'authorize.net'
|
250
|
-
# Caboose::PaymentProcessor = Caboose::PaymentProcessors::Authorizenet
|
251
|
-
# when 'payscape'
|
252
|
-
# Caboose::PaymentProcessor = Caboose::PaymentProcessors::Payscape
|
253
|
-
# end
|
254
|
-
#end
|
255
|
-
#
|
256
|
-
#initializer 'caboose_store.cart', :after => :finish_hook do |app|
|
257
|
-
# ActiveSupport.on_load(:action_controller) do
|
258
|
-
# include Caboose::BootStrapper
|
259
|
-
# end
|
260
|
-
#
|
261
|
-
# Caboose::User.class_eval do
|
262
|
-
# self.primary_key = :id
|
263
|
-
# end
|
264
|
-
#end
|