Parsing Gemfile and gemspec files to extract dependencies and their groups #6440
Unanswered
nareshdevasani
asked this question in
Q&A
Replies: 2 comments 7 replies
-
Does this help? |
Beta Was this translation helpful? Give feedback.
6 replies
-
Is there any problem using DB snapshot I pointed you to before (if I remember well)? You'll not be limited for your requests than. https://rubygems.org/gems/crass/versions/1.0.6/dependencies This page is based on the DB data publicly available using this code to render https://github.com/rubygems/rubygems.org/blob/master/app/controllers/dependencies_controller.rb + https://github.com/rubygems/rubygems.org/blob/master/app/views/dependencies/show.html.erb. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello friends, need help to extract dependencies and the group each dependency belongs to.
Any ruby project can contain only Gemfile or both Gemfile and gemspec file. I see we can declare the dependencies(gems) in both files. While Gemfile has groups like development/test etc, gemspec has development_dependency vs dependency methods.
Now, I would like to list the dependencies declared in the above to files.
https://rubygems.org/gems/crass/versions/1.0.6/dependencies
Kindly provide pointers.
I tried generating GEM for the repository, but it is not retaining all the dependencies from the gemspec file to the newly created gemspec within the gem.
Beta Was this translation helpful? Give feedback.
All reactions