rake-debian-build 1.0.17 → 1.0.18

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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake-debian-build (1.0.17)
4
+ rake-debian-build (1.0.18)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -11,7 +11,16 @@ module Debian::Build
11
11
  @source_provider = AptSourceProvider.new
12
12
  end
13
13
 
14
+ def load_debian_version_from_changelog
15
+ first_changelog_line = IO.readlines("debian/changelog").first
16
+ if first_changelog_line =~ /^#{package} \(([0-9.]+)-([0-9]+)\)/
17
+ self.version = $1
18
+ self.debian_increment = $2
19
+ end
20
+ end
21
+
14
22
  def define
23
+ load_debian_version_from_changelog
15
24
  raise "Version must be set" if version.nil?
16
25
 
17
26
  namespace @name do
@@ -1,7 +1,7 @@
1
1
  module Rake
2
2
  module Debian
3
3
  module Build
4
- VERSION = "1.0.17"
4
+ VERSION = "1.0.18"
5
5
  end
6
6
  end
7
7
  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: 53
5
- prerelease: false
4
+ hash: 51
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 17
10
- version: 1.0.17
9
+ - 18
10
+ version: 1.0.18
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alban Peignier
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-07 00:00:00 +01:00
19
- default_executable:
18
+ date: 2011-06-04 00:00:00 Z
20
19
  dependencies: []
21
20
 
22
21
  description: Build packages with pbuilder under debian and ubuntu
@@ -63,7 +62,6 @@ files:
63
62
  - spec/spec.opts
64
63
  - spec/spec_helper.rb
65
64
  - tasks/rspec.rake
66
- has_rdoc: true
67
65
  homepage: http://projects.tryphon.eu/rake-debian-build
68
66
  licenses: []
69
67
 
@@ -93,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
91
  requirements: []
94
92
 
95
93
  rubyforge_project: rake-debian-build
96
- rubygems_version: 1.3.7
94
+ rubygems_version: 1.7.2
97
95
  signing_key:
98
96
  specification_version: 3
99
97
  summary: Rake tasks to build debian packages