caboose-cms 0.9.123 → 0.9.124

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: 98d552831bfdc1857ec2037e19401f3e91a5d584
4
- data.tar.gz: 50d11a36e85e89f0fed4ec5e1c254beb326dedc9
3
+ metadata.gz: 89db90e456ec10da8d902580a6c3fe73ca091a6e
4
+ data.tar.gz: 3aae82e00416e0808c85c12de81b2db703cf2b03
5
5
  SHA512:
6
- metadata.gz: 96356f4ba8608bfddcb660a30dba3405c5f9edf36532b1836d70ee3f44a3b2ed52b360d06374e1f529f657b3f26f16adaf40203bb11ce4c6b2325af1c4f70d8e
7
- data.tar.gz: 5fe03ee90cc07a29b31b80e86e756e3fdd7e85a0f6953d11f57b698a7ac6d800507678d158466c3d9f9b488dc4f070a631bd53b86988a9b057124a0661de2b29
6
+ metadata.gz: 23fd6652a4da42ef9781b17abc12509ba99119e00e84911477276ea48ee4312131cac84fce5c696d0fd9be7ffb50a5391f1d681da8cb29b75d48170cb8249fd5
7
+ data.tar.gz: 00bc440aadc45ce5aff30034dc57400193a978b2683fa3067bcb69ebe15fceb9ab536f3ea0d0fed215d7d2bf9f5597bea0fde326681f2f3567180c738c113ebb
@@ -130,7 +130,7 @@ class Caboose::Site < ActiveRecord::Base
130
130
  config = YAML.load(File.read(Rails.root.join('config', 'aws.yml')))[Rails.env]
131
131
  AWS.config(:access_key_id => config['access_key_id'], :secret_access_key => config['secret_access_key'])
132
132
  bucket = AWS::S3.new.buckets[config['bucket']]
133
- bucket.objects["assets/#{self.name}/js/custom.js"].write(str, :acl => 'public-read')
133
+ bucket.objects["assets/#{self.name}/js/custom.js"].write(str, :acl => 'public-read', :content_type => 'application/javascript')
134
134
  self.date_js_updated = DateTime.now.utc
135
135
  self.save
136
136
  end
@@ -139,7 +139,7 @@ class Caboose::Site < ActiveRecord::Base
139
139
  config = YAML.load(File.read(Rails.root.join('config', 'aws.yml')))[Rails.env]
140
140
  AWS.config(:access_key_id => config['access_key_id'], :secret_access_key => config['secret_access_key'])
141
141
  bucket = AWS::S3.new.buckets[config['bucket']]
142
- bucket.objects["assets/#{self.name}/css/custom.css"].write(str, :acl => 'public-read')
142
+ bucket.objects["assets/#{self.name}/css/custom.css"].write(str, :acl => 'public-read', :content_type => 'text/css')
143
143
  self.date_css_updated = DateTime.now.utc
144
144
  self.save
145
145
  end
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.9.123'
2
+ VERSION = '0.9.124'
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.9.123
4
+ version: 0.9.124
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry