yard-sketchup 1.1.1 → 1.1.2

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: 47a2a2e0b464d7f908fb17c2e63cf1423397a1e8cbc66a4e368eb17540a2ce28
4
- data.tar.gz: 7e713b2811c2c798badcd6d45b0a89a4267198ff8272b9fe426df0c58178da63
3
+ metadata.gz: a31db942deaf24ad0d0e802ca202fc3d0f054ff0e5d4c2cd7eb1a782e013a19c
4
+ data.tar.gz: b6600e0cb0357784a57782763069656c109f480735e7346deda724a267d2fc5e
5
5
  SHA512:
6
- metadata.gz: 2ddee4c8415779264203bf321ff83166bd9a083d5fcd8af8af473447b027874981cf396093689213dd780f3a7458d20da3e787074ed02515007f078f0f9a402d
7
- data.tar.gz: 6d90fba365c1ff2cc9e4b531033b1bc55074b54e477200c92ca29b9f3f7a65ca1800dc0ee8a70f10fc583e52c1097e7d5959d862c754b5ab1b69a00fec4a12f6
6
+ metadata.gz: 3760e759fc8171333b1581a4be559d43c5933b00bcd10b52ccf090f24f273b0a12e8905f7fc8e4de52c00acf9471f4b689a63884500176b007d72077b2f1cb07
7
+ data.tar.gz: eb15da9389a7b0225603628cd3c839d7c77621542cbc6e68537b5bc506dd110e1b7666a40d53b7cda71cec92135a8531592eed17c9a9184c503060f2e030cdb3
@@ -1,7 +1,29 @@
1
+ # Helpers:
2
+
3
+ # Copy verbatim an asset file to the target output. By default it uses the
4
+ # same relative path as the source for the target path.
5
+ def copy(source, target = nil)
6
+ path = self.class.find_file(source)
7
+ puts "copy(#{source}, #{target})"
8
+ puts "> path: #{path}"
9
+ raise ArgumentError, "no file for '#{source}' in #{self.class.path}" unless path
10
+ target ||= source
11
+ asset(target, File.binread(path))
12
+ end
13
+
14
+ # Template overrides:
15
+
1
16
  def javascripts_full_list
2
17
  %w(js/jquery.js js/full_list.js js/sketchup.js)
3
18
  end
4
19
 
20
+ def generate_assets
21
+ super
22
+ copy('favicon.ico')
23
+ copy('images/SU_Developer-RedWhite.png')
24
+ copy('images/trimble-logo-white.png')
25
+ end
26
+
5
27
  # Custom search list grouping the classes in the API into similar groups.
6
28
  # TODO(thomthom): This file is just a stub.
7
29
 
@@ -2,32 +2,32 @@
2
2
  case object
3
3
  when String
4
4
  if object == "_index.html" || object == "index.html"
5
- su_page_url = "http://ruby.sketchup.com/index.html"
5
+ su_page_url = "https://ruby.sketchup.com/index.html"
6
6
  su_page_title = "Alphabetic Index"
7
7
  su_page_desc = "Alphabetic Index of Files and API Namespaces. This is the main landing page for the SketchUp Ruby API Documentation."
8
8
  else
9
- su_page_url = "http://ruby.sketchup.com/"+(object =~ /(.html)\z/ ? object : "#{File.basename(object,'.*')}.html" )
9
+ su_page_url = "https://ruby.sketchup.com/"+(object =~ /(.html)\z/ ? object : "#{File.basename(object,'.*')}.html" )
10
10
  su_page_title = (@page_title && !@page_title.empty?) ? (h @page_title) : object.split('.')[0]
11
11
  su_page_desc = "The #{su_page_title} page."
12
12
  end
13
13
  when YARD::CodeObjects::Base # or subclass
14
- if object.root?
14
+ if object.root?
15
15
  if @file # Generating a YARD::CodeObjects::ExtraFileObject
