rotoscope 0.3.0.pre.9 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/probots.yml +2 -0
- data/.gitignore +1 -0
- data/Rakefile +4 -4
- data/ext/rotoscope/callsite.c +4 -2
- data/ext/rotoscope/rotoscope.c +3 -1
- data/ext/rotoscope/stack.h +3 -1
- data/lib/rotoscope/version.rb +1 -1
- data/rotoscope.gemspec +5 -5
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: da519185af3cb3652183905a5005c9666a8479d97075ed258524c2dbae41a22f
|
4
|
+
data.tar.gz: 9afac7ae131260c434e77a2238b631f0674019a6f3abf71713a525f507a95890
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bad9b2c953384b6dde92fc6cbef2a5975dd16a92e86f9b355f1ae3a6c1e5fa6715f0837a3812794fae7759bf1d7391f9adc36a515e7a1640cea913fda12e7b57
|
7
|
+
data.tar.gz: eac7f35d1d1b0346f047c87eebda7cf47d59ed5dff9bc4ab073601071eb17b9f6b107216812803fa9ba13d62805c548374f5c49cca60fb9ff5de656214ee06a9
|
data/.github/probots.yml
ADDED
data/.gitignore
CHANGED
data/Rakefile
CHANGED
@@ -19,7 +19,7 @@ Rake::ExtensionTask.new('rotoscope', GEMSPEC) do |ext|
|
|
19
19
|
ext.lib_dir = 'lib/rotoscope'
|
20
20
|
end
|
21
21
|
|
22
|
-
task
|
22
|
+
task(build: :compile)
|
23
23
|
|
24
24
|
task install: [:build] do |_t|
|
25
25
|
sh "gem build rotoscope.gemspec && gem install rotoscope-*.gem"
|
@@ -30,14 +30,14 @@ end
|
|
30
30
|
# ==========================================================
|
31
31
|
|
32
32
|
require 'rake/testtask'
|
33
|
-
Rake::TestTask.new
|
33
|
+
Rake::TestTask.new('test') do |t|
|
34
34
|
t.test_files = FileList['test/*_test.rb']
|
35
35
|
end
|
36
|
-
task
|
36
|
+
task(test: :build)
|
37
37
|
|
38
38
|
task :rubocop do
|
39
39
|
require 'rubocop/rake_task'
|
40
40
|
RuboCop::RakeTask.new
|
41
41
|
end
|
42
42
|
|
43
|
-
task
|
43
|
+
task(default: [:test, :rubocop])
|
data/ext/rotoscope/callsite.c
CHANGED
@@ -21,12 +21,14 @@ rs_callsite_t ruby_callsite(rb_trace_arg_t *trace_arg) {
|
|
21
21
|
// frame.
|
22
22
|
if (rb_profile_frames(0, 2, frames, lines) < 2) {
|
23
23
|
return (rs_callsite_t){
|
24
|
-
.filepath = empty_ruby_string,
|
24
|
+
.filepath = empty_ruby_string,
|
25
|
+
.lineno = 0,
|
25
26
|
};
|
26
27
|
}
|
27
28
|
|
28
29
|
return (rs_callsite_t){
|
29
|
-
.filepath = rb_profile_frame_path(frames[1]),
|
30
|
+
.filepath = rb_profile_frame_path(frames[1]),
|
31
|
+
.lineno = lines[1],
|
30
32
|
};
|
31
33
|
}
|
32
34
|
|
data/ext/rotoscope/rotoscope.c
CHANGED
@@ -61,7 +61,9 @@ static rs_method_desc_t called_method_desc(rb_trace_arg_t *trace_arg) {
|
|
61
61
|
SYM2ID(method_id) != id_initialize;
|
62
62
|
|
63
63
|
return (rs_method_desc_t){
|
64
|
-
.receiver = receiver,
|
64
|
+
.receiver = receiver,
|
65
|
+
.id = method_id,
|
66
|
+
.singleton_p = singleton_p,
|
65
67
|
};
|
66
68
|
}
|
67
69
|
|
data/ext/rotoscope/stack.h
CHANGED
data/lib/rotoscope/version.rb
CHANGED
data/rotoscope.gemspec
CHANGED
@@ -16,14 +16,14 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.summary = "Tracing Ruby"
|
17
17
|
s.description = "High-performance logger of Ruby method invocations"
|
18
18
|
|
19
|
-
s.files =
|
19
|
+
s.files = %x(git ls-files -z).split("\x0").reject do |f|
|
20
20
|
f.match(%r{^(test)/})
|
21
21
|
end
|
22
22
|
s.required_ruby_version = ">= 2.2.0"
|
23
23
|
s.extensions = %w(ext/rotoscope/extconf.rb)
|
24
24
|
|
25
|
-
s.add_development_dependency
|
26
|
-
s.add_development_dependency
|
27
|
-
s.add_development_dependency
|
28
|
-
s.add_development_dependency
|
25
|
+
s.add_development_dependency('rake-compiler', '~> 0.9')
|
26
|
+
s.add_development_dependency('mocha', '~> 0.14')
|
27
|
+
s.add_development_dependency('minitest', '~> 5.0')
|
28
|
+
s.add_development_dependency('rubocop', '~> 0.56')
|
29
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rotoscope
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.0
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jahfer Husain
|
@@ -76,6 +76,7 @@ extra_rdoc_files: []
|
|
76
76
|
files:
|
77
77
|
- ".clang-format"
|
78
78
|
- ".github/PULL_REQUEST_TEMPLATE"
|
79
|
+
- ".github/probots.yml"
|
79
80
|
- ".gitignore"
|
80
81
|
- ".rubocop.yml"
|
81
82
|
- ".ruby-version"
|
@@ -114,12 +115,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
114
115
|
version: 2.2.0
|
115
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
117
|
requirements:
|
117
|
-
- - "
|
118
|
+
- - ">="
|
118
119
|
- !ruby/object:Gem::Version
|
119
|
-
version:
|
120
|
+
version: '0'
|
120
121
|
requirements: []
|
121
122
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.6
|
123
|
+
rubygems_version: 2.7.6
|
123
124
|
signing_key:
|
124
125
|
specification_version: 4
|
125
126
|
summary: Tracing Ruby
|