jscover 1.0.0 → 1.0.1

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.
@@ -6,3 +6,6 @@ Rakefile
6
6
  bin/jscover
7
7
  lib/jscover.rb
8
8
  test/test_jscover.rb
9
+ ext/jscover/extconf.rb
10
+ ext/jscover/jscover.c
11
+ ext/jscover/ports/archives/v1.0.0
@@ -2,7 +2,7 @@ require 'mkmf'
2
2
  require 'mini_portile'
3
3
 
4
4
  recipe = MiniPortile.new "jscover-native", "1.0.0"
5
- recipe.files << 'https://nodeload.github.com/jameshugit/jscover-native/tar.gz/master'
5
+ recipe.files = ['https://nodeload.github.com/jameshugit/jscover-native/tar.gz/v1.0.0']
6
6
 
7
7
  checkpoint = "ports/.#{recipe.name}-#{recipe.version}-#{recipe.host}.installed"
8
8
  unless File.exist?(checkpoint)
@@ -0,0 +1,14 @@
1
+ #include <ruby.h>
2
+ #include <pthread.h>
3
+
4
+ void jscoverage_init();
5
+ const char * jscoverage_instrument_string(const char * script, const char * id);
6
+
7
+ static VALUE jscover_instrument(VALUE self, VALUE script, VALUE id) {
8
+ return rb_str_new2(jscoverage_instrument_string(RSTRING_PTR(script), RSTRING_PTR(id)));
9
+ }
10
+
11
+ void Init_jscover(void) {
12
+ VALUE mJscover = rb_define_class("JSCover", rb_cObject);
13
+ rb_define_singleton_method(mJscover, "instrument", jscover_instrument, 2);
14
+ }
@@ -1,5 +1,5 @@
1
1
  require 'jscover/jscover'
2
2
 
3
3
  class JSCover
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jscover
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -70,8 +70,8 @@ extra_rdoc_files:
70
70
  - History.txt
71
71
  - Manifest.txt
72
72
  - README.txt
73
- - CHANGELOG.rdoc
74
73
  - README.rdoc
74
+ - CHANGELOG.rdoc
75
75
  files:
76
76
  - .autotest
77
77
  - History.txt
@@ -81,9 +81,11 @@ files:
81
81
  - bin/jscover
82
82
  - lib/jscover.rb
83
83
  - test/test_jscover.rb
84
- - CHANGELOG.rdoc
85
- - README.rdoc
86
84
  - ext/jscover/extconf.rb
85
+ - ext/jscover/jscover.c
86
+ - ext/jscover/ports/archives/v1.0.0
87
+ - README.rdoc
88
+ - CHANGELOG.rdoc
87
89
  - .gemtest
88
90
  homepage: https://bitbucket.org/jameshu/jscover-ruby
89
91
  licenses: []