fpm-cookery 0.14.0 → 0.14.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/fpm-cookery.gemspec +1 -2
- data/lib/fpm/cookery/source.rb +2 -3
- data/lib/fpm/cookery/version.rb +1 -1
- data/recipes/fpm-cookery/recipe.rb +3 -2
- data/recipes/fpm-cookery/ruby.rb +10 -8
- data/spec/source_spec.rb +9 -0
- metadata +17 -33
data/CHANGELOG.md
CHANGED
data/fpm-cookery.gemspec
CHANGED
@@ -18,11 +18,10 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
|
-
s.add_development_dependency "fpm", "~> 0.4"
|
22
21
|
s.add_development_dependency "minitest", "~> 4.0"
|
23
22
|
s.add_development_dependency "rake"
|
24
|
-
s.add_development_dependency "puppet"
|
25
23
|
s.add_runtime_dependency "fpm", "~> 0.4"
|
26
24
|
s.add_runtime_dependency "facter"
|
27
25
|
s.add_runtime_dependency "puppet"
|
26
|
+
s.add_runtime_dependency "addressable"
|
28
27
|
end
|
data/lib/fpm/cookery/source.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'uri'
|
1
|
+
require 'addressable/uri'
|
2
2
|
|
3
3
|
module FPM
|
4
4
|
module Cookery
|
@@ -7,8 +7,7 @@ module FPM
|
|
7
7
|
|
8
8
|
def initialize(url, options = nil)
|
9
9
|
options ||= {}
|
10
|
-
|
11
|
-
@url = URI(url.to_s)
|
10
|
+
@url = Addressable::URI.parse(url.to_s)
|
12
11
|
@provider = options[:with]
|
13
12
|
@options = options
|
14
13
|
end
|
data/lib/fpm/cookery/version.rb
CHANGED
@@ -2,9 +2,10 @@ class FPMCookery < FPM::Cookery::Recipe
|
|
2
2
|
description 'building packages'
|
3
3
|
|
4
4
|
name 'fpm-cookery'
|
5
|
-
version '0.
|
5
|
+
version '0.14.0'
|
6
6
|
revision 0
|
7
7
|
homepage 'https://github.com/bernd/fpm-cookery'
|
8
|
+
license 'MIT'
|
8
9
|
|
9
10
|
source '', :with => :noop
|
10
11
|
|
@@ -29,7 +30,7 @@ class FPMCookery < FPM::Cookery::Recipe
|
|
29
30
|
|
30
31
|
def gem_install(name, version = nil)
|
31
32
|
v = version.nil? ? '' : "-v #{version}"
|
32
|
-
cleanenv_safesystem "#{destdir}/embedded/bin/gem install #{v} #{name}"
|
33
|
+
cleanenv_safesystem "#{destdir}/embedded/bin/gem install --no-ri --no-rdoc #{v} #{name}"
|
33
34
|
end
|
34
35
|
|
35
36
|
def create_post_install_hook
|
data/recipes/fpm-cookery/ruby.rb
CHANGED
@@ -2,25 +2,27 @@ class Ruby200 < FPM::Cookery::Recipe
|
|
2
2
|
description 'The Ruby virtual machine'
|
3
3
|
|
4
4
|
name 'ruby'
|
5
|
-
version '2.0.0.
|
5
|
+
version '2.0.0.195'
|
6
6
|
revision 0
|
7
7
|
homepage 'http://www.ruby-lang.org/'
|
8
|
-
source 'http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-
|
9
|
-
sha256 '
|
8
|
+
source 'http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p195.tar.bz2'
|
9
|
+
sha256 '0be32aef7a7ab6e3708cc1d65cd3e0a99fa801597194bbedd5799c11d652eb5b'
|
10
10
|
|
11
11
|
license 'The Ruby License'
|
12
12
|
section 'interpreters'
|
13
13
|
|
14
14
|
build_depends 'autoconf', 'libreadline6-dev', 'bison', 'zlib1g-dev',
|
15
|
-
'libssl-dev', 'libyaml-dev', 'libffi-dev', 'libgdbm-dev',
|
16
|
-
'libreadline6-dev'
|
15
|
+
'libssl-dev', 'libyaml-dev', 'libffi-dev', 'libgdbm-dev',
|
16
|
+
'libncurses5-dev', 'libreadline6-dev'
|
17
17
|
|
18
18
|
depends 'libffi6', 'libncurses5', 'libreadline6', 'libssl1.0.0',
|
19
|
-
'libtinfo5', 'libyaml-0-2', 'zlib1g', 'libffi6', 'libgdbm3',
|
20
|
-
'libreadline6'
|
19
|
+
'libtinfo5', 'libyaml-0-2', 'zlib1g', 'libffi6', 'libgdbm3',
|
20
|
+
'libncurses5', 'libreadline6'
|
21
21
|
|
22
22
|
def build
|
23
|
-
configure :prefix => destdir,
|
23
|
+
configure :prefix => destdir,
|
24
|
+
'enable-shared' => true,
|
25
|
+
'disable-install-doc' => true
|
24
26
|
make
|
25
27
|
end
|
26
28
|
|
data/spec/source_spec.rb
CHANGED
@@ -45,4 +45,13 @@ describe "Source" do
|
|
45
45
|
source.path.must_equal '/opt/src/foo'
|
46
46
|
end
|
47
47
|
end
|
48
|
+
|
49
|
+
context "with a private GitHub URL" do
|
50
|
+
it "can handle it" do
|
51
|
+
source = FPM::Cookery::Source.new('git@github.com:foo/bar.git')
|
52
|
+
|
53
|
+
source.url.must_equal 'git@github.com:foo/bar.git'
|
54
|
+
source.path.must_equal 'foo/bar.git'
|
55
|
+
end
|
56
|
+
end
|
48
57
|
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.14.
|
4
|
+
version: 0.14.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,24 +9,8 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-06-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: fpm
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0.4'
|
22
|
-
type: :development
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0.4'
|
30
14
|
- !ruby/object:Gem::Dependency
|
31
15
|
name: minitest
|
32
16
|
requirement: !ruby/object:Gem::Requirement
|
@@ -60,39 +44,39 @@ dependencies:
|
|
60
44
|
- !ruby/object:Gem::Version
|
61
45
|
version: '0'
|
62
46
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
47
|
+
name: fpm
|
64
48
|
requirement: !ruby/object:Gem::Requirement
|
65
49
|
none: false
|
66
50
|
requirements:
|
67
|
-
- -
|
51
|
+
- - ~>
|
68
52
|
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
type: :
|
53
|
+
version: '0.4'
|
54
|
+
type: :runtime
|
71
55
|
prerelease: false
|
72
56
|
version_requirements: !ruby/object:Gem::Requirement
|
73
57
|
none: false
|
74
58
|
requirements:
|
75
|
-
- -
|
59
|
+
- - ~>
|
76
60
|
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
61
|
+
version: '0.4'
|
78
62
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
63
|
+
name: facter
|
80
64
|
requirement: !ruby/object:Gem::Requirement
|
81
65
|
none: false
|
82
66
|
requirements:
|
83
|
-
- -
|
67
|
+
- - ! '>='
|
84
68
|
- !ruby/object:Gem::Version
|
85
|
-
version: '0
|
69
|
+
version: '0'
|
86
70
|
type: :runtime
|
87
71
|
prerelease: false
|
88
72
|
version_requirements: !ruby/object:Gem::Requirement
|
89
73
|
none: false
|
90
74
|
requirements:
|
91
|
-
- -
|
75
|
+
- - ! '>='
|
92
76
|
- !ruby/object:Gem::Version
|
93
|
-
version: '0
|
77
|
+
version: '0'
|
94
78
|
- !ruby/object:Gem::Dependency
|
95
|
-
name:
|
79
|
+
name: puppet
|
96
80
|
requirement: !ruby/object:Gem::Requirement
|
97
81
|
none: false
|
98
82
|
requirements:
|
@@ -108,7 +92,7 @@ dependencies:
|
|
108
92
|
- !ruby/object:Gem::Version
|
109
93
|
version: '0'
|
110
94
|
- !ruby/object:Gem::Dependency
|
111
|
-
name:
|
95
|
+
name: addressable
|
112
96
|
requirement: !ruby/object:Gem::Requirement
|
113
97
|
none: false
|
114
98
|
requirements:
|
@@ -199,7 +183,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
199
183
|
version: '0'
|
200
184
|
segments:
|
201
185
|
- 0
|
202
|
-
hash:
|
186
|
+
hash: 2383654028403994465
|
203
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
204
188
|
none: false
|
205
189
|
requirements:
|
@@ -208,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
192
|
version: '0'
|
209
193
|
segments:
|
210
194
|
- 0
|
211
|
-
hash:
|
195
|
+
hash: 2383654028403994465
|
212
196
|
requirements: []
|
213
197
|
rubyforge_project: fpm-cookery
|
214
198
|
rubygems_version: 1.8.25
|