rake-debian-build 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/script/pbuilder +15 -3
  3. metadata +8 -24
data/Rakefile CHANGED
@@ -3,7 +3,7 @@
3
3
  # Generate all the Rake tasks
4
4
  # Run 'rake -T' to see list of generated tasks (from gem root directory)
5
5
  $hoe = Hoe.spec('rake-debian-build') do |p|
6
- p.version = '1.0.12'
6
+ p.version = '1.0.13'
7
7
  p.developer("Alban Peignier", "alban@tryphon.eu")
8
8
  p.summary = "Rake tasks to build debian packages"
9
9
  p.url = "http://projects.tryphon.eu/rake-debian-build"
@@ -3,9 +3,21 @@
3
3
  $: << File.expand_path(File.dirname(__FILE__) + '/../lib')
4
4
 
5
5
  require 'debian/build'
6
+ include Debian::Build
6
7
 
7
- Debian::Build::PBuilder.default_option "http-proxy", "http://localhost:9999"
8
+ require 'debian/build/config'
8
9
 
9
- platform = Debian::Build::Platform.find_by_name(ARGV.shift)
10
- platform.pbuilder.exec :build, ARGV.shift
10
+ platform = Platform.find_by_name(ARGV.shift)
11
11
 
12
+ case argument = ARGV.shift
13
+ when "update"
14
+ platform.pbuilder("override-config" => true).exec :update
15
+ when "execute"
16
+ platform.pbuilder.exec :execute, ARGV.join(' ')
17
+ when "login"
18
+ platform.pbuilder.exec :login
19
+ when "update"
20
+ platform.pbuilder.exec :update
21
+ else
22
+ platform.pbuilder.exec :build, argument
23
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-debian-build
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 12
10
- version: 1.0.12
9
+ - 13
10
+ version: 1.0.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alban Peignier
@@ -15,41 +15,25 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-23 00:00:00 +02:00
18
+ date: 2011-01-21 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: rubyforge
22
+ name: hoe
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 7
29
+ hash: 47
30
30
  segments:
31
31
  - 2
32
+ - 8
32
33
  - 0
33
- - 4
34
- version: 2.0.4
34
+ version: 2.8.0
35
35
  type: :development
36
36
  version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: hoe
39
- prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 19
46
- segments:
47
- - 2
48
- - 6
49
- - 2
50
- version: 2.6.2
51
- type: :development
52
- version_requirements: *id002
53
37
  description: ""
54
38
  email:
55
39
  - alban@tryphon.eu