caboose-cms 0.7.73 → 0.7.74

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
2
  SHA1:
3
- metadata.gz: a999f18dae23bc402556b1c6103b5448aa3db1f3
4
- data.tar.gz: 878262e26fa11a9b0ac097f3f1a9b0376190f198
3
+ metadata.gz: 048af239863225eb750f4fb8ead2fb16bc7114c1
4
+ data.tar.gz: b615e192cab2bb1b28295dba157a73e8218dca1c
5
5
  SHA512:
6
- metadata.gz: 858410799fabf51cfe49c1f3d26baab2e55669406c6261753c02768150c3f922900f60d107575694237fc0fa95dbd2e8feba7483bf4b13dd5df74104bb49e4a2
7
- data.tar.gz: f9f86573d2a02a76e0f41315e60d83403b85e7bf38c4dbdf43fa0e183e672c2be1039a34bd66e3d4184fd24a90d69d6317aed0eb8f600ae5d4621d7d45fb204f
6
+ metadata.gz: bec71eda8e2e03c8edadac548a62dc6693fcb3550b92adc030e9d492967f90e2465250e0a4cc2c139f2c0c2fd84454e1271a83e0f0d29c90c5592cb5c3e1bdd0
7
+ data.tar.gz: 622a90bda1f1ade01683e69a005b35f4ed674ad8573ea4b8f079fe8ed4bc6a728a4ea08117ca945d2ab4f1a2437f2240c8ddc18f5850cb3e28c15f0467c631db
@@ -37,7 +37,7 @@ module Caboose
37
37
  AbTesting.init(request.session_options[:id]) if Caboose.use_ab_testing
38
38
 
39
39
  # Try to find the page
40
- @request = request
40
+ @request = request
41
41
  @page = Page.new
42
42
  @crumbtrail = Crumbtrail.new
43
43
  @subnav = {}
@@ -67,5 +67,9 @@ class Caboose::CorePlugin < Caboose::CaboosePlugin
67
67
  def self.global_js_assets(files)
68
68
  return files
69
69
  end
70
+
71
+ def self.request_protocol(current_value, request)
72
+ return current_value
73
+ end
70
74
 
71
75
  end
@@ -35,7 +35,7 @@
35
35
  end
36
36
  #b.log_helper
37
37
  options = {
38
- :request => @request,
38
+ :request => @request,
39
39
  :post => @post,
40
40
  :page => @page,
41
41
  :view => self,
@@ -81,6 +81,8 @@
81
81
  str = b.render(b, options) if str.nil?
82
82
 
83
83
  protocol = request.protocol
84
+ protocol = Caboose.plugin_hook('request_protocol', protocol, request)
85
+
84
86
  css = yield(:css)
85
87
  css.gsub!("<link href=\"//", "<link href=\"#{protocol}")
86
88
  css.gsub!("<link href='//" , "<link href='#{protocol}")
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.7.73'
2
+ VERSION = '0.7.74'
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.7.73
4
+ version: 0.7.74
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry