middleman-deploy 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in middleman-deploy.gemspec
4
4
  gemspec
data/README.md CHANGED
@@ -19,7 +19,7 @@ Middleman Deploy - Deploy a [middleman](http://middlemanapp.com/) built site ove
19
19
 
20
20
  Edit `Gemfile`, and add:
21
21
 
22
- gem "middleman-deploy", "~> 0.0.11"
22
+ gem "middleman-deploy", "~> 0.0.12"
23
23
 
24
24
  Then run:
25
25
 
@@ -73,11 +73,15 @@ end
73
73
  EOF
74
74
  end
75
75
 
76
+ def inst
77
+ ::Middleman::Application.server.inst
78
+ end
79
+
76
80
  def deploy_options
77
81
  options = nil
78
82
 
79
83
  begin
80
- options = ::Middleman::Application.server.inst.options
84
+ options = inst.options
81
85
  rescue
82
86
  print_usage_and_die "You need to activate the deploy extension in config.rb."
83
87
  end
@@ -109,7 +113,7 @@ EOF
109
113
 
110
114
  puts "## Deploying via rsync to #{user}@#{host}:#{path} port=#{port}"
111
115
 
112
- command = "rsync -avze '" + "ssh -p #{port}" + "' build/ #{user}@#{host}:#{path}"
116
+ command = "rsync -avze '" + "ssh -p #{port}" + "' #{self.inst.build_dir}/ #{user}@#{host}:#{path}"
113
117
 
114
118
  if options.has_key? "clean"
115
119
  clean = options.clean
@@ -141,7 +145,7 @@ EOF
141
145
  exit
142
146
  end
143
147
 
144
- Dir.chdir('build') do
148
+ Dir.chdir(self.inst.build_dir) do
145
149
  unless File.exists?('.git')
146
150
  `git init`
147
151
  `git remote add origin #{remote}`
@@ -182,7 +186,7 @@ EOF
182
186
  ftp.chdir(path)
183
187
  ftp.passive = true
184
188
 
185
- Dir.chdir('build/') do
189
+ Dir.chdir(self.inst.build_dir) do
186
190
  files = Dir.glob('**/*', File::FNM_DOTMATCH)
187
191
  files.reject { |a| a =~ Regexp.new('\.$') }.each do |f|
188
192
  if File.directory?(f)
@@ -1,6 +1,6 @@
1
1
  module Middleman
2
2
  module Deploy
3
3
  PACKAGE = "middleman-deploy"
4
- VERSION = "0.0.11"
4
+ VERSION = "0.0.12"
5
5
  end
6
6
  end
@@ -9,8 +9,8 @@ Gem::Specification.new do |s|
9
9
  s.authors = ["Tom Vaughan"]
10
10
  s.email = ["thomas.david.vaughan@gmail.com"]
11
11
  s.homepage = "http://tvaughan.github.com/middleman-deploy/"
12
- s.summary = %q{Deploy a middleman built site over rsync or via git (e.g. gh-pages on github).}
13
- s.description = %q{Deploy a middleman built site over rsync or via git (e.g. gh-pages on github).}
12
+ s.summary = %q{Deploy a middleman built site over rsync, ftp, or git (e.g. gh-pages on github).}
13
+ s.description = %q{Deploy a middleman built site over rsync, ftp, or git (e.g. gh-pages on github).}
14
14
 
15
15
  s.files = `git ls-files`.split("\n")
16
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
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: 2013-03-16 00:00:00.000000000 Z
12
+ date: 2013-05-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: middleman-core
@@ -43,8 +43,8 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
- description: Deploy a middleman built site over rsync or via git (e.g. gh-pages on
47
- github).
46
+ description: Deploy a middleman built site over rsync, ftp, or git (e.g. gh-pages
47
+ on github).
48
48
  email:
49
49
  - thomas.david.vaughan@gmail.com
50
50
  executables: []
@@ -87,6 +87,6 @@ rubyforge_project:
87
87
  rubygems_version: 1.8.23
88
88
  signing_key:
89
89
  specification_version: 3
90
- summary: Deploy a middleman built site over rsync or via git (e.g. gh-pages on github).
90
+ summary: Deploy a middleman built site over rsync, ftp, or git (e.g. gh-pages on github).
91
91
  test_files: []
92
92
  has_rdoc: