middleman-sync 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Synchronise your Middleman build to S3 and more
4
4
 
5
- Middleman Sync is post build hook and cli for Middleman to allow you to use [Asset Sync](https://raw.github.com/rumblelabs/asset_sync) for your static build deployments.
5
+ Middleman Sync is a post build hook & CLI for Middleman which allows you to use [Asset Sync](https://raw.github.com/rumblelabs/asset_sync) for your static build deployments.
6
6
 
7
7
  ## Installation
8
8
 
@@ -20,8 +20,8 @@ activate :sync do |sync|
20
20
  sync.fog_region = 'bucket-region-name' # The region your storage bucket is in
21
21
  sync.aws_access_key_id = 'super' # Your Amazon S3 access key
22
22
  sync.aws_secret_access_key = 'secret' # Your Amazon S3 access secret
23
+ sync.existing_remote_files = 'keep' # What to do with your existing remote files? (keep or delete)
23
24
  # sync.after_build = true # Run sync after build
24
- # sync.existing_remote_files = 'keep' # What to do with your existing remote files? (keep or delete)
25
25
  end
26
26
  ```
27
27
 
@@ -35,9 +35,9 @@ activate :sync do |sync|
35
35
  sync.fog_region = 'bucket-region-name' # The region your storage bucket is in
36
36
  sync.rackspace_username = 'karlfreeman' # Your Rackspace username
37
37
  sync.rackspace_api_key = 'secret' # Your Rackspace API Key
38
+ sync.existing_remote_files = 'keep' # What to do with your existing remote files? (keep or delete)
38
39
  # sync.rackspace_auth_url = 'domain' # Your Rackspace auth URL
39
40
  # sync.after_build = true # Run sync after build
40
- # sync.existing_remote_files = 'keep' # What to do with your existing remote files? (keep or delete)
41
41
  end
42
42
  ```
43
43
 
@@ -51,8 +51,8 @@ activate :sync do |sync|
51
51
  sync.fog_region = 'bucket-region-name' # The region your storage bucket is in
52
52
  sync.google_storage_access_key_id = 'super' # Your Google Storage access key
53
53
  sync.google_storage_secret_access_key = 'secret' # Your Google Storage access secret
54
+ sync.existing_remote_files = 'keep' # What to do with your existing remote files? (keep or delete)
54
55
  # sync.after_build = true # Run sync after build
55
- # sync.existing_remote_files = 'keep' # What to do with your existing remote files? (keep or delete)
56
56
  end
57
57
  ```
58
58
 
@@ -72,11 +72,11 @@ middleman build
72
72
 
73
73
  ## Credits
74
74
 
75
- Is essentially :
75
+ Using:
76
76
 
77
77
  - [https://github.com/rumblelabs/asset_sync](https://github.com/rumblelabs/asset_sync)
78
78
 
79
- Cribbed :
79
+ Cribbed:
80
80
 
81
81
  - [https://github.com/tvaughan/middleman-deploy](https://github.com/tvaughan/middleman-deploy)
82
- - [https://github.com/middleman/middleman-smusher](https://github.com/middleman/middleman-smusher)
82
+ - [https://github.com/middleman/middleman-smusher](https://github.com/middleman/middleman-smusher)
@@ -43,6 +43,7 @@ module Middleman
43
43
  config.rackspace_auth_url = options.rackspace_auth_url
44
44
  config.google_storage_secret_access_key = options.google_storage_secret_access_key
45
45
  config.google_storage_access_key_id = options.google_storage_access_key_id
46
+ config.existing_remote_files = options.existing_remote_files if options.existing_remote_files
46
47
  end
47
48
 
48
49
  after_build do |builder|
@@ -67,4 +68,4 @@ module Middleman
67
68
 
68
69
  end
69
70
 
70
- end
71
+ end
@@ -1,7 +1,7 @@
1
1
  module Middleman
2
2
 
3
3
  module Sync
4
- VERSION = "3.0.1"
4
+ VERSION = "3.0.2"
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.1
4
+ version: 3.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-29 00:00:00.000000000 Z
12
+ date: 2012-09-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: middleman-core