fpm-cookery 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -6,3 +6,5 @@ cache/
6
6
  pkg/
7
7
  tmp-build/
8
8
  tmp-dest/
9
+ .buildpath
10
+ .project
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # v0.12.0 (2013-01-28)
2
+ * Copy source files with no or unknown file extension to
3
+ the source dir. (smasset)
4
+ * Set deb\_user and deb\_group attributes to root.
5
+ * Ensure passing the vendor attribute to fpm. (aussielunix)
6
+ * Unbreak logging with the latest fpm.
7
+
1
8
  # v0.11.0 (2012-08-20)
2
9
  * Add source handler to handle local source directories via file:// urls.
3
10
 
@@ -1,5 +1,6 @@
1
1
  require 'fpm/cookery/log/output/null'
2
2
  require 'cabin' # Via fpm.
3
+ require 'json'
3
4
 
4
5
  module FPM
5
6
  module Cookery
@@ -23,6 +23,8 @@ module FPM
23
23
  attributes[:prefix] = '/'
24
24
  attributes[:chdir] = recipe.destdir.to_s
25
25
  attributes[:deb_compression] = 'gzip'
26
+ attributes[:deb_user] = 'root'
27
+ attributes[:deb_group] = 'root'
26
28
  attributes[:rpm_compression] = 'gzip'
27
29
  attributes[:rpm_digest] = 'md5'
28
30
  attributes[:rpm_user] = 'root'
@@ -151,6 +151,7 @@ module FPM
151
151
 
152
152
  input.version = version
153
153
  input.maintainer = maintainer
154
+ input.vendor = vendor if vendor
154
155
  input.epoch = epoch if epoch
155
156
 
156
157
  add_scripts(recipe, input)
@@ -30,6 +30,12 @@ module FPM
30
30
  safesystem(local_path)
31
31
  when '.zip'
32
32
  safesystem('unzip', '-d', local_path.basename('.zip'), local_path)
33
+ else
34
+ unless local_path.basename.exist?
35
+ Dir.mkdir(local_path.basename)
36
+ end
37
+
38
+ safesystem('cp', '-f', local_path, local_path.basename)
33
39
  end
34
40
  extracted_source
35
41
  end
@@ -1,5 +1,5 @@
1
1
  module FPM
2
2
  module Cookery
3
- VERSION = '0.11.0'
3
+ VERSION = '0.12.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fpm-cookery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-20 00:00:00.000000000 Z
12
+ date: 2013-01-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fpm
@@ -155,18 +155,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
155
155
  - - ! '>='
156
156
  - !ruby/object:Gem::Version
157
157
  version: '0'
158
- segments:
159
- - 0
160
- hash: -1591651962376197617
161
158
  required_rubygems_version: !ruby/object:Gem::Requirement
162
159
  none: false
163
160
  requirements:
164
161
  - - ! '>='
165
162
  - !ruby/object:Gem::Version
166
163
  version: '0'
167
- segments:
168
- - 0
169
- hash: -1591651962376197617
170
164
  requirements: []
171
165
  rubyforge_project: fpm-cookery
172
166
  rubygems_version: 1.8.24