Skip to content

Commit

Permalink
Do not bind ruby version for development
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jan 17, 2023
1 parent e12d50f commit 2a1b3d2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,24 @@

Welcome all of the contributions!

## Development
## Setup

Install [Nix](https://nixos.org/) package manager. And following steps.
Needs your ruby and [dprint](https://dprint.dev/) for development.\
If you are using [Nix](https://nixos.org/) package manager, [the definition](shell.nix) is included.

```console
$ git clone [email protected]:kachick/ruby-ulid.git
$ cd ./ruby-ulid
$ nix-shell
$ dprint --version
$ bundle install || bundle update
```

Author is using vscode for development. For your information, the rubocop vscode integration shows wrong errors for Rakefile and ruby-ulid.gemspec as below
Author is using vscode for development.

### Note - rubocop in vscode

For your information, the rubocop vscode integration shows wrong errors for Rakefile and ruby-ulid.gemspec as below

```text
The name of this source file (`Rakefile'`) should use snake_case.
Expand Down
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pkgs.mkShell {
buildInputs = [
pkgs.ruby_3_1
# Do not include ruby. Because switching the version is needed for gem development
pkgs.dprint
];
}

0 comments on commit 2a1b3d2

Please sign in to comment.