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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWZlMmY4OGUzMzNhMzRkMDNkOWVlODkxODI4ODBhYzU4YmVjNTE2MA==
4
+ ZTNlOWNmNDc5MmM4ZmUxYTkwMDNkY2VmNWE5MWIyNzhjNTFlYTVhYQ==
5
5
  data.tar.gz: !binary |-
6
- OGVjNTdjNmZlMzE2ZDM5NzUyOTYyZWYxODM4NmVkNTJiZDJhZGYwNQ==
6
+ YTU4ZTIxZjFkYmQ1YjE2YTEwNjcyNzhjMGFiY2NkM2I3ZGMwNTFhZA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZDQxMzMyZWQ3MGFlZjgxZjczNjBjMTc2Y2VmZDI5Yjc3NmIxOTE0YjFjYzk5
10
- ZTI1N2I0YjU1MjY4ZWE3MDQ3MDdiOTJjOWFhZDdmZWI3ZjU4YzJlZGFiNDll
11
- Y2NlMjU4MzBjZWIxNTA0MzkzZjUwYjliNDkxYWM3YjY5Y2JmNWE=
9
+ Yzg2NWY4ZmE3M2E3NTJmMDQ1MTRhM2EwN2ZiZWJiZjUyZGU1NjYyOWUwY2Fh
10
+ ZjRiNDBkMTM3ZjIzMDY5YTMwZWZmZmQ0Y2MzODhjZDQwMmE0M2Q4MmRlZWIx
11
+ OWUyMjZkN2M3NDE5MDZmOGE5NzVhMDdmMzYxZDliZjQyMThkNDM=
12
12
  data.tar.gz: !binary |-
13
- ZGEyNGM2YjFiMDc1MTEzOTg3Y2M0MzQ5ODJiNDUyOWIxNDdlMzA4MzdiMTc3
14
- YTE5NjA5ZDM4YzEyOWMyNDg5ZDQ4ZTFhMjRjYmE3YzRjMWZlM2VhNjAxZTcy
15
- NzgyYTBhNWRhNGRiZmFhNTAwODEyZjBhZWE5ZjRiZjAwNjBkN2U=
13
+ Mzk0YjAwMzU0OGFhNTZkZGY1MGI2OWY2NDA0MTRkODc3MGM4ZWZlMjU3MDhk
14
+ ZTU2ZWMxNDk2ZGFjM2EzMjYwYzc3OTY2YzlkYTU2OWNlYTcxNjgyOWQwNDA1
15
+ MWZiMTc3ZTQzYTI1NWUyYTkxNDZiMjE0MzljMTQzMmZmYmZjOTU=
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.4.57'
2
+ VERSION = '0.4.58'
3
3
  end
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.57
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