Skip to content

Commit 4ab7773

Browse files
committed
Merge branch 'main' into staging
2 parents d82e847 + 36fb9b5 commit 4ab7773

157 files changed

Lines changed: 2203 additions & 1421 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
# SketchUp Ruby API Stubs
22

3-
[![Gem Version](https://badge.fury.io/rb/sketchup-api-stubs.svg)](https://badge.fury.io/rb/sketchup-api-stubs) [![Build status](https://ci.appveyor.com/api/projects/status/6l5tqoawh44lut66/branch/master?svg=true)](https://ci.appveyor.com/project/thomthom/ruby-api-stubs/branch/master)
3+
[![Gem Version](https://badge.fury.io/rb/sketchup-api-stubs.svg)](https://badge.fury.io/rb/sketchup-api-stubs) ![Build status](https://github.com/thomthom/skippy/actions/workflows/rake.yaml/badge.svg?branch=main)
44

55
Auto-generated stubs for the SketchUp Ruby API. Useful for IDE intellisense and auto-complete.
66

77
This is currently a work in progress and it may change a lot in the near future.
88

99
The stubs are automatically generated by a YARD template which we will publish in our sketchup-yard-template repository: https://github.com/SketchUp/sketchup-yard-template
1010

11-
We are experimenting with allowing pull requests to this repository. You can make changes to the `.rb` files in the `lib/sketchup-api-stubs/stubs` folder and send us a pull request.
12-
13-
If you send a pull request, please test the changed by building the documentation first. Make sure you have the nessecary gems installed; `bundle install`. From the location where you clone this repository, run `bundle exec yardoc`.
14-
1511
Guidance on how to set up editors to use the stubs will come.

.github/workflows/rake.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Rake
2+
3+
on:
4+
push:
5+
branches: [ main, master, dev/github-actions ]
6+
paths-ignore:
7+
- '**.md'
8+
pull_request:
9+
paths-ignore:
10+
- '**.md'
11+
workflow_dispatch:
12+
13+
permissions:
14+
contents: read # to fetch code (actions/checkout)
15+
16+
jobs:
17+
rake:
18+
name: >-
19+
OS ${{ matrix.os }}, Ruby ${{ matrix.ruby }}
20+
env:
21+
CI: true
22+
23+
runs-on: ${{ matrix.os }}
24+
if: |
25+
!( contains(github.event.pull_request.title, '[ci skip]')
26+
|| contains(github.event.pull_request.title, '[skip ci]'))
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
os: [ macos-12, windows-2022 ]
31+
ruby: [ 2.7 ]
32+
33+
steps:
34+
- name: Checkout source
35+
uses: actions/checkout@v3
36+
with:
37+
submodules: recursive
38+
39+
- name: Setup Ruby
40+
uses: ruby/setup-ruby-pkgs@v1
41+
with:
42+
ruby-version: ${{ matrix.ruby }}
43+
bundler-cache: true
44+
timeout-minutes: 10
45+
46+
- name: Run rake
47+
timeout-minutes: 10
48+
run: bundle exec rake

appveyor.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

lib/sketchup-api-stubs/sketchup.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
require 'sketchup-api-stubs/stubs/Layout/Pages.rb'
4141
require 'sketchup-api-stubs/stubs/Layout/Path.rb'
4242
require 'sketchup-api-stubs/stubs/Layout/Rectangle.rb'
43+
require 'sketchup-api-stubs/stubs/Layout/ReferenceEntity.rb'
4344
require 'sketchup-api-stubs/stubs/Layout/SketchUpModel.rb'
4445
require 'sketchup-api-stubs/stubs/Layout/Style.rb'
4546
require 'sketchup-api-stubs/stubs/Layout/Table.rb'
@@ -112,6 +113,8 @@
112113
require 'sketchup-api-stubs/stubs/Sketchup/OptionsManager.rb'
113114
require 'sketchup-api-stubs/stubs/Sketchup/OptionsProvider.rb'
114115
require 'sketchup-api-stubs/stubs/Sketchup/OptionsProviderObserver.rb'
116+
require 'sketchup-api-stubs/stubs/Sketchup/Overlay.rb'
117+
require 'sketchup-api-stubs/stubs/Sketchup/OverlaysManager.rb'
115118
require 'sketchup-api-stubs/stubs/Sketchup/Page.rb'
116119
require 'sketchup-api-stubs/stubs/Sketchup/Pages.rb'
117120
require 'sketchup-api-stubs/stubs/Sketchup/PagesObserver.rb'

lib/sketchup-api-stubs/stubs/Array.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2022 Trimble Inc.
1+
# Copyright:: Copyright 2023 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# The SketchUp Array class adds additional methods to the standard Ruby Array

lib/sketchup-api-stubs/stubs/Geom.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2022 Trimble Inc.
1+
# Copyright:: Copyright 2023 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# The Geom module defines a number of Module methods that let you perform

lib/sketchup-api-stubs/stubs/Geom/BoundingBox.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2022 Trimble Inc.
1+
# Copyright:: Copyright 2023 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# Bounding boxes are three-dimensional boxes (eight corners), aligned with the

lib/sketchup-api-stubs/stubs/Geom/Bounds2d.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2022 Trimble Inc.
1+
# Copyright:: Copyright 2023 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# The bounds2d class represents an axis aligned bounding box represented by

lib/sketchup-api-stubs/stubs/Geom/LatLong.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2022 Trimble Inc.
1+
# Copyright:: Copyright 2023 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# The LatLong class contains various methods for creating and manipulating

lib/sketchup-api-stubs/stubs/Geom/OrientedBounds2d.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright:: Copyright 2022 Trimble Inc.
1+
# Copyright:: Copyright 2023 Trimble Inc.
22
# License:: The MIT License (MIT)
33

44
# The OrientedBounds2d class is a bounding box represented by four

0 commit comments

Comments
 (0)