yard-sketchup 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49c358aed3c27eb2e36e560ef16ee89eb0c60730352f5d5eba690586d0279fd2
|
4
|
+
data.tar.gz: 8e378ec48eb89428cccb35521b3cc695584320b2e85d34f3926e3a7b4e45c694
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c061e454e88e79ff23561b1f849666ef9b44622fb56c2d7288be1f8c69485df621d59d8b0f4b258854866ec9864659c676e9cf62046e1dac8ae1b2d812918cf3
|
7
|
+
data.tar.gz: 9a26afb8e48a959dd86a9bf1c376f4d2ea1f9bc0668b350ef8ede27d1eb910d99f1bda9e7451666cca8f7282f2c4355cace35236ae6ac642bcc4a3c1e592e34a
|
@@ -0,0 +1,54 @@
|
|
1
|
+
require 'set'
|
2
|
+
|
3
|
+
include Helpers::ModuleHelper
|
4
|
+
|
5
|
+
MANIFEST_FILENAME = 'coverage.manifest'.freeze
|
6
|
+
|
7
|
+
def init
|
8
|
+
list_all_classes
|
9
|
+
end
|
10
|
+
|
11
|
+
|
12
|
+
def all_objects
|
13
|
+
run_verifier(Registry.all)
|
14
|
+
end
|
15
|
+
|
16
|
+
def class_objects
|
17
|
+
run_verifier(Registry.all(:class))
|
18
|
+
end
|
19
|
+
|
20
|
+
def namespace_definition(object)
|
21
|
+
return if object.root?
|
22
|
+
definition = "#{object.type} #{object.path}"
|
23
|
+
if object.type == :class && object.superclass.name != :Object
|
24
|
+
definition << " < #{object.superclass.path}"
|
25
|
+
end
|
26
|
+
output = StringIO.new
|
27
|
+
# output.puts generate_docstring(object)
|
28
|
+
output.puts definition
|
29
|
+
output.string
|
30
|
+
end
|
31
|
+
|
32
|
+
def generate_mixins(object, scope)
|
33
|
+
output = StringIO.new
|
34
|
+
mixin_type = (scope == :class) ? 'extend' : 'include'
|
35
|
+
mixins = run_verifier(object.mixins(scope))
|
36
|
+
mixins = stable_sort_by(mixins, &:path)
|
37
|
+
mixins.each { |mixin|
|
38
|
+
output.puts " #{mixin_type} #{mixin.path}"
|
39
|
+
}
|
40
|
+
output.string
|
41
|
+
end
|
42
|
+
|
43
|
+
def list_all_classes
|
44
|
+
# versions = Set.new
|
45
|
+
klasses = []
|
46
|
+
class_objects.each { |object|
|
47
|
+
# version_tag = object.tag(:version)
|
48
|
+
# versions << version_tag.text if version_tag
|
49
|
+
klasses << namespace_definition(object)
|
50
|
+
}
|
51
|
+
# puts klasses.sort.join("\n")
|
52
|
+
puts klasses.sort.join
|
53
|
+
exit # Avoid the YARD summary
|
54
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yard-sketchup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trimble Inc, SketchUp Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yard
|
@@ -79,6 +79,7 @@ files:
|
|
79
79
|
- lib/yard-sketchup/templates/default/module/html/constant_summary.erb
|
80
80
|
- lib/yard-sketchup/templates/default/module/html/defines.erb
|
81
81
|
- lib/yard-sketchup/templates/default/module/html/method_summary.erb
|
82
|
+
- lib/yard-sketchup/templates/inheritance/fulldoc/text/setup.rb
|
82
83
|
- lib/yard-sketchup/templates/rubocop-changelog/fulldoc/text/setup.rb
|
83
84
|
- lib/yard-sketchup/templates/stubs/fulldoc/text/setup.rb
|
84
85
|
- lib/yard-sketchup/templates/versions/fulldoc/text/setup.rb
|
@@ -107,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
108
|
- !ruby/object:Gem::Version
|
108
109
|
version: '0'
|
109
110
|
requirements: []
|
110
|
-
rubygems_version: 3.
|
111
|
+
rubygems_version: 3.2.15
|
111
112
|
signing_key:
|
112
113
|
specification_version: 4
|
113
114
|
summary: SketchUp Ruby API YARD template.
|