stickshift 0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ == 1.0.0
2
+
3
+ - Add Stickshift.enabled? as an alias for Stickshift.enabled
4
+ - Good enough to call it one-oh.
5
+
1
6
  == 0.1
2
7
 
3
- - Initial release
8
+ - Initial release
@@ -10,10 +10,11 @@ as any time spent in any instrumented methods invoked by the method.
10
10
  After leaving the top-most method, a call tree with timings is dumped
11
11
  to $stdout.
12
12
 
13
- Note: You aren't allowed to instrument methods on the String class, or any
14
- object's #inspect method, because it can generate a recursive loop! For
15
- #fine-grained profiling on any arbitrary class, use profiler or ruby-prof
16
- instead. You're also not allowed to instrument an instrumented method.
13
+ Note: You aren't allowed to instrument methods on the String class, or
14
+ any object's #inspect method, because it can generate a recursive
15
+ loop! For fine-grained profiling on any arbitrary class, use profiler
16
+ or ruby-prof instead. You're also not allowed to instrument an
17
+ instrumented method.
17
18
 
18
19
  ## Example
19
20
 
@@ -1,5 +1,8 @@
1
1
  module Stickshift
2
- class << self; attr_accessor :enabled, :top_level_trigger, :output; end
2
+ class << self
3
+ attr_accessor :enabled, :top_level_trigger, :output
4
+ alias_method :enabled?, :enabled
5
+ end
3
6
  @enabled = true
4
7
  @output = $stdout
5
8
 
@@ -139,4 +142,4 @@ class Module
139
142
  def __stickshift_mangle(meth)
140
143
  (s = meth.to_s) =~ /^[a-zA-Z_][a-zA-Z0-9_]*$/ ? s : "_#{s.unpack("H*")[0]}"
141
144
  end
142
- end
145
+ end
@@ -1,3 +1,3 @@
1
1
  module Stickshift
2
- VERSION = "0.1"
3
- end
2
+ VERSION = "1.0.0"
3
+ end
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{stickshift}
5
- s.version = "0.1"
5
+ s.version = "1.0.0"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Nick Sieger"]
9
- s.date = %q{2011-04-25}
9
+ s.date = %q{2011-08-03}
10
10
  s.description = %q{Stickshift is a simple, manual-instrumenting call-tree profiler in as few lines of code as possible.}
11
11
  s.email = %q{nick@nicksieger.com}
12
12
  s.extra_rdoc_files = ["History.txt", "LICENSE.txt", "Manifest.txt"]
@@ -24,13 +24,13 @@ Gem::Specification.new do |s|
24
24
 
25
25
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
26
  s.add_development_dependency(%q<rubyforge>, [">= 2.0.4"])
27
- s.add_development_dependency(%q<hoe>, [">= 2.9.4"])
27
+ s.add_development_dependency(%q<hoe>, ["~> 2.10"])
28
28
  else
29
29
  s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
30
- s.add_dependency(%q<hoe>, [">= 2.9.4"])
30
+ s.add_dependency(%q<hoe>, ["~> 2.10"])
31
31
  end
32
32
  else
33
33
  s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
34
- s.add_dependency(%q<hoe>, [">= 2.9.4"])
34
+ s.add_dependency(%q<hoe>, ["~> 2.10"])
35
35
  end
36
36
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: stickshift
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: "0.1"
5
+ version: 1.0.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nick Sieger
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-25 00:00:00 -05:00
13
+ date: 2011-08-03 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -30,9 +30,9 @@ dependencies:
30
30
  requirement: &id002 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
- - - ">="
33
+ - - ~>
34
34
  - !ruby/object:Gem::Version
35
- version: 2.9.4
35
+ version: "2.10"
36
36
  type: :development
37
37
  version_requirements: *id002
38
38
  description: Stickshift is a simple, manual-instrumenting call-tree profiler in as few lines of code as possible.