s3_website 1.3.1 → 1.3.2

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: 3fc17c496fe930a8b5bb5a1dd189d10adf1d4b6d
4
- data.tar.gz: 845c03741c5c2aa939e28d57c1d1ddced4513d0b
3
+ metadata.gz: 75048b9591b2516d217424c859f4154ea117cf57
4
+ data.tar.gz: ace75278f0925aa842b0e6a27d8c69a3a10b1fa3
5
5
  SHA512:
6
- metadata.gz: a0c673a7b2852d160411c20068b2f0b2ddf555c499c8fdc78faef134820dfa9d9792a978819cf8e362d1f1997ca08ff44fdbd38ac8d489eb619d9b3011f3bfab
7
- data.tar.gz: 28fd1356f98ea93e5ecdddbb14c27c84c4996ee34b98031bc51481584d8b3c77e7f65cbd3599eaf2b09cd81523dd6294b44e736470721ddcb8021aec2cf31594
6
+ metadata.gz: 493f9be03d3fdbc1253590cfb2762082a0928fc10b9dbcc176300d810cede4aa9af2e1b02ce36394ddbd4c9da79fd832999188add3b2014610c7901a5e11cb6f
7
+ data.tar.gz: 1a043fb4b2d95c2b2ab5839b8cc35289cfd389eefc2670d4c13b635b62afbd22ea9c2e366f45283e87dff6c8610269404291b31e4af2a3e102f062994575b576
data/README.md CHANGED
@@ -17,6 +17,9 @@
17
17
 
18
18
  gem install s3_website
19
19
 
20
+ `s3_website` requires Ruby. Here is documentation on installing Ruby:
21
+ <http://www.ruby-lang.org/en/downloads/>.
22
+
20
23
  ## Usage
21
24
 
22
25
  Here's how you can get started:
@@ -69,8 +72,6 @@ you can omit the `s3_id` and `s3_secret` keys in the config file.)
69
72
  ## Project goals
70
73
 
71
74
  * Provide a command-line interface tool for deploying and managing S3 websites
72
- * Create commands such as `s3_website push`, `s3_website cfg create` and
73
- `s3_website cfg apply`
74
75
  * Let the user have all the S3 website configurations in a file
75
76
  * Minimise or remove the need to use the AWS Console
76
77
  * Allow the user to deliver the website via CloudFront
@@ -177,7 +178,7 @@ It is easy to deliver your S3-based web site via Cloudfront, the CDN of Amazon.
177
178
  #### Creating a new CloudFront distribution
178
179
 
179
180
  When you run the command `s3_website cfg apply`, it will ask you whether you
180
- want to deliver your website via CloudFront. If you answer yes, command will
181
+ want to deliver your website via CloudFront. If you answer yes, the command will
181
182
  create a CloudFront distribution for you.
182
183
 
183
184
  #### Using your existing CloudFront distribution
data/changelog.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This project uses [Semantic Versioning](http://semver.org).
4
4
 
5
+ ## 1.3.2
6
+
7
+ * Move blacklist filtering into a better place
8
+
5
9
  ## 1.3.1
6
10
 
7
11
  * Print to stdout the initial state of the diff progress indicator
@@ -16,12 +16,19 @@ module S3Website
16
16
  fs_data_source,
17
17
  s3_data_source
18
18
  )
19
- [ normalise(changed_local_files), normalise(new_local_files) ]
19
+ [
20
+ reject_blacklisted(normalise changed_local_files),
21
+ reject_blacklisted(normalise new_local_files)
22
+ ]
20
23
  }
21
24
  end
22
25
 
23
26
  private
24
27
 
28
+ def self.reject_blacklisted(file_paths)
29
+ file_paths.reject { |f| Upload.is_blacklisted f }
30
+ end
31
+
25
32
  def self.with_progress_indicator(diff_msg)
26
33
  progress_indicator = DiffProgressIndicator.new(diff_msg, "... done\n")
27
34
  result = yield progress_indicator
@@ -51,7 +51,7 @@ module S3Website
51
51
  site_dir,
52
52
  config
53
53
  )
54
- to_upload = (changed_files + new_files).reject { |f| Upload.is_blacklisted f }
54
+ to_upload = changed_files + new_files
55
55
  if to_upload.empty?
56
56
  puts "No new or changed files to upload"
57
57
  else
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.3.1"
6
+ s.version = "1.3.2"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Lauri Lehmijoki"]
9
9
  s.email = ["lauri.lehmijoki@iki.fi"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3_website
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lauri Lehmijoki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-27 00:00:00.000000000 Z
11
+ date: 2013-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk