caboose-cms 0.8.33 → 0.8.34

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f8e6e460ab612819a6fb571f167b4a571a7aa40
4
- data.tar.gz: edf375ed1672cdbc850b2bf7c223eb87a4568249
3
+ metadata.gz: 10b912cc8b30e8569dcb1f1d2e9b9282fbc8c4cb
4
+ data.tar.gz: 4c7b76303acd61dfa695d381ccac0330520ebe25
5
5
  SHA512:
6
- metadata.gz: dd495f907bb895bb88bbe890f55ca67e36c2859de8c8681922539698c73ad891cc62f33b0ee947d24d0e1e0985ce4d7f5d2326333243534c928cb23d0078b168
7
- data.tar.gz: 866b36392e1f00bf6e303f638413d9f4ee9e4242d2a6fa03a0d9c3f21e69d652c5e19026fd0373dceb129f877a4b176ae8a87f6a1b03b3c670f937eafc00e590
6
+ metadata.gz: 5aa8fe51db11317e5a6570caba27576ee6855c633e0d9204c19dbbe885118edb2ba2342c4ef0df80fb0b640b180c6bf56b491987eed5423517ed7163a7703ca6
7
+ data.tar.gz: 020d7efb4def9817166f65d9cc15f5b13bd0d5fcaa12d9acb5818d388eb2230840080ba649cf907ef9f3ce7f1444502f6e905796c1f2ad189d5c03e3c828504e
@@ -102,6 +102,12 @@
102
102
  end
103
103
 
104
104
  js = yield(:js)
105
+ js.gsub!("<script src=\"//", "<script src=\"#{protocol}")
106
+ js.gsub!("<script src='//" , "<script src='#{protocol}")
107
+ if protocol == 'https://'
108
+ js.gsub!("<script src=\"http://", "<script src=\"https://")
109
+ js.gsub!("<script src='http://" , "<script src='https://")
110
+ end
105
111
  if @site.use_retargeting
106
112
  js << b.partial('retargeting', options)
107
113
  end
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.8.33'
2
+ VERSION = '0.8.34'
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.8.33
4
+ version: 0.8.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry