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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7f45ed8e858cc746913f6689270de03a314d114
4
- data.tar.gz: 9d89f06505f7f0342c7b10a6b73eda8a32dc2a58
3
+ metadata.gz: 0f2558d64c0387b37e6436eadbfe960a0cfa4cdd
4
+ data.tar.gz: f074176ea38641121ec52d0b7568fe5ec4d2c6f2
5
5
  SHA512:
6
- metadata.gz: 54b6a66c9eb82aaa4d3a6d01be67a61872fd2f57c05e22faedf6e63db2966e0a29435f1a6961d90b13fd0fde9cac088bbae4397bc0a6b45e33370b61094ee14d
7
- data.tar.gz: 8b03810029b67fea975b7f3ce15a1a87b4dc7986cf3e402ceaaec9d3b9d74a4a862d754f24ffc61125185fcd24eacec21a599b60e14c5ea7c7bc5d25262e790b
6
+ metadata.gz: 9a15b0fdc7414416fa2de2b54d0d898de4e38d666674dd8743e0d3b47229f5d96836448490fa1ad200c54ddc0a4303acb0b7aaa9b81442098a3015836b9c7d9c
7
+ data.tar.gz: fff2361a6d43a61c208fd05f841d1381ad8fe6435d11834dc89aca4daec83116178feae1a1746eb4a6e6d756392913b8dbda46d24d4fbfed0d779ddf2c882170
data/changelog.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This project uses [Semantic Versioning](http://semver.org).
4
4
 
5
+ ## 1.8.1
6
+
7
+ * Do not push the *.env* file
8
+
5
9
  ## 1.8.0
6
10
 
7
11
  * Add support for (dotenv)[https://github.com/bkeepers/dotenv]
@@ -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
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "s3_website"
6
- s.version = "1.8.0"
6
+ s.version = "1.8.1"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Lauri Lehmijoki"]
9
9
  s.email = ["lauri.lehmijoki@iki.fi"]
@@ -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
- it 'should fail if the upload file is s3_website.yml' do
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()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3_website
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lauri Lehmijoki