emitter 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/emitter/tasks.rb +16 -14
- 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 => ['
|
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
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
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
|
-
|
49
|
-
|
50
|
-
|
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
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
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
|
-
-
|
9
|
-
version: 0.1.
|
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:
|
365
|
+
hash: 281613233
|
366
366
|
segments:
|
367
367
|
- 0
|
368
368
|
version: "0"
|