Skip to content

Commit b739846

Browse files
committed
Modified: README.md
1 parent 6e34f81 commit b739846

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ port_sum = servers.map { |server| server['port'] }.sum
329329

330330
# Development
331331
1. Clone the repo
332-
```console
333-
$ git clone https://github.com/erikw/nestedtext-ruby.git && cd $(basename "$_" .git)
332+
```shell
333+
git clone https://github.com/erikw/nestedtext-ruby.git && cd $(basename "$_" .git)
334334
```
335335
1. Install a supported ruby version (see .gemspec) with a ruby version manager e.g. [rbenv](https://github.com/rbenv/rbenv), [asdf](http://asdf-vm.com/) or [RVM](https://rvm.io/rvm/install)
336336
1. run `$ script/setup` or `$ bundle install` to install dependencies
@@ -355,40 +355,40 @@ Instructions for releasing on rubygems.org below. Optionally make a GitHub [rele
355355
356356
## (manually) Using bundler/gem_tasks rake tasks
357357
Following instructions from [bundler.io](https://bundler.io/guides/creating_gem.html#releasing-the-gem):
358-
```console
359-
$ vi -p lib/nestedtext/version.rb CHANGELOG.md
360-
$ bundle exec rake build
361-
$ ver=$(ruby -r ./lib/nestedtext/version.rb -e 'puts NestedText::VERSION')
362-
$ bundle exec rake release
358+
```shell
359+
vi -p lib/nestedtext/version.rb CHANGELOG.md
360+
bundle exec rake build
361+
ver=$(ruby -r ./lib/nestedtext/version.rb -e 'puts NestedText::VERSION')
362+
bundle exec rake release
363363
```
364364

365365
## (semi-manually) Using gem-release gem extension
366366
Using [gem-release](https://github.com/svenfuchs/gem-release):
367-
```console
368-
$ vi CHANGELOG.md && git commit -am "Update CHANGELOG.md" && git push
369-
$ gem bump --version minor --tag --sign --push --release
367+
```shell
368+
vi CHANGELOG.md && git commit -am "Update CHANGELOG.md" && git push
369+
gem bump --version minor --tag --sign --push --release
370370
```
371371
For `--version`, use `major|minor|patch` as needed.
372372

373373
## (semi-automatic, preferred) Using GitHub Actions CD
374374
Just push a new semver tag and the workflow [cd.yml](.github/workflows/cd.yml) will publish a new release at rubygems.org.
375375

376-
```console
377-
$ vi -p lib/nestedtext/version.rb CHANGELOG.md
378-
$ git commit -am "Prepare vX.Y.Z" && git push
379-
$ git tag vX.Y.Z && git push --tags
376+
```shell
377+
vi -p lib/nestedtext/version.rb CHANGELOG.md
378+
git commit -am "Prepare vX.Y.Z" && git push
379+
git tag vX.Y.Z && git push --tags
380380
```
381381

382382
or **preferred** combined with gem-release:
383-
```console
384-
$ vi CHANGELOG.md
385-
$ git commit -am "Update CHANGELOG.md" && git push
386-
$ gem bump --version minor --tag --push --sign
383+
```shell
384+
vi CHANGELOG.md
385+
git commit -am "Update CHANGELOG.md" && git push
386+
gem bump --version minor --tag --push --sign
387387
```
388388

389389
then watch progress with [gh](https://cli.github.com/)
390-
```console
391-
$ gh run watch
390+
```shell
391+
gh run watch
392392
```
393393

394394

0 commit comments

Comments
 (0)