https://github.com/mslinn/ruby-code-reading
https://github.com/mslinn/ruby-code-reading
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mslinn/ruby-code-reading
- Owner: mslinn
- Created: 2023-02-02T15:45:48.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T16:11:34.000Z (about 2 years ago)
- Last Synced: 2025-01-09T01:12:10.890Z (4 months ago)
- Language: Ruby
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reading Ruby Code
Following along Michael Cordell’s article
[Reading Ruby Code: ROM - preface](https://blog.mikecordell.com/2017/01/29/reading-ruby-code-rom-preface/).I am using Visual Studio Code with the
[rebornix.Ruby](https://marketplace.visualstudio.com/items?itemName=rebornix.Ruby)
extension to debug Ruby code. The second paragraph of dependencies supports development-related activities, including [ruby-rubocop](https://marketplace.visualstudio.com/items?itemName=misogi.ruby-rubocop).```shell
mkdir ruby-code-reading
cd ruby-code-reading
bundler init
cat <<- EOF >> Gemfile
gem 'rom', '>= 2.0.0'
gem 'rom-sql'
gem 'sqlite3'
gem 'rom-repository'gem 'debase', "0.2.5.beta2", require: false
gem 'ruby-debug-ide', require: false
gem 'rubocop', require: false
gem 'rubocop-rake', require: false
gem 'rubocop-rspec', require: false
EOF
```This old-style command has been deprecated:
```shell
$ bundle install --path=vendor
[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations,
which bundler will no longer do in future versions. Instead please use `bundle config set --local path
'vendor'`, and stop using this flag
```This is the new style command sequence:
```shell
$ bundle config set --local path 'vendor'
$ bundle install
```