16
- su_page_url = "http://ruby.sketchup.com/file.#{File.basename(@file.filename,'.*')}.html"
16
+ su_page_url = "https://ruby.sketchup.com/file.#{File.basename(@file.filename,'.*')}.html"
17
17
  su_page_title = h @page_title
18
18
  su_page_desc = @file.title
19
19
  elsif h @page_title == "Top Level Namespace"
20
- su_page_url = "http://ruby.sketchup.com/top-level-namespace.html"
20
+ su_page_url = "https://ruby.sketchup.com/top-level-namespace.html"
21
21
  su_page_title = h @page_title
22
22
  su_page_desc = "The Top Level Namespace for Ruby and the SketchUp API, listing global constants, and a summary of toplevel modules and classes."
23
23
  else %>
24
24
  <!-- <%= "YARD Error - (embed_meta.erb) Unknown root object - using site name." %>--><%
25
25
  su_page_title = su_site_name
26
- su_page_url = "http://ruby.sketchup.com/"
26
+ su_page_url = "https://ruby.sketchup.com/"
27
27
  su_page_desc = "#{su_site_name}."
28
28
  end
29
29
  else # Generating a Class or Module page:
30
- su_page_url = "http://ruby.sketchup.com/#{@path.gsub('::','/')}.html"
30
+ su_page_url = "https://ruby.sketchup.com/#{@path.gsub('::','/')}.html"
31
31
  su_page_title = h @page_title
32
32
  if object.docstring.blank?
33
33
  if object.is_a?(YARD::CodeObjects::ClassObject)
@@ -45,7 +45,7 @@
45
45
  else # object is unexpected type %>
46
46
  <!-- <%= "YARD Error - (embed_meta.erb) Unexpected type: #{object.class.name}" %>--><%
47
47
  su_page_title = su_site_name
48
- su_page_url = "http://ruby.sketchup.com/"
48
+ su_page_url = "https://ruby.sketchup.com/"
49
49
  if object.respond_to?(:docstring)
50
50
  su_page_desc = object.docstring.summary.gsub(/[{}+]/,'')
51
51
  else
@@ -75,4 +75,4 @@
75
75
  <meta name="twitter:title" content="<%= su_page_title %>" />
76
76
  <meta name="twitter:description" content="<%= su_page_desc %>" />
77
77
  <meta name="twitter:image:src" content="<%= su_page_img %>?s=120" />
78
- <meta name="twitter:url" content="<%= su_page_url %>" />
78
+ <meta name="twitter:url" content="<%= su_page_url %>" />
@@ -1,4 +1,4 @@
1
1
  <div id="footer">
2
2
  Generated by
3
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
3
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
4
4
  </div>
@@ -3,7 +3,7 @@
3
3
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
4
  <!-- AUTHOR and GENERATOR -->
5
5
  <meta name="author" content="SketchUp Extensibility Team">
6
- <meta name="generator" content="YARD http://yardoc.org">
6
+ <meta name="generator" content="YARD https://yardoc.org">
7
7
  <!-- TITLE -->
8
8
  <title><% if object == "_index.html" || object == "index.html" %>
9
9
  Alphabetic Index &mdash; <%= h options.title %><% else %>
@@ -11,5 +11,5 @@
11
11
  </title>
12
12
  <!-- SHORTCUT ICON -->
13
13
  <link rel="shortcut icon" type="image/vnd.microsoft.icon"
14
- href="https://developer.sketchup.com/sites/all/themes/sketch_help/favicon.ico" />
15
- <%= erb(:embed_meta) %>
14
+ href="https://ruby.sketchup.com/favicon.ico" />
15
+ <%= erb(:embed_meta) %>
@@ -2,8 +2,8 @@
2
2
  <header id="navbar" role="banner" class="navbar navbar-fixed-top navbar-inverse">
3
3
  <div id="api-documentation-header">
4
4
  <div class="navbar-header">
