caboose-cms 0.7.14 → 0.7.15

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: cc63e0f94ea800ace427a96010732e9d08a5d233
4
- data.tar.gz: 801499e59836aa02693aa29580c2752d43d0c3b1
3
+ metadata.gz: d3bc91a68ac489055a20331a782782326c88372c
4
+ data.tar.gz: 77c3b560746c55e2041fc8fdc582f467f59df528
5
5
  SHA512:
6
- metadata.gz: 018e8cc00963a46b964e6fdc584cda66159d37abe8f0364ecef6a4b2b7105b6efc2aabf0645d3b63d682d741c3378c85ea456bd1fef45eaefec985955543e911
7
- data.tar.gz: 3de04440df1c8697f81f590c6447b25e11b6175e1172fab2ae75a7f331f53963658cbdcf420eaed247d92be14bfdcbb06267ee062a01275ecc021f56b055592a
6
+ metadata.gz: 313817ce1e2ef39a0a17e1fb8bbeed8e6d01e8b7b0bd9da1c5ef4f714a7be5f04b8690ccc7707e4460d9bdb05db2447580323fbe20e43b8b36681327863b1531
7
+ data.tar.gz: 5e837e9d369992d23e50abfe29060c18a6aee1c0c7d3b85471a69653857ae29d392efc86e2e977d5a915e5b1e06ce8fcbc25d6a8ca9581390008c425a0eb1c45
@@ -43,8 +43,12 @@ module Caboose
43
43
  end
44
44
 
45
45
  # Generate the download URL and redirect to it
46
- sc = @site.store_config
47
- config = YAML.load_file("#{::Rails.root}/config/aws.yml")
46
+ sc = @site.store_config
47
+ config = YAML.load_file("#{::Rails.root}/config/aws.yml")
48
+ AWS.config({
49
+ :access_key_id => config[Rails.env]['access_key_id'],
50
+ :secret_access_key => config[Rails.env]['secret_access_key']
51
+ })
48
52
  bucket = AWS::S3::Bucket.new(config[Rails.env]['bucket'])
49
53
  s3object = AWS::S3::S3Object.new(bucket, li.variant.download_path)
50
54
  url = s3object.url_for(:read, :expires => sc.download_url_expires_in.to_i.minutes).to_s
@@ -96,7 +96,11 @@ module Caboose
96
96
  if !v.downloadable
97
97
  resp.error = "This variant is not downloadable."
98
98
  else
99
- config = YAML.load_file("#{::Rails.root}/config/aws.yml")
99
+ config = YAML.load_file("#{::Rails.root}/config/aws.yml")
100
+ AWS.config({
101
+ :access_key_id => config[Rails.env]['access_key_id'],
102
+ :secret_access_key => config[Rails.env]['secret_access_key']
103
+ })
100
104
  bucket = AWS::S3::Bucket.new(config[Rails.env]['bucket'])
101
105
  s3object = AWS::S3::S3Object.new(bucket, v.download_path)
102
106
  resp.url = s3object.url_for(:read, :expires => expires_in.minutes).to_s
@@ -35,7 +35,11 @@ class Caboose::Media < ActiveRecord::Base
35
35
  def process
36
36
  #return if self.processed
37
37
 
38
- config = YAML.load(File.read(Rails.root.join('config', 'aws.yml')))[Rails.env]
38
+ config = YAML.load(File.read(Rails.root.join('config', 'aws.yml')))[Rails.env]
39
+ AWS.config({
40
+ :access_key_id => config['access_key_id'],
41
+ :secret_access_key => config['secret_access_key']
42
+ })
39
43
  bucket = config['bucket']
40
44
  bucket = Caboose::uploads_bucket && Caboose::uploads_bucket.strip.length > 0 ? Caboose::uploads_bucket : "#{bucket}-uploads"
41
45
 
@@ -63,7 +63,7 @@ $(document).ready(function() {
63
63
  $('body').append($('<div/>')
64
64
  .attr('id', 'tiny_header')
65
65
  .append($('<a/>').attr('href', '/admin/pages').html("< Back"))
66
- .append($('<a/>').attr('href', '#').html('Custom Fields').click(function(e) { e.preventDefault(); caboose_modal_url('/admin/pages/<%= @page.id %>/custom-fields'); }))
66
+ .append($('<a/>').attr('href', '#').html('Page Options').click(function(e) { e.preventDefault(); caboose_modal_url('/admin/pages/<%= @page.id %>/custom-fields'); }))
67
67
  .append($('<a/>').attr('href', '/admin/pages/<%= @page.id %>/layout').html("Layout"))
68
68
  .append($('<a/>').attr('href', '/admin/pages/<%= @page.id %>').html("Settings"))
69
69
  );
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.7.14'
2
+ VERSION = '0.7.15'
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.7.14
4
+ version: 0.7.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-22 00:00:00.000000000 Z
11
+ date: 2015-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg