middleman-deploy 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9a92c4462b3a7f6a0f178cc76483527330ed5c6e
4
+ data.tar.gz: c936ed12a9417db86972c92ddd6c2cf370213f3e
5
+ SHA512:
6
+ metadata.gz: 4c8ba6c5094a1c87f909048737504590c4612a14f4f728ef7c6f1f1c1bc8b95059994c61ecdfe765c7e1ab7d4d413094123e8d40db33b5d2710f97de302b1495
7
+ data.tar.gz: 84eb414404abf09516beb1803450f8730ca7652649efc11547b792011915596ed893787082f9127e9ccdfd05b1e5cde31a0adc21277f1bd19d03f300e7a3a06b
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # middleman-deploy [![Build Status](https://travis-ci.org/tvaughan/middleman-deploy.png?branch=master)](https://travis-ci.org/tvaughan/middleman-deploy)
1
+ # middleman-deploy [![Gem Version](https://badge.fury.io/rb/middleman-deploy.png)](http://badge.fury.io/rb/middleman-deploy)
2
2
 
3
3
  Deploys a [middleman](http://middlemanapp.com/) built site via **rsync**,
4
4
  **ftp**, **sftp**, or **git** (e.g. gh-pages on github).
@@ -34,6 +34,8 @@ end
34
34
 
35
35
  Middleman-deploy can deploy a site via rsync, ftp, sftp, or git.
36
36
 
37
+ Checkout [the wiki](https://github.com/tvaughan/middleman-deploy/wiki/_pages) for advanced set-up options.
38
+
37
39
  ### rsync
38
40
 
39
41
  Make sure that `rsync` is installed, and activate the extension by adding the
@@ -48,6 +50,7 @@ activate :deploy do |deploy|
48
50
  # deploy.user = "tvaughan" # no default
49
51
  # deploy.port = 5309 # ssh port, default: 22
50
52
  # deploy.clean = true # remove orphaned files on remote host, default: false
53
+ # deploy.flags = "-rltgoDvzO --no-p --del -e" # add custom flags, default: -avze
51
54
  end
52
55
  ```
53
56
 
@@ -58,6 +58,8 @@ activate :deploy do |deploy|
58
58
  deploy.port = 5309
59
59
  # clean is optional (default is false)
60
60
  deploy.clean = true
61
+ # flags is optional (default is -avze)
62
+ deploy.flags = "-rltgoDvzO --no-p --del -e"
61
63
  end
62
64
 
63
65
  # To deploy to a remote branch via git (e.g. gh-pages on github):
@@ -139,7 +141,9 @@ EOF
139
141
 
140
142
  puts "## Deploying via rsync to #{dest_url} port=#{port}"
141
143
 
142
- command = "rsync -avze '" + "ssh -p #{port}" + "' #{self.inst.build_dir}/ #{dest_url}"
144
+ flags = !self.deploy_options.flags ? '-avze' : self.deploy_options.flags
145
+
146
+ command = "rsync " + flags + " '" + "ssh -p #{port}" + "' #{self.inst.build_dir}/ #{dest_url}"
143
147
 
144
148
  if self.deploy_options.clean
145
149
  command += " --delete"
@@ -185,7 +189,8 @@ EOF
185
189
  end
186
190
 
187
191
  `git add -A`
188
- `git commit --allow-empty -am 'Automated commit at #{Time.now.utc} by #{Middleman::Deploy::PACKAGE} #{Middleman::Deploy::VERSION}'`
192
+ # '"message"' double quotes to fix windows issue
193
+ `git commit --allow-empty -am '"Automated commit at #{Time.now.utc} by #{Middleman::Deploy::PACKAGE} #{Middleman::Deploy::VERSION}"'`
189
194
  `git push -f origin #{branch}`
190
195
  end
191
196
  end
@@ -5,7 +5,7 @@ require "middleman-core"
5
5
  module Middleman
6
6
  module Deploy
7
7
 
8
- class Options < Struct.new(:whatisthis, :method, :host, :port, :user, :password, :path, :clean, :remote, :branch, :build_before); end
8
+ class Options < Struct.new(:whatisthis, :method, :host, :port, :user, :password, :path, :clean, :remote, :branch, :build_before, :flags); end
9
9
 
10
10
  class << self
11
11
 
@@ -1,7 +1,7 @@
1
1
  module Middleman
2
2
  module Deploy
3
3
  PACKAGE = "middleman-deploy"
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  TAGLINE = "Deploy a middleman built site over rsync, ftp, sftp, or git (e.g. gh-pages on github)."
6
6
  end
7
7
  end
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Tom Vaughan"]
10
10
  s.email = ["thomas.david.vaughan@gmail.com"]
11
- s.homepage = "http://tvaughan.github.io/middleman-deploy/"
11
+ s.homepage = "http://github.com/tvaughan/middleman-deploy"
12
12
  s.summary = Middleman::Deploy::TAGLINE
13
13
  s.description = Middleman::Deploy::TAGLINE
14
14
  s.license = "MIT"
metadata CHANGED
@@ -1,62 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
5
- prerelease:
4
+ version: 0.1.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tom Vaughan
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-09-21 00:00:00.000000000 Z
11
+ date: 2013-11-23 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: middleman-core
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 3.0.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 3.0.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: ptools
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: net-sftp
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  description: Deploy a middleman built site over rsync, ftp, sftp, or git (e.g. gh-pages
@@ -79,30 +72,29 @@ files:
79
72
  - lib/middleman-deploy/pkg-info.rb
80
73
  - lib/middleman_extension.rb
81
74
  - middleman-deploy.gemspec
82
- homepage: http://tvaughan.github.io/middleman-deploy/
75
+ homepage: http://github.com/tvaughan/middleman-deploy
83
76
  licenses:
84
77
  - MIT
78
+ metadata: {}
85
79
  post_install_message:
86
80
  rdoc_options: []
87
81
  require_paths:
88
82
  - lib
89
83
  required_ruby_version: !ruby/object:Gem::Requirement
90
- none: false
91
84
  requirements:
92
- - - ! '>='
85
+ - - '>='
93
86
  - !ruby/object:Gem::Version
94
87
  version: '0'
95
88
  required_rubygems_version: !ruby/object:Gem::Requirement
96
- none: false
97
89
  requirements:
98
- - - ! '>='
90
+ - - '>='
99
91
  - !ruby/object:Gem::Version
100
92
  version: '0'
101
93
  requirements: []
102
94
  rubyforge_project:
103
- rubygems_version: 1.8.23
95
+ rubygems_version: 2.0.7
104
96
  signing_key:
105
- specification_version: 3
97
+ specification_version: 4
106
98
  summary: Deploy a middleman built site over rsync, ftp, sftp, or git (e.g. gh-pages
107
99
  on github).
108
100
  test_files: []