profmem 0.0.1 → 0.0.2

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.
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require File.expand_path(File.join(%w(.. .. lib profmem)), __FILE__)
4
+
5
+ Profmem.run(ARGV)
@@ -1,5 +1,3 @@
1
- #!/usr/bin/env ruby
2
-
3
1
  require 'json'
4
2
 
5
3
  module Profmem
@@ -13,7 +11,7 @@ module Profmem
13
11
  end
14
12
  end
15
13
 
16
- def finalize
14
+ def summarize
17
15
  if path = ENV['PROFMEM']
18
16
  io = File.open(path, "w")
19
17
  ObjectSpace.dump_all(output: io)
@@ -84,5 +82,3 @@ module Profmem
84
82
 
85
83
  end
86
84
  end
87
-
88
- Profmem.run(ARGV) if $0 == __FILE__
@@ -1,3 +1,3 @@
1
1
  module Profmem
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: profmem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -46,7 +46,8 @@ dependencies:
46
46
  description: A simple tool to profile memory, built to identify memory leaks.
47
47
  email:
48
48
  - phil@branch14.org
49
- executables: []
49
+ executables:
50
+ - profmem
50
51
  extensions: []
51
52
  extra_rdoc_files: []
52
53
  files:
@@ -55,6 +56,7 @@ files:
55
56
  - LICENSE.txt
56
57
  - README.md
57
58
  - Rakefile
59
+ - bin/profmem
58
60
  - lib/profmem.rb
59
61
  - lib/profmem/version.rb
60
62
  - profmem.gemspec
@@ -73,7 +75,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
73
75
  version: '0'
74
76
  segments:
75
77
  - 0
76
- hash: 1021228832940894519
78
+ hash: 2904135030037184553
77
79
  required_rubygems_version: !ruby/object:Gem::Requirement
78
80
  none: false
79
81
  requirements:
@@ -82,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
84
  version: '0'
83
85
  segments:
84
86
  - 0
85
- hash: 1021228832940894519
87
+ hash: 2904135030037184553
86
88
  requirements: []
87
89
  rubyforge_project:
88
90
  rubygems_version: 1.8.23