chrisa-ruby-dtrace 0.2.6 → 0.2.7

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.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.2.7 / 2008-08-01
2
+
3
+ * Fix probes not firing when multiple providers are used.
4
+
1
5
  == 0.2.6 / 2008-06-17
2
6
 
3
7
  * Fix aggregate value conversion bug
@@ -209,20 +209,21 @@ class Dtrace
209
209
  f.generate
210
210
  Dtrace::Dof.loaddof(f, @module)
211
211
 
212
- c = Class.new
213
- c.class_eval do
214
- @@probes = stubs
215
- def self.method_missing(name)
216
- name = name.to_s
217
- unless @@probes[name].nil?
218
- if @@probes[name].is_enabled?
219
- yield @@probes[name]
220
- end
221
- end
222
- end
212
+ eval "
213
+ class Dtrace::Probe::#{@class}
214
+ def self.stubs=(s)
215
+ @@probes = s
216
+ end
217
+ def self.method_missing(name)
218
+ name = name.to_s
219
+ unless @@probes[name].nil?
220
+ if @@probes[name].is_enabled?
221
+ yield @@probes[name]
223
222
  end
224
- eval "Dtrace::Probe::#{@class} = c"
225
-
223
+ end
224
+ end
225
+ end"
226
+ eval "Dtrace::Probe::#{@class}.stubs = stubs"
226
227
  end
227
228
 
228
229
  private
@@ -4,6 +4,6 @@
4
4
  #
5
5
 
6
6
  class Dtrace
7
- VERSION = '0.2.6'
7
+ VERSION = '0.2.7'
8
8
  end
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chrisa-ruby-dtrace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Andrews
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-06-13 00:00:00 -07:00
12
+ date: 2008-07-08 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  requirements: []
156
156
 
157
157
  rubyforge_project: ruby-dtrace
158
- rubygems_version: 1.0.1
158
+ rubygems_version: 1.2.0
159
159
  signing_key:
160
160
  specification_version: 2
161
161
  summary: Ruby-DTrace is Ruby bindings for Dtrace, which allows you to add DTrace probes to your Ruby programs, and to write D-based programs with Ruby.