memory 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG CHANGED
@@ -1,4 +1,6 @@
1
1
 
2
+ v0.0.3. Fix profile script.
3
+
2
4
  v0.0.2. Fixes.
3
5
 
4
6
  v0.0.1. First release.
data/README CHANGED
@@ -9,7 +9,6 @@ Some libraries for reporting memory usage.
9
9
 
10
10
  == License
11
11
 
12
- Copyright 2007 Cloudburst, LLC. See the included LICENSE file. Portions copyright 2005 John Carter and used with permission.
13
-
14
- The public certificate for this gem is at http://rubyforge.org/frs/download.php/25331/evan_weaver-original-public_cert.pem.
12
+ Copyright 2007, 2008 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file. Portions copyright 2005 John Carter and used with permission.
15
13
 
14
+ The public certificate for the gem is here[http://rubyforge.org/frs/download.php/25331/evan_weaver-original-public_cert.pem].
@@ -0,0 +1,11 @@
1
+
2
+ require 'echoe'
3
+
4
+ Echoe.new("memory") do |p|
5
+ p.author = "Evan Weaver"
6
+ p.project = "fauna"
7
+ p.summary = "Some libraries for reporting memory usage."
8
+ p.url = "http://blog.evanweaver.com/files/doc/fauna/memory/"
9
+ p.docs_host = 'blog.evanweaver.com:~/www/bax/public/files/doc/'
10
+ p.require_signed = true
11
+ end
@@ -6,7 +6,7 @@ module Memory
6
6
 
7
7
  LOG_FILE = "/tmp/memory_profile.log"
8
8
 
9
- def MemoryProfile::report
9
+ def self.report
10
10
  Dir.chdir "/tmp"
11
11
  ObjectSpace::garbage_collect
12
12
  sleep 10 # Give the GC thread a chance
@@ -49,7 +49,7 @@ module Memory
49
49
  end
50
50
  end
51
51
 
52
- def MemoryProfile::simple_count
52
+ def self.simple_count
53
53
  Dir.chdir "/tmp"
54
54
  ObjectSpace::garbage_collect
55
55
  sleep 10 # Give the GC thread a chance
@@ -62,7 +62,7 @@ module Memory
62
62
 
63
63
  open( LOG_FILE, 'a') do |outf|
64
64
  outf.puts '='*70
65
- outf.puts "MemoryProfile report for #{$0}"
65
+ outf.puts "Memory::Profile report for #{$0}"
66
66
  outf.puts `cat /proc/#{Process.pid}/status`
67
67
 
68
68
  tally.keys.sort{|a,b|
@@ -1,38 +1,32 @@
1
-
2
- # Gem::Specification for Memory-0.0.2
3
- # Originally generated by Echoe
1
+ # -*- encoding: utf-8 -*-
4
2
 
5
3
  Gem::Specification.new do |s|
6
4
  s.name = %q{memory}
7
- s.version = "0.0.2"
8
-
9
- s.specification_version = 2 if s.respond_to? :specification_version=
5
+ s.version = "0.0.3"
10
6
 
11
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
12
8
  s.authors = ["Evan Weaver"]
13
- s.date = %q{2008-01-07}
9
+ s.cert_chain = ["/Users/eweaver/p/configuration/gem_certificates/evan_weaver-original-public_cert.pem"]
10
+ s.date = %q{2009-11-18}
14
11
  s.description = %q{Some libraries for reporting memory usage.}
15
12
  s.email = %q{}
16
- s.files = ["CHANGELOG", "lib/memory/object.rb", "lib/memory/profile.rb", "lib/memory/usage.rb", "lib/memory.rb", "LICENSE", "Manifest", "README", "memory.gemspec"]
17
- s.has_rdoc = true
13
+ s.extra_rdoc_files = ["CHANGELOG", "lib/memory/object.rb", "lib/memory/profile.rb", "lib/memory/usage.rb", "lib/memory.rb", "LICENSE", "README"]
14
+ s.files = ["CHANGELOG", "lib/memory/object.rb", "lib/memory/profile.rb", "lib/memory/usage.rb", "lib/memory.rb", "LICENSE", "Manifest", "README", "memory.gemspec", "Rakefile"]
18
15
  s.homepage = %q{http://blog.evanweaver.com/files/doc/fauna/memory/}
16
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Memory", "--main", "README"]
19
17
  s.require_paths = ["lib"]
20
18
  s.rubyforge_project = %q{fauna}
21
- s.rubygems_version = %q{1.0.1}
19
+ s.rubygems_version = %q{1.3.5}
20
+ s.signing_key = %q{/Users/eweaver/p/configuration/gem_certificates/evan_weaver-original-private_key.pem}
22
21
  s.summary = %q{Some libraries for reporting memory usage.}
23
- end
24
22
 
23
+ if s.respond_to? :specification_version then
24
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
25
+ s.specification_version = 3
25
26
 
26
- # # Original Rakefile source (requires the Echoe gem):
27
- #
28
- #
29
- # require 'echoe'
30
- #
31
- # Echoe.new("memory") do |p|
32
- # p.author = "Evan Weaver"
33
- # p.project = "fauna"
34
- # p.summary = "Some libraries for reporting memory usage."
35
- # p.url = "http://blog.evanweaver.com/files/doc/fauna/memory/"
36
- # p.docs_host = 'blog.evanweaver.com:~/www/bax/public/files/doc/'
37
- # p.require_signed = true
38
- # end
27
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
28
+ else
29
+ end
30
+ else
31
+ end
32
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: memory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Weaver
@@ -30,7 +30,7 @@ cert_chain:
30
30
  yZ0=
31
31
  -----END CERTIFICATE-----
32
32
 
33
- date: 2008-01-07 00:00:00 -05:00
33
+ date: 2009-11-18 00:00:00 -08:00
34
34
  default_executable:
35
35
  dependencies: []
36
36
 
@@ -40,8 +40,14 @@ executables: []
40
40
 
41
41
  extensions: []
42
42
 
43
- extra_rdoc_files: []
44
-
43
+ extra_rdoc_files:
44
+ - CHANGELOG
45
+ - lib/memory/object.rb
46
+ - lib/memory/profile.rb
47
+ - lib/memory/usage.rb
48
+ - lib/memory.rb
49
+ - LICENSE
50
+ - README
45
51
  files:
46
52
  - CHANGELOG
47
53
  - lib/memory/object.rb
@@ -52,11 +58,19 @@ files:
52
58
  - Manifest
53
59
  - README
54
60
  - memory.gemspec
61
+ - Rakefile
55
62
  has_rdoc: true
56
63
  homepage: http://blog.evanweaver.com/files/doc/fauna/memory/
57
- post_install_message:
58
- rdoc_options: []
64
+ licenses: []
59
65
 
66
+ post_install_message:
67
+ rdoc_options:
68
+ - --line-numbers
69
+ - --inline-source
70
+ - --title
71
+ - Memory
72
+ - --main
73
+ - README
60
74
  require_paths:
61
75
  - lib
62
76
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -69,14 +83,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
83
  requirements:
70
84
  - - ">="
71
85
  - !ruby/object:Gem::Version
72
- version: "0"
86
+ version: "1.2"
73
87
  version:
74
88
  requirements: []
75
89
 
76
90
  rubyforge_project: fauna
77
- rubygems_version: 1.0.1
91
+ rubygems_version: 1.3.5
78
92
  signing_key:
79
- specification_version: 2
93
+ specification_version: 3
80
94
  summary: Some libraries for reporting memory usage.
81
95
  test_files: []
82
96
 
metadata.gz.sig CHANGED
Binary file