Skip to content
Snippets Groups Projects
Commit 399038f6 authored by Georges Racinet's avatar Georges Racinet
Browse files

ruby doc: using the gem locally in HDK

with subsequent release instructions.
parent f25608ea
No related branches found
No related tags found
1 merge request!133Mercurial config management methods
......@@ -16,5 +16,24 @@
hg commit
```
## Using the gem locally from the Rails app in a HDK workspace
Edit `Gemfile` in Rails app (clone of `heptapod/heptapod`,
with something like
```
gem 'hgitaly', '>= 0.28.0', path: '../hgitaly/ruby'
```
and run `bundle install`.
Of course, don't commit the changes to `Gemfile` and `Gemfile.lock`. Instead,
once your development is done and the new protocol is satisfying:
- release it in a new version (see below)
- change `Gemfile` to use the published gem
- run `bundle install` again
- commit/push the results.
## Publishing the gem
......@@ -19,5 +38,8 @@
## Publishing the gem
First, check that the version is appropriate! It is generated automatically
from `../hgitaly/VERSION` (package file in the Python implementation).
```
gem build hgitaly.gemspec
gem publish hgitaly.gem
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment