haml-edge 2.1.25 → 2.1.26

Sign up to get free protection for your applications and to get access to all the features.
data/EDGE_GEM_VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.25
1
+ 2.1.26
data/Rakefile CHANGED
@@ -116,8 +116,8 @@ task :release_edge do
116
116
  sh %{rubyforge add_release haml haml-edge "Bleeding Edge (v#{edge_version})" pkg/haml-edge-#{edge_version}.gem}
117
117
  end
118
118
 
119
- task :watch_for_edge_update do
120
- sh %{ruby extra/edge_gem_watch.rb}
119
+ task :watch_for_update do
120
+ sh %{ruby extra/update_watch.rb}
121
121
  end
122
122
 
123
123
  # ----- Documentation -----
@@ -155,6 +155,18 @@ rescue LoadError
155
155
  task :yardoc => :rdoc
156
156
  end
157
157
 
158
+ task :pages do
159
+ require 'fileutils'
160
+ raise 'No ENV["PROJ"]!' unless proj = ENV["PROJ"]
161
+ sh %{git checkout #{proj}-pages}
162
+ sh %{git pull origin #{proj}-pages}
163
+
164
+ sh %{staticmatic build .}
165
+ FileUtils.mv("site", "/var/www/#{proj}-pages")
166
+ sh %{git reset --hard HEAD}
167
+ sh %{git clean -xdf}
168
+ end
169
+
158
170
  # ----- Coverage -----
159
171
 
160
172
  begin
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.25
1
+ 2.1.26
@@ -0,0 +1,16 @@
1
+ require 'rubygems'
2
+ require 'sinatra'
3
+ require 'json'
4
+ set :port, 3123
5
+ set :environment, :production
6
+ Dir.chdir(File.dirname(__FILE__) + "/..")
7
+
8
+ post "/" do
9
+ payload = JSON.parse(params["payload"])
10
+
11
+ if payload["ref"] == "refs/heads/master"
12
+ system("rake release_edge &> edge-gem-output.log")
13
+ elsif payload["ref"] =~ %r{^refs/heads/(haml|sass)-pages$}
14
+ system("rake pages PROJ=#{$1}")
15
+ end
16
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml-edge
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.25
4
+ version: 2.1.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-06-17 00:00:00 -04:00
13
+ date: 2009-06-18 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies: []
16
16
 
@@ -225,7 +225,7 @@ files:
225
225
  - test/test_helper.rb
226
226
  - extra/haml-mode.el
227
227
  - extra/sass-mode.el
228
- - extra/edge_gem_watch.rb
228
+ - extra/update_watch.rb
229
229
  - Rakefile
230
230
  - init.rb
231
231
  - MIT-LICENSE
@@ -1,13 +0,0 @@
1
- require 'rubygems'
2
- require 'sinatra'
3
- require 'json'
4
- set :port, 3123
5
- set :environment, :production
6
- Dir.chdir(File.dirname(__FILE__) + "/..")
7
-
8
- post "/" do
9
- payload = JSON.parse(params["payload"])
10
-
11
- break unless payload["ref"] == "refs/heads/master"
12
- system("rake release_edge &> edge-gem-output.log")
13
- end