sass 3.1.0.alpha.51 → 3.1.0.alpha.200

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/REVISION +1 -1
  2. data/Rakefile +21 -45
  3. data/VERSION +1 -1
  4. metadata +4 -5
  5. data/EDGE_GEM_VERSION +0 -1
data/REVISION CHANGED
@@ -1 +1 @@
1
- (release)
1
+ 0f3659450161688ee9107d431b1cee89169c00d3
data/Rakefile CHANGED
@@ -25,8 +25,12 @@ end
25
25
  # before we load the gemspec.
26
26
  desc "Build all the packages."
27
27
  task :package => [:revision_file, :submodules, :permissions] do
28
+ version = get_version
29
+ File.open(scope('VERSION'), 'w') {|f| f.puts(version)}
28
30
  load scope('sass.gemspec')
29
31
  Gem::Builder.new(SASS_GEMSPEC).build
32
+ sh %{git checkout VERSION}
33
+
30
34
  pkg = "#{SASS_GEMSPEC.name}-#{SASS_GEMSPEC.version}"
31
35
  mkdir_p "pkg"
32
36
  verbose(true) {mv "#{pkg}.gem", "pkg/#{pkg}.gem"}
@@ -65,7 +69,7 @@ at_exit { File.delete(scope('REVISION')) rescue nil }
65
69
  desc "Install Sass as a gem. Use SUDO=1 to install with sudo."
66
70
  task :install => [:package] do
67
71
  gem = RUBY_PLATFORM =~ /java/ ? 'jgem' : 'gem'
68
- sh %{#{'sudo ' if ENV["SUDO"]}#{gem} install --no-ri pkg/sass-#{File.read(scope('VERSION')).strip}}
72
+ sh %{#{'sudo ' if ENV["SUDO"]}#{gem} install --no-ri pkg/sass-#{get_version}}
69
73
  end
70
74
 
71
75
  desc "Release a new Sass package to Rubyforge."
@@ -123,57 +127,29 @@ task :release_edge do
123
127
  ensure_git_cleanup do
124
128
  puts "#{'=' * 50} Running rake release_edge"
125
129
 
126
- sh %{git checkout edge-gem}
127
- sh %{git reset --hard origin/edge-gem}
128
- sh %{git merge origin/master}
129
-
130
- unless edge_version = bump_edge_version
131
- puts "master is already a prerelease version, no use building an edge gem"
132
- next
133
- end
134
-
135
- File.open(scope('EDGE_GEM_VERSION'), 'w') {|f| f.puts(edge_version)}
136
- sh %{git commit -m "Bump edge gem version to #{edge_version}." EDGE_GEM_VERSION}
137
- sh %{git push origin edge-gem}
138
-
139
- # Package the edge gem with the proper version
140
- File.open(scope('VERSION'), 'w') {|f| f.puts(edge_version)}
130
+ sh %{git checkout master}
131
+ sh %{git reset --hard origin/master}
141
132
  sh %{rake package}
142
- sh %{git checkout VERSION}
143
-
144
- sh %{rubyforge add_release sass sass "Bleeding Edge (v#{edge_version})" pkg/sass-#{edge_version}.gem}
145
- sh %{gem push pkg/sass-#{edge_version}.gem}
133
+ version = get_version
134
+ sh %{rubyforge add_release sass sass "Bleeding Edge (v#{version})" pkg/sass-#{version}.gem}
135
+ sh %{gem push pkg/sass-#{version}.gem}
146
136
  end
147
137
  end
148
138
 
149
- # Reads the master version and the edge gem version,
150
- # bump the latter, and return it.
151
- #
152
- # Returns nil if the current master version is already a non-alpha prerelease.
153
- def bump_edge_version
139
+ # Get the version string. If this is being installed from Git,
140
+ # this includes the proper prerelease version.
141
+ def get_version
142
+ written_version = File.read(scope('VERSION').strip)
143
+ return written_version unless File.exist?(scope('.git'))
144
+
154
145
  # Get the current master branch version
155
- version = File.read(scope('VERSION')).strip.split('.')
146
+ version = written_version.split('.')
156
147
  version.map! {|n| n =~ /^[0-9]+$/ ? n.to_i : n}
157
- unless version.size == 5 # prerelease
158
- raise "master version #{version.join('.')} is not a prerelease version"
159
- end
160
-
161
- # Bump the edge gem version
162
- edge_version = File.read(scope('EDGE_GEM_VERSION')).strip.split('.')
163
- edge_version.map! {|n| n =~ /^[0-9]+$/ ? n.to_i : n}
164
-
165
- if version[3] != "alpha"
166
- return
167
- elsif edge_version[0..2] != version[0..2]
168
- # A new master branch version was released, reset the edge gem version
169
- edge_version[0..2] = version[0..2]
170
- edge_version[4] = 1
171
- else
172
- # Just bump the teeny version
173
- edge_version[4] += 1
174
- end
148
+ return written_version unless version.size == 5 && version[3] == "alpha" # prerelease
175
149
 
176
- edge_version.join('.')
150
+ return written_version if (commit_count = `git log --pretty=oneline --first-parent stable.. | wc -l`).empty?
151
+ version[4] = commit_count.strip
152
+ version.join('.')
177
153
  end
178
154
 
179
155
  task :watch_for_update do
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.0.alpha.51
1
+ 3.1.0.alpha.200
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.alpha.51
4
+ version: 3.1.0.alpha.200
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum
@@ -127,15 +127,15 @@ files:
127
127
  - lib/sass/tree/variable_node.rb
128
128
  - lib/sass/tree/while_node.rb
129
129
  - lib/sass/tree/each_node.rb
130
+ - lib/sass/tree/function_node.rb
130
131
  - lib/sass/tree/media_node.rb
132
+ - lib/sass/tree/return_node.rb
131
133
  - lib/sass/tree/visitors/base.rb
134
+ - lib/sass/tree/visitors/check_nesting.rb
132
135
  - lib/sass/tree/visitors/convert.rb
133
136
  - lib/sass/tree/visitors/cssize.rb
134
137
  - lib/sass/tree/visitors/perform.rb
135
138
  - lib/sass/tree/visitors/to_css.rb
136
- - lib/sass/tree/visitors/check_nesting.rb
137
- - lib/sass/tree/function_node.rb
138
- - lib/sass/tree/return_node.rb
139
139
  - lib/sass/util.rb
140
140
  - lib/sass/util/subset_map.rb
141
141
  - lib/sass/version.rb
@@ -273,7 +273,6 @@ files:
273
273
  - MIT-LICENSE
274
274
  - VERSION
275
275
  - VERSION_NAME
276
- - EDGE_GEM_VERSION
277
276
  - REVISION
278
277
  has_rdoc: false
279
278
  homepage: http://sass-lang.com/
@@ -1 +0,0 @@
1
- 3.1.0.alpha.51