gem_rbs_collection
typings
gem_rbs_collection | typings | |
---|---|---|
5 | 3 | |
270 | 3,412 | |
0.4% | - | |
9.5 | 10.0 | |
7 days ago | over 7 years ago | |
Ruby | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gem_rbs_collection
-
A decent VS Code and Ruby on Rails setup
I saw no mention of RBS+Steep, the latter providing a LSP. I use it a lot and very much like it, although it's still young and needs love, but it's making good, steady progress! I've been very pleasantly surprised by some of the crazy things Steep can catch, completely statically!
You appear to be working on projects with Sorbet (which I tried to like but found it fell short in practice, notably outside of the app use case i.e it's mostly useless for gems) so it may be a tall order to try on those. Maybe you can give RBS+Steep a shot on some small project?
RBS: https://github.com/ruby/rbs
RBS collection (for those gems that don't ship RBS signatures in `sig`, integrates with bundler): https://github.com/ruby/gem_rbs_collection
Steep: https://github.com/soutaro/steep
VS Code: https://github.com/soutaro/steep-vscode
Sublime Text: https://github.com/sublimelsp/LSP
Vim (I'm working on it): https://github.com/dense-analysis/ale/pull/4671
-
Is anyone using RBS?
For now there's a ruby/gem_rbs_collection repo now that's been started to grow a collection of signatures that RBS can pull from.
-
RBS introduced manifest.yaml
rbs collection detects the dependencies from Gemfile.lock. For example, if your Gemfile has an entry, gem 'rails', rbs collection finds dependencies gems, such as activesupport, railties, nokogiri and so on, from Gemfile.lock. Then it installs RBSs from ruby/gem_rbs_collection repository.
-
The future of rbs collection
Currently, rbs collection downloads RBSs with git clone from ruby/gem_rbs_collection GitHub repository.
-
rbs collection was released!
# Download sources sources: - name: ruby/gem_rbs_collection remote: https://github.com/ruby/gem_rbs_collection.git revision: main repo_dir: gems # A directory to install the downloaded RBSs path: .gem_rbs_collection gems: # Skip loading rbs gem's RBS. # It's unnecessary if you don't use rbs as a library. - name: rbs ignore: true # 👮👮👮 Add the following lines - name: pathname - name: logger - name: mutex_m - name: date - name: monitor - name: singleton - name: tsort - name: time - name: set
typings
- Augment react-router module with react-router-relay typings
-
React - using TypeScript vs Flow vs?
I really like TypeScript. I think it reduces the pain of developing JavaScript applications quite a lot, thanks to type checking and other neat features. Visual Studio Code also offers a really nice code completion. And I know that I can make it work with React by using typings + DenifitelyTyped.
-
The future of rbs collection
I think git clone is a good compromise for now. It is the same phase of tsd or typings of TypeScript. We needed a simple RBS manager now as you can see from the previous article.
What are some alternatives?
rbs - Type Signature for Ruby
tsd - Check TypeScript type definitions
typeprof - An experimental type-level Ruby interpreter for testing and understanding Ruby code
RubyGems - The Ruby community's gem hosting service.
DefinitelyTyped - The repository for high quality TypeScript type definitions.
yarn - The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry