SketchUp 2024.0 Developer Resources

A few updated Developer Resources related to SketchUp 2024.0:

rubocop-sketchup

  • Updated with support for 2024.0

SketchUp Ruby API stubs

https://rubygems.org/gems/sketchup-api-stubs/

  • Includes 2024.0 features.

SketchUp Ruby API Debugger

  • Updated for SketchUp 2024.0’s new Ruby version: 3.2

Ruby C Extension Examples

  • Updated for SketchUp 2024.0’s new Ruby version: 3.2

TestUp

  • Updated for SketchUp 2024.0’s new Ruby version: 3.2

SpeedUp - Ruby Profiler

  • Updated for SketchUp 2024.0’s new Ruby version: 3.2
7 Likes

@tt_su The 2024 Release Notes do not mention the addition of bundled gems.

2 Likes

@tt_su The following page says that SU 2024 uses Ruby 2.2 ! (should say 3.2)

1 Like

I will like to know more about these bundled gems.

I think macOS has included bundled gems for at least a few versions.

On Windows, the installed bundled gems are listed at:

C:/Program Files/SketchUp/SketchUp 2024/Tools/gems/3.2.0/specifications

In that folder there is also a default folder, it contains the gemspecs for all default gems.

The bundled gems are installed in:

C:/Program Files/SketchUp/SketchUp 2024/Tools/gems/3.2.0/gems

Bundled gems have existed since Ruby 2.2. Before Ruby 2.2, all items that were considered part of Ruby’s ‘std-lib’ (standard Library) were included in the Ruby repository.

Since then, the std-lib now has two categories:

  1. ‘Default gems’ are std-lib items whose code is included in the Ruby repo, and they cannot be uninstalled via the gem uninstall command.
  2. ‘Bundled gems’ are std-lib items that are not included in the Ruby repo, and they can be uninstalled.

These changes affect CI and other things unrelated to Ruby’s use in SketchUp.

2 Likes