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 +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +7 -0
- data/lib/fpm/cookery/dependency_inspector.rb +2 -2
- data/lib/fpm/cookery/source_handler/curl.rb +1 -1
- data/lib/fpm/cookery/source_handler/git.rb +14 -4
- data/lib/fpm/cookery/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a665d466e70afc2e4c508512b2ba36cceac7337
|
4
|
+
data.tar.gz: 48dab70d5d15219594323fa6191054322d988eae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46abd44a9cb99b4bec920d415310421e34354502c9826d05feee09d3adde552c2b9c10acb2b1b6017a57294eb8672ee5f73764dfec3c7cf0778c37c179b4340c
|
7
|
+
data.tar.gz: 2421b226b5b365a9ea1a0046c3a714f8826c24f07d21f89bbebc27739e8720358d5ed3d335f76b5f61b544a39d87b16d83ca2614869abea974b9b777cbf6f24d
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -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
|
-
|
57
|
-
|
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
|
|
data/lib/fpm/cookery/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|