fpm-cookery 0.30.1 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/fpm/cookery/package/virtualenv.rb +25 -0
- data/lib/fpm/cookery/recipe.rb +8 -0
- data/lib/fpm/cookery/source_handler/curl.rb +1 -1
- data/lib/fpm/cookery/version.rb +1 -1
- data/recipes/httpie/recipe.rb +15 -0
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 82401ffb722aef0a168578e624216a7ccd85310d
|
|
4
|
+
data.tar.gz: d223a2d22f15a430e97d2fddaab03c4733a3ba13
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0a1c032e19a090b2856e51f111bfa8e74b376fab56861921d7d3b0970c7ad2584f7b35d7fac71bde72aec2260577d622f679287f23e0afe4acd2893f1d3f2c20
|
|
7
|
+
data.tar.gz: 9c72fcfaf623cfbd3aecc7d87c5ffb586828a1fbe0a9113bfaa97a6a3f9e06c6799388696fe8ca3550943277bbf66150a967792ea3ae3e246c4396c4fb88cfe3
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# v0.31.0 (2015-11-07)
|
|
2
|
+
* Add support for .tar archives. (devkid / #132)
|
|
3
|
+
* Add support for virtualenv recipes. (skoenig/zalando / #137)
|
|
4
|
+
|
|
1
5
|
# v0.30.1 (2015-09-17)
|
|
2
6
|
* Do not extract the source again if it has been extraced in a previous run. (#100)
|
|
3
7
|
* Allow passing a `Path` object to the `Path#/` method. (#127)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
require 'fpm/package/virtualenv'
|
|
2
|
+
require 'fpm/cookery/package/package'
|
|
3
|
+
|
|
4
|
+
module FPM
|
|
5
|
+
module Cookery
|
|
6
|
+
module Package
|
|
7
|
+
class Virtualenv < FPM::Cookery::Package::Package
|
|
8
|
+
def fpm_object
|
|
9
|
+
FPM::Package::Virtualenv.new
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def package_setup
|
|
13
|
+
fpm.version = recipe.version
|
|
14
|
+
fpm.attributes[:virtualenv_pypi] = recipe.virtualenv_pypi unless recipe.virtualenv_pypi.nil?
|
|
15
|
+
fpm.attributes[:virtualenv_install_location] = recipe.virtualenv_install_location unless recipe.virtualenv_install_location.nil?
|
|
16
|
+
fpm.attributes[:virtualenv_fix_name?] = false
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def package_input
|
|
20
|
+
fpm.input(recipe.name)
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
data/lib/fpm/cookery/recipe.rb
CHANGED
|
@@ -13,6 +13,7 @@ require 'fpm/cookery/package/gem'
|
|
|
13
13
|
require 'fpm/cookery/package/npm'
|
|
14
14
|
require 'fpm/cookery/package/pear'
|
|
15
15
|
require 'fpm/cookery/package/python'
|
|
16
|
+
require 'fpm/cookery/package/virtualenv'
|
|
16
17
|
|
|
17
18
|
module FPM
|
|
18
19
|
module Cookery
|
|
@@ -220,5 +221,12 @@ module FPM
|
|
|
220
221
|
FPM::Cookery::Package::PEAR.new(self, config)
|
|
221
222
|
end
|
|
222
223
|
end
|
|
224
|
+
|
|
225
|
+
class VirtualenvRecipe < BaseRecipe
|
|
226
|
+
attr_rw :virtualenv_pypi, :virtualenv_install_location, :virtualenv_fix_name
|
|
227
|
+
def input(config)
|
|
228
|
+
FPM::Cookery::Package::Virtualenv.new(self, config)
|
|
229
|
+
end
|
|
230
|
+
end
|
|
223
231
|
end
|
|
224
232
|
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', '.xz'
|
|
26
|
+
when '.bz2', '.gz', '.tgz', '.xz', '.tar'
|
|
27
27
|
safesystem('tar', 'xf', local_path)
|
|
28
28
|
when '.shar', '.bin'
|
|
29
29
|
File.chmod(0755, local_path)
|
data/lib/fpm/cookery/version.rb
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
class Httpie < FPM::Cookery::VirtualenvRecipe
|
|
2
|
+
description 'user-friendly cURL replacement featuring intuitive UI, JSON support, syntax highlighting'
|
|
3
|
+
|
|
4
|
+
name 'httpie'
|
|
5
|
+
version '0.9.2'
|
|
6
|
+
revision '1'
|
|
7
|
+
arch 'all'
|
|
8
|
+
|
|
9
|
+
homepage 'http://httpie.org'
|
|
10
|
+
|
|
11
|
+
build_depends 'python-virtualenv', 'python-setuptools'
|
|
12
|
+
|
|
13
|
+
virtualenv_fix_name false
|
|
14
|
+
virtualenv_install_location '/opt'
|
|
15
|
+
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.
|
|
4
|
+
version: 0.31.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-11-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -155,6 +155,7 @@ files:
|
|
|
155
155
|
- lib/fpm/cookery/package/pear.rb
|
|
156
156
|
- lib/fpm/cookery/package/python.rb
|
|
157
157
|
- lib/fpm/cookery/package/version.rb
|
|
158
|
+
- lib/fpm/cookery/package/virtualenv.rb
|
|
158
159
|
- lib/fpm/cookery/packager.rb
|
|
159
160
|
- lib/fpm/cookery/path.rb
|
|
160
161
|
- lib/fpm/cookery/path_helper.rb
|
|
@@ -197,6 +198,7 @@ files:
|
|
|
197
198
|
- recipes/fpm-cookery/recipe.rb
|
|
198
199
|
- recipes/fpm-cookery/ruby.rb
|
|
199
200
|
- recipes/fpm/recipe.rb
|
|
201
|
+
- recipes/httpie/recipe.rb
|
|
200
202
|
- recipes/json/recipe.rb
|
|
201
203
|
- recipes/nodejs/recipe.rb
|
|
202
204
|
- recipes/omnibustest/bundler-gem.rb
|
|
@@ -242,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
242
244
|
version: '0'
|
|
243
245
|
requirements: []
|
|
244
246
|
rubyforge_project: fpm-cookery
|
|
245
|
-
rubygems_version: 2.
|
|
247
|
+
rubygems_version: 2.4.5.1
|
|
246
248
|
signing_key:
|
|
247
249
|
specification_version: 4
|
|
248
250
|
summary: A tool for building software packages with fpm.
|