dpkg-tools 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +11 -0
- data/README +26 -0
- data/lib/dpkg-tools/command_line.rb +6 -3
- data/lib/dpkg-tools/package/builder.rb +13 -0
- data/lib/dpkg-tools/package/data.rb +8 -5
- data/lib/dpkg-tools/package/etc/builder.rb +16 -1
- data/lib/dpkg-tools/package/gem/setup.rb +6 -1
- data/lib/dpkg-tools/package/rails/builder.rb +2 -3
- data/lib/dpkg-tools/package/rails/data.rb +1 -1
- data/lib/dpkg-tools/package/rake.rb +18 -12
- data/lib/dpkg-tools/version.rb +2 -2
- data/resources/etc/changelog.yml +22 -0
- data/resources/etc/deb.yml +23 -0
- data/resources/etc/postinst.erb +3 -0
- data/resources/etc/prerm.erb +3 -0
- data/resources/gem/gems_to_deps.yml +45 -0
- data/resources/rails/apache.conf.erb +19 -0
- data/resources/rails/deb.yml +37 -0
- data/resources/rails/deploy.rb +51 -0
- data/resources/rails/logrotate.conf.erb +15 -0
- data/resources/rails/mongrel_cluster.yml +7 -0
- data/resources/rails/mongrel_cluster_init.erb +53 -0
- data/resources/rails/postinst.erb +63 -0
- data/resources/rails/postrm.erb +38 -0
- data/resources/rails/preinst.erb +36 -0
- data/spec/dpkg-tools/package/builder_spec.rb +136 -119
- data/spec/dpkg-tools/package/data_spec.rb +9 -0
- data/spec/dpkg-tools/package/etc/builder_spec.rb +39 -19
- data/spec/dpkg-tools/package/rails/builder_spec.rb +82 -83
- data/spec/dpkg-tools/package/rails/data_spec.rb +1 -1
- data/spec/dpkg-tools/package/rake_spec.rb +8 -2
- data/tasks/dist.rake +3 -1
- metadata +20 -3
@@ -18,7 +18,7 @@ describe DpkgTools::Package::Rails::Data, "base dependencies" do
|
|
18
18
|
end
|
19
19
|
|
20
20
|
it "should return a sensible list of base package dependencies" do
|
21
|
-
DpkgTools::Package::Rails::Data.
|
21
|
+
DpkgTools::Package::Rails::Data.base_package_deps.
|
22
22
|
should == [{:name => 'mysql-client'}, {:name => 'mysql-server'}, {:name => 'apache2'},
|
23
23
|
{:name => 'ruby', :requirements => ['>= 1.8.2']}]
|
24
24
|
end
|
@@ -77,11 +77,17 @@ describe DpkgTools::Package::BuildTasks, "instances" do
|
|
77
77
|
@rake['build'].invoke
|
78
78
|
end
|
79
79
|
|
80
|
-
it "should call the correct reset methods on a setup instance from dpkg:
|
80
|
+
it "should call the correct reset methods on a setup instance from dpkg:reset" do
|
81
81
|
@mock_setup.expects(:reset_maintainer_script_templates)
|
82
82
|
@mock_setup.expects(:reset_control_files)
|
83
83
|
@mock_setup.expects(:reset_package_resource_files)
|
84
84
|
|
85
|
-
@rake['dpkg:
|
85
|
+
@rake['dpkg:reset'].invoke
|
86
|
+
end
|
87
|
+
|
88
|
+
it "should be able regenerate control files from dpkg:control" do
|
89
|
+
@mock_setup.expects(:reset_control_files)
|
90
|
+
|
91
|
+
@rake['dpkg:control'].invoke
|
86
92
|
end
|
87
93
|
end
|
data/tasks/dist.rake
CHANGED
@@ -12,7 +12,8 @@ PKG_FILES = FileList[
|
|
12
12
|
'lib/**/*.rb',
|
13
13
|
'spec/**/*',
|
14
14
|
'stories/**/*',
|
15
|
-
'tasks/**/*'
|
15
|
+
'tasks/**/*',
|
16
|
+
'resources/**/*'
|
16
17
|
]
|
17
18
|
|
18
19
|
desc 'Generate RDoc'
|
@@ -35,6 +36,7 @@ spec = Gem::Specification.new do |s|
|
|
35
36
|
s.require_path = 'lib'
|
36
37
|
|
37
38
|
s.has_rdoc = true
|
39
|
+
puts "rd.options: #{rd.options.inspect}"
|
38
40
|
s.rdoc_options = rd.options
|
39
41
|
|
40
42
|
s.bindir = 'bin'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dpkg-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Patterson
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-06-
|
12
|
+
date: 2008-06-25 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -130,6 +130,23 @@ files:
|
|
130
130
|
- spec/spec_helper.rb
|
131
131
|
- tasks/dist.rake
|
132
132
|
- tasks/rspec.rake
|
133
|
+
- resources/etc
|
134
|
+
- resources/etc/changelog.yml
|
135
|
+
- resources/etc/deb.yml
|
136
|
+
- resources/etc/postinst.erb
|
137
|
+
- resources/etc/prerm.erb
|
138
|
+
- resources/gem
|
139
|
+
- resources/gem/gems_to_deps.yml
|
140
|
+
- resources/rails
|
141
|
+
- resources/rails/apache.conf.erb
|
142
|
+
- resources/rails/deb.yml
|
143
|
+
- resources/rails/deploy.rb
|
144
|
+
- resources/rails/logrotate.conf.erb
|
145
|
+
- resources/rails/mongrel_cluster.yml
|
146
|
+
- resources/rails/mongrel_cluster_init.erb
|
147
|
+
- resources/rails/postinst.erb
|
148
|
+
- resources/rails/postrm.erb
|
149
|
+
- resources/rails/preinst.erb
|
133
150
|
has_rdoc: true
|
134
151
|
homepage: http://dpkg-tools.rubyforge.org/
|
135
152
|
post_install_message:
|
@@ -160,6 +177,6 @@ rubyforge_project: dpkg-tools
|
|
160
177
|
rubygems_version: 1.1.1
|
161
178
|
signing_key:
|
162
179
|
specification_version: 2
|
163
|
-
summary: dpkg-tools-0.3.
|
180
|
+
summary: dpkg-tools-0.3.4 (build 2008-06-25T11:26:00+01:00) - Painless OS package building http://dpkg-tools.rubyforge.org/
|
164
181
|
test_files: []
|
165
182
|
|