haml-edge 2.1.28 → 2.1.29

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/EDGE_GEM_VERSION +1 -1
  2. data/Rakefile +14 -12
  3. data/VERSION +1 -1
  4. metadata +1 -1
data/EDGE_GEM_VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.28
1
+ 2.1.29
data/Rakefile CHANGED
@@ -82,8 +82,7 @@ end
82
82
 
83
83
  task :release_edge do
84
84
  sh %{git checkout edge-gem}
85
- sh %{git fetch origin}
86
- sh %{git merge origin/edge-gem}
85
+ sh %{git reset --hard origin/edge-gem}
87
86
  sh %{git merge origin/master}
88
87
 
89
88
  # Get the current master branch version
@@ -159,7 +158,7 @@ task :pages do
159
158
  require 'fileutils'
160
159
  raise 'No ENV["PROJ"]!' unless proj = ENV["PROJ"]
161
160
  sh %{git checkout #{proj}-pages}
162
- sh %{git pull origin #{proj}-pages}
161
+ sh %{git reset --hard origin/#{proj}-pages}
163
162
 
164
163
  sh %{staticmatic build .}
165
164
  FileUtils.mv("site", "/var/www/#{proj}-pages")
@@ -251,15 +250,18 @@ end
251
250
 
252
251
  task :handle_update do
253
252
  sh %{git checkout master}
254
- sh %{git pull origin master}
253
+ sh %{git fetch origin}
254
+ sh %{git reset --hard origin/master}
255
255
 
256
- if ENV["REF"] == "refs/heads/master"
257
- sh %{rake release_edge}
258
- elsif ENV["REF"] =~ %r{^refs/heads/(haml|sass)-pages$}
259
- sh %{rake pages PROJ=#{$1}}
256
+ begin
257
+ if ENV["REF"] == "refs/heads/master"
258
+ sh %{rake release_edge}
259
+ elsif ENV["REF"] =~ %r{^refs/heads/(haml|sass)-pages$}
260
+ sh %{rake pages PROJ=#{$1}}
261
+ end
262
+ ensure
263
+ sh %{git reset --hard HEAD}
264
+ sh %{git clean -xdf}
265
+ sh %{git checkout master}
260
266
  end
261
-
262
- sh %{git reset --hard HEAD}
263
- sh %{git clean -xdf}
264
- sh %{git checkout master}
265
267
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.28
1
+ 2.1.29
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.28
4
+ version: 2.1.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum