Skip to content

Commit f8302c2

Browse files
authored
Merge pull request #683 from exercism/x-common_to_problem-specifications
x-common to problem-specifications name
2 parents 3cb9eea + 7f20144 commit f8302c2

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ tests have been generated; see [Generated Test Suites](#generated-test-suites).
4242
**Most exercises can be generated from shared inputs/outputs, called canonical
4343
data (see [Generated Test Suites](#generated-test-suites) below).** To find out
4444
whether a test has canonical data, check
45-
the [x-common repo](https://github.com/exercism/x-common/tree/master/exercises).
45+
the [problem-specifications repo](https://github.com/exercism/problem-specifications/tree/master/exercises).
4646

4747
## Running the Tests
4848

@@ -93,12 +93,12 @@ generator. If a generator is available for your exercise, you can
9393

9494
If not, you will need to [implement a new generator](#implementing-a-generator)
9595

96-
Generated exercises depend on the [the shared metadata][x-common], which must be
96+
Generated exercises depend on the [the shared metadata][problem-specifications], which must be
9797
cloned to the same directory that contains your clone of the ruby repository:
9898

9999
```
100100
tree -L 1 ~/code/exercism
101-
├── x-common
101+
├── problem-specifications
102102
└── ruby
103103
```
104104

@@ -119,16 +119,16 @@ There are two reasons why a test suite might change:
119119
1. there might be issues with the style or boilerplate
120120

121121
In the first case, the changes need to be made to the `canonical-data.json` file for
122-
the exercise, which lives in the x-common repository.
122+
the exercise, which lives in the problem-specifications repository.
123123

124124
```
125-
../x-common/exercises/<slug>/
125+
../problem-specifications/exercises/<slug>/
126126
├── canonical-data.json
127127
├── description.md
128128
└── metadata.yml
129129
```
130130

131-
This change will need to be submitted as a pull request to the x-common
131+
This change will need to be submitted as a pull request to the problem-specifications
132132
repository. This pull request needs to be merged before you can regenerate the
133133
exercise.
134134

@@ -253,7 +253,7 @@ string indices to integer indices.
253253
## READMEs
254254

255255
Do not add a README or README.md file to the exercise's directory. The READMEs
256-
are constructed using shared metadata, which lives in the [x-common][] repo.
256+
are constructed using shared metadata, which lives in the [problem-specifications][] repo.
257257

258258
## Contributing Guide
259259

@@ -265,4 +265,4 @@ please see the
265265
## Ruby icon
266266
The Ruby icon is the Vienna.rb logo, and is used with permission. Thanks Floor Dress :)
267267

268-
[x-common]: https://github.com/exercism/x-common
268+
[problem-specifications]: https://github.com/exercism/problem-specifications

lib/generator/command_line/generator_optparser.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ def validate_paths
6161
def metadata_repository_missing_message(repository)
6262
<<-EOM.gsub(/^ {6}/, '')
6363
64-
'x-common' repository not found.
64+
'problem-specifications' repository not found.
6565
Try running the command:
66-
git clone https://github.com/exercism/x-common.git "#{repository}"
66+
git clone https://github.com/exercism/problem-specifications.git "#{repository}"
6767
6868
EOM
6969
end

lib/helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
XRUBY_ROOT = File.join(File.dirname(__FILE__), '..').freeze
22
XRUBY_LIB = File.join(XRUBY_ROOT, 'lib').freeze
3-
METADATA_REPOSITORY_PATH = File.join(XRUBY_ROOT, '..', 'x-common').freeze
3+
METADATA_REPOSITORY_PATH = File.join(XRUBY_ROOT, '..', 'problem-specifications').freeze
44

55
$LOAD_PATH.unshift(XRUBY_LIB)

test/generator/command_line/generator_optparser_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ def test_usage_help_includes_available_generators
8989
def test_invalid_metadata_repository_outputs_message_to_stderr
9090
paths = Paths.new(metadata: 'test/fixtures/nonexistent', track: nil)
9191
expected_stderr = <<-MESSAGE.gsub(/^ {6}/, '')
92-
'x-common' repository not found.
92+
'problem-specifications' repository not found.
9393
Try running the command:
94-
git clone https://github.com/exercism/x-common.git "test/fixtures/nonexistent"
94+
git clone https://github.com/exercism/problem-specifications.git "test/fixtures/nonexistent"
9595
MESSAGE
9696
assert_output nil, /#{expected_stderr}/ do
9797
refute GeneratorOptparser.new([], paths).options_valid?

test/generator/command_line_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ def test_parse
1717
def test_invalid_metadata_repository_outputs_message_to_stderr
1818
paths = Paths.new(metadata: 'test/fixtures/nonexistent', track: nil)
1919
expected_stderr = <<-MESSAGE.gsub(/^ {6}/, '')
20-
'x-common' repository not found.
20+
'problem-specifications' repository not found.
2121
Try running the command:
22-
git clone https://github.com/exercism/x-common.git "test/fixtures/nonexistent"
22+
git clone https://github.com/exercism/problem-specifications.git "test/fixtures/nonexistent"
2323
MESSAGE
2424
assert_output nil, /#{expected_stderr}/ do
2525
refute CommandLine.new(paths).parse([])

0 commit comments

Comments
 (0)