passenger_debugger 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/LICENSE +20 -0
- data/README +33 -0
- data/Rakefile +25 -0
- data/VERSION.yml +5 -0
- data/lib/passenger_debugger.rb +6 -0
- data/lib/tasks/passenger_debugger.rake +12 -0
- data/passenger_debugger.gemspec +44 -0
- metadata +63 -0
data/.gitignore
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2008 Christopher Redinger
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
passenger_debugger===============
|
2
|
+
Restart passenger in debug model
|
3
|
+
|
4
|
+
== INSTALL:
|
5
|
+
gem install redinger-passenger_debugger -s http://gems.github.com
|
6
|
+
|
7
|
+
In development.rb add:
|
8
|
+
config.gem 'redinger-passenger_debugger', :lib => 'passenger_debugger'
|
9
|
+
In your Rakefile add:
|
10
|
+
require 'passenger_debugger'
|
11
|
+
Add the following lines to your ~/.rdebugrc
|
12
|
+
set autoeval
|
13
|
+
set autolist
|
14
|
+
set autoreload
|
15
|
+
|
16
|
+
== USAGE:
|
17
|
+
# Restart passenger in debug
|
18
|
+
rake passenger:debug
|
19
|
+
|
20
|
+
# Start loading a web page
|
21
|
+
# Connect to the remote process
|
22
|
+
rdebug -c
|
23
|
+
|
24
|
+
# Once you exit the debugger, you'll need to restart in debug mode to reconnect
|
25
|
+
|
26
|
+
== NOTES:
|
27
|
+
If you need to exit out of debug mode in a hurry, just remove the tmp/debug.txt file
|
28
|
+
|
29
|
+
Pretty much swiped from http://duckpunching.com/passenger-mod_rails-for-development-now-with-debugger
|
30
|
+
COPYRIGHT
|
31
|
+
=========
|
32
|
+
|
33
|
+
Copyright (c) 2008 Christopher Redinger. See LICENSE for details.
|
data/Rakefile
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'rake'
|
2
|
+
|
3
|
+
begin
|
4
|
+
require 'jeweler'
|
5
|
+
Jeweler::Tasks.new do |s|
|
6
|
+
s.name = "passenger_debugger"
|
7
|
+
s.summary = "Remote Debugging for Phusion Passenger"
|
8
|
+
s.email = "redinger@gmail.com"
|
9
|
+
s.homepage = "http://github.com/redinger/passenger_debugger"
|
10
|
+
s.authors = ["Christopher Redinger"]
|
11
|
+
end
|
12
|
+
rescue LoadError
|
13
|
+
puts "Jeweler not available. Install it with: sudo gem install jeweler"
|
14
|
+
end
|
15
|
+
|
16
|
+
require 'rake/rdoctask'
|
17
|
+
Rake::RDocTask.new do |rdoc|
|
18
|
+
rdoc.rdoc_dir = 'rdoc'
|
19
|
+
rdoc.title = 'passenger_debugger'
|
20
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
21
|
+
rdoc.rdoc_files.include('README*')
|
22
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
23
|
+
end
|
24
|
+
|
25
|
+
task :default => :test
|
data/VERSION.yml
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
namespace :passenger do
|
2
|
+
desc "Restart passenger"
|
3
|
+
task :restart do
|
4
|
+
system("touch tmp/restart.txt")
|
5
|
+
end
|
6
|
+
|
7
|
+
desc "Restart passenger in debug mode"
|
8
|
+
task :debug do
|
9
|
+
system("touch tmp/debug.txt")
|
10
|
+
Rake::Task['passenger:restart'].invoke
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{passenger_debugger}
|
8
|
+
s.version = "0.1.2"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Christopher Redinger"]
|
12
|
+
s.date = %q{2009-12-01}
|
13
|
+
s.email = %q{redinger@gmail.com}
|
14
|
+
s.extra_rdoc_files = [
|
15
|
+
"LICENSE",
|
16
|
+
"README"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
".gitignore",
|
20
|
+
"LICENSE",
|
21
|
+
"README",
|
22
|
+
"Rakefile",
|
23
|
+
"VERSION.yml",
|
24
|
+
"lib/passenger_debugger.rb",
|
25
|
+
"lib/tasks/passenger_debugger.rake",
|
26
|
+
"passenger_debugger.gemspec"
|
27
|
+
]
|
28
|
+
s.homepage = %q{http://github.com/redinger/passenger_debugger}
|
29
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
30
|
+
s.require_paths = ["lib"]
|
31
|
+
s.rubygems_version = %q{1.3.5}
|
32
|
+
s.summary = %q{Remote Debugging for Phusion Passenger}
|
33
|
+
|
34
|
+
if s.respond_to? :specification_version then
|
35
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
36
|
+
s.specification_version = 3
|
37
|
+
|
38
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
39
|
+
else
|
40
|
+
end
|
41
|
+
else
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
metadata
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: passenger_debugger
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Christopher Redinger
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-12-01 00:00:00 -05:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description:
|
17
|
+
email: redinger@gmail.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- LICENSE
|
24
|
+
- README
|
25
|
+
files:
|
26
|
+
- .gitignore
|
27
|
+
- LICENSE
|
28
|
+
- README
|
29
|
+
- Rakefile
|
30
|
+
- VERSION.yml
|
31
|
+
- lib/passenger_debugger.rb
|
32
|
+
- lib/tasks/passenger_debugger.rake
|
33
|
+
- passenger_debugger.gemspec
|
34
|
+
has_rdoc: true
|
35
|
+
homepage: http://github.com/redinger/passenger_debugger
|
36
|
+
licenses: []
|
37
|
+
|
38
|
+
post_install_message:
|
39
|
+
rdoc_options:
|
40
|
+
- --charset=UTF-8
|
41
|
+
require_paths:
|
42
|
+
- lib
|
43
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: "0"
|
48
|
+
version:
|
49
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: "0"
|
54
|
+
version:
|
55
|
+
requirements: []
|
56
|
+
|
57
|
+
rubyforge_project:
|
58
|
+
rubygems_version: 1.3.5
|
59
|
+
signing_key:
|
60
|
+
specification_version: 3
|
61
|
+
summary: Remote Debugging for Phusion Passenger
|
62
|
+
test_files: []
|
63
|
+
|