yard-sketchup 1.3.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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +15 -15
  3. data/lib/yard-sketchup/patches/c_base_handler.rb +52 -52
  4. data/lib/yard-sketchup/stubs/autoload.rb +134 -134
  5. data/lib/yard-sketchup/templates/changelog/fulldoc/text/setup.rb +44 -44
  6. data/lib/yard-sketchup/templates/coverage/fulldoc/text/setup.rb +41 -41
  7. data/lib/yard-sketchup/templates/default/fulldoc/html/css/rubyapi.css +10 -10
  8. data/lib/yard-sketchup/templates/default/fulldoc/html/css/sketchup.css +141 -141
  9. data/lib/yard-sketchup/templates/default/fulldoc/html/favicon.ico +0 -0
  10. data/lib/yard-sketchup/templates/default/fulldoc/html/full_list_object_types.erb +1 -1
  11. data/lib/yard-sketchup/templates/default/fulldoc/html/images/Ruby.svg +1 -1
  12. data/lib/yard-sketchup/templates/default/fulldoc/html/images/sketchup-logo.svg +19 -19
  13. data/lib/yard-sketchup/templates/default/fulldoc/html/images/trimble-logo-white.svg +29 -29
  14. data/lib/yard-sketchup/templates/default/fulldoc/html/js/sketchup.js +37 -37
  15. data/lib/yard-sketchup/templates/default/fulldoc/html/setup.rb +75 -67
  16. data/lib/yard-sketchup/templates/default/layout/html/embed_meta.erb +78 -78
  17. data/lib/yard-sketchup/templates/default/layout/html/footer.erb +4 -4
  18. data/lib/yard-sketchup/templates/default/layout/html/headers.erb +15 -15
  19. data/lib/yard-sketchup/templates/default/layout/html/layout.erb +56 -55
  20. data/lib/yard-sketchup/templates/default/layout/html/navbar.erb +36 -36
  21. data/lib/yard-sketchup/templates/default/layout/html/setup.rb +25 -25
  22. data/lib/yard-sketchup/templates/default/method_details/html/method_signature.erb +25 -25
  23. data/lib/yard-sketchup/templates/default/method_details/setup.rb +11 -11
  24. data/lib/yard-sketchup/templates/default/module/html/box_info.erb +37 -37
  25. data/lib/yard-sketchup/templates/default/module/html/constant_summary.erb +17 -17
  26. data/lib/yard-sketchup/templates/default/module/html/method_summary.erb +18 -18
  27. data/lib/yard-sketchup/templates/inheritance/fulldoc/text/setup.rb +54 -54
  28. data/lib/yard-sketchup/templates/stubs/fulldoc/text/setup.rb +372 -361
  29. data/lib/yard-sketchup/templates/versions/fulldoc/text/setup.rb +25 -25
  30. data/lib/yard-sketchup/version.rb +3 -3
  31. data/lib/yard-sketchup/yard/html_helper.rb +16 -0
  32. data/lib/yard-sketchup.rb +37 -36
  33. data/yard-sketchup.gemspec +26 -25
  34. metadata +22 -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.3.0'.freeze
3
- end
1
+ module SketchUpYARD
2
+ VERSION = '1.4.1'.freeze
3
+ end
@@ -0,0 +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)
data/lib/yard-sketchup.rb CHANGED
@@ -1,36 +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/patches/c_base_handler'
9
-
10
- module SketchUpYARD
11
-
12
- def self.init
13
- # https://github.com/burtlo/yard-cucumber/blob/master/lib/yard-cucumber.rb
14
- # This registered template works for yardoc
15
- # YARD::Templates::Engine.register_template_path File.dirname(__FILE__) + '/templates'
16
- # The following static paths and templates are for yard server
17
- # YARD::Server.register_static_path File.dirname(__FILE__) + "/templates/default/fulldoc/html"
18
-
19
- YARD::Templates::Engine.register_template_path self.templates_path
20
-
21
- # https://www.rubydoc.info/gems/yard/file/docs/TagsArch.md#Adding_Custom_Tags
22
- # https://github.com/lsegal/yard/issues/1227
23
- # Custom visible tags:
24
- tags = [
25
- YARD::Tags::Library.define_tag('Known Bugs', :bug),
26
- ]
27
- YARD::Tags::Library.visible_tags |= tags
28
- end
29
-
30
- def self.templates_path
31
- File.join(__dir__, 'yard-sketchup', 'templates')
32
- end
33
-
34
- end
35
-
36
- 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
@@ -1,25 +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_development_dependency 'bundler', '>= 1.15.0', '< 3.0'
25
- 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.3.0
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: 2021-06-18 00:00:00.000000000 Z
11
+ date: 2023-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yard
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.9.18
27
+ - !ruby/object:Gem::Dependency
28
+ name: rouge
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.26'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.26'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -45,7 +59,7 @@ dependencies:
45
59
  - !ruby/object:Gem::Version
46
60
  version: '3.0'
47
61
  description: SketchUp Ruby API YARD template.
48
- email:
62
+ email:
49
63
  executables: []
50
64
  extensions: []
51
65
  extra_rdoc_files: []
@@ -87,13 +101,14 @@ files:
87
101
  - lib/yard-sketchup/yard/handlers/class_constants.rb
88
102
  - lib/yard-sketchup/yard/handlers/class_enum_constants.rb
89
103
  - lib/yard-sketchup/yard/handlers/global_constants.rb
104
+ - lib/yard-sketchup/yard/html_helper.rb
90
105
  - lib/yard-sketchup/yard/logger.rb
91
106
  - yard-sketchup.gemspec
92
107
  homepage: https://github.com/SketchUp/sketchup-yard-template
93
108
  licenses:
94
109
  - MIT
95
110
  metadata: {}
96
- post_install_message:
111
+ post_install_message:
97
112
  rdoc_options: []
98
113
  require_paths:
99
114
  - lib
@@ -108,8 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
123
  - !ruby/object:Gem::Version
109
124
  version: '0'
110
125
  requirements: []
111
- rubygems_version: 3.2.15
112
- signing_key:
126
+ rubygems_version: 3.1.4
127
+ signing_key:
113
128
  specification_version: 4
114
129
  summary: SketchUp Ruby API YARD template.
115
130
  test_files: []