fpm-cookery 0.17.0 → 0.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.travis.yml +2 -2
- data/CHANGELOG.md +3 -0
- data/lib/fpm/cookery/package/package.rb +1 -1
- data/lib/fpm/cookery/path.rb +2 -1
- data/lib/fpm/cookery/version.rb +1 -1
- data/spec/config_spec.rb +2 -1
- data/spec/package_version_spec.rb +5 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWMwNGZiYzMzOWE5Yzk2ODVhZmVhNjUyZWJlNjllNGYzMmRlYmY1Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmI4ZWU1OGUyMjAzNGI2MTk5MTcwODE5N2FjMTA0ZjQ0YTE2ZWQyZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjdlODY3MWUwMjE2M2ZjNjE3MTg5ZDE3NmY5M2M3MzkzN2ExMGRiOTIwZDM5
|
10
|
+
NDY3YTBlMWQ5OGE3ZDk2YmMyNDMxMWFlZmU4N2M3MTc3NTI2OWM0OWE3MzZi
|
11
|
+
MDI4YzE2YTRmNDkwZGNiN2FjNTRmMTFkYzdiN2M3Yjk4OTk5MTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmU0ODYxNzdlZTU0MDdmNzlhZjNlYTM4YjE1ZmRjMzA3N2Y0OGQ5NjQ2NTcz
|
14
|
+
YjIzNmU4MGU5NTA3Mjk3NWRmZjI1YWE1MDZmNTkzNGZjNTkxM2IxYWY4MWM1
|
15
|
+
YjgxYjg2NWYxNzY4NDIzNzUyYTkzM2YwMGNiMzU4Mzc5ZjI1YTQ=
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -24,7 +24,7 @@ module FPM
|
|
24
24
|
@fpm.config_files += recipe.config_files
|
25
25
|
@fpm.directories += recipe.directories
|
26
26
|
|
27
|
-
@fpm.attributes[:deb_compression] = '
|
27
|
+
@fpm.attributes[:deb_compression] = 'gz'
|
28
28
|
@fpm.attributes[:deb_user] = 'root'
|
29
29
|
@fpm.attributes[:deb_group] = 'root'
|
30
30
|
@fpm.attributes[:rpm_compression] = 'gzip'
|
data/lib/fpm/cookery/path.rb
CHANGED
data/lib/fpm/cookery/version.rb
CHANGED
data/spec/config_spec.rb
CHANGED
@@ -137,7 +137,8 @@ describe 'Config' do
|
|
137
137
|
|
138
138
|
begin; config; rescue => e; error = e; end
|
139
139
|
|
140
|
-
|
140
|
+
# Sort array for Ruby 1.8.7 compat.
|
141
|
+
error.invalid_keys.sort.must_equal [:__bar__, :__foo__]
|
141
142
|
end
|
142
143
|
|
143
144
|
it 'works with strings' do
|
@@ -3,10 +3,11 @@ require 'fpm/cookery/package/version'
|
|
3
3
|
require 'ostruct'
|
4
4
|
|
5
5
|
describe 'Version' do
|
6
|
+
def target; 'deb'; end
|
7
|
+
|
6
8
|
let(:klass) { FPM::Cookery::Package::Version }
|
7
9
|
|
8
10
|
let(:recipe) { OpenStruct.new(:version => '1.2.0') }
|
9
|
-
let(:target) { 'deb' }
|
10
11
|
let(:config) { {} }
|
11
12
|
|
12
13
|
let(:version) { klass.new(recipe, target, config) }
|
@@ -19,7 +20,7 @@ describe 'Version' do
|
|
19
20
|
end
|
20
21
|
|
21
22
|
context 'with target rpm' do
|
22
|
-
|
23
|
+
def target; 'rpm'; end
|
23
24
|
|
24
25
|
it 'returns "."' do
|
25
26
|
version.vendor_delimiter.must_equal '.'
|
@@ -27,7 +28,7 @@ describe 'Version' do
|
|
27
28
|
end
|
28
29
|
|
29
30
|
context 'with unknown target' do
|
30
|
-
|
31
|
+
def target; '_foo_'; end
|
31
32
|
|
32
33
|
it 'returns "-"' do
|
33
34
|
version.vendor_delimiter.must_equal '-'
|
@@ -106,7 +107,7 @@ describe 'Version' do
|
|
106
107
|
end
|
107
108
|
|
108
109
|
describe '#to_str' do
|
109
|
-
|
110
|
+
def target; 'rpm'; end
|
110
111
|
|
111
112
|
it 'returns a string representation of the version' do
|
112
113
|
recipe.version = '1.3'
|
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.17.
|
4
|
+
version: 0.17.1
|
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-02-
|
11
|
+
date: 2014-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|