gc_hacks 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Gemfile +2 -0
  2. data/Rakefile +2 -3
  3. data/init.rb +12 -6
  4. data/lib/gc_hacks/version.rb +1 -1
  5. metadata +26 -41
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source "http://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in gc_hacks.gemspec
4
4
  gemspec
5
+
6
+ gem "rake", "~> 10.0.3"
data/Rakefile CHANGED
@@ -2,10 +2,9 @@ require 'bundler'
2
2
  Bundler::GemHelper.install_tasks
3
3
 
4
4
  require 'rake'
5
- require 'rake/testtask'
6
- require 'rake/rdoctask'
5
+ require 'rdoc/task'
7
6
 
8
- Rake::RDocTask.new do |rdoc|
7
+ RDoc::Task.new do |rdoc|
9
8
  rdoc.rdoc_dir = 'rdoc'
10
9
  rdoc.title = 'gc_hacks'
11
10
  rdoc.options << '--line-numbers' << '--inline-source' << '--quiet'
data/init.rb CHANGED
@@ -1,13 +1,19 @@
1
1
  if defined?(PhusionPassenger)
2
- class PhusionPassenger::AbstractRequestHandler
3
- alias_method :original_reset_signal_handlers, :reset_signal_handlers
2
+ if PhusionPassenger::VERSION_STRING < '4.0'
3
+ class PhusionPassenger::AbstractRequestHandler
4
+ alias_method :original_reset_signal_handlers, :reset_signal_handlers
4
5
 
5
- def reset_signal_handlers
6
- original_reset_signal_handlers
6
+ def reset_signal_handlers
7
+ original_reset_signal_handlers
8
+ GCHacks.install_signal_handlers
9
+ end
10
+
11
+ protected :original_reset_signal_handlers, :reset_signal_handlers
12
+ end
13
+ else
14
+ PhusionPassenger.on_event(:after_installing_signal_handlers) do
7
15
  GCHacks.install_signal_handlers
8
16
  end
9
-
10
- protected :original_reset_signal_handlers, :reset_signal_handlers
11
17
  end
12
18
 
13
19
  else
@@ -1,3 +1,3 @@
1
1
  module GCHacks
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,36 +1,26 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: gc_hacks
3
- version: !ruby/object:Gem::Version
4
- hash: 27
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 0
9
- - 2
10
- version: 0.0.2
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.0.3
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Stefan Kaes
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-04-25 00:00:00 +02:00
19
- default_executable:
12
+ date: 2013-06-07 00:00:00.000000000 Z
20
13
  dependencies: []
21
-
22
14
  description: This gem allows you to send GC related commands to a running Rails process
23
- email:
15
+ email:
24
16
  - skaes@railsexpress.de
25
- executables:
17
+ executables:
26
18
  - dump_heap
27
19
  - start_gc_trace
28
20
  - stop_gc_trace
29
21
  extensions: []
30
-
31
22
  extra_rdoc_files: []
32
-
33
- files:
23
+ files:
34
24
  - .gitignore
35
25
  - Gemfile
36
26
  - LICENCSE
@@ -45,39 +35,34 @@ files:
45
35
  - lib/gc_hacks/railtie.rb
46
36
  - lib/gc_hacks/version.rb
47
37
  - rails/init.rb
48
- has_rdoc: true
49
38
  homepage: https://github.com/skaes/gc_hacks
50
39
  licenses: []
51
-
52
40
  post_install_message:
53
41
  rdoc_options: []
54
-
55
- require_paths:
42
+ require_paths:
56
43
  - lib
57
- required_ruby_version: !ruby/object:Gem::Requirement
58
- none: false
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- hash: 3
63
- segments:
44
+ required_ruby_version: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ segments:
64
49
  - 0
65
- version: "0"
66
- required_rubygems_version: !ruby/object:Gem::Requirement
50
+ hash: -253144828435320969
51
+ version: '0'
67
52
  none: false
68
- requirements:
69
- - - ">="
70
- - !ruby/object:Gem::Version
71
- hash: 3
72
- segments:
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ! '>='
56
+ - !ruby/object:Gem::Version
57
+ segments:
73
58
  - 0
74
- version: "0"
59
+ hash: -253144828435320969
60
+ version: '0'
61
+ none: false
75
62
  requirements: []
76
-
77
63
  rubyforge_project: gc_hacks
78
- rubygems_version: 1.3.7
64
+ rubygems_version: 1.8.25
79
65
  signing_key:
80
66
  specification_version: 3
81
67
  summary: GC tracing/Heap dumping support for Rails processes
82
68
  test_files: []
83
-