fpm 0.2.34 → 0.2.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/fpm/target/deb.rb +9 -3
  2. metadata +3 -3
@@ -34,13 +34,19 @@ class FPM::Target::Deb < FPM::Package
34
34
 
35
35
  def name
36
36
  if @name =~ /[A-Z]/
37
- @logger.fatal("Debian tools (dpkg/apt) don't do well with packages " \
37
+ @logger.warn("Debian tools (dpkg/apt) don't do well with packages " \
38
38
  "that use capital letters in the name. In some cases it will " \
39
39
  "automatically downcase them, in others it will not. It is confusing." \
40
40
  "Best to not use any capital letters at all.")
41
- raise FPM::InvalidPackageConfiguration.new(
42
- "package name '#{@name}' contains capital letters, bad.")
41
+ @name = @name.downcase
43
42
  end
43
+
44
+ if @name.include?("_")
45
+ @logger.info("Package name '#{@name}' includes underscores, converting" \
46
+ " to dashes")
47
+ @name = @name.gsub(/[_]/, "-")
48
+ end
49
+
44
50
  return @name
45
51
  end
46
52
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fpm
3
3
  version: !ruby/object:Gem::Version
4
- hash: 83
4
+ hash: 81
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 34
10
- version: 0.2.34
9
+ - 35
10
+ version: 0.2.35
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jordan Sissel