debra 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -12,9 +12,9 @@ Install
12
12
 
13
13
  $: sudo gem install debra
14
14
 
15
- Create a Defile in your projects directory
15
+ Create a Debfile in your projects directory
16
16
 
17
- # Defile
17
+ # Debfile
18
18
  Debra do
19
19
 
20
20
  # Specify the files to be included (just a Rake::FileList delegate)
@@ -56,18 +56,14 @@ Build your file
56
56
  -f, --file file Load a specific Debfile
57
57
  --version Show version
58
58
 
59
- License
60
-
61
- License:
62
-
63
- (GPLv3)
64
-
65
59
  ## Examples
66
60
 
67
61
  See the examples directory
68
62
 
69
63
  ## License
70
64
 
65
+ (GPLv3)
66
+
71
67
  Copyright (C) 2009 Matt Haynes
72
68
 
73
69
  This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
data/lib/debra/cli.rb CHANGED
@@ -15,6 +15,7 @@ module Debra
15
15
 
16
16
  opts.banner = 'Usage: debra [options]'
17
17
  opts.on("-h", "--help", "Show this message") {|h| options.help = h}
18
+ opts.on("-r", "--revision", "Append a revision to the file, useful if you are doing CI") {|r| options.revision = r}
18
19
  opts.on("-v", "--verbose", "Run verbosely") {|v| options.verbose = v}
19
20
  opts.on("-ffile", "--file file", String, "Load a specific Debfile") {|f| options.file = f}
20
21
  opts.on("--version", "Show version") do
data/lib/debra/execute.rb CHANGED
@@ -46,7 +46,12 @@ module Debra
46
46
  end
47
47
 
48
48
  def package_name
49
- "#{@@control[:package]}-#{@@control[:version]}-#{@@control[:architecture]}.deb"
49
+ if @@options.revision != nil
50
+ version = @@control[:version] + @@options.revision
51
+ else
52
+ version = @@control[:version]
53
+ end
54
+ "#{@@control[:package]}-#{version}-#{@@control[:architecture]}.deb"
50
55
  end
51
56
 
52
57
  def write(file, str)
data/lib/debra.rb CHANGED
@@ -8,7 +8,7 @@ module Debra
8
8
  include Cli
9
9
  include Execute
10
10
 
11
- VERSION = [0,0,1]
11
+ VERSION = [0,0,2]
12
12
 
13
13
  module_function :exec, :find_debfile, :run, :load_file
14
14
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matt Haynes