trackler 2.0.7.0 → 2.0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/common/exercises/counter/metadata.yml +0 -4
- data/common/exercises/error-handling/metadata.yml +0 -4
- data/common/exercises/etl/canonical-data.json +1 -1
- data/common/exercises/hello-world/canonical-data.json +9 -21
- data/common/exercises/hello-world/description.md +7 -42
- data/common/exercises/hello-world/metadata.yml +1 -1
- data/common/exercises/lens-person/metadata.yml +0 -3
- data/common/exercises/luhn/canonical-data.json +17 -17
- data/common/exercises/nucleotide-codons/metadata.yml +0 -2
- data/common/exercises/react/metadata.yml +0 -2
- data/common/exercises/rectangles/metadata.yml +0 -3
- data/common/exercises/variable-length-quantity/metadata.yml +0 -2
- data/fixtures/tracks/snowflake/config.json +17 -0
- data/fixtures/tracks/snowflake/exercises/snowflake-only/description.md +1 -0
- data/fixtures/tracks/snowflake/exercises/snowflake-only/metadata.yml +4 -0
- data/lib/trackler/description.rb +27 -0
- data/lib/trackler/guaranteed_file.rb +77 -0
- data/lib/trackler/implementations.rb +5 -5
- data/lib/trackler/metadata.rb +27 -0
- data/lib/trackler/null_track.rb +22 -0
- data/lib/trackler/problem.rb +32 -34
- data/lib/trackler/track.rb +1 -1
- data/lib/trackler/version.rb +1 -1
- data/tracks/csharp/exercises/hello-world/Example.cs +2 -5
- data/tracks/csharp/exercises/hello-world/HelloWorldTest.cs +2 -16
- data/tracks/elixir/config.json +7 -0
- data/tracks/elixir/exercises/series/example.exs +13 -0
- data/tracks/elixir/exercises/series/series.exs +11 -0
- data/tracks/elixir/exercises/series/series_test.exs +53 -0
- data/tracks/erlang/README.md +3 -3
- data/tracks/erlang/config.json +15 -11
- data/tracks/erlang/exercises/{binary → all-your-base}/include/exercism.hrl +0 -0
- data/tracks/erlang/exercises/{binary → all-your-base}/rebar.config +0 -0
- data/tracks/erlang/exercises/{trinary/src/trinary.app.src → all-your-base/src/all_your_base.app.src} +2 -2
- data/tracks/erlang/exercises/all-your-base/src/example.erl +33 -0
- data/tracks/erlang/exercises/all-your-base/test/all_your_base_tests.erl +69 -0
- data/tracks/erlang/exercises/hello-world/src/example.erl +4 -4
- data/tracks/erlang/exercises/hello-world/test/hello_world_tests.erl +3 -12
- data/tracks/erlang/exercises/{trinary → rotational-cipher}/include/exercism.hrl +0 -0
- data/tracks/erlang/exercises/{trinary → rotational-cipher}/rebar.config +8 -1
- data/tracks/erlang/exercises/rotational-cipher/src/example.erl +19 -0
- data/tracks/erlang/exercises/{binary/src/binary.app.src → rotational-cipher/src/rotational_cipher.app.src} +2 -2
- data/tracks/erlang/exercises/rotational-cipher/test/rotational_cipher_tests.erl +98 -0
- data/tracks/fsharp/exercises/grep/GrepTest.fs +57 -0
- data/tracks/fsharp/exercises/hello-world/Example.fs +1 -1
- data/tracks/fsharp/exercises/hello-world/HelloWorldTest.fs +2 -12
- data/tracks/go/.travis.yml +7 -15
- data/tracks/go/exercises/hello-world/example.go +4 -8
- data/tracks/go/exercises/hello-world/hello_test.go +20 -16
- data/tracks/go/exercises/hello-world/hello_world.go +12 -2
- data/tracks/groovy/exercises/hello-world/Example.groovy +2 -2
- data/tracks/groovy/exercises/hello-world/HelloWorld.groovy +1 -1
- data/tracks/groovy/exercises/hello-world/HelloWorldSpec.groovy +1 -14
- data/tracks/haskell/config.json +6 -0
- data/tracks/haskell/exercises/hello-world/HINTS.md +6 -0
- data/tracks/haskell/exercises/hello-world/examples/success-standard/package.yaml +16 -0
- data/tracks/haskell/exercises/hello-world/examples/success-standard/src/HelloWorld.hs +4 -0
- data/tracks/haskell/exercises/hello-world/package.yaml +19 -0
- data/tracks/haskell/exercises/hello-world/src/HelloWorld.hs +4 -0
- data/tracks/haskell/exercises/hello-world/stack.yaml +1 -0
- data/tracks/haskell/exercises/hello-world/test/Tests.hs +13 -0
- data/tracks/idris/config.json +9 -0
- data/tracks/idris/exercises/leap/Leap.ipkg +5 -0
- data/tracks/idris/exercises/leap/Makefile +23 -0
- data/tracks/idris/exercises/leap/src/Leap.idr +5 -0
- data/tracks/idris/exercises/leap/src/Test/Leap.idr +37 -0
- data/tracks/idris/exercises/leap/src/example.idr +8 -0
- data/tracks/{typescript/exercises → java}/.keep +0 -0
- data/tracks/java/config.json +115 -172
- data/tracks/java/exercises/anagram/src/test/java/AnagramTest.java +41 -13
- data/tracks/java/exercises/list-ops/build.gradle +18 -0
- data/tracks/java/exercises/list-ops/src/example/java/ListOps.java +51 -0
- data/tracks/java/exercises/list-ops/src/main/java/.keep +0 -0
- data/tracks/java/exercises/list-ops/src/test/java/ListOpsTest.java +316 -0
- data/tracks/java/exercises/palindrome-products/src/example/java/Palindromes.java +28 -62
- data/tracks/java/exercises/palindrome-products/src/test/java/PalindromesTest.java +26 -83
- data/tracks/java/exercises/settings.gradle +1 -0
- data/tracks/julia/config.json +1 -2
- data/tracks/julia/exercises/hello-world/example.jl +2 -2
- data/tracks/julia/exercises/hello-world/runtests.jl +1 -6
- data/tracks/lua/exercises/TRACK_HINTS.md +8 -0
- data/tracks/lua/exercises/hello-world/example.lua +2 -3
- data/tracks/lua/exercises/hello-world/hello-world.lua +18 -0
- data/tracks/lua/exercises/hello-world/hello-world_spec.lua +6 -12
- data/tracks/ocaml/exercises/phone-number/example.ml +8 -18
- data/tracks/ocaml/exercises/phone-number/phone_number.mli +1 -7
- data/tracks/ocaml/exercises/phone-number/test.ml +24 -23
- data/tracks/ocaml/tools/test-generator/src/special_cases.ml +6 -0
- data/tracks/ocaml/tools/test-generator/templates/phone-number/template.ml +21 -0
- data/tracks/pony/config.json +2 -2
- data/tracks/pony/exercises/hello-world/example.pony +1 -2
- data/tracks/pony/exercises/hello-world/test.pony +0 -1
- data/tracks/rust/config.json +0 -1
- data/tracks/rust/exercises/hello-world/example.rs +2 -5
- data/tracks/rust/exercises/hello-world/tests/hello-world.rs +2 -14
- data/tracks/scala/config.json +11 -2
- data/tracks/scala/docs/LEARNING.md +10 -2
- data/tracks/scala/docs/RESOURCES.md +0 -1
- data/tracks/scala/docs/TESTS.md +10 -6
- data/tracks/scala/exercises/rail-fence-cipher/build.sbt +3 -0
- data/tracks/scala/exercises/rail-fence-cipher/example.scala +46 -0
- data/tracks/scala/exercises/rail-fence-cipher/src/main/scala/RailFenceCipher.scala +0 -0
- data/tracks/scala/exercises/rail-fence-cipher/src/test/scala/RailFenceCipherTest.scala +42 -0
- data/tracks/scala/testgen/src/main/scala/RailFenceCipherTestGenerator.scala +59 -0
- data/tracks/typescript/.gitignore +7 -0
- data/tracks/typescript/.travis.yml +18 -1
- data/tracks/typescript/Dangerfile +43 -0
- data/tracks/typescript/Makefile +57 -0
- data/tracks/typescript/README.md +38 -5
- data/tracks/typescript/SETUP.md +24 -0
- data/tracks/typescript/common/package.json +37 -0
- data/tracks/typescript/common/tsconfig.json +21 -0
- data/tracks/typescript/common/tslint.json +127 -0
- data/tracks/typescript/common/yarn.lock +2697 -0
- data/tracks/typescript/config.json +82 -2
- data/tracks/typescript/docs/ABOUT.md +1 -0
- data/tracks/typescript/docs/INSTALLATION.md +17 -0
- data/tracks/typescript/docs/LEARNING.md +8 -0
- data/tracks/typescript/docs/RESOURCES.md +7 -0
- data/tracks/typescript/docs/TESTS.md +36 -0
- data/tracks/typescript/exercises/anagram/anagram.example.ts +23 -0
- data/tracks/typescript/exercises/anagram/anagram.test.ts +82 -0
- data/tracks/typescript/exercises/anagram/package.json +37 -0
- data/tracks/typescript/exercises/anagram/tsconfig.json +21 -0
- data/tracks/typescript/exercises/anagram/tslint.json +127 -0
- data/tracks/typescript/exercises/anagram/yarn.lock +2697 -0
- data/tracks/typescript/exercises/beer-song/beer-song.example.ts +36 -0
- data/tracks/typescript/exercises/beer-song/beer-song.test.ts +360 -0
- data/tracks/typescript/exercises/beer-song/package.json +37 -0
- data/tracks/typescript/exercises/beer-song/tsconfig.json +21 -0
- data/tracks/typescript/exercises/beer-song/tslint.json +127 -0
- data/tracks/typescript/exercises/beer-song/yarn.lock +2697 -0
- data/tracks/typescript/exercises/bob/bob.example.ts +24 -0
- data/tracks/typescript/exercises/bob/bob.test.ts +92 -0
- data/tracks/typescript/exercises/bob/package.json +37 -0
- data/tracks/typescript/exercises/bob/tsconfig.json +21 -0
- data/tracks/typescript/exercises/bob/tslint.json +127 -0
- data/tracks/typescript/exercises/bob/yarn.lock +2697 -0
- data/tracks/typescript/exercises/gigasecond/gigasecond.example.ts +11 -0
- data/tracks/typescript/exercises/gigasecond/gigasecond.test.ts +29 -0
- data/tracks/typescript/exercises/gigasecond/package.json +37 -0
- data/tracks/typescript/exercises/gigasecond/tsconfig.json +21 -0
- data/tracks/typescript/exercises/gigasecond/tslint.json +127 -0
- data/tracks/typescript/exercises/gigasecond/yarn.lock +2697 -0
- data/tracks/typescript/exercises/hamming/hamming.example.ts +19 -0
- data/tracks/typescript/exercises/hamming/hamming.test.ts +39 -0
- data/tracks/typescript/exercises/hamming/package.json +37 -0
- data/tracks/typescript/exercises/hamming/tsconfig.json +21 -0
- data/tracks/typescript/exercises/hamming/tslint.json +127 -0
- data/tracks/typescript/exercises/hamming/yarn.lock +2697 -0
- data/tracks/typescript/exercises/hello-world/hello-world.example.ts +8 -0
- data/tracks/typescript/exercises/hello-world/hello-world.test.ts +17 -0
- data/tracks/typescript/exercises/hello-world/package.json +37 -0
- data/tracks/typescript/exercises/hello-world/tsconfig.json +21 -0
- data/tracks/typescript/exercises/hello-world/tslint.json +127 -0
- data/tracks/typescript/exercises/hello-world/yarn.lock +2697 -0
- data/tracks/typescript/exercises/leap/leap.example.ts +6 -0
- data/tracks/typescript/exercises/leap/leap.test.ts +39 -0
- data/tracks/typescript/exercises/leap/package.json +37 -0
- data/tracks/typescript/exercises/leap/tsconfig.json +21 -0
- data/tracks/typescript/exercises/leap/tslint.json +127 -0
- data/tracks/typescript/exercises/leap/yarn.lock +2697 -0
- data/tracks/typescript/exercises/pangram/package.json +37 -0
- data/tracks/typescript/exercises/pangram/pangram.example.ts +32 -0
- data/tracks/typescript/exercises/pangram/pangram.test.ts +50 -0
- data/tracks/typescript/exercises/pangram/tsconfig.json +21 -0
- data/tracks/typescript/exercises/pangram/tslint.json +127 -0
- data/tracks/typescript/exercises/pangram/yarn.lock +2697 -0
- data/tracks/typescript/exercises/phone-number/package.json +37 -0
- data/tracks/typescript/exercises/phone-number/phone-number.example.ts +21 -0
- data/tracks/typescript/exercises/phone-number/phone-number.test.ts +55 -0
- data/tracks/typescript/exercises/phone-number/tsconfig.json +21 -0
- data/tracks/typescript/exercises/phone-number/tslint.json +127 -0
- data/tracks/typescript/exercises/phone-number/yarn.lock +2697 -0
- data/tracks/typescript/exercises/rna-transcription/package.json +37 -0
- data/tracks/typescript/exercises/rna-transcription/rna-transcription.example.ts +13 -0
- data/tracks/typescript/exercises/rna-transcription/rna-transcription.test.ts +45 -0
- data/tracks/typescript/exercises/rna-transcription/tsconfig.json +21 -0
- data/tracks/typescript/exercises/rna-transcription/tslint.json +127 -0
- data/tracks/typescript/exercises/rna-transcription/yarn.lock +2697 -0
- data/tracks/typescript/exercises/say/package.json +37 -0
- data/tracks/typescript/exercises/say/say.example.ts +95 -0
- data/tracks/typescript/exercises/say/say.test.ts +78 -0
- data/tracks/typescript/exercises/say/tsconfig.json +21 -0
- data/tracks/typescript/exercises/say/tslint.json +127 -0
- data/tracks/typescript/exercises/say/yarn.lock +2697 -0
- data/tracks/typescript/exercises/word-count/package.json +37 -0
- data/tracks/typescript/exercises/word-count/tsconfig.json +21 -0
- data/tracks/typescript/exercises/word-count/tslint.json +127 -0
- data/tracks/typescript/exercises/word-count/word-count.example.ts +16 -0
- data/tracks/typescript/exercises/word-count/word-count.test.ts +65 -0
- data/tracks/typescript/exercises/word-count/yarn.lock +2697 -0
- data/tracks/typescript/exercises/wordy/package.json +37 -0
- data/tracks/typescript/exercises/wordy/tsconfig.json +21 -0
- data/tracks/typescript/exercises/wordy/tslint.json +127 -0
- data/tracks/typescript/exercises/wordy/wordy.example.ts +40 -0
- data/tracks/typescript/exercises/wordy/wordy.test.ts +89 -0
- data/tracks/typescript/exercises/wordy/yarn.lock +2697 -0
- data/tracks/typescript/img/icon.png +0 -0
- data/tracks/typescript/img/icon.svg +10 -0
- metadata +134 -15
- data/tracks/erlang/exercises/binary/src/example.erl +0 -20
- data/tracks/erlang/exercises/binary/test/binary_string_tests.erl +0 -26
- data/tracks/erlang/exercises/trinary/Makefile +0 -10
- data/tracks/erlang/exercises/trinary/src/example.erl +0 -66
- data/tracks/erlang/exercises/trinary/test/trinary_tests.erl +0 -36
- data/tracks/fsharp/exercises/hello-world/HINTS.md +0 -5
@@ -1,5 +0,0 @@
|
|
1
|
-
## Hints
|
2
|
-
For this exercise the following F# features come in handy:
|
3
|
-
- [Match Expressions](https://fsharpforfunandprofit.com/posts/match-expression/) Also known as pattern matching which is like a switch statement on steriods. It's a very powerful ability in the F# language and will come in handy in many of the exercises. While this example can be trivially solved with an if/else, pattern matching is more idiomatic.
|
4
|
-
- [sprintf](https://fsharpforfunandprofit.com/posts/printf/) While F# supports string concatenation using sprintf leads to easier to read solutions and is also idiomatic
|
5
|
-
- [defaultArg](https://msdn.microsoft.com/en-us/visualfsharpdocs/conceptual/operators.defaultarg%5B't%5D-function-%5Bfsharp%5D) Default arg is useful when extracting a value from an option type and providing a value when None is encountered.
|