fpm 0.2.30 → 0.2.31

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3 @@
1
+ require "fpm/namespace"
2
+
3
+ class FPM::InvalidPackageConfiguration < StandardError; end
@@ -1,6 +1,7 @@
1
1
  require "erb"
2
2
  require "fpm/namespace"
3
3
  require "fpm/package"
4
+ require "fpm/errors"
4
5
 
5
6
  class FPM::Target::Deb < FPM::Package
6
7
  def architecture
@@ -27,6 +28,18 @@ class FPM::Target::Deb < FPM::Package
27
28
  "#{builddir}/control"
28
29
  end
29
30
 
31
+ def name
32
+ if @name =~ /[A-Z]/
33
+ @logger.fatal("Debian tools (dpkg/apt) don't do well with packages " \
34
+ "that use capital letters in the name. In some cases it will " \
35
+ "automatically downcase them, in others it will not. It is confusing." \
36
+ "Best to not use any capital letters at all.")
37
+ raise FPM::InvalidPackageConfiguration.new(
38
+ "package name '#{@name}' contains capital letters, bad.")
39
+ end
40
+ return @name
41
+ end
42
+
30
43
  def build!(params)
31
44
  control_files = [ "control", "md5sums" ]
32
45
  # place the postinst prerm files
metadata CHANGED
@@ -1,62 +1,72 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: fpm
3
- version: !ruby/object:Gem::Version
4
- version: 0.2.30
3
+ version: !ruby/object:Gem::Version
4
+ hash: 41
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 2
9
+ - 31
10
+ version: 0.2.31
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Jordan Sissel
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-05-30 00:00:00.000000000 -07:00
17
+
18
+ date: 2011-06-08 00:00:00 -07:00
13
19
  default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
16
22
  name: json
17
- requirement: &18005360 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
18
25
  none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
22
- version: '0'
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
23
33
  type: :runtime
24
- prerelease: false
25
- version_requirements: *18005360
26
- description: Turn directories into packages. Fix broken packages. Win the package
27
- building game.
34
+ version_requirements: *id001
35
+ description: Turn directories into packages. Fix broken packages. Win the package building game.
28
36
  email: jls@semicomplete.com
29
- executables:
37
+ executables:
30
38
  - fpm
31
39
  - fpm-npm
32
40
  extensions: []
41
+
33
42
  extra_rdoc_files: []
34
- files:
35
- - lib/rpm/tag.rb
36
- - lib/rpm/namespace.rb
37
- - lib/rpm/lead.rb
38
- - lib/rpm/header.rb
39
- - lib/rpm/rpmfile.rb
43
+
44
+ files:
40
45
  - lib/fpm/builder.rb
41
46
  - lib/fpm/flags.rb
42
- - lib/fpm/namespace.rb
43
47
  - lib/fpm/source.rb
44
48
  - lib/fpm/rubyfixes.rb
49
+ - lib/fpm/errors.rb
50
+ - lib/fpm/target/deb.rb
51
+ - lib/fpm/target/rpm.rb
52
+ - lib/fpm/package.rb
53
+ - lib/fpm/namespace.rb
45
54
  - lib/fpm/source/python.rb
46
- - lib/fpm/source/npm.rb
47
- - lib/fpm/source/dir.rb
48
- - lib/fpm/source/rpm.rb
49
- - lib/fpm/source/pyfpm/__init__.pyc
50
- - lib/fpm/source/pyfpm/get_metadata.pyc
51
- - lib/fpm/source/pyfpm/get_metadata.py
52
55
  - lib/fpm/source/pyfpm/__init__.py
56
+ - lib/fpm/source/pyfpm/get_metadata.py
53
57
  - lib/fpm/source/tar.rb
58
+ - lib/fpm/source/dir.rb
59
+ - lib/fpm/source/rpm.rb
60
+ - lib/fpm/source/npm.rb
54
61
  - lib/fpm/source/gem.rb
55
- - lib/fpm/target/deb.rb
56
- - lib/fpm/target/rpm.rb
57
62
  - lib/fpm/program.rb
58
- - lib/fpm/package.rb
59
63
  - lib/fpm.rb
64
+ - lib/rpm/rpmfile.rb
65
+ - lib/rpm/tag.rb
66
+ - lib/rpm/lead.rb
67
+ - lib/rpm/xulrunner-1.9.2.10-1.fc14.1.x86_64.rpm
68
+ - lib/rpm/header.rb
69
+ - lib/rpm/namespace.rb
60
70
  - bin/fpm
61
71
  - bin/fpm-npm
62
72
  - templates/rpm.erb
@@ -67,27 +77,37 @@ files:
67
77
  has_rdoc: true
68
78
  homepage: https://github.com/jordansissel/fpm
69
79
  licenses: []
80
+
70
81
  post_install_message:
71
82
  rdoc_options: []
72
- require_paths:
83
+
84
+ require_paths:
73
85
  - lib
74
86
  - lib
75
- required_ruby_version: !ruby/object:Gem::Requirement
87
+ required_ruby_version: !ruby/object:Gem::Requirement
76
88
  none: false
77
- requirements:
78
- - - ! '>='
79
- - !ruby/object:Gem::Version
80
- version: '0'
81
- required_rubygems_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ hash: 3
93
+ segments:
94
+ - 0
95
+ version: "0"
96
+ required_rubygems_version: !ruby/object:Gem::Requirement
82
97
  none: false
83
- requirements:
84
- - - ! '>='
85
- - !ruby/object:Gem::Version
86
- version: '0'
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ hash: 3
102
+ segments:
103
+ - 0
104
+ version: "0"
87
105
  requirements: []
106
+
88
107
  rubyforge_project:
89
108
  rubygems_version: 1.6.2
90
109
  signing_key:
91
110
  specification_version: 3
92
111
  summary: fpm - package building and mangling
93
112
  test_files: []
113
+