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 +4 -4
- data/app/controllers/caboose/my_account_line_items_controller.rb +6 -2
- data/app/controllers/caboose/variants_controller.rb +5 -1
- data/app/models/caboose/media.rb +5 -1
- data/app/views/caboose/pages/admin_edit_content.html.erb +1 -1
- data/lib/caboose/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3bc91a68ac489055a20331a782782326c88372c
|
4
|
+
data.tar.gz: 77c3b560746c55e2041fc8fdc582f467f59df528
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/app/models/caboose/media.rb
CHANGED
@@ -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('
|
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
|
);
|
data/lib/caboose/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|