s3_website 1.8.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/changelog.md +4 -0
- data/lib/s3_website/upload.rb +1 -1
- data/s3_website.gemspec +1 -1
- data/spec/lib/upload_spec.rb +3 -2
- 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: 0f2558d64c0387b37e6436eadbfe960a0cfa4cdd
|
4
|
+
data.tar.gz: f074176ea38641121ec52d0b7568fe5ec4d2c6f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a15b0fdc7414416fa2de2b54d0d898de4e38d666674dd8743e0d3b47229f5d96836448490fa1ad200c54ddc0a4303acb0b7aaa9b81442098a3015836b9c7d9c
|
7
|
+
data.tar.gz: fff2361a6d43a61c208fd05f841d1381ad8fe6435d11834dc89aca4daec83116178feae1a1746eb4a6e6d756392913b8dbda46d24d4fbfed0d779ddf2c882170
|
data/changelog.md
CHANGED
data/lib/s3_website/upload.rb
CHANGED
@@ -5,7 +5,7 @@ require 'zopfli'
|
|
5
5
|
module S3Website
|
6
6
|
class Upload
|
7
7
|
attr_reader :config, :file, :path, :full_path, :s3
|
8
|
-
BLACKLISTED_FILES = ['s3_website.yml']
|
8
|
+
BLACKLISTED_FILES = ['s3_website.yml', '.env']
|
9
9
|
|
10
10
|
def initialize(path, s3, config, site_dir)
|
11
11
|
raise "May not upload #{path}, because it's blacklisted" if Upload.is_blacklisted(path, config)
|
data/s3_website.gemspec
CHANGED
data/spec/lib/upload_spec.rb
CHANGED
@@ -3,9 +3,10 @@ require 'spec_helper'
|
|
3
3
|
describe S3Website::Upload do
|
4
4
|
describe 'uploading blacklisted files' do
|
5
5
|
let(:blacklisted_files) {
|
6
|
-
[ 's3_website.yml' ]
|
6
|
+
[ 's3_website.yml', '.env' ]
|
7
7
|
}
|
8
|
-
|
8
|
+
|
9
|
+
it 'should fail if the upload file is blacklisted' do
|
9
10
|
blacklisted_files.each do |blacklisted_file|
|
10
11
|
expect {
|
11
12
|
S3Website::Upload.new blacklisted_file, mock(), {}, mock()
|