deprec 2.0.8 → 2.0.9

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.
data/CHANGELOG CHANGED
@@ -1,5 +1,18 @@
1
1
  == git
2
2
 
3
+ == 2.0.9 (April 14, 2009)
4
+
5
+ * Use passenger-2.1.3
6
+
7
+ * Added support for Capistrano multistage. Generated config files will be
8
+ have a directory with the stage name prefixed to their local path.
9
+
10
+ e.g. mbailey$ cap production deprec:monit:config_gen
11
+
12
+ [done] config/production/monit/etc/init.d/monit written
13
+ [done] config/production/monit/etc/monitrc written
14
+ [done] config/production/monit/etc/monit.d/nothing written
15
+
3
16
  == 2.0.8 (March 17, 2009)
4
17
 
5
18
  * :config task now renders configs directly to remote server if locally
@@ -46,7 +46,7 @@ module Deprec2
46
46
  remote = options[:remote] || false
47
47
  mode = options[:mode] || 0755
48
48
  owner = options[:owner] || nil
49
-
49
+ stage = exists?(:stage) ? fetch(:stage).to_s : ''
50
50
  # replace this with a check for the file
51
51
  if ! template
52
52
  puts "render_template() requires a value for the template!"
@@ -76,7 +76,7 @@ module Deprec2
76
76
  sudo "chown #{owner} #{path}" if defined?(owner)
77
77
  elsif path
78
78
  # render to local file
79
- full_path = File.join('config', app.to_s, path)
79
+ full_path = File.join('config', stage, app.to_s, path)
80
80
  path_dir = File.dirname(full_path)
81
81
  if File.exists?(full_path)
82
82
  if IO.read(full_path) == rendered_template
@@ -158,8 +158,10 @@ module Deprec2
158
158
  # be made to configs on the servers so why would you need to pull them back?
159
159
  def push_configs(app, files)
160
160
  app = app.to_s
161
+ stage = exists?(:stage) ? fetch(:stage).to_s : ''
162
+
161
163
  files.each do |file|
162
- full_local_path = File.join('config', app, file[:path])
164
+ full_local_path = File.join('config', stage, app, file[:path])
163
165
  if File.exists?(full_local_path)
164
166
  # If the file path is relative we will prepend a path to this projects
165
167
  # own config directory for this service.
@@ -7,7 +7,7 @@ Capistrano::Configuration.instance(:must_exist).load do
7
7
  if ruby_vm_type == :ree
8
8
  # XXX We can't predict the version included with REE! :-(
9
9
  # XXX Need to find a workaround
10
- "#{ree_install_dir}/lib/ruby/gems/1.8/gems/passenger-2.1.2"
10
+ "#{ree_install_dir}/lib/ruby/gems/1.8/gems/passenger-2.1.3"
11
11
  else
12
12
  '/opt/passenger'
13
13
  end
@@ -28,7 +28,7 @@ Capistrano::Configuration.instance(:must_exist).load do
28
28
  SRC_PACKAGES[:passenger] = {
29
29
  :url => "git://github.com/FooBarWidget/passenger.git",
30
30
  :download_method => :git,
31
- :version => 'release-2.1.2', # Specify a tagged release to deploy
31
+ :version => 'release-2.1.3', # Specify a tagged release to deploy
32
32
  :configure => '',
33
33
  :make => '',
34
34
  :install => './bin/passenger-install-apache2-module'
@@ -44,7 +44,6 @@ Capistrano::Configuration.instance(:must_exist).load do
44
44
  SYSTEM_CONFIG_FILES[:apt_mirror].each do |file|
45
45
  deprec2.render_template(:apt_mirror, file.merge(:remote => true))
46
46
  end
47
- activate
48
47
  end
49
48
 
50
49
  # install dependencies for apt_mirror
@@ -35,9 +35,11 @@ Capistrano::Configuration.instance(:must_exist).load do
35
35
 
36
36
  # Install dependencies for Integrity
37
37
  task :install_deps, :roles => :ci do
38
- apt.install( {:base => %w(sqlite3 libsqlite3-dev git)}, :stable )
38
+ apt.install( {:base => %w(sqlite3 libsqlite3-dev git libxslt1-dev libxml2-dev)}, :stable )
39
39
  gem2.install 'sqlite3-ruby'
40
40
  gem2.install 'do_sqlite3'
41
+ # Gems your tests might need
42
+ gem2.install 'webrat'
41
43
  end
42
44
 
43
45
  SYSTEM_CONFIG_FILES[:integrity] = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deprec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.8
4
+ version: 2.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Bailey
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-17 00:00:00 +11:00
12
+ date: 2009-04-14 00:00:00 +10:00
13
13
  default_executable: depify
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency