Cross package maker. DEB/RPM generation or conversion. Derived from jordansissel/fpm.

⌈⌋ ⎇ branch:  cross package maker


Check-in [4fded3f0b4]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:FPM::Package#convert does not keep defaults attrs This is a failing spec to show a bug in FPM::Package#convert: Default attributes of the target package format are applied when calling .new, but then discarded and entirely replaced with the attributes of the source package.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 4fded3f0b42409fb235d05362e356a28801fed8e
User & Date: github.com@track.jonfram.net 2013-09-04 03:51:09
Context
2013-09-04
03:51
FPM::Package#convert now maintains default attrs FPM::Package#convert no longer discards the default values of the attributes of the target package. Instead the attributes of the source package are merged into the default attributes of the target package. check-in: b8b1c8c981 user: github.com@track.jonfram.net tags: trunk
03:51
FPM::Package#convert does not keep defaults attrs This is a failing spec to show a bug in FPM::Package#convert: Default attributes of the target package format are applied when calling .new, but then discarded and entirely replaced with the attributes of the source package. check-in: 4fded3f0b4 user: github.com@track.jonfram.net tags: trunk
2013-08-27
18:01
Merge pull request #533 from petere/gem-spec-conflict Fix gem command conflict with specific_install check-in: 373c11379e user: jls@semicomplete.com tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added spec/fpm/package_convert_spec.rb.













































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require "spec_setup"
require "fpm" # local

describe "FPM::Package#convert" do

    let(:gem_package_name_prefix) { 'rubygem19' }
    let(:default_rpm_compression) { 'gzip' }

    subject do
      source = FPM::Package::Gem.new
      source.attributes[:gem_package_name_prefix ] = 'rubygem19'
      source.convert(FPM::Package::RPM)
    end

    it "applies the default attributes for target format" do
      insist { subject.attributes[:rpm_compression] } == default_rpm_compression
    end

    it "remembers attributes applied to source" do
      insist { subject.attributes[:gem_package_name_prefix] } == gem_package_name_prefix
    end
end