haml 3.1.0.alpha.37 → 3.1.0.alpha.141
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of haml might be problematic. Click here for more details.
- data/REVISION +1 -1
- data/Rakefile +21 -45
- data/VERSION +1 -1
- metadata +2 -3
- data/EDGE_GEM_VERSION +0 -1
data/REVISION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2ddf27942c8145f06fcc021ddeb11b06093c8c62
|
data/Rakefile
CHANGED
@@ -43,8 +43,12 @@ END
|
|
43
43
|
# before we load the gemspec.
|
44
44
|
desc "Build all the packages."
|
45
45
|
task :package => [:revision_file, :submodules, :permissions] do
|
46
|
+
version = get_version
|
47
|
+
File.open(scope('VERSION'), 'w') {|f| f.puts(version)}
|
46
48
|
load scope('haml.gemspec')
|
47
49
|
Gem::Builder.new(HAML_GEMSPEC).build
|
50
|
+
sh %{git checkout VERSION}
|
51
|
+
|
48
52
|
pkg = "#{HAML_GEMSPEC.name}-#{HAML_GEMSPEC.version}"
|
49
53
|
mkdir_p "pkg"
|
50
54
|
verbose(true) {mv "#{pkg}.gem", "pkg/#{pkg}.gem"}
|
@@ -83,7 +87,7 @@ at_exit { File.delete(scope('REVISION')) rescue nil }
|
|
83
87
|
desc "Install Haml as a gem. Use SUDO=1 to install with sudo."
|
84
88
|
task :install => [:package] do
|
85
89
|
gem = RUBY_PLATFORM =~ /java/ ? 'jgem' : 'gem'
|
86
|
-
sh %{#{'sudo ' if ENV["SUDO"]}#{gem} install --no-ri pkg/haml-#{
|
90
|
+
sh %{#{'sudo ' if ENV["SUDO"]}#{gem} install --no-ri pkg/haml-#{get_version}}
|
87
91
|
end
|
88
92
|
|
89
93
|
desc "Release a new Haml package to Rubyforge."
|
@@ -137,57 +141,29 @@ task :release_edge do
|
|
137
141
|
ensure_git_cleanup do
|
138
142
|
puts "#{'=' * 50} Running rake release_edge"
|
139
143
|
|
140
|
-
sh %{git checkout
|
141
|
-
sh %{git reset --hard origin/
|
142
|
-
sh %{git merge origin/master}
|
143
|
-
|
144
|
-
unless edge_version = bump_edge_version
|
145
|
-
puts "master is already a prerelease version, no use building an edge gem"
|
146
|
-
next
|
147
|
-
end
|
148
|
-
|
149
|
-
File.open(scope('EDGE_GEM_VERSION'), 'w') {|f| f.puts(edge_version)}
|
150
|
-
sh %{git commit -m "Bump edge gem version to #{edge_version}." EDGE_GEM_VERSION}
|
151
|
-
sh %{git push origin edge-gem}
|
152
|
-
|
153
|
-
# Package the edge gem with the proper version
|
154
|
-
File.open(scope('VERSION'), 'w') {|f| f.puts(edge_version)}
|
144
|
+
sh %{git checkout master}
|
145
|
+
sh %{git reset --hard origin/master}
|
155
146
|
sh %{rake package}
|
156
|
-
|
157
|
-
|
158
|
-
sh %{
|
159
|
-
sh %{gem push pkg/haml-#{edge_version}.gem}
|
147
|
+
version = get_version
|
148
|
+
sh %{rubyforge add_release haml haml "Bleeding Edge (v#{version})" pkg/haml-#{version}.gem}
|
149
|
+
sh %{gem push pkg/haml-#{version}.gem}
|
160
150
|
end
|
161
151
|
end
|
162
152
|
|
163
|
-
#
|
164
|
-
#
|
165
|
-
|
166
|
-
|
167
|
-
|
153
|
+
# Get the version string. If this is being installed from Git,
|
154
|
+
# this includes the proper prerelease version.
|
155
|
+
def get_version
|
156
|
+
written_version = File.read(scope('VERSION').strip)
|
157
|
+
return written_version unless File.exist?(scope('.git'))
|
158
|
+
|
168
159
|
# Get the current master branch version
|
169
|
-
version =
|
160
|
+
version = written_version.split('.')
|
170
161
|
version.map! {|n| n =~ /^[0-9]+$/ ? n.to_i : n}
|
171
|
-
unless version.size == 5 # prerelease
|
172
|
-
raise "master version #{version.join('.')} is not a prerelease version"
|
173
|
-
end
|
174
|
-
|
175
|
-
# Bump the edge gem version
|
176
|
-
edge_version = File.read(scope('EDGE_GEM_VERSION')).strip.split('.')
|
177
|
-
edge_version.map! {|n| n =~ /^[0-9]+$/ ? n.to_i : n}
|
178
|
-
|
179
|
-
if version[3] != "alpha"
|
180
|
-
return
|
181
|
-
elsif edge_version[0..2] != version[0..2]
|
182
|
-
# A new master branch version was released, reset the edge gem version
|
183
|
-
edge_version[0..2] = version[0..2]
|
184
|
-
edge_version[4] = 1
|
185
|
-
else
|
186
|
-
# Just bump the teeny version
|
187
|
-
edge_version[4] += 1
|
188
|
-
end
|
162
|
+
return written_version unless version.size == 5 && version[3] == "alpha" # prerelease
|
189
163
|
|
190
|
-
|
164
|
+
return written_version if (commit_count = `git log --pretty=oneline --first-parent stable.. | wc -l`).empty?
|
165
|
+
version[4] = commit_count.strip
|
166
|
+
version.join('.')
|
191
167
|
end
|
192
168
|
|
193
169
|
task :watch_for_update do
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.0.alpha.
|
1
|
+
3.1.0.alpha.141
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.0.alpha.
|
4
|
+
version: 3.1.0.alpha.141
|
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: 2010-12-
|
13
|
+
date: 2010-12-07 00:00:00 -05:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -382,7 +382,6 @@ files:
|
|
382
382
|
- MIT-LICENSE
|
383
383
|
- VERSION
|
384
384
|
- VERSION_NAME
|
385
|
-
- EDGE_GEM_VERSION
|
386
385
|
- REVISION
|
387
386
|
has_rdoc: false
|
388
387
|
homepage: http://haml-lang.com/
|
data/EDGE_GEM_VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
3.1.0.alpha.37
|