Skip to content

Commit efd43c4

Browse files
authored
refactored exercism.io to exercism.org (#1177)
* refactored exercism.io to exercism.org * refactored exercism.io github references
1 parent 0a32925 commit efd43c4

11 files changed

+22
-22
lines changed

.release/header.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
To install, follow the interactive installation instructions at https://exercism.io/cli-walkthrough
1+
To install, follow the interactive installation instructions at https://exercism.org/cli-walkthrough
22

33
---

CHANGELOG.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ The exercism CLI follows [semantic versioning](http://semver.org/).
153153

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

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

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

@@ -299,7 +299,7 @@ Tweaked:
299299

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

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

305305
## v1.9.1 (2015-01-10)
@@ -419,15 +419,15 @@ Tweaked:
419419

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

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

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

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

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

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

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

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ Instructions can be found at [exercism/cli/releases](https://github.com/exercism
1515

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

18-
[exercism]: http://exercism.io
18+
[exercism]: http://exercism.org
1919
[contributing]: /CONTRIBUTING.md

RELEASE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This workflow will create a draft release at https://github.com/exercism/cli/rel
3434
Once created, go that page to update the release description to:
3535

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

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

5454
The codebase lives at [exercism/website-copy](https://github.com/exercism/website-copy) in `pages/cli.md`.

cmd/download_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func TestDownloadWithoutToken(t *testing.T) {
2626
if assert.Error(t, err) {
2727
assert.Regexp(t, "Welcome to Exercism", err.Error())
2828
// It uses the default base API url to infer the host
29-
assert.Regexp(t, "exercism.io/my/settings", err.Error())
29+
assert.Regexp(t, "exercism.org/my/settings", err.Error())
3030
}
3131
}
3232

cmd/submit_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func TestSubmitWithoutToken(t *testing.T) {
2828
err := runSubmit(cfg, pflag.NewFlagSet("fake", pflag.PanicOnError), []string{})
2929
if assert.Error(t, err) {
3030
assert.Regexp(t, "Welcome to Exercism", err.Error())
31-
assert.Regexp(t, "exercism.io/my/settings", err.Error())
31+
assert.Regexp(t, "exercism.org/my/settings", err.Error())
3232
}
3333
}
3434

config/config.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
var (
15-
defaultBaseURL = "https://api.exercism.io/v1"
15+
defaultBaseURL = "https://api.exercism.org/v1"
1616

1717
// DefaultDirName is the default name used for config and workspace directories.
1818
DefaultDirName string
@@ -121,8 +121,8 @@ func InferSiteURL(apiURL string) string {
121121
if apiURL == "" {
122122
apiURL = defaultBaseURL
123123
}
124-
if apiURL == "https://api.exercism.io/v1" {
125-
return "https://exercism.io"
124+
if apiURL == "https://api.exercism.org/v1" {
125+
return "https://exercism.org"
126126
}
127127
re := regexp.MustCompile("^(https?://[^/]*).*")
128128
return re.ReplaceAllString(apiURL, "$1")

config/config_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ func TestInferSiteURL(t *testing.T) {
1010
testCases := []struct {
1111
api, url string
1212
}{
13-
{"https://api.exercism.io/v1", "https://exercism.io"},
14-
{"https://v2.exercism.io/api/v1", "https://v2.exercism.io"},
15-
{"https://mentors-beta.exercism.io/api/v1", "https://mentors-beta.exercism.io"},
13+
{"https://api.exercism.org/v1", "https://exercism.org"},
14+
{"https://v2.exercism.org/api/v1", "https://v2.exercism.org"},
15+
{"https://mentors-beta.exercism.org/api/v1", "https://mentors-beta.exercism.org"},
1616
{"http://localhost:3000/api/v1", "http://localhost:3000"},
17-
{"", "https://exercism.io"}, // use the default
17+
{"", "https://exercism.org"}, // use the default
1818
{"http://whatever", "http://whatever"}, // you're on your own, pal
1919
}
2020

exercism/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Command exercism allows users to interact with the exercism.io platform.
2+
Command exercism allows users to interact with the exercism.org platform.
33
44
The primary actions are to fetch problems to be solved, and submit iterations
55
of these problems.

shell/exercism.fish

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ complete -f -c exercism -n "__fish_use_subcommand" -a "help" -d "Shows a list of
1818
complete -f -c exercism -n "__fish_seen_subcommand_from help" -a "configure download help open submit test troubleshoot upgrade version workspace"
1919

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

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

2828
# Test

shell/exercism_completion.zsh

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ typeset -A opt_args
66
local -a options
77
options=(configure:"Writes config values to a JSON file."
88
download:"Downloads and saves a specified submission into the local system"
9-
open:"Opens a browser to exercism.io for the specified submission."
10-
submit:"Submits a new iteration to a problem on exercism.io."
9+
open:"Opens a browser to exercism.org for the specified submission."
10+
submit:"Submits a new iteration to a problem on exercism.org."
1111
test:"Run the exercise's tests."
1212
troubleshoot:"Outputs useful debug information."
1313
upgrade:"Upgrades to the latest available version."

0 commit comments

Comments
 (0)