Ruby gem projects: Difference between revisions
From wikinotes
(Created page with "= Notes = <blockquote> {| class="wikitable" |- | ruby gemspec || define project (paths etc) |- | ruby gemfile || define project requirements |- |} </blockquote><!-- Notes -->") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| [[ruby gemspec]] || define project ( | | [[ruby bundler]] || | ||
|- | |||
| [[ruby gemspec]] || define project info (name, author, requirements) for rubygems.org | |||
|- | |- | ||
| [[ruby gemfile]] || define project requirements | | [[ruby gemfile]] || define project requirements | ||
Line 9: | Line 11: | ||
|} | |} | ||
</blockquote><!-- Notes --> | </blockquote><!-- Notes --> | ||
{{ NOTE | | |||
If you want a gem with a different name than the module it requires,<br> | |||
simply define a top-level import with the gem name,<br> | |||
that requires the top-level module you want to expose. | |||
}} |
Latest revision as of 15:11, 2 May 2024
Notes
ruby bundler ruby gemspec define project info (name, author, requirements) for rubygems.org ruby gemfile define project requirements
NOTE:
If you want a gem with a different name than the module it requires,
simply define a top-level import with the gem name,
that requires the top-level module you want to expose.