compass 1.0.0.alpha.14 → 1.0.0.alpha.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ 1.0.0.alpha.15
data/Rakefile CHANGED
@@ -1,3 +1,4 @@
1
+ FileUtils.rm_f(FileList["RELEASE_VERSION"].first)
1
2
  require 'rubygems'
2
3
  require 'rubygems/package_task'
3
4
  require 'rake/testtask'
@@ -170,6 +171,7 @@ end
170
171
  # Release tasks
171
172
  gemspec_file = FileList['compass.gemspec'].first
172
173
  spec = eval(File.read(gemspec_file), binding, gemspec_file)
174
+ spec.files << "RELEASE_VERSION"
173
175
 
174
176
  def spec.bump!
175
177
  segments = version.to_s.split(".")
@@ -185,6 +187,14 @@ spec.bump! unless ENV["SAME_VERSION"]
185
187
  desc "Run tests and build compass-#{spec.version}.gem"
186
188
  task :build => [:default, :gem]
187
189
 
190
+ task :gem => :release_version
191
+
192
+ task :release_version do
193
+ open("RELEASE_VERSION", "w") do |f|
194
+ f.write(spec.version.to_s)
195
+ end
196
+ end
197
+
188
198
  desc "Make the prebuilt gem compass-#{spec.version}.gem public."
189
199
  task :publish => [:record_version, :push_gem, :tag]
190
200
 
@@ -204,6 +214,7 @@ task :record_version do
204
214
  end
205
215
  sh "git add VERSION"
206
216
  sh %Q{git commit -m "Bump version to #{spec.version}."}
217
+ sh "rm RELEASE_VERSION"
207
218
  end
208
219
  end
209
220
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0.alpha.13
1
+ 1.0.0.alpha.14
@@ -18,7 +18,8 @@ module Compass
18
18
  end
19
19
 
20
20
  def read_version
21
- v = File.read(scope('VERSION')).strip
21
+ version_file = File.exist?(scope("RELEASE_VERSION")) ? scope("RELEASE_VERSION") : scope("VERSION")
22
+ v = File.read(version_file).strip
22
23
  segments = v.split(".")
23
24
  version_hash = {:string => v}
24
25
  version_hash[:major] = segments.shift
metadata CHANGED
@@ -1,22 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass
3
3
  version: !ruby/object:Gem::Version
4
- hash: -3948577904
4
+ hash: -1583178212
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 0
10
10
  - alpha
11
- - 14
12
- version: 1.0.0.alpha.14
11
+ - 15
12
+ version: 1.0.0.alpha.15
13
13
  platform: ruby
14
14
  authors:
15
15
  - Chris Eppstein
16
16
  - Scott Davis
17
17
  - Eric A. Meyer
18
18
  - Brandon Mathis
19
- - Anthony Short
20
19
  - Nico Hagenburger
21
20
  autorequire:
22
21
  bindir: bin
@@ -30,7 +29,7 @@ dependencies:
30
29
  requirements:
31
30
  - - ~>
32
31
  - !ruby/object:Gem::Version
33
- hash: -40263692
32
+ hash: -723937636
34
33
  segments:
35
34
  - 3
36
35
  - 3
@@ -48,14 +47,14 @@ dependencies:
48
47
  requirements:
49
48
  - - ~>
50
49
  - !ruby/object:Gem::Version
51
- hash: -3948577904
50
+ hash: -1583178212
52
51
  segments:
53
52
  - 1
54
53
  - 0
55
54
  - 0
56
55
  - alpha
57
- - 14
58
- version: 1.0.0.alpha.14
56
+ - 15
57
+ version: 1.0.0.alpha.15
59
58
  name: compass-core
60
59
  prerelease: false
61
60
  type: :runtime
@@ -664,6 +663,7 @@ files:
664
663
  - features/extensions.feature
665
664
  - features/step_definitions/command_line_steps.rb
666
665
  - features/step_definitions/extension_steps.rb
666
+ - RELEASE_VERSION
667
667
  homepage: http://compass-style.org
668
668
  licenses: []
669
669