caboose-cms 0.9.198 → 0.9.200

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 15d290bc3b20a58ce749b220b794bf432f69dc2e
4
- data.tar.gz: 8af2eb62daef4576150ddc29645363cd3e346d7f
2
+ SHA256:
3
+ metadata.gz: f817e4674619e197010211d645eb180b35da7235aa925b1602dc8816c9923e44
4
+ data.tar.gz: c71233ef8c618b7131b8e440af1b682ddebd65b3baca55af07420bd96103ccea
5
5
  SHA512:
6
- metadata.gz: 76a5fd26d550e493e6279357a0e16d7a1b7f70e5f12e9d09c691264d4845b82ae3179963b2b5c13b6d2f681d1aff847b7b09c6369ee5715ebb66e211f8e8c813
7
- data.tar.gz: 437c8447d14af0d24b3c0decabfb2c168a18d435d5a4409f3df87df2d308d562747deff5a1c2b464da59e3c162dcd4da84a2fd403076fb00b5f2fd5d9887e9a6
6
+ metadata.gz: 791c1623a2682cd57a1d4d54406ae25a6d122347e77fc8941caf2404a4ef8ce49d101db92b8a9f6fb6841a9bfecb62b1411c323f08abab0d5ef7a5bb355e6db7
7
+ data.tar.gz: 765dcda3f8d8dc7ce3714a1ad1e045a1d02136d4c6090479440a384700157956654be6c2304ba8ffe29288a100e875a3473af7a8cc4fba1339422515539a8b41
@@ -1,3 +1,5 @@
1
+ @import url('https://fonts.googleapis.com/css?family=Roboto:300,300i');
2
+
1
3
  .caboose-login-wrapper {
2
4
  padding: 40px 2%;
3
5
  text-align: center;
@@ -219,6 +219,7 @@ module Caboose
219
219
  when 'zip' then site.zip = value
220
220
  when 'fax' then site.fax = value
221
221
  when 'contact_email' then site.contact_email = value
222
+ when 'recaptcha_threshold' then site.recaptcha_threshold = value
222
223
  when 'head_code' then site.head_code = (value.blank? ? nil : value.gsub('<end/script>','</script>'))
223
224
  when 'body_open_code' then site.body_open_code = (value.blank? ? nil : value.gsub('<end/script>','</script>'))
224
225
  when 'body_close_code' then site.body_close_code = (value.blank? ? nil : value.gsub('<end/script>','</script>'))
@@ -11,6 +11,7 @@ class Caboose::FormSubmission < ActiveRecord::Base
11
11
  :sent_to,
12
12
  :bcc_to,
13
13
  :category,
14
+ :recaptcha_score,
14
15
  :date_submitted,
15
16
  :ip_address,
16
17
  :is_spam,
@@ -343,6 +343,7 @@ class Caboose::Schema < Caboose::Utilities::Schema
343
343
  [ :block_id, :integer ],
344
344
  [ :form_name, :string ],
345
345
  [ :sent_to, :string ],
346
+ [ :recaptcha_score, :float ],
346
347
  [ :date_submitted, :datetime ],
347
348
  [ :ip_address, :string ],
348
349
  [ :bcc_to, :string ],
@@ -901,7 +902,8 @@ class Caboose::Schema < Caboose::Utilities::Schema
901
902
  [ :contact_email, :string ],
902
903
  [ :head_code, :text ],
903
904
  [ :body_open_code, :text ],
904
- [ :body_close_code, :text ]
905
+ [ :body_close_code, :text ],
906
+ [ :recaptcha_threshold, :float, { :default => 0.5 } ]
905
907
  ],
906
908
  Caboose::SiteMembership => [
907
909
  [ :site_id , :integer ],
@@ -64,7 +64,8 @@ class Caboose::Site < ActiveRecord::Base
64
64
  :contact_email,
65
65
  :head_code,
66
66
  :body_open_code,
67
- :body_close_code
67
+ :body_close_code,
68
+ :recaptcha_threshold
68
69
 
69
70
  before_save :validate_presence_of_store_config
70
71
 
@@ -142,6 +143,10 @@ class Caboose::Site < ActiveRecord::Base
142
143
  return nil if d.nil?
143
144
  return d.site_id
144
145
  end
146
+
147
+ def valid_domains
148
+ self.domains.map{ |d| d.domain.blank? ? "" : d.domain.gsub(":3000","") }
149
+ end
145
150
 
146
151
  def self.sanitize_name(name)
147
152
  self.name = self.name.downcase.gsub(' ', '_')
@@ -23,6 +23,7 @@ user_ids = [] if user_ids.nil?
23
23
  <p><div id='site_<%= @site.id %>_assets_url' ></div></p>
24
24
  <p><div id='site_<%= @site.id %>_default_layout_id' ></div></p>
25
25
  <p><div id='site_<%= @site.id %>_favicon' ></div></p>
26
+ <p><div id='site_<%= @site.id %>_recaptcha_threshold' ></div></p>
26
27
 
27
28
  <h2>Domains</h2>
28
29
  <p><a href='#' onclick="add_domain(<%= @site.id %>);return false;">New Domain</a></p>
@@ -106,7 +107,8 @@ $(document).ready(function() {
106
107
  { name: 'use_fonts' , nice_name: 'Enable Fonts' , type: 'checkbox' , value: <%= raw Caboose.json(@site.use_fonts ? true : false) %>, width: 400 },
107
108
  { name: 'use_dragdrop' , nice_name: 'Enable Drag & Drop' , type: 'checkbox' , value: <%= raw Caboose.json(@site.use_dragdrop ? true : false) %>, width: 400 },
108
109
  { name: 'allow_self_registration' , nice_name: 'Allow Self Registration' , type: 'checkbox' , value: <%= raw Caboose.json(@site.allow_self_registration ? true : false) %>, width: 400 },
109
- { name: 'default_layout_id' , nice_name: 'Default Layout' , type: 'select' , value: <%= raw Caboose.json(@site.default_layout_id) %>, width: 600, options_url: "/admin/sites/<%= @site.id %>/default-layout-options" }
110
+ { name: 'default_layout_id' , nice_name: 'Default Layout' , type: 'select' , value: <%= raw Caboose.json(@site.default_layout_id) %>, width: 600, options_url: "/admin/sites/<%= @site.id %>/default-layout-options" },
111
+ { name: 'recaptcha_threshold' , nice_name: 'Recaptcha Threshold' , type: 'text' , value: <%= raw Caboose.json(@site.recaptcha_threshold) %>, width: 250 }
110
112
  ]
111
113
  });
112
114
  });
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.9.198'
2
+ VERSION = '0.9.200'
3
3
  end
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.9.198
4
+ version: 0.9.200
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-13 00:00:00.000000000 Z
11
+ date: 2018-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: jquery-rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 3.1.1
61
+ version: 2.2.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 3.1.1
68
+ version: 2.2.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: jquery-ui-rails
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -1278,7 +1278,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1278
1278
  version: '0'
1279
1279
  requirements: []
1280
1280
  rubyforge_project:
1281
- rubygems_version: 2.2.0
1281
+ rubygems_version: 2.7.8
1282
1282
  signing_key:
1283
1283
  specification_version: 4
1284
1284
  summary: CMS built on rails.