I want to parse a Gemfile.lock file as a dependencies tree. I've noticed that the indents indicates the structure of the dependencies tree like in this example below:
GEM
remote: https://rubygems.org/
specs:
websocket-eventmachine-base (1.2.0)
eventmachine (~> 1.0)
Meaning that the tree will be: websocket-eventmachine-base -> eventmachine
I've been trying to check what would be the maximum depth, but couldn't find any documentation about it. So far I saw the maximum is depth of 2 (dependencies and his sub-dependencies).
Can the depth be deeper than 2?
In case it can -
A root dependency has indent of 4 spaces, his sub-dependencies will have indent of 6, can I assume the next layer will be 8?
Thanks!