mirrors 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mirrors/package_inference/class_to_file_resolver.rb +5 -1
- data/mirrors.gemspec +2 -2
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5070f81b2957183b7a938a7b5c2a24e5976f54a3
|
4
|
+
data.tar.gz: 77f382304b1be839f760abb11395927dc1fb9daf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 498e40e9a644d1c2e180a7a87c152066c65a486a837e2d01d07967a41c4320d83d4ce102fa85a27fb62738a5dae075101b1c426bab46467b70278c63b952247c
|
7
|
+
data.tar.gz: afc5881579ef65d39fe53b34427a86b0c73bbf8805979208b702b051a9c89e427e10ae6517431f77c07c05fb0cd2d8ce8dea022dafb131042910de47f042efbc
|
@@ -43,7 +43,11 @@ module Mirrors
|
|
43
43
|
.select do |meth|
|
44
44
|
# as a mostly-useful heuristic, we just eliminate everything that was
|
45
45
|
# defined using a template eval or define_method.
|
46
|
-
|
46
|
+
begin
|
47
|
+
meth.source =~ /\A\s+def (self\.)?#{Regexp.quote(meth.name)}/
|
48
|
+
rescue MethodSource::SourceNotFoundError
|
49
|
+
false
|
50
|
+
end
|
47
51
|
end
|
48
52
|
|
49
53
|
files = Hash.new(0)
|
data/mirrors.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'mirrors'
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.2'
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.licenses = ['MIT']
|
6
6
|
s.authors = ['Burke Libbey']
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.summary = 'Mirror API for Ruby'
|
10
10
|
s.description = 'Provides a number of specs and classes that document a mirror API for Ruby.'
|
11
11
|
s.files = `git ls-files`.split("\n")
|
12
|
-
s.test_files = `git ls-files --
|
12
|
+
s.test_files = `git ls-files -- test/*`.split("\n")
|
13
13
|
s.require_paths = ['lib']
|
14
14
|
|
15
15
|
s.add_development_dependency 'minitest', '~> 5.0'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mirrors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Burke Libbey
|
@@ -134,4 +134,19 @@ rubygems_version: 2.5.1
|
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: Mirror API for Ruby
|
137
|
-
test_files:
|
137
|
+
test_files:
|
138
|
+
- test/fixtures/class.rb
|
139
|
+
- test/fixtures/field.rb
|
140
|
+
- test/fixtures/method.rb
|
141
|
+
- test/fixtures/object.rb
|
142
|
+
- test/fixtures/reflect.rb
|
143
|
+
- test/mirrors/class_mirror_test.rb
|
144
|
+
- test/mirrors/field_mirror_test.rb
|
145
|
+
- test/mirrors/iseq_visitor_test.rb
|
146
|
+
- test/mirrors/marker_test.rb
|
147
|
+
- test/mirrors/method_mirror_test.rb
|
148
|
+
- test/mirrors/object_mirror_test.rb
|
149
|
+
- test/mirrors/package_inference_test.rb
|
150
|
+
- test/mirrors/references_visitor_test.rb
|
151
|
+
- test/mirrors_test.rb
|
152
|
+
- test/test_helper.rb
|