Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/github_actions/actions/checkout-4…
Browse files Browse the repository at this point in the history
….2.2
  • Loading branch information
ErikSchierboom authored Nov 15, 2024
2 parents 7638d83 + 24504cc commit 5749200
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .release/header.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
To install, follow the interactive installation instructions at https://exercism.io/cli-walkthrough
To install, follow the interactive installation instructions at https://exercism.org/cli-walkthrough

---
14 changes: 10 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ The exercism CLI follows [semantic versioning](http://semver.org/).

- **Your contribution here**

## v3.5.3 (2024-11-03)

- [#1178](https://github.com/exercism/cli/pull/1178) Add arm64-assembly test configuration [@keiravillekode]
- [#1177](https://github.com/exercism/cli/pull/1177) refactored exercism.io links to exercism.org [@ladokp]
- [#1165](https://github.com/exercism/cli/pull/1165) Add support for the YAMLScript language [@ingydotnet]

## v3.5.2 (2024-10-09)

- [#1174](https://github.com/exercism/cli/pull/1174) Fix an issue with `exercism completion bash` where the command name is not present in the completion output. - [@petrem]
Expand Down Expand Up @@ -153,7 +159,7 @@ The exercism CLI follows [semantic versioning](http://semver.org/).

## v3.0.0 (2018-07-13)

This is a complete rewrite from the ground up to work against the new https://exercism.io site.
This is a complete rewrite from the ground up to work against the new https://exercism.org site.

## v2.4.1 (2017-07-01)

Expand Down Expand Up @@ -299,7 +305,7 @@ Tweaked:

## v1.9.2 (2015-01-11)

- [exercism.io#2155](https://github.com/exercism/exercism.io/issues/2155): Fixed problem with passed in config file being ignored.
- [exercism#2155](https://github.com/exercism/exercism/issues/2155): Fixed problem with passed in config file being ignored.
- Added first version of changelog

## v1.9.1 (2015-01-10)
Expand Down Expand Up @@ -419,15 +425,15 @@ Tweaked:

## v1.3.1 (2013-12-01)

- [exercism.io#1039](https://github.com/exercism/exercism.io/issues/1039): Stopped clobbering existing files on fetch
- [exercism#1039](https://github.com/exercism/exercism/issues/1039): Stopped clobbering existing files on fetch

## v1.3.0 (2013-11-16)

- [7f39ee4](https://github.com/exercism/cli/commit/7f39ee4802752925466bc2715790dc965026b09d): Allow users to specify a particular problem when fetching.

## v1.2.3 (2013-11-13)

- [exercism.io#998](https://github.com/exercism/exercism.io/issues/998): Fix problem with writing an empty config file under certain circumstances.
- [exercism#998](https://github.com/exercism/exercism/issues/998): Fix problem with writing an empty config file under certain circumstances.

## v1.2.2 (2013-11-12)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ Instructions can be found at [exercism/cli/releases](https://github.com/exercism

If you wish to help improve the CLI, please see the [Contributing guide][contributing].

[exercism]: http://exercism.io
[exercism]: http://exercism.org
[contributing]: /CONTRIBUTING.md
4 changes: 2 additions & 2 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This workflow will create a draft release at https://github.com/exercism/cli/rel
Once created, go that page to update the release description to:

```
To install, follow the interactive installation instructions at https://exercism.io/cli-walkthrough
To install, follow the interactive installation instructions at https://exercism.org/cli-walkthrough
---
[modify the generated release-notes to describe changes in this release]
Expand All @@ -49,6 +49,6 @@ Homebrew will automatically bump the version, no manual action is required.
## Update the docs site

If there are any significant changes, we should describe them on
[exercism.io/cli](https://exercism.io/cli).
[exercism.org/cli](https://exercism.org/cli).

The codebase lives at [exercism/website-copy](https://github.com/exercism/website-copy) in `pages/cli.md`.
2 changes: 1 addition & 1 deletion cmd/download_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestDownloadWithoutToken(t *testing.T) {
if assert.Error(t, err) {
assert.Regexp(t, "Welcome to Exercism", err.Error())
// It uses the default base API url to infer the host
assert.Regexp(t, "exercism.io/my/settings", err.Error())
assert.Regexp(t, "exercism.org/my/settings", err.Error())
}
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/submit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestSubmitWithoutToken(t *testing.T) {
err := runSubmit(cfg, pflag.NewFlagSet("fake", pflag.PanicOnError), []string{})
if assert.Error(t, err) {
assert.Regexp(t, "Welcome to Exercism", err.Error())
assert.Regexp(t, "exercism.io/my/settings", err.Error())
assert.Regexp(t, "exercism.org/my/settings", err.Error())
}
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

// Version is the version of the current build.
// It follows semantic versioning.
const Version = "3.5.2"
const Version = "3.5.3"

// checkLatest flag for version command.
var checkLatest bool
Expand Down
6 changes: 3 additions & 3 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

var (
defaultBaseURL = "https://api.exercism.io/v1"
defaultBaseURL = "https://api.exercism.org/v1"

// DefaultDirName is the default name used for config and workspace directories.
DefaultDirName string
Expand Down Expand Up @@ -121,8 +121,8 @@ func InferSiteURL(apiURL string) string {
if apiURL == "" {
apiURL = defaultBaseURL
}
if apiURL == "https://api.exercism.io/v1" {
return "https://exercism.io"
if apiURL == "https://api.exercism.org/v1" {
return "https://exercism.org"
}
re := regexp.MustCompile("^(https?://[^/]*).*")
return re.ReplaceAllString(apiURL, "$1")
Expand Down
8 changes: 4 additions & 4 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ func TestInferSiteURL(t *testing.T) {
testCases := []struct {
api, url string
}{
{"https://api.exercism.io/v1", "https://exercism.io"},
{"https://v2.exercism.io/api/v1", "https://v2.exercism.io"},
{"https://mentors-beta.exercism.io/api/v1", "https://mentors-beta.exercism.io"},
{"https://api.exercism.org/v1", "https://exercism.org"},
{"https://v2.exercism.org/api/v1", "https://v2.exercism.org"},
{"https://mentors-beta.exercism.org/api/v1", "https://mentors-beta.exercism.org"},
{"http://localhost:3000/api/v1", "http://localhost:3000"},
{"", "https://exercism.io"}, // use the default
{"", "https://exercism.org"}, // use the default
{"http://whatever", "http://whatever"}, // you're on your own, pal
}

Expand Down
2 changes: 1 addition & 1 deletion exercism/doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Command exercism allows users to interact with the exercism.io platform.
Command exercism allows users to interact with the exercism.org platform.
The primary actions are to fetch problems to be solved, and submit iterations
of these problems.
Expand Down
4 changes: 2 additions & 2 deletions shell/exercism.fish
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ complete -f -c exercism -n "__fish_use_subcommand" -a "help" -d "Shows a list of
complete -f -c exercism -n "__fish_seen_subcommand_from help" -a "configure download help open submit test troubleshoot upgrade version workspace"

# Open
complete -f -c exercism -n "__fish_use_subcommand" -a "open" -d "Opens a browser to exercism.io for the specified submission."
complete -f -c exercism -n "__fish_use_subcommand" -a "open" -d "Opens a browser to exercism.org for the specified submission."
complete -f -c exercism -n "__fish_seen_subcommand_from open" -s h -l help -d "help for open"

# Submit
complete -f -c exercism -n "__fish_use_subcommand" -a "submit" -d "Submits a new iteration to a problem on exercism.io."
complete -f -c exercism -n "__fish_use_subcommand" -a "submit" -d "Submits a new iteration to a problem on exercism.org."
complete -f -c exercism -n "__fish_seen_subcommand_from submit" -s h -l help -d "help for submit"

# Test
Expand Down
4 changes: 2 additions & 2 deletions shell/exercism_completion.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ typeset -A opt_args
local -a options
options=(configure:"Writes config values to a JSON file."
download:"Downloads and saves a specified submission into the local system"
open:"Opens a browser to exercism.io for the specified submission."
submit:"Submits a new iteration to a problem on exercism.io."
open:"Opens a browser to exercism.org for the specified submission."
submit:"Submits a new iteration to a problem on exercism.org."
test:"Run the exercise's tests."
troubleshoot:"Outputs useful debug information."
upgrade:"Upgrades to the latest available version."
Expand Down
6 changes: 6 additions & 0 deletions workspace/test_configurations.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ var TestConfigurations = map[string]TestConfiguration{
"typescript": {
Command: "yarn test",
},
"uiua": {
Command: "uiua test {{test_files}}",
},
// unison: tests are run from an active UCM session
"vbnet": {
Command: "dotnet test",
Expand All @@ -270,6 +273,9 @@ var TestConfigurations = map[string]TestConfiguration{
"x86-64-assembly": {
Command: "make",
},
"yamlscript": {
Command: "make test",
},
"zig": {
Command: "zig test {{test_files}}",
},
Expand Down

0 comments on commit 5749200

Please sign in to comment.