middleman-sync 3.0.7 → 3.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -17,4 +17,7 @@ vendor
17
17
  # YARD artifacts
18
18
  .yardoc
19
19
  _yardoc
20
- doc/
20
+ doc/
21
+
22
+ # Rubymine
23
+ .idea
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- middleman-sync (3.0.6)
5
- asset_sync (= 0.5.0)
6
- middleman-core (>= 3.0.0)
4
+ middleman-sync (3.0.7)
5
+ asset_sync (~> 0.5.4)
6
+ middleman-core (~> 3.0.0)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
@@ -14,7 +14,7 @@ GEM
14
14
  activesupport (3.2.11)
15
15
  i18n (~> 0.6)
16
16
  multi_json (~> 1.0)
17
- asset_sync (0.5.0)
17
+ asset_sync (0.5.4)
18
18
  activemodel
19
19
  fog
20
20
  builder (3.0.4)
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.5"` to your `Gemfile` then open up your `config.rb` and add:
11
+ Add `gem "middleman-sync", "~> 3.0.7"` to your `Gemfile` then open up your `config.rb` and add:
12
12
 
13
13
  ### AWS
14
14
 
@@ -21,6 +21,7 @@ activate :sync do |sync|
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
23
  sync.existing_remote_files = 'keep' # What to do with your existing remote files? ( keep or delete )
24
+ # sync.gzip_compression = false # Automatically replace files with their equivalent gzip compressed version
24
25
  # sync.after_build = false # Disable sync to run after Middleman build ( defaults to true )
25
26
  end
26
27
  ```
@@ -36,6 +37,7 @@ activate :sync do |sync|
36
37
  sync.rackspace_username = 'super' # Your Rackspace username
37
38
  sync.rackspace_api_key = 'secret' # Your Rackspace API Key
38
39
  sync.existing_remote_files = 'keep' # What to do with your existing remote files? ( keep or delete )
40
+ # sync.gzip_compression = false # Automatically replace files with their equivalent gzip compressed version
39
41
  # sync.rackspace_auth_url = 'domain' # Your Rackspace auth URL
40
42
  # sync.after_build = false # Disable sync to run after Middleman build ( defaults to true )
41
43
  end
@@ -52,6 +54,7 @@ activate :sync do |sync|
52
54
  sync.google_storage_access_key_id = 'super' # Your Google Storage access key
53
55
  sync.google_storage_secret_access_key = 'secret' # Your Google Storage access secret
54
56
  sync.existing_remote_files = 'keep' # What to do with your existing remote files? ( keep or delete )
57
+ # sync.gzip_compression = false # Automatically replace files with their equivalent gzip compressed version
55
58
  # sync.after_build = false # Disable sync to run after Middleman build ( defaults to true )
56
59
  end
57
60
  ```
@@ -4,7 +4,7 @@ module Middleman
4
4
 
5
5
  module Sync
6
6
 
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
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, :gzip_compression); end
8
8
 
9
9
  class << self
10
10
 
@@ -43,6 +43,7 @@ module Middleman
43
43
  config.google_storage_secret_access_key = options.google_storage_secret_access_key
44
44
  config.google_storage_access_key_id = options.google_storage_access_key_id
45
45
  config.existing_remote_files = options.existing_remote_files if options.existing_remote_files
46
+ config.gzip_compression = !!options.gzip_compression
46
47
  end
47
48
 
48
49
  after_build do |builder|
@@ -1,7 +1,7 @@
1
1
  module Middleman
2
2
 
3
3
  module Sync
4
- VERSION = "3.0.7"
4
+ VERSION = "3.0.8"
5
5
  end
6
6
 
7
7
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.email = ["karlfreeman@gmail.com"]
11
11
  s.homepage = "https://github.com/karlfreeman/middleman-sync"
12
12
  s.summary = %q{Synchronise your Middleman build to S3 and more}
13
- s.description = %q{Middleman-Sync is a Middleman extension that wraps the excellant AssetSync to allow for both a CLI and after_build hook to your Middleman build's}
13
+ s.description = %q{Middleman-Sync is a Middleman extension that wraps the excellent AssetSync to allow for both a CLI and after_build hook to your Middleman build's}
14
14
 
15
15
  s.rubyforge_project = "middleman-sync"
16
16
 
@@ -19,6 +19,6 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
21
 
22
- s.add_runtime_dependency("middleman-core", [">= 3.0.0"])
23
- s.add_runtime_dependency("asset_sync", ["0.5.0"])
22
+ s.add_runtime_dependency("middleman-core", ["~> 3.0.0"])
23
+ s.add_runtime_dependency("asset_sync", ["~> 0.5.4"])
24
24
  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.7
4
+ version: 3.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,14 +9,14 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-13 00:00:00.000000000 Z
12
+ date: 2013-01-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: middleman-core
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ! '>='
19
+ - - ~>
20
20
  - !ruby/object:Gem::Version
21
21
  version: 3.0.0
22
22
  type: :runtime
@@ -24,7 +24,7 @@ dependencies:
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ! '>='
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: 3.0.0
30
30
  - !ruby/object:Gem::Dependency
@@ -32,18 +32,18 @@ dependencies:
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
- - - '='
35
+ - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: 0.5.0
37
+ version: 0.5.4
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
- - - '='
43
+ - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: 0.5.0
46
- description: Middleman-Sync is a Middleman extension that wraps the excellant AssetSync
45
+ version: 0.5.4
46
+ description: Middleman-Sync is a Middleman extension that wraps the excellent AssetSync
47
47
  to allow for both a CLI and after_build hook to your Middleman build's
48
48
  email:
49
49
  - karlfreeman@gmail.com