fpm-cookery 0.23.0 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e48069a048f5d48cd9edfca36c8398787fe34c7e
4
- data.tar.gz: dd355ad29339f2313018cd548768d25479ddb9ac
3
+ metadata.gz: 4bc3a1f69bcffcb2a64150d54766a2816273cbd6
4
+ data.tar.gz: 5b77e8699f5124bef85174643f368cb17b726b33
5
5
  SHA512:
6
- metadata.gz: e5ddcc2790270e6fdb5068b0a69914870aa25210707e3a4a5b85c9f0d02537d5b5d5fea2e24057c2d9ea6e57e27c55d778dc306b0e1c94a32968b71986a5288c
7
- data.tar.gz: 9e1ccf981443a0cfb8366a33fd94ceca6d5844d6325e7b0bb54e15211c3a7b5abdddba113f01d1e82fbdeabec6f9655cc129fc364da52eac083ffc770a8c0d9a
6
+ metadata.gz: 1bf422e20d2e4249c285acd5483b1522c73dcb36eb393055fe0c72d37e8f400f04fa5bc007c602735ecc60d2da6c9238b443cf53d3f5004e5efeff6d0a144ddc
7
+ data.tar.gz: bbeae7a0b3519aff36fb0510f27f98abf45d078a6b0e7e773a1da9e98a0a1ede060f1d6091db06dc9f0d1a8edcf79c44f97cb57c14de3a87bbef5d830e6f1338
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # v0.24.0 (2014-06-03)
2
+ * Add amazon linux to the list of RPM-based distros. (skottler / #88)
3
+ * Add support for PEAR packages. (mlafeldt / #85)
4
+ * Add support for CPAN packages. (mlafeldt / #87)
5
+
1
6
  # v0.23.0 (2014-05-29)
2
7
  * Add `--skip-package` command line flag. (#86)
3
8
 
@@ -17,9 +17,9 @@ module FPM
17
17
 
18
18
  def self.target
19
19
  @target ||= case platform
20
- when :centos, :redhat, :fedora then :rpm
21
- when :debian, :ubuntu then :deb
22
- when :darwin then :osxpkg
20
+ when :centos, :redhat, :fedora, :amazon then :rpm
21
+ when :debian, :ubuntu then :deb
22
+ when :darwin then :osxpkg
23
23
  end
24
24
  end
25
25
 
@@ -0,0 +1,23 @@
1
+ require 'fpm/package/cpan'
2
+ require 'fpm/cookery/package/package'
3
+
4
+ module FPM
5
+ module Cookery
6
+ module Package
7
+ class CPAN < FPM::Cookery::Package::Package
8
+ def fpm_object
9
+ FPM::Package::CPAN.new
10
+ end
11
+
12
+ def package_setup
13
+ # Other attributes may be passed via fpm_attributes
14
+ fpm.version = recipe.version
15
+ end
16
+
17
+ def package_input
18
+ fpm.input(recipe.name)
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,26 @@
1
+ require 'fpm/package/pear'
2
+ require 'fpm/cookery/package/package'
3
+
4
+ module FPM
5
+ module Cookery
6
+ module Package
7
+ class PEAR < FPM::Cookery::Package::Package
8
+ def fpm_object
9
+ FPM::Package::PEAR.new
10
+ end
11
+
12
+ def package_setup
13
+ fpm.version = recipe.version
14
+ # Other attributes may be passed via fpm_attributes
15
+ fpm.attributes[:pear_package_name_prefix] = recipe.pear_package_name_prefix unless recipe.pear_package_name_prefix.nil?
16
+ fpm.attributes[:pear_channel] = recipe.pear_channel unless recipe.pear_channel.nil?
17
+ fpm.attributes[:pear_php_dir] = recipe.pear_php_dir unless recipe.pear_php_dir.nil?
18
+ end
19
+
20
+ def package_input
21
+ fpm.input(recipe.name)
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -5,9 +5,11 @@ require 'fpm/cookery/source'
5
5
  require 'fpm/cookery/source_handler'
6
6
  require 'fpm/cookery/utils'
7
7
  require 'fpm/cookery/path_helper'
8
+ require 'fpm/cookery/package/cpan'
8
9
  require 'fpm/cookery/package/dir'
9
10
  require 'fpm/cookery/package/gem'
10
11
  require 'fpm/cookery/package/npm'
12
+ require 'fpm/cookery/package/pear'
11
13
  require 'fpm/cookery/package/python'
12
14
 
13
15
  module FPM
@@ -184,5 +186,19 @@ module FPM
184
186
  FPM::Cookery::Package::Python.new(self, config)
185
187
  end
186
188
  end
189
+
190
+ class CPANRecipe < BaseRecipe
191
+ def input(config)
192
+ FPM::Cookery::Package::CPAN.new(self, config)
193
+ end
194
+ end
195
+
196
+ class PEARRecipe < BaseRecipe
197
+ attr_rw :pear_package_name_prefix, :pear_channel, :pear_php_dir
198
+
199
+ def input(config)
200
+ FPM::Cookery::Package::PEAR.new(self, config)
201
+ end
202
+ end
187
203
  end
188
204
  end
@@ -1,5 +1,5 @@
1
1
  module FPM
2
2
  module Cookery
3
- VERSION = '0.23.0'
3
+ VERSION = '0.24.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fpm-cookery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernd Ahlers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-29 00:00:00.000000000 Z
11
+ date: 2014-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -139,11 +139,13 @@ files:
139
139
  - lib/fpm/cookery/log/output/console_color.rb
140
140
  - lib/fpm/cookery/log/output/null.rb
141
141
  - lib/fpm/cookery/omnibus_packager.rb
142
+ - lib/fpm/cookery/package/cpan.rb
142
143
  - lib/fpm/cookery/package/dir.rb
143
144
  - lib/fpm/cookery/package/gem.rb
144
145
  - lib/fpm/cookery/package/maintainer.rb
145
146
  - lib/fpm/cookery/package/npm.rb
146
147
  - lib/fpm/cookery/package/package.rb
148
+ - lib/fpm/cookery/package/pear.rb
147
149
  - lib/fpm/cookery/package/python.rb
148
150
  - lib/fpm/cookery/package/version.rb
149
151
  - lib/fpm/cookery/packager.rb