yard-sketchup 1.4.0 → 1.4.1
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 +4 -4
- data/Gemfile +15 -15
- data/lib/yard-sketchup/patches/c_base_handler.rb +52 -52
- data/lib/yard-sketchup/stubs/autoload.rb +134 -134
- data/lib/yard-sketchup/templates/changelog/fulldoc/text/setup.rb +44 -44
- data/lib/yard-sketchup/templates/coverage/fulldoc/text/setup.rb +41 -41
- data/lib/yard-sketchup/templates/default/fulldoc/html/css/rubyapi.css +10 -10
- data/lib/yard-sketchup/templates/default/fulldoc/html/css/sketchup.css +141 -141
- data/lib/yard-sketchup/templates/default/fulldoc/html/favicon.ico +0 -0
- data/lib/yard-sketchup/templates/default/fulldoc/html/full_list_object_types.erb +1 -1
- data/lib/yard-sketchup/templates/default/fulldoc/html/images/Ruby.svg +1 -1
- data/lib/yard-sketchup/templates/default/fulldoc/html/images/sketchup-logo.svg +19 -19
- data/lib/yard-sketchup/templates/default/fulldoc/html/images/trimble-logo-white.svg +29 -29
- data/lib/yard-sketchup/templates/default/fulldoc/html/js/sketchup.js +37 -37
- data/lib/yard-sketchup/templates/default/fulldoc/html/setup.rb +75 -75
- data/lib/yard-sketchup/templates/default/layout/html/embed_meta.erb +78 -78
- data/lib/yard-sketchup/templates/default/layout/html/footer.erb +4 -4
- data/lib/yard-sketchup/templates/default/layout/html/headers.erb +15 -15
- data/lib/yard-sketchup/templates/default/layout/html/layout.erb +56 -56
- data/lib/yard-sketchup/templates/default/layout/html/navbar.erb +36 -36
- data/lib/yard-sketchup/templates/default/layout/html/setup.rb +25 -25
- data/lib/yard-sketchup/templates/default/method_details/html/method_signature.erb +25 -25
- data/lib/yard-sketchup/templates/default/method_details/setup.rb +11 -11
- data/lib/yard-sketchup/templates/default/module/html/box_info.erb +37 -37
- data/lib/yard-sketchup/templates/default/module/html/constant_summary.erb +17 -17
- data/lib/yard-sketchup/templates/default/module/html/method_summary.erb +18 -18
- data/lib/yard-sketchup/templates/inheritance/fulldoc/text/setup.rb +54 -54
- data/lib/yard-sketchup/templates/stubs/fulldoc/text/setup.rb +372 -361
- data/lib/yard-sketchup/templates/versions/fulldoc/text/setup.rb +25 -25
- data/lib/yard-sketchup/version.rb +3 -3
- data/lib/yard-sketchup/yard/html_helper.rb +16 -16
- data/lib/yard-sketchup.rb +37 -37
- data/yard-sketchup.gemspec +26 -26
- metadata +7 -7
@@ -1,25 +1,25 @@
|
|
1
|
-
require 'set'
|
2
|
-
|
3
|
-
include Helpers::ModuleHelper
|
4
|
-
|
5
|
-
MANIFEST_FILENAME = 'coverage.manifest'.freeze
|
6
|
-
|
7
|
-
def init
|
8
|
-
find_all_versions
|
9
|
-
end
|
10
|
-
|
11
|
-
|
12
|
-
def all_objects
|
13
|
-
run_verifier(Registry.all)
|
14
|
-
end
|
15
|
-
|
16
|
-
|
17
|
-
def find_all_versions
|
18
|
-
versions = Set.new
|
19
|
-
all_objects.each { |object|
|
20
|
-
version_tag = object.tag(:version)
|
21
|
-
versions << version_tag.text if version_tag
|
22
|
-
}
|
23
|
-
puts versions.sort.join("\n")
|
24
|
-
exit # Avoid the YARD summary
|
25
|
-
end
|
1
|
+
require 'set'
|
2
|
+
|
3
|
+
include Helpers::ModuleHelper
|
4
|
+
|
5
|
+
MANIFEST_FILENAME = 'coverage.manifest'.freeze
|
6
|
+
|
7
|
+
def init
|
8
|
+
find_all_versions
|
9
|
+
end
|
10
|
+
|
11
|
+
|
12
|
+
def all_objects
|
13
|
+
run_verifier(Registry.all)
|
14
|
+
end
|
15
|
+
|
16
|
+
|
17
|
+
def find_all_versions
|
18
|
+
versions = Set.new
|
19
|
+
all_objects.each { |object|
|
20
|
+
version_tag = object.tag(:version)
|
21
|
+
versions << version_tag.text if version_tag
|
22
|
+
}
|
23
|
+
puts versions.sort.join("\n")
|
24
|
+
exit # Avoid the YARD summary
|
25
|
+
end
|
@@ -1,3 +1,3 @@
|
|
1
|
-
module SketchUpYARD
|
2
|
-
VERSION = '1.4.
|
3
|
-
end
|
1
|
+
module SketchUpYARD
|
2
|
+
VERSION = '1.4.1'.freeze
|
3
|
+
end
|
@@ -1,16 +1,16 @@
|
|
1
|
-
require 'rouge'
|
2
|
-
|
3
|
-
# Injection pattern copied from YARD::CodeRay:
|
4
|
-
# https://github.com/sagmor/yard-coderay/blob/master/lib/yard/coderay/html_helper.rb
|
5
|
-
module SketchUpYARD::HTMLHelper
|
6
|
-
|
7
|
-
def html_syntax_highlight_cpp(source)
|
8
|
-
# puts "html_syntax_highlight_cpp (GEM)"
|
9
|
-
formatter = Rouge::Formatters::HTML.new
|
10
|
-
lexer = Rouge::Lexers::Cpp.new
|
11
|
-
formatter.format(lexer.lex(source))
|
12
|
-
end
|
13
|
-
|
14
|
-
end
|
15
|
-
|
16
|
-
YARD::Templates::Helpers::HtmlHelper.include(SketchUpYARD::HTMLHelper)
|
1
|
+
require 'rouge'
|
2
|
+
|
3
|
+
# Injection pattern copied from YARD::CodeRay:
|
4
|
+
# https://github.com/sagmor/yard-coderay/blob/master/lib/yard/coderay/html_helper.rb
|
5
|
+
module SketchUpYARD::HTMLHelper
|
6
|
+
|
7
|
+
def html_syntax_highlight_cpp(source)
|
8
|
+
# puts "html_syntax_highlight_cpp (GEM)"
|
9
|
+
formatter = Rouge::Formatters::HTML.new
|
10
|
+
lexer = Rouge::Lexers::Cpp.new
|
11
|
+
formatter.format(lexer.lex(source))
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
|
16
|
+
YARD::Templates::Helpers::HtmlHelper.include(SketchUpYARD::HTMLHelper)
|
data/lib/yard-sketchup.rb
CHANGED
@@ -1,37 +1,37 @@
|
|
1
|
-
require 'yard'
|
2
|
-
require 'yard-sketchup/version'
|
3
|
-
require 'yard-sketchup/stubs/autoload'
|
4
|
-
require 'yard-sketchup/yard/logger'
|
5
|
-
require 'yard-sketchup/yard/handlers/class_constants'
|
6
|
-
require 'yard-sketchup/yard/handlers/class_enum_constants'
|
7
|
-
require 'yard-sketchup/yard/handlers/global_constants'
|
8
|
-
require 'yard-sketchup/yard/html_helper'
|
9
|
-
require 'yard-sketchup/patches/c_base_handler'
|
10
|
-
|
11
|
-
module SketchUpYARD
|
12
|
-
|
13
|
-
def self.init
|
14
|
-
# https://github.com/burtlo/yard-cucumber/blob/master/lib/yard-cucumber.rb
|
15
|
-
# This registered template works for yardoc
|
16
|
-
# YARD::Templates::Engine.register_template_path File.dirname(__FILE__) + '/templates'
|
17
|
-
# The following static paths and templates are for yard server
|
18
|
-
# YARD::Server.register_static_path File.dirname(__FILE__) + "/templates/default/fulldoc/html"
|
19
|
-
|
20
|
-
YARD::Templates::Engine.register_template_path self.templates_path
|
21
|
-
|
22
|
-
# https://www.rubydoc.info/gems/yard/file/docs/TagsArch.md#Adding_Custom_Tags
|
23
|
-
# https://github.com/lsegal/yard/issues/1227
|
24
|
-
# Custom visible tags:
|
25
|
-
tags = [
|
26
|
-
YARD::Tags::Library.define_tag('Known Bugs', :bug),
|
27
|
-
]
|
28
|
-
YARD::Tags::Library.visible_tags |= tags
|
29
|
-
end
|
30
|
-
|
31
|
-
def self.templates_path
|
32
|
-
File.join(__dir__, 'yard-sketchup', 'templates')
|
33
|
-
end
|
34
|
-
|
35
|
-
end
|
36
|
-
|
37
|
-
SketchUpYARD.init
|
1
|
+
require 'yard'
|
2
|
+
require 'yard-sketchup/version'
|
3
|
+
require 'yard-sketchup/stubs/autoload'
|
4
|
+
require 'yard-sketchup/yard/logger'
|
5
|
+
require 'yard-sketchup/yard/handlers/class_constants'
|
6
|
+
require 'yard-sketchup/yard/handlers/class_enum_constants'
|
7
|
+
require 'yard-sketchup/yard/handlers/global_constants'
|
8
|
+
require 'yard-sketchup/yard/html_helper'
|
9
|
+
require 'yard-sketchup/patches/c_base_handler'
|
10
|
+
|
11
|
+
module SketchUpYARD
|
12
|
+
|
13
|
+
def self.init
|
14
|
+
# https://github.com/burtlo/yard-cucumber/blob/master/lib/yard-cucumber.rb
|
15
|
+
# This registered template works for yardoc
|
16
|
+
# YARD::Templates::Engine.register_template_path File.dirname(__FILE__) + '/templates'
|
17
|
+
# The following static paths and templates are for yard server
|
18
|
+
# YARD::Server.register_static_path File.dirname(__FILE__) + "/templates/default/fulldoc/html"
|
19
|
+
|
20
|
+
YARD::Templates::Engine.register_template_path self.templates_path
|
21
|
+
|
22
|
+
# https://www.rubydoc.info/gems/yard/file/docs/TagsArch.md#Adding_Custom_Tags
|
23
|
+
# https://github.com/lsegal/yard/issues/1227
|
24
|
+
# Custom visible tags:
|
25
|
+
tags = [
|
26
|
+
YARD::Tags::Library.define_tag('Known Bugs', :bug),
|
27
|
+
]
|
28
|
+
YARD::Tags::Library.visible_tags |= tags
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.templates_path
|
32
|
+
File.join(__dir__, 'yard-sketchup', 'templates')
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
|
37
|
+
SketchUpYARD.init
|
data/yard-sketchup.gemspec
CHANGED
@@ -1,26 +1,26 @@
|
|
1
|
-
$LOAD_PATH.unshift File.expand_path('lib', __dir__)
|
2
|
-
require 'yard-sketchup/version'
|
3
|
-
|
4
|
-
Gem::Specification.new do |spec|
|
5
|
-
spec.name = 'yard-sketchup'
|
6
|
-
spec.summary = 'SketchUp Ruby API YARD template.'
|
7
|
-
spec.description = 'SketchUp Ruby API YARD template.'
|
8
|
-
spec.homepage = 'https://github.com/SketchUp/sketchup-yard-template'
|
9
|
-
spec.authors = ['Trimble Inc, SketchUp Team']
|
10
|
-
spec.licenses = ['MIT']
|
11
|
-
|
12
|
-
spec.version = SketchUpYARD::VERSION
|
13
|
-
spec.platform = Gem::Platform::RUBY
|
14
|
-
spec.required_ruby_version = '>= 2.2.0'
|
15
|
-
|
16
|
-
spec.require_paths = ['lib']
|
17
|
-
spec.files = Dir[
|
18
|
-
'lib/**/*',
|
19
|
-
'*.gemspec',
|
20
|
-
'Gemfile'
|
21
|
-
]
|
22
|
-
|
23
|
-
spec.add_dependency 'yard', '~> 0.9.18'
|
24
|
-
spec.add_dependency 'rouge', '~> 3.26'
|
25
|
-
spec.add_development_dependency 'bundler', '>= 1.15.0', '< 3.0'
|
26
|
-
end
|
1
|
+
$LOAD_PATH.unshift File.expand_path('lib', __dir__)
|
2
|
+
require 'yard-sketchup/version'
|
3
|
+
|
4
|
+
Gem::Specification.new do |spec|
|
5
|
+
spec.name = 'yard-sketchup'
|
6
|
+
spec.summary = 'SketchUp Ruby API YARD template.'
|
7
|
+
spec.description = 'SketchUp Ruby API YARD template.'
|
8
|
+
spec.homepage = 'https://github.com/SketchUp/sketchup-yard-template'
|
9
|
+
spec.authors = ['Trimble Inc, SketchUp Team']
|
10
|
+
spec.licenses = ['MIT']
|
11
|
+
|
12
|
+
spec.version = SketchUpYARD::VERSION
|
13
|
+
spec.platform = Gem::Platform::RUBY
|
14
|
+
spec.required_ruby_version = '>= 2.2.0'
|
15
|
+
|
16
|
+
spec.require_paths = ['lib']
|
17
|
+
spec.files = Dir[
|
18
|
+
'lib/**/*',
|
19
|
+
'*.gemspec',
|
20
|
+
'Gemfile'
|
21
|
+
]
|
22
|
+
|
23
|
+
spec.add_dependency 'yard', '~> 0.9.18'
|
24
|
+
spec.add_dependency 'rouge', '~> 3.26'
|
25
|
+
spec.add_development_dependency 'bundler', '>= 1.15.0', '< 3.0'
|
26
|
+
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.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trimble Inc, SketchUp Team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yard
|
@@ -59,7 +59,7 @@ dependencies:
|
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '3.0'
|
61
61
|
description: SketchUp Ruby API YARD template.
|
62
|
-
email:
|
62
|
+
email:
|
63
63
|
executables: []
|
64
64
|
extensions: []
|
65
65
|
extra_rdoc_files: []
|
@@ -108,7 +108,7 @@ homepage: https://github.com/SketchUp/sketchup-yard-template
|
|
108
108
|
licenses:
|
109
109
|
- MIT
|
110
110
|
metadata: {}
|
111
|
-
post_install_message:
|
111
|
+
post_install_message:
|
112
112
|
rdoc_options: []
|
113
113
|
require_paths:
|
114
114
|
- lib
|
@@ -123,8 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
|
-
rubygems_version: 3.
|
127
|
-
signing_key:
|
126
|
+
rubygems_version: 3.1.4
|
127
|
+
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: SketchUp Ruby API YARD template.
|
130
130
|
test_files: []
|