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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b1114bf285aefdab3d5ce943131521fb16f30e7
4
- data.tar.gz: 9a658e477c9b85e871361a609c69d7776c5a6acb
3
+ metadata.gz: 6c1375656fc30398040fc365012b666c854fe3b8
4
+ data.tar.gz: f4e7403c94fb1be10bcc27bb0fd94be6a734ab75
5
5
  SHA512:
6
- metadata.gz: a8f1cbeed106ce59753024ee7d283865dbd61b49e3b92d714822dafec40be16ee5d8932dee7d74ec4c62dea0641c477ff4f9da1ae971ad98a87d8240fbe3a762
7
- data.tar.gz: 3880bab38166a913aa39a2d165bd273141143a537189f716947416f6e47cfd0efefc206b08796dcd0e41768b038e11a393d7e8001437e4d0230cdaaa56481455
6
+ metadata.gz: c359f35e7590df47a0de8fd044ba88d2ec2fd154f0a517d7ce30acbffb04e9ad648e74c7b1d41a4c5140ef2ea2759ea62d9569485dfce4df451c58045f773c11
7
+ data.tar.gz: 00b5e435a34ae46c50913df637aae7478d7195f0f4fd8061d5162b4bf7d5d76440f33ba0b8f30e8c4b743c4576f9d684021f00a3ea05c15bb6e646e22e1357bd
@@ -13,6 +13,11 @@ module Inch
13
13
  end
14
14
  end
15
15
 
16
+ require 'logger'
17
+ require 'yard'
18
+
19
+ log.level = ::Logger::UNKNOWN # basically disable YARD's logging
20
+
16
21
  require_relative 'yard/parser'
17
22
  require_relative 'yard/docstring'
18
23
  require_relative 'yard/nodoc_helper'
@@ -0,0 +1,12 @@
1
+ module Inch
2
+ module CodeObject
3
+ module Provider
4
+ module YARD
5
+ module Object
6
+ class RootObject < NamespaceObject
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -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
@@ -1,2 +1 @@
1
- require_relative 'core_ext/yard'
2
1
  require_relative 'core_ext/string'
@@ -1,3 +1,3 @@
1
1
  module Inch
2
- VERSION = "0.3.0.rc3"
2
+ VERSION = "0.3.0"
3
3
  end
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.rc3
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: 1.3.1
287
+ version: '0'
288
288
  requirements: []
289
289
  rubyforge_project:
290
290
  rubygems_version: 2.2.2
@@ -1,4 +0,0 @@
1
- require 'logger'
2
- require 'yard'
3
-
4
- log.level = ::Logger::UNKNOWN # basically disable YARD's logging