haml-edge 2.1.28 → 2.1.29
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/EDGE_GEM_VERSION +1 -1
- data/Rakefile +14 -12
- data/VERSION +1 -1
- metadata +1 -1
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
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
|
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
|
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
|
253
|
+
sh %{git fetch origin}
|
254
|
+
sh %{git reset --hard origin/master}
|
255
255
|
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
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.
|
1
|
+
2.1.29
|