trackler 2.2.1.32 → 2.2.1.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trackler/version.rb +1 -1
- data/problem-specifications/exercises/pig-latin/canonical-data.json +24 -7
- data/tracks/c/README.md +3 -3
- data/tracks/c/indent.sh +7 -1
- data/tracks/cpp/exercises/grade-school/grade_school_test.cpp +7 -0
- data/tracks/delphi/.gitignore +2 -0
- data/tracks/ecmascript/README.md +5 -5
- data/tracks/go/.github/PULL_REQUEST_TEMPLATE.md +23 -0
- data/tracks/java/CONTRIBUTING.md +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9c8ae37971bf7a2186d96f3c5d082012f459e60
|
4
|
+
data.tar.gz: 196ea444efe286f403f2147b74d4a79451e18b9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f203dcc11d774161bbc350ccc03e6fb6bf61df951c26e9394fd5793da0a0c9702dc9845b923a526d7091cc561ead1802919d8ef86888149d732b4a4d5dd08734
|
7
|
+
data.tar.gz: 827c7f3889b71dadfe6fdffa7f0b55a4517a0ea44256ce7cacb44f20c5020b87791a3c2560e0b1d6588d502c8f61de3d29f7cd1ad7fc54348acfc115e81aa3be
|
data/lib/trackler/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"exercise": "pig-latin",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.1.0",
|
4
4
|
"cases": [
|
5
5
|
{
|
6
6
|
"description": "ay is added to words that start with vowels",
|
@@ -58,12 +58,6 @@
|
|
58
58
|
"input": "koala",
|
59
59
|
"expected": "oalakay"
|
60
60
|
},
|
61
|
-
{
|
62
|
-
"description": "word beginning with y",
|
63
|
-
"property": "translate",
|
64
|
-
"input": "yellow",
|
65
|
-
"expected": "ellowyay"
|
66
|
-
},
|
67
61
|
{
|
68
62
|
"description": "word beginning with x",
|
69
63
|
"property": "translate",
|
@@ -136,6 +130,29 @@
|
|
136
130
|
}
|
137
131
|
]
|
138
132
|
},
|
133
|
+
{
|
134
|
+
"description": "position of y in a word determines if it is a consonant or a vowel",
|
135
|
+
"cases": [
|
136
|
+
{
|
137
|
+
"description": "y is treated like a consonant at the beginning of a word",
|
138
|
+
"property": "translate",
|
139
|
+
"input": "yellow",
|
140
|
+
"expected": "ellowyay"
|
141
|
+
},
|
142
|
+
{
|
143
|
+
"description": "y is treated like a vowel at the end of a consonant cluster",
|
144
|
+
"property": "translate",
|
145
|
+
"input": "rhythm",
|
146
|
+
"expected": "ythmrhay"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"description": "y as second letter in two letter word",
|
150
|
+
"property": "translate",
|
151
|
+
"input": "my",
|
152
|
+
"expected": "ymay"
|
153
|
+
}
|
154
|
+
]
|
155
|
+
},
|
139
156
|
{
|
140
157
|
"description": "phrases are translated",
|
141
158
|
"cases": [
|
data/tracks/c/README.md
CHANGED
@@ -10,9 +10,9 @@ Please see the [Exercism contributing guide](https://github.com/exercism/docs/bl
|
|
10
10
|
|
11
11
|
All test and example code should be written using the [Linux kernel coding style](https://www.kernel.org/doc/Documentation/CodingStyle) with 3 space indents and no tabs.
|
12
12
|
|
13
|
-
If GNU `indent` is installed, this can be run on all files by executing `indent.sh`.
|
13
|
+
If GNU `indent` is installed, this can be run on all files by executing `indent.sh`. On a Mac you can install the package `gnu-indent` using [Homebrew](http://brew.sh).
|
14
14
|
|
15
|
-
To run it on a single file, you can execute:
|
15
|
+
To manually run it on a single file, you can execute:
|
16
16
|
|
17
17
|
```shell
|
18
18
|
indent -linux -i3 -nut $(file)
|
@@ -46,7 +46,7 @@ Each exercise should be contained in a directory ```c/exercises/<my exercise>```
|
|
46
46
|
|
47
47
|
* `test` - contains the test file ```test_<my exercise>.c``` and a ```vendor``` directory containing the test harness [Unity](http://www.throwtheswitch.org/unity/) from [ThrowTheSwitch](http://www.throwtheswitch.org/#intro-1-section). ThrowTheSwitch has a decent guide on [getting started with Unity](http://www.throwtheswitch.org/getting-started-with-unity/) should you desire a tutorial.
|
48
48
|
|
49
|
-
* `src` - contains the example files ```example.c``` and ```example.h```. These are both skipped by the ```exercism``` cli when downloading to the client, so it is imperative that you do not reference the names of the files in your code. If you need to provide a header file example that is necessary to run your tests it should be named ```<my exercise>.h``` instead. Please also use [```include```](http://faculty.cs.niu.edu/~mcmahon/CS241/c241man/node90.html) guards in your header files. The tests can be run using the [```bin/run-tests```](https://github.com/exercism/c/blob/master/bin/run-tests) script which will rename the ```example.{c|h}``` files accordingly.
|
49
|
+
* `src` - contains the example files ```example.c``` and ```example.h```. These are both skipped by the ```exercism``` cli when downloading to the client, so it is imperative that you do not reference the names of the files in your code. If you need to provide a header file example that is necessary to run your tests it should be named ```<my exercise>.h``` instead. Please also use [```include```](http://faculty.cs.niu.edu/~mcmahon/CS241/c241man/node90.html) guards in your header files. The tests can be run using the [```bin/run-tests```](https://github.com/exercism/c/blob/master/bin/run-tests) script which will rename the ```example.{c|h}``` files accordingly.
|
50
50
|
|
51
51
|
## License
|
52
52
|
|
data/tracks/c/indent.sh
CHANGED
@@ -3,7 +3,13 @@
|
|
3
3
|
# Indents all .c and .h files in the project that are not vendor code (ie: Unity).
|
4
4
|
#
|
5
5
|
|
6
|
+
INDENT=indent
|
7
|
+
|
8
|
+
if [ -x "$(command -v gindent)" ]; then
|
9
|
+
INDENT=gindent
|
10
|
+
fi
|
11
|
+
|
6
12
|
for f in $(find exercises/ -not -path '*/vendor/*' -name '*.c' -or -not -path '*/vendor/*' -name '*.h'); do
|
7
|
-
|
13
|
+
$INDENT -nbad -bap -nbc -bbo -hnl -br -brs -c33 -cd33 -ncdb -ce -ci4 -cli0 -d0 -di1 -nfc1 -i3 -nut -ip0 -l80 -lp -npcs -nprs -npsl -sai -saf -saw -ncs -nsc -sob -nfca -cp33 -ss -il1 $f
|
8
14
|
rm $f~ 2> /dev/null
|
9
15
|
done
|
@@ -86,6 +86,13 @@ BOOST_AUTO_TEST_CASE(the_student_names_in_each_grade_in_the_roster_are_sorted)
|
|
86
86
|
};
|
87
87
|
BOOST_TEST(expected == actual);
|
88
88
|
}
|
89
|
+
|
90
|
+
BOOST_AUTO_TEST_CASE(checking_a_grade_should_not_change_the_roster)
|
91
|
+
{
|
92
|
+
school_.grade(1);
|
93
|
+
BOOST_REQUIRE(school_.roster().empty());
|
94
|
+
}
|
95
|
+
|
89
96
|
#endif
|
90
97
|
|
91
98
|
BOOST_AUTO_TEST_SUITE_END();
|
data/tracks/delphi/.gitignore
CHANGED
data/tracks/ecmascript/README.md
CHANGED
@@ -12,27 +12,27 @@ We recommend using the latest stable version (v7 at the moment).
|
|
12
12
|
|
13
13
|
Use `npm` to install all required dependencies:
|
14
14
|
|
15
|
-
|
15
|
+
npm install
|
16
16
|
|
17
17
|
#### Linting Your Code
|
18
18
|
This project uses [eslint](https://github.com/eslint/eslint) to help you write quality
|
19
19
|
ECMAScript code by checking for common formatting errors, enforcing style rules,
|
20
20
|
and suggesting changes that conform to best practices.
|
21
21
|
|
22
|
-
|
22
|
+
npm run lint-test
|
23
23
|
|
24
24
|
#### Test All Assignments
|
25
25
|
The make script will test all exercises:
|
26
26
|
|
27
|
-
|
27
|
+
make test
|
28
28
|
|
29
29
|
#### Test Specific Assignment
|
30
30
|
Pass the exercise name to make script to run the tests for a specific exercise:
|
31
31
|
|
32
|
-
|
32
|
+
make test-assignment ASSIGNMENT=hello-world
|
33
33
|
|
34
34
|
|
35
35
|
## Contributing Guide
|
36
36
|
|
37
|
-
For an in-depth discussion of how exercism language tracks and exercises work,please see the [contributing guide](https://github.com/exercism/x-api/blob/master/CONTRIBUTING.md#the-exercise-data)
|
37
|
+
For an in-depth discussion of how exercism language tracks and exercises work, please see the [contributing guide](https://github.com/exercism/x-api/blob/master/CONTRIBUTING.md#the-exercise-data)
|
38
38
|
|
@@ -0,0 +1,23 @@
|
|
1
|
+
## Exercism v2
|
2
|
+
|
3
|
+
**TLDR: Please open any pull-requests with the nextercism branch as the base branch.**
|
4
|
+
|
5
|
+
Exercism is currently being completely [rebuilt from the ground up](https://github.com/exercism/v2-feedback), under the codename **Nextercism**.
|
6
|
+
This effort includes significant changes to each language track, which means
|
7
|
+
changes to the exercise structure of this Go track repo, changes that are not
|
8
|
+
compatible with the current [exercism.io](http://exercism.io/) site.
|
9
|
+
|
10
|
+
Therefore there are [two version](https://v2.exercism.io/) of the Exercism site
|
11
|
+
at the moment. These different versions are reflected in this repo by the
|
12
|
+
[master](https://github.com/exercism/go/tree/master) branch (v1), and the
|
13
|
+
[nextercism](https://github.com/exercism/go/tree/nextercism) branch (v2). The
|
14
|
+
master branch is frozen for now, except for bug fixes, and new changes are being
|
15
|
+
merged onto the nextercism branch. This means that any changes should be made in
|
16
|
+
a branch based off the nextercism branch and any pull-requests should be made
|
17
|
+
with the nextercism branch as base. See the [Github docs](https://github.com/blog/2224-change-the-base-branch-of-a-pull-request) for
|
18
|
+
how to change the base branch of a pull-request.
|
19
|
+
|
20
|
+
If you're in any doubt please do open an issue, we're more than happy to help
|
21
|
+
with any uncertainty about this. And thankyou for contributing!! :heart: :tada:
|
22
|
+
|
23
|
+
Please feel free to delete this blurb when you open your pull-request. :smiley:
|
data/tracks/java/CONTRIBUTING.md
CHANGED
@@ -87,7 +87,7 @@ Each problem/submodule is a subdirectory of the same name as its slug.
|
|
87
87
|
Each problem/submodule has three source sets:
|
88
88
|
|
89
89
|
* `src/test/java/` — a test suite defining the edges of the problem
|
90
|
-
*
|
90
|
+
* `.meta/src/reference/java/` — a reference solution that passes all the tests
|
91
91
|
* `src/main/java/` — starter source files, if required/desired *(this directory usually only has a `.keep` file in it)*.
|
92
92
|
|
93
93
|
----
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trackler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.1.
|
4
|
+
version: 2.2.1.33
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katrina Owen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -5023,6 +5023,7 @@ files:
|
|
5023
5023
|
- tracks/gnu-apl/img/.keep
|
5024
5024
|
- tracks/gnu-apl/test.apl
|
5025
5025
|
- tracks/go/.git
|
5026
|
+
- tracks/go/.github/PULL_REQUEST_TEMPLATE.md
|
5026
5027
|
- tracks/go/.gitignore
|
5027
5028
|
- tracks/go/.travis.yml
|
5028
5029
|
- tracks/go/LICENSE
|