plato 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -5,5 +5,5 @@ require 'fileutils'
5
5
  git_dir = ENV['GIT_DIR'] = File.expand_path(ENV['GIT_DIR'])
6
6
 
7
7
  FileUtils.cd '..'
8
- system "env GIT_DIR=#{git_dir} git reset --hard HEAD > /tmp/plato-post-receive 2>&1"
9
- system "plato -c cache_new && mv cache cache_last && mv cache_new cache >> /tmp/plato-post-receive 2>&1"
8
+ system "sh -c 'env GIT_DIR=#{git_dir} git reset --hard HEAD' 2>&1 | tee /tmp/plato-post-receive"
9
+ system "sh -c 'plato -c cache_new && (rm -rf cache_last || true) && mv cache cache_last && mv cache_new cache' 2>&1 | tee -a /tmp/plato-post-receive"
data/lib/plato/site.rb CHANGED
@@ -23,7 +23,7 @@ module Plato
23
23
  rendered_templates.save_to(cache_path),
24
24
  rendered_content.save_to(cache_path)
25
25
  ].each do |ps|
26
- puts ps.map{|s| " » #{s}" }
26
+ puts ps.map{|s| " » #{File.join(cache_path,s)}" }
27
27
  end
28
28
  end
29
29
 
data/plato.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{plato}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Freels"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plato
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Freels