annals 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.rdoc +6 -0
  2. data/VERSION +1 -1
  3. data/annals.gemspec +45 -0
  4. data/lib/annals.rb +6 -0
  5. metadata +2 -1
@@ -15,6 +15,12 @@ Buffered ruby backtraces with start/stop.
15
15
  # capture trace for a block
16
16
  @annals.capture { tricksy_bits }
17
17
 
18
+ # print backtrace
19
+ @annals.puts
20
+
21
+ # get details for a particular line
22
+ @annals.buffer[42]
23
+
18
24
  == Copyright
19
25
 
20
26
  (The MIT License)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -0,0 +1,45 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{annals}
8
+ s.version = "0.0.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["geemus (Wesley Beary)"]
12
+ s.date = %q{2009-10-07}
13
+ s.description = %q{Buffered backtraces with start/stop.}
14
+ s.email = %q{me@geemus.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".gitignore",
22
+ "LICENSE",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "annals.gemspec",
27
+ "lib/annals.rb"
28
+ ]
29
+ s.homepage = %q{http://github.com/geemus/annals}
30
+ s.rdoc_options = ["--charset=UTF-8"]
31
+ s.require_paths = ["lib"]
32
+ s.rubyforge_project = %q{annals}
33
+ s.rubygems_version = %q{1.3.5}
34
+ s.summary = %q{usable backtracing}
35
+
36
+ if s.respond_to? :specification_version then
37
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
38
+ s.specification_version = 3
39
+
40
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
41
+ else
42
+ end
43
+ else
44
+ end
45
+ end
@@ -17,6 +17,12 @@ class Annals
17
17
  @buffer.map {|event| "#{event[:file]}:#{event[:line]} #{event[:method]}"}
18
18
  end
19
19
 
20
+ def puts
21
+ for line in lines
22
+ puts(line)
23
+ end
24
+ end
25
+
20
26
  def start
21
27
  @buffer = []
22
28
  @size = 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: annals
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - geemus (Wesley Beary)
@@ -29,6 +29,7 @@ files:
29
29
  - README.rdoc
30
30
  - Rakefile
31
31
  - VERSION
32
+ - annals.gemspec
32
33
  - lib/annals.rb
33
34
  has_rdoc: true
34
35
  homepage: http://github.com/geemus/annals