caboose-cms 0.4.57 → 0.4.58
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/site.rb +5 -1
- data/app/models/caboose/smtp_config.rb +21 -0
- data/lib/caboose/engine.rb +5 -2
- data/lib/caboose/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTNlOWNmNDc5MmM4ZmUxYTkwMDNkY2VmNWE5MWIyNzhjNTFlYTVhYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTU4ZTIxZjFkYmQ1YjE2YTEwNjcyNzhjMGFiY2NkM2I3ZGMwNTFhZA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Yzg2NWY4ZmE3M2E3NTJmMDQ1MTRhM2EwN2ZiZWJiZjUyZGU1NjYyOWUwY2Fh
|
10
|
+
ZjRiNDBkMTM3ZjIzMDY5YTMwZWZmZmQ0Y2MzODhjZDQwMmE0M2Q4MmRlZWIx
|
11
|
+
OWUyMjZkN2M3NDE5MDZmOGE5NzVhMDdmMzYxZDliZjQyMThkNDM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Mzk0YjAwMzU0OGFhNTZkZGY1MGI2OWY2NDA0MTRkODc3MGM4ZWZlMjU3MDhk
|
14
|
+
ZTU2ZWMxNDk2ZGFjM2EzMjYwYzc3OTY2YzlkYTU2OWNlYTcxNjgyOWQwNDA1
|
15
|
+
MWZiMTc3ZTQzYTI1NWUyYTkxNDZiMjE0MzljMTQzMmZmYmZjOTU=
|
data/app/models/caboose/site.rb
CHANGED
@@ -3,7 +3,11 @@ class Caboose::Site < ActiveRecord::Base
|
|
3
3
|
self.table_name = "sites"
|
4
4
|
|
5
5
|
has_many :site_memberships, :class_name => 'Caboose::SiteMembership', :dependent => :delete_all
|
6
|
-
has_many :domains, :class_name => 'Caboose::Domain', :dependent => :delete_all
|
6
|
+
has_many :domains, :class_name => 'Caboose::Domain', :dependent => :delete_all
|
7
7
|
attr_accessible :id, :name, :description
|
8
8
|
|
9
|
+
def smtp_config
|
10
|
+
c = Caboose::SmtpConfig.where(:site_id => self.id).first
|
11
|
+
end
|
12
|
+
|
9
13
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
|
2
|
+
class Caboose::SmtpConfig < ActiveRecord::Base
|
3
|
+
self.table_name = "smtp_configs"
|
4
|
+
|
5
|
+
belongs_to :site
|
6
|
+
attr_accessible :id,
|
7
|
+
:site_id ,
|
8
|
+
:address ,
|
9
|
+
:port ,
|
10
|
+
:domain ,
|
11
|
+
:user_name ,
|
12
|
+
:password ,
|
13
|
+
:authentication ,
|
14
|
+
:enable_starttls_auto
|
15
|
+
|
16
|
+
|
17
|
+
AUTH_PLAIN = 'plain'
|
18
|
+
AUTH_LOGIN = 'login'
|
19
|
+
AUTH_MD5 = 'cram_md5'
|
20
|
+
|
21
|
+
end
|
data/lib/caboose/engine.rb
CHANGED
@@ -122,7 +122,8 @@ module Caboose
|
|
122
122
|
'caboose/model/bound_s3_image.js',
|
123
123
|
'caboose/model/bound_file.js',
|
124
124
|
'jquery.js',
|
125
|
-
'jquery_ujs.js',
|
125
|
+
'jquery_ujs.js',
|
126
|
+
'jquery.ui.all.js',
|
126
127
|
'colorbox-rails/jquery.colorbox-min.js',
|
127
128
|
'colorbox-rails.js',
|
128
129
|
'colorbox-rails/colorbox-links.js',
|
@@ -177,7 +178,9 @@ module Caboose
|
|
177
178
|
'caboose/register.css',
|
178
179
|
'caboose/station_modal.css',
|
179
180
|
'caboose/station_sidebar.css',
|
180
|
-
'caboose/tinymce.css'
|
181
|
+
'caboose/tinymce.css',
|
182
|
+
'jquery.ui.all.css'
|
183
|
+
|
181
184
|
]
|
182
185
|
end
|
183
186
|
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.4.
|
4
|
+
version: 0.4.58
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
@@ -311,6 +311,7 @@ files:
|
|
311
311
|
- app/models/caboose/setting.rb
|
312
312
|
- app/models/caboose/site.rb
|
313
313
|
- app/models/caboose/site_membership.rb
|
314
|
+
- app/models/caboose/smtp_config.rb
|
314
315
|
- app/models/caboose/states.rb
|
315
316
|
- app/models/caboose/std_class.rb
|
316
317
|
- app/models/caboose/timezone.rb
|