caboose-cms 0.9.75 → 0.9.76

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: 49412491ddf5c193f965625c32b1167873404f55
4
- data.tar.gz: 5bedcc9cb7a2c100d72fedad93645388b13be5d1
3
+ metadata.gz: 609a44de81243d561064f99d93f9f7ff113f5d82
4
+ data.tar.gz: c4213dc5352d3fd9bf30e66ba8216035e5ee76c2
5
5
  SHA512:
6
- metadata.gz: 5944ae55cff565f6084159f53cca38e516bd3112a79854250336b88a6125f6f8747116210b277fa8c752e6154e141b886ad3098bac0cdfbc7318d1f6729a9bf2
7
- data.tar.gz: e078b698da3047596d8f9976cade911de0eebbdce29b9565a9f4ca7fcbbdc515d8914788e90caf36aac1638f75cf406ab16915f83b0ce69e15eb2d829027c678
6
+ metadata.gz: 58aa3be8111218acdd34d8dfd852589a0108fa2804e7076d6bc4d1dfd1a21d8d15a90f17c1c622c526bb94b379a093cd0c0252fbd78313f98908d6795b021482
7
+ data.tar.gz: a962f4a914ef23b7866e53fcca0f31147c9e664360d6bbd99b578e6eebf9bbb471956fc6ad7a74eff20607c471061cd8fadccd2ce45ef38027182183425a47ff
@@ -96,19 +96,19 @@ class Caboose::Site < ActiveRecord::Base
96
96
  end
97
97
 
98
98
  def custom_js_url
99
- url = "http://#{Caboose::cdn_domain}/assets/#{self.name}/js/custom.js"
99
+ url = "//#{Caboose::cdn_domain}/assets/#{self.name}/js/custom.js"
100
100
  url << "?#{self.date_js_updated.strftime('%Y%m%d%H%M%S')}" if self.date_js_updated
101
101
  return url
102
102
  end
103
103
 
104
104
  def custom_css_url
105
- url = "http://#{Caboose::cdn_domain}/assets/#{self.name}/css/custom.css"
105
+ url = "//#{Caboose::cdn_domain}/assets/#{self.name}/css/custom.css"
106
106
  url << "?#{self.date_css_updated.strftime('%Y%m%d%H%M%S')}" if self.date_css_updated
107
107
  return url
108
108
  end
109
109
 
110
- def custom_js
111
- resp = HTTParty.get(self.custom_js_url)
110
+ def custom_js
111
+ resp = HTTParty.get('https:' + self.custom_js_url)
112
112
  if resp.nil? || resp.code.to_i == 403
113
113
  self.custom_js = ""
114
114
  return ""
@@ -117,7 +117,7 @@ class Caboose::Site < ActiveRecord::Base
117
117
  end
118
118
 
119
119
  def custom_css
120
- resp = HTTParty.get(self.custom_css_url)
120
+ resp = HTTParty.get('https:' + self.custom_css_url)
121
121
  if resp.nil? || resp.code.to_i == 403
122
122
  self.custom_css = ""
123
123
  return ""
@@ -17,7 +17,7 @@
17
17
  <%= gzip_stylesheet_link_tag @site.name == 'application' ? 'application' : "#{@site.name}/css/application" %>
18
18
  <% Caboose::stylesheets.each do |css| %><%= gzip_stylesheet_link_tag(css) %><% end %>
19
19
  <% @page.linked_resources_map[:css].each do |r| %><%= gzip_stylesheet_link_tag r %><% end %>
20
- <% if @site.date_css_updated %><link rel='stylesheet' type='text/css' url="<%= raw @site.custom_css_url %>" /><% end %>
20
+ <% if @site.date_css_updated %><link rel='stylesheet' type='text/css' href="<%= raw @site.custom_css_url %>" /><% end %>
21
21
  <% if @page.custom_css_files && @page.custom_css_files.strip.length > 0 %>
22
22
  <% @page.custom_css_files.split("\n").each do |url| %><link rel="stylesheet" type='text/css' href="<%= raw url %>" /><% end %>
23
23
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.9.75'
2
+ VERSION = '0.9.76'
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.75
4
+ version: 0.9.76
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-02 00:00:00.000000000 Z
11
+ date: 2017-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg