jscover 0.0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.autotest +13 -0
- data/.gemtest +0 -0
- data/CHANGELOG.rdoc +6 -0
- data/History.txt +0 -0
- data/Manifest.txt +8 -0
- data/README.rdoc +57 -0
- data/README.txt +0 -0
- data/Rakefile +18 -0
- data/bin/jscover +1 -2
- data/ext/jscover/extconf.rb +16 -0
- data/lib/jscover.rb +4 -0
- data/test/test_jscover.rb +8 -0
- metadata +76 -13
- data/ext/jscover/jscover.c +0 -10
data/.autotest
ADDED
data/.gemtest
ADDED
File without changes
|
data/CHANGELOG.rdoc
ADDED
data/History.txt
ADDED
File without changes
|
data/Manifest.txt
ADDED
data/README.rdoc
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
= jscover
|
2
|
+
|
3
|
+
* https://bitbucket.org/jameshu/jscover-ruby
|
4
|
+
|
5
|
+
== DESCRIPTION:
|
6
|
+
|
7
|
+
FIX (describe your package)
|
8
|
+
|
9
|
+
== FEATURES/PROBLEMS:
|
10
|
+
|
11
|
+
* FIX (list of features or problems)
|
12
|
+
|
13
|
+
== SYNOPSIS:
|
14
|
+
|
15
|
+
FIX (code sample of usage)
|
16
|
+
|
17
|
+
== REQUIREMENTS:
|
18
|
+
|
19
|
+
* FIX (list of requirements)
|
20
|
+
|
21
|
+
== INSTALL:
|
22
|
+
|
23
|
+
* FIX (sudo gem install, anything else)
|
24
|
+
|
25
|
+
== DEVELOPERS:
|
26
|
+
|
27
|
+
After checking out the source, run:
|
28
|
+
|
29
|
+
$ rake newb
|
30
|
+
|
31
|
+
This task will install any missing dependencies, run the tests/specs,
|
32
|
+
and generate the RDoc.
|
33
|
+
|
34
|
+
== LICENSE:
|
35
|
+
|
36
|
+
(The MIT License)
|
37
|
+
|
38
|
+
Copyright (c) 2012 FIX
|
39
|
+
|
40
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
41
|
+
a copy of this software and associated documentation files (the
|
42
|
+
'Software'), to deal in the Software without restriction, including
|
43
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
44
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
45
|
+
permit persons to whom the Software is furnished to do so, subject to
|
46
|
+
the following conditions:
|
47
|
+
|
48
|
+
The above copyright notice and this permission notice shall be
|
49
|
+
included in all copies or substantial portions of the Software.
|
50
|
+
|
51
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
52
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
53
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
54
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
55
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
56
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
57
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.txt
ADDED
File without changes
|
data/Rakefile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'hoe'
|
5
|
+
|
6
|
+
Hoe.spec 'jscover' do
|
7
|
+
developer('James Hu', 'jameshu@live.com')
|
8
|
+
self.rubyforge_name = 'jscover' # if different than 'jscover'
|
9
|
+
self.readme_file = 'README.rdoc'
|
10
|
+
self.history_file = 'CHANGELOG.rdoc'
|
11
|
+
self.extra_rdoc_files = FileList['*.rdoc']
|
12
|
+
self.extra_dev_deps << ['rake-compiler', '>= 0']
|
13
|
+
self.spec_extras = { :extensions => ["ext/#{self.name}/extconf.rb"] }
|
14
|
+
end
|
15
|
+
|
16
|
+
Rake::Task[:test].prerequisites << :compile
|
17
|
+
|
18
|
+
# vim: syntax=ruby
|
data/bin/jscover
CHANGED
data/ext/jscover/extconf.rb
CHANGED
@@ -1,3 +1,19 @@
|
|
1
1
|
require 'mkmf'
|
2
|
+
require 'mini_portile'
|
3
|
+
|
4
|
+
recipe = MiniPortile.new "jscover-native", "1.0.0"
|
5
|
+
recipe.files << 'https://nodeload.github.com/jameshugit/jscover-native/tar.gz/master'
|
6
|
+
|
7
|
+
checkpoint = "ports/.#{recipe.name}-#{recipe.version}-#{recipe.host}.installed"
|
8
|
+
unless File.exist?(checkpoint)
|
9
|
+
recipe.configure_options = 'CFLAGS=-fPIC CPPFLAGS=-fPIC'
|
10
|
+
recipe.cook
|
11
|
+
File.write(checkpoint, '')
|
12
|
+
end
|
13
|
+
|
14
|
+
recipe.activate
|
15
|
+
|
16
|
+
$LIBPATH << File.join(recipe.path, 'lib')
|
17
|
+
$LIBS = $LIBS + " -ljscoverage -lm -lpthread -lstdc++"
|
2
18
|
|
3
19
|
create_makefile('jscover/jscover')
|
data/lib/jscover.rb
CHANGED
data/test/test_jscover.rb
CHANGED
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: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,25 +9,88 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
13
|
-
dependencies:
|
14
|
-
|
15
|
-
|
12
|
+
date: 2012-11-14 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rdoc
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '3.10'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.10'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake-compiler
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: hoe
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '3.3'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.3'
|
62
|
+
description: FIX (describe your package)
|
63
|
+
email:
|
64
|
+
- jameshu@live.com
|
16
65
|
executables:
|
17
66
|
- jscover
|
18
67
|
extensions:
|
19
68
|
- ext/jscover/extconf.rb
|
20
|
-
extra_rdoc_files:
|
69
|
+
extra_rdoc_files:
|
70
|
+
- History.txt
|
71
|
+
- Manifest.txt
|
72
|
+
- README.txt
|
73
|
+
- CHANGELOG.rdoc
|
74
|
+
- README.rdoc
|
21
75
|
files:
|
76
|
+
- .autotest
|
77
|
+
- History.txt
|
78
|
+
- Manifest.txt
|
79
|
+
- README.txt
|
80
|
+
- Rakefile
|
81
|
+
- bin/jscover
|
22
82
|
- lib/jscover.rb
|
23
|
-
- ext/jscover/jscover.c
|
24
|
-
- ext/jscover/extconf.rb
|
25
83
|
- test/test_jscover.rb
|
26
|
-
-
|
27
|
-
|
84
|
+
- CHANGELOG.rdoc
|
85
|
+
- README.rdoc
|
86
|
+
- ext/jscover/extconf.rb
|
87
|
+
- .gemtest
|
88
|
+
homepage: https://bitbucket.org/jameshu/jscover-ruby
|
28
89
|
licenses: []
|
29
90
|
post_install_message:
|
30
|
-
rdoc_options:
|
91
|
+
rdoc_options:
|
92
|
+
- --main
|
93
|
+
- README.rdoc
|
31
94
|
require_paths:
|
32
95
|
- lib
|
33
96
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -43,10 +106,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
43
106
|
- !ruby/object:Gem::Version
|
44
107
|
version: '0'
|
45
108
|
requirements: []
|
46
|
-
rubyforge_project:
|
109
|
+
rubyforge_project: jscover
|
47
110
|
rubygems_version: 1.8.24
|
48
111
|
signing_key:
|
49
112
|
specification_version: 3
|
50
|
-
summary:
|
113
|
+
summary: FIX (describe your package)
|
51
114
|
test_files:
|
52
115
|
- test/test_jscover.rb
|
data/ext/jscover/jscover.c
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
#include "ruby.h"
|
2
|
-
|
3
|
-
static VALUE jscover_instrument(VALUE self) {
|
4
|
-
return rb_str_new2("OKOK");
|
5
|
-
}
|
6
|
-
|
7
|
-
void Init_jscover(void) {
|
8
|
-
VALUE klass = rb_define_class("JSCover", rb_cObject);
|
9
|
-
rb_define_singleton_method(klass, "instrument", jscover_instrument, 0);
|
10
|
-
}
|