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 +4 -4
- data/app/models/caboose/site.rb +2 -2
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89db90e456ec10da8d902580a6c3fe73ca091a6e
|
4
|
+
data.tar.gz: 3aae82e00416e0808c85c12de81b2db703cf2b03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23fd6652a4da42ef9781b17abc12509ba99119e00e84911477276ea48ee4312131cac84fce5c696d0fd9be7ffb50a5391f1d681da8cb29b75d48170cb8249fd5
|
7
|
+
data.tar.gz: 00bc440aadc45ce5aff30034dc57400193a978b2683fa3067bcb69ebe15fceb9ab536f3ea0d0fed215d7d2bf9f5597bea0fde326681f2f3567180c738c113ebb
|
data/app/models/caboose/site.rb
CHANGED
@@ -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
|
data/lib/caboose/version.rb
CHANGED