Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a gem with the stubs #21

Closed
thomthom opened this issue Feb 2, 2017 · 3 comments
Closed

Create a gem with the stubs #21

thomthom opened this issue Feb 2, 2017 · 3 comments
Assignees

Comments

@thomthom
Copy link
Member

thomthom commented Feb 2, 2017

This might make tings simpler in distribution, (gem install sketchup-api-stubs for instance...). Might help with RubyMine intellisense, maybe the autoload file can be eliminated.

Ref: https://intellij-support.jetbrains.com/hc/en-us/requests/376248

@thomthom thomthom self-assigned this Feb 2, 2017
@thomthom thomthom added this to TODO in Gem Refactor Feb 2, 2017
@thomthom
Copy link
Member Author

thomthom commented Feb 2, 2017

Just created a test gem locally on my machine, bundling up the stubs and installed it.

Then in my RubyMine project I just added Gemfile and added gem 'sketchup-api-stubs' to it - and RubyMine provided auto-complete for everything (and no more errors/warnings). I like this much better than having to include the stubs path in each project - and needing to use the Autoload/sketchup.rb along with littering every file with `require 'sketchup.rb'.

I'll be setting up the gemspec for the stubs and make pushing a gem part of the stubs release checklist.

@thomthom
Copy link
Member Author

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

For RubyMine this helps with autocomplete;

  1. Add a Gemfile to your project
  2. Add the line gem 'sketchup-api-stubs'
  3. Let RubyMine install the new gem dependency

@DanRathbun
Copy link
Contributor

@thomthom Can the project that this issue is associated with also be closed (or set as complete) ?

@thomthom thomthom moved this from TODO to Complete in Gem Refactor Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

2 participants