inch 0.3.0.rc3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/inch/code_object/provider/yard.rb +5 -0
- data/lib/inch/code_object/provider/yard/object/root_object.rb +12 -0
- data/lib/inch/code_object/provider/yard/parser.rb +4 -2
- data/lib/inch/core_ext.rb +0 -1
- data/lib/inch/version.rb +1 -1
- metadata +4 -4
- data/lib/inch/core_ext/yard.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c1375656fc30398040fc365012b666c854fe3b8
|
4
|
+
data.tar.gz: f4e7403c94fb1be10bcc27bb0fd94be6a734ab75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c359f35e7590df47a0de8fd044ba88d2ec2fd154f0a517d7ce30acbffb04e9ad648e74c7b1d41a4c5140ef2ea2759ea62d9569485dfce4df451c58045f773c11
|
7
|
+
data.tar.gz: 00b5e435a34ae46c50913df637aae7478d7195f0f4fd8061d5162b4bf7d5d76440f33ba0b8f30e8c4b743c4576f9d684021f00a3ea05c15bb6e646e22e1357bd
|
@@ -7,6 +7,8 @@ module Inch
|
|
7
7
|
DEFAULT_PATHS = ["app/**/*.rb", "lib/**/*.rb"]
|
8
8
|
DEFAULT_EXCLUDED = []
|
9
9
|
|
10
|
+
IGNORE_TYPES = [:macro]
|
11
|
+
|
10
12
|
# Helper method to parse an instance with the given +args+
|
11
13
|
#
|
12
14
|
# @see #parse
|
@@ -27,8 +29,8 @@ module Inch
|
|
27
29
|
|
28
30
|
def objects
|
29
31
|
@objects ||= parsed_objects.map do |o|
|
30
|
-
YARD::Object.for(o)
|
31
|
-
end
|
32
|
+
YARD::Object.for(o) unless IGNORE_TYPES.include?(o.type)
|
33
|
+
end.compact
|
32
34
|
end
|
33
35
|
|
34
36
|
private
|
data/lib/inch/core_ext.rb
CHANGED
data/lib/inch/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inch
|
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
|
- René Föhring
|
@@ -179,6 +179,7 @@ files:
|
|
179
179
|
- lib/inch/code_object/provider/yard/object/method_parameter_object.rb
|
180
180
|
- lib/inch/code_object/provider/yard/object/module_object.rb
|
181
181
|
- lib/inch/code_object/provider/yard/object/namespace_object.rb
|
182
|
+
- lib/inch/code_object/provider/yard/object/root_object.rb
|
182
183
|
- lib/inch/code_object/provider/yard/parser.rb
|
183
184
|
- lib/inch/code_object/proxy.rb
|
184
185
|
- lib/inch/code_object/proxy/base.rb
|
@@ -195,7 +196,6 @@ files:
|
|
195
196
|
- lib/inch/config.rb
|
196
197
|
- lib/inch/core_ext.rb
|
197
198
|
- lib/inch/core_ext/string.rb
|
198
|
-
- lib/inch/core_ext/yard.rb
|
199
199
|
- lib/inch/evaluation.rb
|
200
200
|
- lib/inch/evaluation/file.rb
|
201
201
|
- lib/inch/evaluation/grade.rb
|
@@ -282,9 +282,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
282
282
|
version: '0'
|
283
283
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
284
284
|
requirements:
|
285
|
-
- - "
|
285
|
+
- - ">="
|
286
286
|
- !ruby/object:Gem::Version
|
287
|
-
version:
|
287
|
+
version: '0'
|
288
288
|
requirements: []
|
289
289
|
rubyforge_project:
|
290
290
|
rubygems_version: 2.2.2
|
data/lib/inch/core_ext/yard.rb
DELETED