middleman-s3_sync 3.0.12 → 3.0.13
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.
- data/Changelog.md +11 -0
- data/lib/middleman-s3_sync.rb +2 -2
- data/lib/middleman-s3_sync/commands.rb +3 -3
- data/lib/middleman-s3_sync/version.rb +1 -1
- metadata +4 -4
data/Changelog.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# Middleman::S3Sync Changelog
|
2
2
|
|
3
|
+
The gem that tries really hard not to push files to S3.
|
4
|
+
|
5
|
+
## v3.0.13
|
6
|
+
|
7
|
+
* Fails gracefully when the extension isn't activated
|
8
|
+
|
9
|
+
## v3.0.12
|
10
|
+
|
11
|
+
* Remove S3 objects that look like directories. Addresses [issue
|
12
|
+
#13](https://github.com/fredjean/middleman-s3_sync/issues/13)
|
13
|
+
|
3
14
|
## v3.0.11
|
4
15
|
|
5
16
|
* Adds support for GZipped resources (fixes #3)
|
data/lib/middleman-s3_sync.rb
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
require 'middleman-core'
|
2
2
|
require 'fog'
|
3
3
|
require 'pmap'
|
4
|
-
require 'ruby-progressbar'
|
5
4
|
require 'digest/md5'
|
6
5
|
require 'middleman-s3_sync/version'
|
7
6
|
require 'middleman-s3_sync/commands'
|
8
7
|
require 'middleman/s3_sync/status'
|
9
8
|
require 'middleman/s3_sync/resource'
|
9
|
+
require 'middleman-s3_sync/extension'
|
10
|
+
require 'ruby-progressbar'
|
10
11
|
|
11
12
|
Fog::Logger[:warning] = nil
|
12
13
|
|
13
14
|
::Middleman::Extensions.register(:s3_sync, '>= 3.0.0') do
|
14
|
-
require 'middleman-s3_sync/extension'
|
15
15
|
::Middleman::S3Sync
|
16
16
|
end
|
17
17
|
|
@@ -24,9 +24,9 @@ module Middleman
|
|
24
24
|
|
25
25
|
def s3_sync
|
26
26
|
shared_inst = ::Middleman::Application.server.inst
|
27
|
-
bucket = shared_inst.s3_sync_options.bucket
|
28
|
-
|
29
|
-
raise Thor::Error.new "You need to activate
|
27
|
+
bucket = shared_inst.s3_sync_options.bucket rescue nil
|
28
|
+
unless bucket
|
29
|
+
raise Thor::Error.new "You need to activate the s3_sync extension."
|
30
30
|
end
|
31
31
|
|
32
32
|
# Override options based on what was passed on the command line...
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-s3_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-06-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: middleman-core
|
@@ -191,7 +191,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
191
191
|
version: '0'
|
192
192
|
segments:
|
193
193
|
- 0
|
194
|
-
hash:
|
194
|
+
hash: -3466126012457379905
|
195
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
196
196
|
none: false
|
197
197
|
requirements:
|
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
200
|
version: '0'
|
201
201
|
segments:
|
202
202
|
- 0
|
203
|
-
hash:
|
203
|
+
hash: -3466126012457379905
|
204
204
|
requirements: []
|
205
205
|
rubyforge_project:
|
206
206
|
rubygems_version: 1.8.23
|