Skip to content

Commit

Permalink
refactored exercism.io to exercism.org (#1177)
Browse files Browse the repository at this point in the history
* refactored exercism.io to exercism.org

* refactored exercism.io github references
  • Loading branch information
ladokp authored Nov 3, 2024
1 parent 0a32925 commit efd43c4
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 22 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

---
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,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 +299,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 +419,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
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

0 comments on commit efd43c4

Please sign in to comment.