debra 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/debra.rb +1 -1
  2. data/lib/debra/execute.rb +5 -6
  3. metadata +2 -2
@@ -8,7 +8,7 @@ module Debra
8
8
  include Cli
9
9
  include Execute
10
10
 
11
- VERSION = [0,0,5]
11
+ VERSION = [0,0,6]
12
12
 
13
13
  module_function :exec, :find_debfile, :run, :load_file
14
14
 
@@ -18,6 +18,10 @@ module Debra
18
18
  Dir.mkdir tmp_dir
19
19
  Dir.mkdir tmp_dir + "/DEBIAN"
20
20
 
21
+ if @@options.revision != nil
22
+ @@control[:version] = @@control[:version] + "-" + @@options.revision
23
+ end
24
+
21
25
  write tmp_dir + "/DEBIAN/control", generate_control_text
22
26
 
23
27
  @@generate.each_pair do |name, contents|
@@ -50,12 +54,7 @@ module Debra
50
54
  end
51
55
 
52
56
  def package_name
53
- if @@options.revision != nil
54
- version = @@control[:version] + "-" + @@options.revision
55
- else
56
- version = @@control[:version]
57
- end
58
- "#{@@control[:package]}-#{version}-#{@@control[:architecture]}.deb"
57
+ "#{@@control[:package]}-#{@@control[:version]}-#{@@control[:architecture]}.deb"
59
58
  end
60
59
 
61
60
  def write(file, str)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 5
9
- version: 0.0.5
8
+ - 6
9
+ version: 0.0.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matt Haynes