middleman-sync 3.0.10 → 3.0.11
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 +8 -8
- data/README.md +1 -1
- data/lib/middleman-sync/extension.rb +13 -7
- data/lib/middleman-sync/version.rb +1 -1
- data/middleman-sync.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzUzYTdkNzhmOWUzNGY5MDE1NzE3YmM4MWY1NTkwYTk1NWI5Mjg1OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTU0ZjcxY2UzM2NlOTI1NWEyMDc1Y2E4NzU4OWY0Zjk1YTQ4ZTU2Ng==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmE3Y2JhNDg1ZmQ4YmU3M2UxM2U2NjVmYzkzMmU5ZTQzZDdjODc2MTQ3Yjk2
|
10
|
+
ZDczMmE3YThhN2I5ZmYzNzdmMzEzZjIwY2ExYmZiOWM5Y2U4MGQxYjM0MGNj
|
11
|
+
OTZhOWUwZDFhZGZjZTE3ZDAwOTAyYmI4MWZkMDNhYTlhNmZlMTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTdjNWUzN2IzMGIwODU3OWI5MWIyZDJkNjgxYTQxYmI1ZTBiNDdhMjA5YzRl
|
14
|
+
NTc1MGI2OWM5NmVhZTA3NzUzMjQwNzkxMzBhNmJmMTdjYTExYzg0NjY3ZGQ3
|
15
|
+
ZTNjNDlmYjgzY2Q4ZjUzMmNkOTc0OTY2ODcyM2ZlM2ExM2QyN2I=
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Middleman-Sync is a [Middleman](https://github.com/middleman/middleman) extensio
|
|
8
8
|
|
9
9
|
If you already have a Middleman project:
|
10
10
|
|
11
|
-
Add `gem "middleman-sync", "~> 3.0.
|
11
|
+
Add `gem "middleman-sync", "~> 3.0.11"` to your `Gemfile` then open up your `config.rb` and add:
|
12
12
|
|
13
13
|
### AWS
|
14
14
|
|
@@ -4,7 +4,8 @@ module Middleman
|
|
4
4
|
|
5
5
|
module Sync
|
6
6
|
|
7
|
-
|
7
|
+
OPTION_KEYS = [:prefix, :public_path, :fog_provider, :fog_directory, :fog_region, :aws_access_key_id, :aws_secret_access_key, :rackspace_username, :rackspace_api_key, :rackspace_auth_url, :google_storage_secret_access_key, :google_storage_access_key_id, :after_build, :existing_remote_files, :gzip_compression, :ignored_files].freeze
|
8
|
+
class Options < Struct.new(*OPTION_KEYS); end
|
8
9
|
|
9
10
|
class << self
|
10
11
|
|
@@ -13,20 +14,23 @@ module Middleman
|
|
13
14
|
end
|
14
15
|
|
15
16
|
def registered(app, options_hash={}, &block)
|
16
|
-
require
|
17
|
-
ENV["RAILS_GROUPS"] = "assets"
|
17
|
+
require "asset_sync"
|
18
18
|
|
19
|
-
options = Options.new
|
20
|
-
|
19
|
+
options = Options.new
|
20
|
+
OPTION_KEYS.each do |option|
|
21
|
+
options.send("#{option}=", options_hash[option]) if options_hash.keys.include?(option)
|
22
|
+
end
|
21
23
|
|
24
|
+
yield options if block_given?
|
22
25
|
@@sync_options = options
|
23
26
|
|
24
27
|
app.send :include, Helpers
|
25
28
|
|
26
29
|
app.after_configuration do
|
27
30
|
|
28
|
-
options.prefix
|
29
|
-
options.public_path
|
31
|
+
options.prefix ||= "**"
|
32
|
+
options.public_path ||= build_dir
|
33
|
+
options.ignored_files ||= []
|
30
34
|
|
31
35
|
AssetSync.configure do |config|
|
32
36
|
config.enabled = true
|
@@ -44,6 +48,8 @@ module Middleman
|
|
44
48
|
config.google_storage_access_key_id = options.google_storage_access_key_id
|
45
49
|
config.existing_remote_files = options.existing_remote_files if options.existing_remote_files
|
46
50
|
config.gzip_compression = !!options.gzip_compression
|
51
|
+
config.ignored_files = options.ignored_files
|
52
|
+
config.log_silently = false
|
47
53
|
end
|
48
54
|
|
49
55
|
after_build do |builder|
|
data/middleman-sync.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karl Freeman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 1.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 1.0.0
|
41
41
|
description: Middleman-Sync is a Middleman extension that wraps the excellent AssetSync
|
42
42
|
to allow for both a CLI and after_build hook to your Middleman build's
|
43
43
|
email:
|