https://github.com/zoltan-nz/ruby-sandbox
A Ruby Sandbox
https://github.com/zoltan-nz/ruby-sandbox
Last synced: 6 months ago
JSON representation
A Ruby Sandbox
- Host: GitHub
- URL: https://github.com/zoltan-nz/ruby-sandbox
- Owner: zoltan-nz
- Created: 2018-07-13T05:01:40.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-20T20:28:48.000Z (over 2 years ago)
- Last Synced: 2025-03-30T13:03:43.692Z (6 months ago)
- Language: Ruby
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruby Sandbox
- [Bundler - How to create a Ruby gem with Bundler](https://bundler.io/v1.16/guides/creating_gem.html)
- [Rake - Task Management](https://github.com/ruby/rake)## Code Quality, code linting
- [Reek - Code Smell](https://github.com/troessner/reek)
- [RuboCop](https://github.com/rubocop-hq/rubocop)
- [Ruby Type Inference](https://github.com/JetBrains/ruby-type-inference)
- [RubyCritic](https://github.com/whitesmith/rubycritic)
- [Solargraph - Ruby Language Server](https://github.com/castwide/solargraph)
- [Ruby Debug IDE](https://github.com/ruby-debug/ruby-debug-ide)Install packages:
$ gem install solargraph rubocop ruby-debug-ide
Setup and run Prettier:
yarn global add prettier @prettier/plugin-ruby
prettier --write '**/*.*'## Experiment #1 - Creating gem with bundler
Create a new gem scaffold:
$ bundle gem name_of_the_gem
Drawing a dependency graph:
$ bundle viz
Add `guard-spec` for test watcher:
```ruby
# .gemspec
spec.add_development_dependency 'guard-rspec', '~> 4.7'
spec.add_development_dependency 'guard', '~> 2.14'
```bundle exec guard init
- [Creating CLI with `Thor`](https://bundler.io/v1.16/guides/creating_gem.html#crafting-a-cli)
## Experiment #2 - Using Sinatra API, simple frontend and rake tasks
- [Sinatra with Rake](./sinatra-rake/README.md)