5
- <a class="logo navbar-btn pull-left" href="http://developer.sketchup.com" title="Home">
6
- <img src="https://www.sketchup.com/sites/www.sketchup.com/files/ruby/SU_Developer-RedWhite.png" alt="Home">
5
+ <a class="logo navbar-btn pull-left" href="https://developer.sketchup.com" title="Home">
6
+ <img src="https://ruby.sketchup.com/images/SU_Developer-RedWhite.png" alt="Home">
7
7
  </a>
8
8
  <a class="name navbar-brand" href="/en" title="Home">SketchUp Developer Center</a>
9
9
  <!-- .btn-navbar is used as the toggle for collapsed navbar content -->
@@ -17,15 +17,15 @@
17
17
  <div class="navbar-collapse collapse">
18
18
  <nav role="navigation">
19
19
  <ul class="menu nav navbar-nav">
20
- <li class="first leaf"><a href="http://forums.sketchup.com/c/developers">Community</a></li>
21
- <li class="leaf"><a href="http://blog.sketchup.com/tags/developers">SketchUpdate Blog</a></li>
22
- <li class="leaf"><a href="http://www.sketchup.com/download" class="top-menu--download-button">Download</a></li>
20
+ <li class="first leaf"><a href="https://forums.sketchup.com/c/developers">Community</a></li>
21
+ <li class="leaf"><a href="https://blog.sketchup.com/">SketchUp Blog</a></li>
22
+ <li class="leaf"><a href="https://www.sketchup.com/download" class="top-menu--download-button">Download</a></li>
23
23
  <li class="last expanded dropdown">
24
- <a href="http://www.trimble.com" class="trimble-top-menu-item dropdown-toggle" data-target="#" data-toggle="dropdown"><img src="https://www.sketchup.com/sites/www.sketchup.com/files/ruby/trimble-logo-white.png"><span class="caret"></span></a>
24
+ <a href="https://www.trimble.com" class="trimble-top-menu-item dropdown-toggle" data-target="#" data-toggle="dropdown"><img src="https://ruby.sketchup.com/images/ruby/trimble-logo-white.png"><span class="caret"></span></a>
25
25
  <ul class="dropdown-menu">
26
- <li class="first leaf"><a href="http://connect.trimble.com/">Trimble Connect</a></li>
26
+ <li class="first leaf"><a href="https://connect.trimble.com/">Trimble Connect</a></li>
27
27
  <li class="leaf"><a href="https://www.trimble.com/Corporate/About_Trimble.aspx">About Trimble</a></li>
28
- <li class="last leaf"><a href="http://buildings.trimble.com/">Trimble Buildings</a></li>
28
+ <li class="last leaf"><a href="https://buildings.trimble.com/">Trimble Buildings</a></li>
29
29
  </ul>
30
30
  </li>
31
31
  </ul>
@@ -1,3 +1,3 @@
1
1
  module SketchUpYARD
2
- VERSION = '1.1.1'.freeze
2
+ VERSION = '1.1.2'.freeze
3
3
  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.1.1
4
+ version: 1.1.2
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: 2019-09-06 00:00:00.000000000 Z
11
+ date: 2020-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yard
@@ -58,7 +58,10 @@ files:
58
58
  - lib/yard-sketchup/templates/coverage/fulldoc/text/setup.rb
59
59
  - lib/yard-sketchup/templates/default/fulldoc/html/css/rubyapi.css
60
60
  - lib/yard-sketchup/templates/default/fulldoc/html/css/sketchup.css
61
+ - lib/yard-sketchup/templates/default/fulldoc/html/favicon.ico
61
62
  - lib/yard-sketchup/templates/default/fulldoc/html/full_list_object_types.erb
63
+ - lib/yard-sketchup/templates/default/fulldoc/html/images/SU_Developer-RedWhite.png
64
+ - lib/yard-sketchup/templates/default/fulldoc/html/images/trimble-logo-white.png
62
65
  - lib/yard-sketchup/templates/default/fulldoc/html/js/sketchup.js
63
66
  - lib/yard-sketchup/templates/default/fulldoc/html/setup.rb
64
67
  - lib/yard-sketchup/templates/default/layout/html/embed_meta.erb