@webhippie/semantic-release-rubygem 1.0.7 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/lib/verify.js +10 -0
  3. package/package.json +15 -15
package/README.md CHANGED
@@ -60,7 +60,7 @@ end
60
60
 
61
61
  | Options | Description | Default |
62
62
  | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- |
63
- | `gemHost` | The server to push the gem to | `'https//rubygems.org'` |
63
+ | `gemHost` | The server to push the gem to | `'https://rubygems.org'` |
64
64
  | `updateGemfileLock` | Whether to update the version of the gem to publish in the `Gemfile.lock`. This is useful if you are using the [`@semantic-release/git`](https://github.com/semantic-release/git) plugin to keep the version up to date in your git repo. When set to `true` the plugin will run `bundle install` to update the version. If another command is desired, it can be set by passing a string, e.g. `bundle appraisal install` | `false` |
65
65
  | `gemPublish` | Whether to publish your gem to the server. | `true` |
66
66
  | `gemFileDir` | Directory path in which to write the the built `.gem` file. If `false`, the `.gem` file will not be kept on the file system | `false` |
package/lib/verify.js CHANGED
@@ -25,6 +25,16 @@ Please follow the "[Make your own gem guide](https://guides.rubygems.org/make-yo
25
25
 
26
26
  let gemName = null;
27
27
 
28
+ try {
29
+ await execa("ruby", ["--version"]);
30
+ } catch (error) {
31
+ throw new SemanticReleaseError(
32
+ "Ruby is not installed or cannot found in your environment.",
33
+ "ENORUBYNOTFOUND",
34
+ `Ruby runtime is required to publish a gem.`,
35
+ );
36
+ }
37
+
28
38
  try {
29
39
  const { stdout } = await execa(
30
40
  "ruby",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webhippie/semantic-release-rubygem",
3
3
  "description": "semantic-release plugin to publish a gem to Rubygems",
4
- "version": "1.0.7",
4
+ "version": "2.0.0",
5
5
  "type": "module",
6
6
  "author": "Thomas Boerger (https://twitter.com/@tboerger)",
7
7
  "ava": {
@@ -24,22 +24,22 @@
24
24
  "dependencies": {
25
25
  "@semantic-release/error": "^4.0.0",
26
26
  "execa": "^9.1.0",
27
- "glob": "^10.4.1",
27
+ "glob": "^13.0.0",
28
28
  "tempy": "^3.1.0"
29
29
  },
30
30
  "devDependencies": {
31
- "ava": "6.1.3",
32
- "c8": "9.1.0",
33
- "cpy": "11.0.1",
31
+ "ava": "6.4.1",
32
+ "c8": "10.1.3",
33
+ "cpy": "12.1.0",
34
34
  "cz-conventional-changelog": "3.3.0",
35
35
  "fetch-mock": "npm:@gr2m/fetch-mock@9.11.0-pull-request-644.1",
36
- "lockfile-lint": "4.13.2",
37
- "ls-engines": "0.9.1",
38
- "npm-run-all2": "6.2.0",
39
- "prettier": "3.3.0",
40
- "publint": "0.2.8",
41
- "semantic-release": "24.0.0",
42
- "sinon": "18.0.0",
36
+ "lockfile-lint": "4.14.1",
37
+ "ls-engines": "0.9.3",
38
+ "npm-run-all2": "8.0.4",
39
+ "prettier": "3.6.2",
40
+ "publint": "0.3.15",
41
+ "semantic-release": "25.0.2",
42
+ "sinon": "21.0.0",
43
43
  "tempy": "3.1.0"
44
44
  },
45
45
  "engines": {
@@ -96,8 +96,8 @@
96
96
  },
97
97
  "scripts": {
98
98
  "codecov": "codecov -f coverage/coverage-final.json",
99
- "lint:prettier": "prettier --check \"{lib,test}/**/*.{js,json,ts}\" \"*.{js,md,json}\" \".github/**/*.yml\"",
100
- "lint:prettier:fix": "prettier --write \"{lib,test}/**/*.{js,json,ts}\" \"*.{js,md,json}\" \".github/**/*.yml\"",
99
+ "lint:prettier": "prettier --check \"{lib,test}/**/*.{js,json,ts}\" \"*.{js,json}\"",
100
+ "lint:prettier:fix": "prettier --write \"{lib,test}/**/*.{js,json,ts}\" \"*.{js,json}\"",
101
101
  "lint:lockfile": "lockfile-lint",
102
102
  "lint:engines": "ls-engines",
103
103
  "lint:publish": "publint --strict",
@@ -110,5 +110,5 @@
110
110
  "github>semantic-release/.github:renovate-config"
111
111
  ]
112
112
  },
113
- "packageManager": "npm@10.8.1"
113
+ "packageManager": "npm@11.6.3"
114
114
  }