coverband_ext 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4324e229c56d8cc296a8b2c765e82d2f557aed22
4
- data.tar.gz: 122396f1d8bf1e318d4a51df662f57bdcf3d3728
3
+ metadata.gz: 58495ee39172c941f98ecc79d7cf72f359b84a4c
4
+ data.tar.gz: abd0b0e8ca6c3ca61b27014e3177655de99ea65e
5
5
  SHA512:
6
- metadata.gz: 77cff550418502341fc8187ee8cdaa7e1a499e525acf4bd2b80205b1561d0e6700626db6eb1fa2e0335f2dc36d64c479902d5137fbb05a972ffb4a0d7de0b196
7
- data.tar.gz: dddd30c51f401e64890528dbcd53d4974b52a3c42b474031d8ff75806339aff8339c2d6c17e9af18b98e14f61615674b8327e3673be1cf38810dd06bcf5ae373
6
+ metadata.gz: 4bc2b55ff78514e7abb00784b5f7c6c1cf883727dd590b34593a7de444db94949c72423656313899e35e130d7fd4ea5b27ea80d8df97fd909cee410a6e3c03aa
7
+ data.tar.gz: 132872cda94fb21cdfe1ec3304685e36a26db9f94a55922478b7ad1134495d8eee3c4d740496daf200e55bfd041ea91e2ef17459e91e7835c034b239cf6c0961
@@ -21,6 +21,4 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.add_development_dependency "bundler", "~> 1.3"
23
23
  spec.add_development_dependency "rake"
24
-
25
- spec.add_runtime_dependency "coverband"
26
24
  end
@@ -61,8 +61,7 @@ cb_set_tracer(VALUE self) {
61
61
  if(!rb_iv_get(self, "@tracer_set")) {
62
62
  // NOTE: We are using rb_add_event_hook opposed to rb_tracepoint_new for 1.9.X compat
63
63
  // not using higher level C functions of set_trace_func to avoid extra overhead we don't need since we only need the RUBY_EVENT_LINE hook as well as only needing file / line number opposed to everything else.
64
- // TODO possibly use rb_thread_add_event_hook
65
- rb_add_event_hook(trace_line_handler_ext, RUBY_EVENT_LINE, 0);
64
+ rb_thread_add_event_hook(rb_thread_current(), trace_line_handler_ext, RUBY_EVENT_LINE, 0);
66
65
  rb_iv_set(self, "@tracer_set", Qtrue);
67
66
  }
68
67
  return Qnil;
@@ -71,7 +70,7 @@ cb_set_tracer(VALUE self) {
71
70
  static VALUE
72
71
  cb_unset_tracer(VALUE self) {
73
72
  if(rb_iv_get(self, "@tracer_set")) {
74
- rb_remove_event_hook(trace_line_handler_ext);
73
+ rb_thread_remove_event_hook(rb_thread_current(), trace_line_handler_ext);
75
74
  rb_iv_set(self, "@tracer_set", Qfalse);
76
75
  }
77
76
  return Qnil;
@@ -1,3 +1,3 @@
1
1
  module CoverbandExt
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coverband_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Mayer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-08 00:00:00.000000000 Z
11
+ date: 2015-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: coverband
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
41
  description: C extension for fast coverband
56
42
  email:
57
43
  - dan.mayer@livingsocial.com
@@ -140,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
126
  version: '0'
141
127
  requirements: []
142
128
  rubyforge_project:
143
- rubygems_version: 2.4.5
129
+ rubygems_version: 2.2.3
144
130
  signing_key:
145
131
  specification_version: 4
146
132
  summary: C extension for fast coverband