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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDg4YWE1MTIzYTg3NTNhYjA1NTc3OWEyMTRiYTkyNDljNjgxYTFlMQ==
4
+ ZWMwNGZiYzMzOWE5Yzk2ODVhZmVhNjUyZWJlNjllNGYzMmRlYmY1Nw==
5
5
  data.tar.gz: !binary |-
6
- MzFjNjY2Y2Q4NDI4YWU5MGE4YzhlYTA0MzMyMDViYzMyMWUwOTQ4YQ==
6
+ ZmI4ZWU1OGUyMjAzNGI2MTk5MTcwODE5N2FjMTA0ZjQ0YTE2ZWQyZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjQ1MWQ0MDI4ODgzZTFjMjE0MWU4Y2I3YzM1OTMyYzgxMThhN2MyYzFkODM3
10
- ZmQwNWEzMmViZjVlOTdhNzk4ZjRlODIwNGRhOTg2ODVkZmMzZWZlM2QxYzEz
11
- YWRiMzYwYWM2ZTdkYWEyMzgyODQ3ZTRiNjIxNWNiMzU4ZWNiOWM=
9
+ MjdlODY3MWUwMjE2M2ZjNjE3MTg5ZDE3NmY5M2M3MzkzN2ExMGRiOTIwZDM5
10
+ NDY3YTBlMWQ5OGE3ZDk2YmMyNDMxMWFlZmU4N2M3MTc3NTI2OWM0OWE3MzZi
11
+ MDI4YzE2YTRmNDkwZGNiN2FjNTRmMTFkYzdiN2M3Yjk4OTk5MTU=
12
12
  data.tar.gz: !binary |-
13
- MDc2NzgxYmZkNDA1ZDg4NDVlZTEwYjg2MmM4NjNmYjM2ZThkN2Y2ODMyMzVj
14
- ZGQyMzVhZjdkZjZmOTNkYTVmMjRkNzRmOWI3NjU2ZmM4M2Y3ZDNmNjA5ZTQw
15
- ODIwOGJlYTc5ZjEyNTE5MzcwNzY5ZTExM2M4NWEwMzA5NzNhNWU=
13
+ YmU0ODYxNzdlZTU0MDdmNzlhZjNlYTM4YjE1ZmRjMzA3N2Y0OGQ5NjQ2NTcz
14
+ YjIzNmU4MGU5NTA3Mjk3NWRmZjI1YWE1MDZmNTkzNGZjNTkxM2IxYWY4MWM1
15
+ YjgxYjg2NWYxNzY4NDIzNzUyYTkzM2YwMGNiMzU4Mzc5ZjI1YTQ=
data/.travis.yml CHANGED
@@ -1,11 +1,11 @@
1
- script: rake test
1
+ script: bundle exec rake test
2
2
  rvm:
3
3
  - 1.8.7
4
4
  - 1.9.3
5
5
  - 2.0.0
6
- - 2.1.0
7
6
  - ruby-head
8
7
 
9
8
  matrix:
10
9
  allow_failures:
11
10
  - rvm: ruby-head
11
+ - rvm: 2.1.0 # Problem with puppet monkey patch... waiting for >3.4.2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.17.1 (2014-02-07)
2
+ * Unbreak deb package building.
3
+
1
4
  # v0.17.0 (2014-02-01)
2
5
  * Update fpm dependency to 1.0.0. (joschi / #62)
3
6
  * Add `-q` command line option to disable progress bars. (#58)
@@ -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] = 'gzip'
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'
@@ -26,7 +26,8 @@ module FPM
26
26
  end
27
27
 
28
28
  def mkdir
29
- FileUtils.mkdir_p(self.to_s)
29
+ # FileUtils.mkdir_p in Ruby 1.8.7 does not return an array.
30
+ Array(FileUtils.mkdir_p(self.to_s))
30
31
  end
31
32
 
32
33
  def install(src, new_basename = nil)
@@ -1,5 +1,5 @@
1
1
  module FPM
2
2
  module Cookery
3
- VERSION = '0.17.0'
3
+ VERSION = '0.17.1'
4
4
  end
5
5
  end
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
- error.invalid_keys.must_equal [:__foo__, :__bar__]
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
- let(:target) { 'rpm' }
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
- let(:target) { '_foo_' }
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
- let(:target) { 'rpm' }
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.0
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-01 00:00:00.000000000 Z
11
+ date: 2014-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest