spqr 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +9 -6
  2. data/VERSION +1 -1
  3. metadata +1 -1
data/Rakefile CHANGED
@@ -18,16 +18,19 @@ rescue LoadError
18
18
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
19
19
  end
20
20
 
21
- desc "create an RPM spec file"
22
- task :rpmspec => :release do
21
+ def pkg_version
23
22
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
24
- sh "gem2rpm -t spqr.spec.in -o spqr.spec pkg/spqr-#{version}.gem"
23
+ return version.chomp
24
+ end
25
+
26
+ desc "create an RPM spec file"
27
+ task :rpmspec => :build do
28
+ sh "gem2rpm -t spqr.spec.in -o spqr.spec pkg/spqr-#{pkg_version}.gem"
25
29
  end
26
30
 
27
31
  desc "create a source RPM"
28
- task :srpm => :release do
29
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
30
- sh "gem2rpm -t spqr.spec.in -s pkg/spqr-#{version}.gem"
32
+ task :srpm => :build do
33
+ sh "gem2rpm -t spqr.spec.in -s pkg/spqr-#{pkg_version}.gem"
31
34
  end
32
35
 
33
36
  require 'spec/rake/spectask'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spqr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Benton