From ef3f61783ed6944358dc320917599bc97043511e Mon Sep 17 00:00:00 2001 From: toshimaru Date: Sat, 26 Apr 2025 23:39:08 +0900 Subject: [PATCH 1/3] deps: require serverkit v1.0.0 or more to handle falsy attribute correctly --- serverkit-mise.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serverkit-mise.gemspec b/serverkit-mise.gemspec index 565a195..1263f31 100644 --- a/serverkit-mise.gemspec +++ b/serverkit-mise.gemspec @@ -31,5 +31,5 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.add_dependency "serverkit" + spec.add_dependency "serverkit", ">= 1.0.0" end From f094b1405649417a14b6899ef55780c753fb0e10 Mon Sep 17 00:00:00 2001 From: toshimaru Date: Tue, 29 Apr 2025 17:25:53 +0900 Subject: [PATCH 2/3] Support Ruby 2.7+ - ci: CI against Ruby 2.7, 3.0 --- .github/workflows/test.yml | 2 +- serverkit-mise.gemspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 60c1d9f..62ebcd3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest] - ruby: ["3.1", "3.2", "3.3", "3.4"] + ruby: ["2.7", "3.0", "3.1", "3.2", "3.3", "3.4"] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 diff --git a/serverkit-mise.gemspec b/serverkit-mise.gemspec index 1263f31..fbbd91a 100644 --- a/serverkit-mise.gemspec +++ b/serverkit-mise.gemspec @@ -12,7 +12,7 @@ Gem::Specification.new do |spec| spec.description = "Serverkit plug-in for mise." spec.homepage = "https://github.com/serverkit/serverkit-mise" spec.license = "MIT" - spec.required_ruby_version = ">= 3.1.0" + spec.required_ruby_version = ">= 2.7.0" spec.metadata["homepage_uri"] = spec.homepage spec.metadata["source_code_uri"] = "https://github.com/serverkit/serverkit-mise" From caf0997a93432664f63a5350a95c7c4064a79ed9 Mon Sep 17 00:00:00 2001 From: toshimaru Date: Tue, 29 Apr 2025 18:05:38 +0900 Subject: [PATCH 3/3] Update README.md --- README.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6e0e9e3..d446370 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,33 @@ gem "serverkit-mise" ## Usage -TODO: Write usage instructions here +### Prerequisites + +- Ensure you have [serverkit](https://github.com/serverkit/serverkit) gem installed +- Ensure you have [mise](https://github.com/jdx/mise) installed on your system + +### Basic Example + +Create a recipe file that uses the mise resources: + +```yaml +# recipe.yml +resources: + # Install Node.js using mise + - type: mise_install + name: node + version: 20.10.0 + # Install Ruby and set it as global + - type: mise_use + name: ruby + version: 3.3.0 +``` + +Then apply your recipe with Serverkit: + +```console +$ serverkit apply recipe.yml +``` ## Resource