middleman-sync 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
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
- enabled = shared_inst.options.enabled
25
- if (!enabled)
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(:after_build, :existing_remote_files, :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); end
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 ||= build_dir
29
+ options.prefix = build_dir
30
30
  options.public_path = Pathname(".")
31
31
 
32
32
  AssetSync.configure do |config|
@@ -1,7 +1,7 @@
1
1
  module Middleman
2
2
 
3
3
  module Sync
4
- VERSION = "3.0.0"
4
+ VERSION = "3.0.1"
5
5
  end
6
6
 
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: