haml-edge 2.1.26 → 2.1.27

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 2.1.26
1
+ 2.1.27
data/Rakefile CHANGED
@@ -248,3 +248,16 @@ namespace :test do
248
248
  end
249
249
  end
250
250
  end
251
+
252
+ # ----- Handling Updates -----
253
+
254
+ task :handle_update do
255
+ sh %{git checkout master}
256
+ sh %{git pull origin master}
257
+
258
+ if ENV["REF"] == "refs/heads/master"
259
+ sh %{rake release_edge &> edge-gem-output.log}
260
+ elsif ENV["REF"] =~ %r{^refs/heads/(haml|sass)-pages$}
261
+ sh %{rake pages PROJ=#{$1}}
262
+ end
263
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.26
1
+ 2.1.27
@@ -6,11 +6,5 @@ set :environment, :production
6
6
  Dir.chdir(File.dirname(__FILE__) + "/..")
7
7
 
8
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
9
+ system %{rake handle_update REF=#{JSON.parse(params["payload"])["ref"].inspect}}
16
10
  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.26
4
+ version: 2.1.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum
@@ -27,9 +27,9 @@ extra_rdoc_files:
27
27
  - MIT-LICENSE
28
28
  - VERSION
29
29
  - REVISION
30
- - EDGE_GEM_VERSION
31
30
  - FAQ.md
32
31
  - README.md
32
+ - EDGE_GEM_VERSION
33
33
  files:
34
34
  - rails/init.rb
35
35
  - lib/haml.rb
@@ -231,9 +231,9 @@ files:
231
231
  - MIT-LICENSE
232
232
  - VERSION
233
233
  - REVISION
234
- - EDGE_GEM_VERSION
235
234
  - FAQ.md
236
235
  - README.md
236
+ - EDGE_GEM_VERSION
237
237
  has_rdoc: true
238
238
  homepage: http://haml.hamptoncatlin.com/
239
239
  post_install_message: