middleman-sync 3.0.0 → 3.0.1
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/README.md +1 -5
- data/lib/middleman-sync/commands.rb +2 -2
- data/lib/middleman-sync/extension.rb +2 -2
- data/lib/middleman-sync/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Middleman Sync is post build hook and cli for Middleman to allow you to use [Ass
|
|
8
8
|
|
9
9
|
If you already have a Middleman project:
|
10
10
|
|
11
|
-
Add `middleman-sync` to your `Gemfile` then open up your `config.rb` and add:
|
11
|
+
Add `gem "middleman-sync", "~> 3.0.0"` to your `Gemfile` then open up your `config.rb` and add:
|
12
12
|
|
13
13
|
### AWS
|
14
14
|
|
@@ -70,10 +70,6 @@ middleman sync
|
|
70
70
|
middleman build
|
71
71
|
```
|
72
72
|
|
73
|
-
## Todo
|
74
|
-
|
75
|
-
1. Replace AssetSync's logger to use Middleman's Thor builder.say_status
|
76
|
-
|
77
73
|
## Credits
|
78
74
|
|
79
75
|
Is essentially :
|
@@ -21,8 +21,8 @@ module Middleman
|
|
21
21
|
|
22
22
|
shared_inst = ::Middleman::Application.server.inst
|
23
23
|
|
24
|
-
|
25
|
-
if (!
|
24
|
+
after_build = shared_inst.options.after_build
|
25
|
+
if (!after_build)
|
26
26
|
raise Thor::Error.new "You need to activate the sync extension in config.rb"
|
27
27
|
end
|
28
28
|
|
@@ -4,7 +4,7 @@ module Middleman
|
|
4
4
|
|
5
5
|
module Sync
|
6
6
|
|
7
|
-
class Options < Struct.new(:
|
7
|
+
class Options < Struct.new(: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); end
|
8
8
|
|
9
9
|
class << self
|
10
10
|
|
@@ -26,7 +26,7 @@ module Middleman
|
|
26
26
|
app.after_configuration do
|
27
27
|
|
28
28
|
options.after_build ||= false
|
29
|
-
options.prefix
|
29
|
+
options.prefix = build_dir
|
30
30
|
options.public_path = Pathname(".")
|
31
31
|
|
32
32
|
AssetSync.configure do |config|
|