emitter 0.1.14 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/emitter/tasks.rb +16 -14
  2. metadata +3 -3
data/lib/emitter/tasks.rb CHANGED
@@ -27,7 +27,7 @@ module Emitter
27
27
  # GITHUB PAGES ===============================================================
28
28
 
29
29
  desc 'Update gh-pages branch'
30
- task :pages => ['docs/.git', :docs] do
30
+ task :pages => ['pages:sync', :docs] do
31
31
  rev = `git rev-parse --short HEAD`.strip
32
32
  git 'add *.html', 'docs'
33
33
  git "commit -m 'rebuild pages from #{rev}'", 'docs' do |ok,res|
@@ -39,22 +39,24 @@ module Emitter
39
39
  end
40
40
 
41
41
  # Update the pages/ directory clone
42
- file 'docs/.git' => ['.git/refs/heads/gh-pages', '.git/refs/heads/gh-pages', 'docs/.git/refs/remotes/o'] do |f|
43
- git 'fetch -q o', 'docs'
44
- git 'reset -q --hard o/gh-pages', 'docs'
45
- sh 'touch docs'
46
- end
42
+ namespace :pages do
43
+ task 'sync' => ['.git/refs/heads/gh-pages', '.git/refs/heads/gh-pages', 'docs/.git/refs/remotes/o'] do |f|
44
+ git 'fetch -q o', 'docs'
45
+ git 'reset -q --hard o/gh-pages', 'docs'
46
+ sh 'touch docs'
47
+ end
47
48
 
48
- file '.git/refs/heads/gh-pages' do |f|
49
- unless File.exist? f.name
50
- git 'branch gh-pages --track origin/gh-pages', 'docs'
49
+ file '.git/refs/heads/gh-pages' do |f|
50
+ unless File.exist? f.name
51
+ git 'branch gh-pages --track origin/gh-pages', 'docs'
52
+ end
51
53
  end
52
- end
53
54
 
54
- file 'docs/.git/refs/remotes/o' do |f|
55
- unless File.exist? f.name
56
- git 'init -q docs'
57
- git 'remote add o ../.git', 'docs'
55
+ file 'docs/.git/refs/remotes/o' do |f|
56
+ unless File.exist? f.name
57
+ git 'init -q docs'
58
+ git 'remote add o ../.git', 'docs'
59
+ end
58
60
  end
59
61
  end
60
62
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 14
9
- version: 0.1.14
8
+ - 15
9
+ version: 0.1.15
10
10
  platform: ruby
11
11
  authors:
12
12
  - Andy Rossmeissl
@@ -362,7 +362,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
362
362
  requirements:
363
363
  - - ">="
364
364
  - !ruby/object:Gem::Version
365
- hash: -960245647
365
+ hash: 281613233
366
366
  segments:
367
367
  - 0
368
368
  version: "0"