fpm-cookery 0.27.0 → 0.28.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: 2db5b71e180868ebd32db10eb630c9d0a24f975d
4
- data.tar.gz: de82341b062459e515d836d76eec7fb6fe30b926
3
+ metadata.gz: 0a665d466e70afc2e4c508512b2ba36cceac7337
4
+ data.tar.gz: 48dab70d5d15219594323fa6191054322d988eae
5
5
  SHA512:
6
- metadata.gz: 298216d99ecf3533e188f31114c40230f90c22e5476bc57faa270467f0d4439f940b6b41624991257d8c2b99bc3b6b13454566c9314f44fcf35c39a14231caa2
7
- data.tar.gz: e65f6b0a111d725c03c0093be43fa39c98b7dd664849189280051f0f945c47135f441ee8b60186fc4ff01405b1e41d6b2f16e2017868c6ed72441e61e4fc699f
6
+ metadata.gz: 46abd44a9cb99b4bec920d415310421e34354502c9826d05feee09d3adde552c2b9c10acb2b1b6017a57294eb8672ee5f73764dfec3c7cf0778c37c179b4340c
7
+ data.tar.gz: 2421b226b5b365a9ea1a0046c3a714f8826c24f07d21f89bbebc27739e8720358d5ed3d335f76b5f61b544a39d87b16d83ca2614869abea974b9b777cbf6f24d
@@ -4,6 +4,7 @@ rvm:
4
4
  - 1.9.3
5
5
  - 2.0.0
6
6
  - 2.1.1
7
+ - 2.2.1
7
8
  - ruby-head
8
9
 
9
10
  matrix:
@@ -1,3 +1,10 @@
1
+ # v0.28.0 (2015-07-10)
2
+ * Add :extract option to git source handler.
3
+ Using ":extract => :clone" with a :git source handler will clone the
4
+ repository into the build directory.
5
+ * Ignore more relative dependencies in dependency inspector. (sewhyte / #111)
6
+ * Add support for extracting tar.xz files. (djhaskin987 / #109)
7
+
1
8
  # v0.27.0 (2015-04-02)
2
9
  * Make default prefix configurable. (#104)
3
10
  * Unbreak running on Ruby 2.2. (#105)
@@ -87,8 +87,8 @@ module FPM
87
87
  return false
88
88
  end
89
89
 
90
- # We can't handle >=, <<, >>, <=
91
- if package =~ />=|<<|>>|<=/
90
+ # We can't handle >=, <<, >>, <=, <, >
91
+ if package =~ />=|<<|>>|<=|<|>/
92
92
  Log.warn "Required package '#{package}' has a relative version requirement; not attempting to find/install a package to satisfy"
93
93
  return false
94
94
  end
@@ -23,7 +23,7 @@ module FPM
23
23
  def extract(config = {})
24
24
  Dir.chdir(builddir) do
25
25
  case local_path.extname
26
- when '.bz2', '.gz', '.tgz'
26
+ when '.bz2', '.gz', '.tgz', '.xz'
27
27
  safesystem('tar', 'xf', local_path)
28
28
  when '.shar', '.bin'
29
29
  File.chmod(0755, local_path)
@@ -50,11 +50,21 @@ module FPM
50
50
  extracted_source << '-HEAD'
51
51
  end
52
52
 
53
- # Trailing '/' is important! (see git-checkout-index(1))
54
- git('checkout-index', '-a', '-f', "--prefix=#{extracted_source}/")
55
53
 
56
- if options[:submodule]
57
- git('submodule', 'foreach', "mkdir -p #{extracted_source}/$path && cp -r . #{extracted_source}/$path")
54
+ case options.fetch(:extract, :default).to_s.to_sym
55
+ when :clone
56
+ if File.exist?(extracted_source)
57
+ Log.info("Source directory has already been cloned into #{extracted_source}")
58
+ else
59
+ git('clone', '-l', '--recurse-submodules', Dir.pwd, extracted_source)
60
+ end
61
+ else
62
+ # Trailing '/' is important! (see git-checkout-index(1))
63
+ git('checkout-index', '-a', '-f', "--prefix=#{extracted_source}/")
64
+
65
+ if options[:submodule]
66
+ git('submodule', 'foreach', "mkdir -p #{extracted_source}/$path && cp -r . #{extracted_source}/$path")
67
+ end
58
68
  end
59
69
  end
60
70
 
@@ -1,5 +1,5 @@
1
1
  module FPM
2
2
  module Cookery
3
- VERSION = '0.27.0'
3
+ VERSION = '0.28.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.27.0
4
+ version: 0.28.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: 2015-04-02 00:00:00.000000000 Z
11
+ date: 2015-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -236,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
236
236
  version: '0'
237
237
  requirements: []
238
238
  rubyforge_project: fpm-cookery
239
- rubygems_version: 2.2.2
239
+ rubygems_version: 2.2.3
240
240
  signing_key:
241
241
  specification_version: 4
242
242
  summary: A tool for building software packages with fpm.