@smbcloud / cli / commits / e5257bd

add gems docs

Seto Elkahfi committed Jun 9, 2025 at 20:20 UTC e5257bd917fcbb1099d7eb354b47b4593ed707d3
1 file changed +11
docs/gems.md new
+11
@@ -0,0 +1,11 @@
1 +# Publish gem
2 +
3 +To publish the gem with native extension, there are multiple steps to do.
4 +
5 +## Build the gem
6 +
7 +- Make sure to publish the cli first since it will publish the `smbcloud-model` crate as well, which the gem depends on.
8 +- Update the Cargo dependency in `gems/model/ext/model/Cargo.toml`.
9 +- Build the gem: `bundle exec rake compile`.
10 +- Update the gem version in the `gem/model/lib/model/version.rb`. Just use the same version as the `smbcloud-model` crate.
11 +- Then publish the gem.
\ No newline at end of file