middleman-sync 3.0.5 → 3.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/README.md +11 -13
- data/lib/middleman-sync/extension.rb +0 -1
- data/lib/middleman-sync/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -2,15 +2,13 @@
|
|
2
2
|
|
3
3
|
Synchronise your Middleman build to S3 and more
|
4
4
|
|
5
|
-
Middleman-Sync is a Middleman extension that wraps the excellant [Asset Sync](https://raw.github.com/rumblelabs/asset_sync) to allow for both a CLI and after_build hook to your Middleman build's
|
6
|
-
|
7
|
-
The after_build hook is `false` by default, to allow for a more 'opt-in' extension.
|
5
|
+
Middleman-Sync is a [Middleman](https://github.com/middleman/middleman) extension that wraps the excellant [Asset Sync](https://raw.github.com/rumblelabs/asset_sync) to allow for both a CLI and after_build hook to your Middleman build's
|
8
6
|
|
9
7
|
## Installation
|
10
8
|
|
11
9
|
If you already have a Middleman project:
|
12
10
|
|
13
|
-
Add `gem "middleman-sync", "~> 3.0.
|
11
|
+
Add `gem "middleman-sync", "~> 3.0.5"` to your `Gemfile` then open up your `config.rb` and add:
|
14
12
|
|
15
13
|
### AWS
|
16
14
|
|
@@ -19,11 +17,11 @@ Add `gem "middleman-sync", "~> 3.0.4"` to your `Gemfile` then open up your `conf
|
|
19
17
|
activate :sync do |sync|
|
20
18
|
sync.fog_provider = 'AWS' # Your storage provider
|
21
19
|
sync.fog_directory = 'bucket-name' # Your bucket name
|
22
|
-
sync.fog_region = 'bucket-region-name' # The region your storage bucket is in
|
20
|
+
sync.fog_region = 'bucket-region-name' # The region your storage bucket is in (eg us-east-1, us-west-1, eu-west-1, ap-southeast-1 )
|
23
21
|
sync.aws_access_key_id = 'super' # Your Amazon S3 access key
|
24
22
|
sync.aws_secret_access_key = 'secret' # Your Amazon S3 access secret
|
25
23
|
sync.existing_remote_files = 'keep' # What to do with your existing remote files? ( keep or delete )
|
26
|
-
# sync.after_build =
|
24
|
+
# sync.after_build = false # Disable sync to run after Middleman build ( defaults to true )
|
27
25
|
end
|
28
26
|
```
|
29
27
|
|
@@ -39,7 +37,7 @@ activate :sync do |sync|
|
|
39
37
|
sync.rackspace_api_key = 'secret' # Your Rackspace API Key
|
40
38
|
sync.existing_remote_files = 'keep' # What to do with your existing remote files? ( keep or delete )
|
41
39
|
# sync.rackspace_auth_url = 'domain' # Your Rackspace auth URL
|
42
|
-
# sync.after_build =
|
40
|
+
# sync.after_build = false # Disable sync to run after Middleman build ( defaults to true )
|
43
41
|
end
|
44
42
|
```
|
45
43
|
|
@@ -54,7 +52,7 @@ activate :sync do |sync|
|
|
54
52
|
sync.google_storage_access_key_id = 'super' # Your Google Storage access key
|
55
53
|
sync.google_storage_secret_access_key = 'secret' # Your Google Storage access secret
|
56
54
|
sync.existing_remote_files = 'keep' # What to do with your existing remote files? ( keep or delete )
|
57
|
-
# sync.after_build =
|
55
|
+
# sync.after_build = false # Disable sync to run after Middleman build ( defaults to true )
|
58
56
|
end
|
59
57
|
```
|
60
58
|
|
@@ -63,13 +61,13 @@ end
|
|
63
61
|
Once you've bundled you should be able to run:
|
64
62
|
|
65
63
|
``` ruby
|
66
|
-
#
|
67
|
-
middleman
|
64
|
+
# Turn off after_build in your sync config to disable middleman sync running after each build
|
65
|
+
middleman build
|
68
66
|
```
|
69
67
|
|
70
68
|
``` ruby
|
71
|
-
#
|
72
|
-
middleman
|
69
|
+
# Manually sync your current build directory
|
70
|
+
middleman sync
|
73
71
|
```
|
74
72
|
|
75
73
|
## Sync to multiple targets
|
@@ -87,7 +85,7 @@ activate :sync do |sync|
|
|
87
85
|
sync.aws_access_key_id = 'super' # Your Amazon S3 access key
|
88
86
|
sync.aws_secret_access_key = 'secret' # Your Amazon S3 access secret
|
89
87
|
sync.existing_remote_files = 'keep' # What to do with your existing remote files? (keep or delete)
|
90
|
-
sync.after_build =
|
88
|
+
# sync.after_build = false # Disable sync to run after Middleman build ( defaults to true )
|
91
89
|
end
|
92
90
|
```
|
93
91
|
|
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.
|
4
|
+
version: 3.0.6
|
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-09
|
12
|
+
date: 2012-10-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: middleman-core
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project: middleman-sync
|
85
|
-
rubygems_version: 1.8.
|
85
|
+
rubygems_version: 1.8.24
|
86
86
|
signing_key:
|
87
87
|
specification_version: 3
|
88
88
|
summary: Synchronise your Middleman build to S3 and more
|