From b0e204c9616b1d156ed9bf235aecabee3074c70a Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 5 Feb 2021 16:33:39 +0100 Subject: [PATCH] [v3] Sync source information from prob-specs Source information for Practice Exercises will be stored in their `.meta/config.json` file, in the (optional) `source` and/or `source_url` properties. This commit adds the source information from the corresponding problem-specifications exercise to the `.meta/config.json` file. The new [configlet](https://github.com/exercism/configlet) version will add support for doing this syncing automatically. Exercism v3 will automatically include the source information in the README.md file that is sent via the CLI using the source properties in the `.meta/config.json` file. See [the spec](https://github.com/exercism/docs/blob/main/anatomy/tracks/practice-exercises.md) for more information. --- exercises/practice/acronym/.meta/config.json | 4 +++- exercises/practice/allergies/.meta/config.json | 4 +++- exercises/practice/anagram/.meta/config.json | 4 +++- exercises/practice/armstrong-numbers/.meta/config.json | 4 +++- exercises/practice/beer-song/.meta/config.json | 4 +++- exercises/practice/binary-search-tree/.meta/config.json | 4 +++- exercises/practice/bob/.meta/config.json | 4 +++- exercises/practice/collatz-conjecture/.meta/config.json | 4 +++- exercises/practice/darts/.meta/config.json | 3 ++- exercises/practice/diamond/.meta/config.json | 4 +++- exercises/practice/difference-of-squares/.meta/config.json | 4 +++- exercises/practice/gigasecond/.meta/config.json | 4 +++- exercises/practice/hamming/.meta/config.json | 4 +++- exercises/practice/hello-world/.meta/config.json | 4 +++- exercises/practice/isbn-verifier/.meta/config.json | 4 +++- exercises/practice/isogram/.meta/config.json | 4 +++- exercises/practice/leap/.meta/config.json | 4 +++- exercises/practice/luhn/.meta/config.json | 4 +++- exercises/practice/matching-brackets/.meta/config.json | 3 ++- exercises/practice/nth-prime/.meta/config.json | 4 +++- exercises/practice/pangram/.meta/config.json | 4 +++- exercises/practice/pascals-triangle/.meta/config.json | 4 +++- exercises/practice/phone-number/.meta/config.json | 4 +++- exercises/practice/prime-factors/.meta/config.json | 4 +++- exercises/practice/raindrops/.meta/config.json | 4 +++- exercises/practice/resistor-color-duo/.meta/config.json | 4 +++- exercises/practice/resistor-color/.meta/config.json | 4 +++- exercises/practice/reverse-string/.meta/config.json | 4 +++- exercises/practice/rna-transcription/.meta/config.json | 4 +++- exercises/practice/robot-simulator/.meta/config.json | 4 +++- exercises/practice/scrabble-score/.meta/config.json | 4 +++- exercises/practice/secret-handshake/.meta/config.json | 4 +++- exercises/practice/space-age/.meta/config.json | 4 +++- exercises/practice/triangle/.meta/config.json | 4 +++- exercises/practice/two-fer/.meta/config.json | 3 ++- exercises/practice/word-count/.meta/config.json | 3 ++- 36 files changed, 104 insertions(+), 36 deletions(-) diff --git a/exercises/practice/acronym/.meta/config.json b/exercises/practice/acronym/.meta/config.json index ac46491c..dd674714 100644 --- a/exercises/practice/acronym/.meta/config.json +++ b/exercises/practice/acronym/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Julien Vanier", + "source_url": "https://github.com/monkbroc" } diff --git a/exercises/practice/allergies/.meta/config.json b/exercises/practice/allergies/.meta/config.json index ac46491c..bffe8b34 100644 --- a/exercises/practice/allergies/.meta/config.json +++ b/exercises/practice/allergies/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Jumpstart Lab Warm-up", + "source_url": "http://jumpstartlab.com" } diff --git a/exercises/practice/anagram/.meta/config.json b/exercises/practice/anagram/.meta/config.json index ac46491c..8591c660 100644 --- a/exercises/practice/anagram/.meta/config.json +++ b/exercises/practice/anagram/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Inspired by the Extreme Startup game", + "source_url": "https://github.com/rchatley/extreme_startup" } diff --git a/exercises/practice/armstrong-numbers/.meta/config.json b/exercises/practice/armstrong-numbers/.meta/config.json index ac46491c..562a04c4 100644 --- a/exercises/practice/armstrong-numbers/.meta/config.json +++ b/exercises/practice/armstrong-numbers/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Wikipedia", + "source_url": "https://en.wikipedia.org/wiki/Narcissistic_number" } diff --git a/exercises/practice/beer-song/.meta/config.json b/exercises/practice/beer-song/.meta/config.json index ac46491c..edb5b2d0 100644 --- a/exercises/practice/beer-song/.meta/config.json +++ b/exercises/practice/beer-song/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Learn to Program by Chris Pine", + "source_url": "http://pine.fm/LearnToProgram/?Chapter=06" } diff --git a/exercises/practice/binary-search-tree/.meta/config.json b/exercises/practice/binary-search-tree/.meta/config.json index ac46491c..ad89e273 100644 --- a/exercises/practice/binary-search-tree/.meta/config.json +++ b/exercises/practice/binary-search-tree/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Josh Cheek", + "source_url": "https://twitter.com/josh_cheek" } diff --git a/exercises/practice/bob/.meta/config.json b/exercises/practice/bob/.meta/config.json index ac46491c..c98bfb89 100644 --- a/exercises/practice/bob/.meta/config.json +++ b/exercises/practice/bob/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Inspired by the 'Deaf Grandma' exercise in Chris Pine's Learn to Program tutorial.", + "source_url": "http://pine.fm/LearnToProgram/?Chapter=06" } diff --git a/exercises/practice/collatz-conjecture/.meta/config.json b/exercises/practice/collatz-conjecture/.meta/config.json index ac46491c..c638ce65 100644 --- a/exercises/practice/collatz-conjecture/.meta/config.json +++ b/exercises/practice/collatz-conjecture/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "An unsolved problem in mathematics named after mathematician Lothar Collatz", + "source_url": "https://en.wikipedia.org/wiki/3x_%2B_1_problem" } diff --git a/exercises/practice/darts/.meta/config.json b/exercises/practice/darts/.meta/config.json index ac46491c..f73d01f4 100644 --- a/exercises/practice/darts/.meta/config.json +++ b/exercises/practice/darts/.meta/config.json @@ -4,5 +4,6 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Inspired by an exercise created by a professor Della Paolera in Argentina" } diff --git a/exercises/practice/diamond/.meta/config.json b/exercises/practice/diamond/.meta/config.json index ac46491c..6fdcc7af 100644 --- a/exercises/practice/diamond/.meta/config.json +++ b/exercises/practice/diamond/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Seb Rose", + "source_url": "http://claysnow.co.uk/recycling-tests-in-tdd/" } diff --git a/exercises/practice/difference-of-squares/.meta/config.json b/exercises/practice/difference-of-squares/.meta/config.json index ac46491c..7d5c33a1 100644 --- a/exercises/practice/difference-of-squares/.meta/config.json +++ b/exercises/practice/difference-of-squares/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Problem 6 at Project Euler", + "source_url": "http://projecteuler.net/problem=6" } diff --git a/exercises/practice/gigasecond/.meta/config.json b/exercises/practice/gigasecond/.meta/config.json index ac46491c..8ceec193 100644 --- a/exercises/practice/gigasecond/.meta/config.json +++ b/exercises/practice/gigasecond/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Chapter 9 in Chris Pine's online Learn to Program tutorial.", + "source_url": "http://pine.fm/LearnToProgram/?Chapter=09" } diff --git a/exercises/practice/hamming/.meta/config.json b/exercises/practice/hamming/.meta/config.json index ac46491c..77d306c1 100644 --- a/exercises/practice/hamming/.meta/config.json +++ b/exercises/practice/hamming/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "The Calculating Point Mutations problem at Rosalind", + "source_url": "http://rosalind.info/problems/hamm/" } diff --git a/exercises/practice/hello-world/.meta/config.json b/exercises/practice/hello-world/.meta/config.json index ac46491c..22d06720 100644 --- a/exercises/practice/hello-world/.meta/config.json +++ b/exercises/practice/hello-world/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "This is an exercise to introduce users to using Exercism", + "source_url": "http://en.wikipedia.org/wiki/%22Hello,_world!%22_program" } diff --git a/exercises/practice/isbn-verifier/.meta/config.json b/exercises/practice/isbn-verifier/.meta/config.json index ac46491c..acb2f743 100644 --- a/exercises/practice/isbn-verifier/.meta/config.json +++ b/exercises/practice/isbn-verifier/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Converting a string into a number and some basic processing utilizing a relatable real world example.", + "source_url": "https://en.wikipedia.org/wiki/International_Standard_Book_Number#ISBN-10_check_digit_calculation" } diff --git a/exercises/practice/isogram/.meta/config.json b/exercises/practice/isogram/.meta/config.json index ac46491c..29426673 100644 --- a/exercises/practice/isogram/.meta/config.json +++ b/exercises/practice/isogram/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Wikipedia", + "source_url": "https://en.wikipedia.org/wiki/Isogram" } diff --git a/exercises/practice/leap/.meta/config.json b/exercises/practice/leap/.meta/config.json index ac46491c..5d154693 100644 --- a/exercises/practice/leap/.meta/config.json +++ b/exercises/practice/leap/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "JavaRanch Cattle Drive, exercise 3", + "source_url": "http://www.javaranch.com/leap.jsp" } diff --git a/exercises/practice/luhn/.meta/config.json b/exercises/practice/luhn/.meta/config.json index ac46491c..a030ef48 100644 --- a/exercises/practice/luhn/.meta/config.json +++ b/exercises/practice/luhn/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "The Luhn Algorithm on Wikipedia", + "source_url": "http://en.wikipedia.org/wiki/Luhn_algorithm" } diff --git a/exercises/practice/matching-brackets/.meta/config.json b/exercises/practice/matching-brackets/.meta/config.json index ac46491c..5a14b47b 100644 --- a/exercises/practice/matching-brackets/.meta/config.json +++ b/exercises/practice/matching-brackets/.meta/config.json @@ -4,5 +4,6 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Ginna Baker" } diff --git a/exercises/practice/nth-prime/.meta/config.json b/exercises/practice/nth-prime/.meta/config.json index ac46491c..3be0dc8a 100644 --- a/exercises/practice/nth-prime/.meta/config.json +++ b/exercises/practice/nth-prime/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "A variation on Problem 7 at Project Euler", + "source_url": "http://projecteuler.net/problem=7" } diff --git a/exercises/practice/pangram/.meta/config.json b/exercises/practice/pangram/.meta/config.json index ac46491c..d402d65d 100644 --- a/exercises/practice/pangram/.meta/config.json +++ b/exercises/practice/pangram/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Wikipedia", + "source_url": "https://en.wikipedia.org/wiki/Pangram" } diff --git a/exercises/practice/pascals-triangle/.meta/config.json b/exercises/practice/pascals-triangle/.meta/config.json index ac46491c..31ba6bfd 100644 --- a/exercises/practice/pascals-triangle/.meta/config.json +++ b/exercises/practice/pascals-triangle/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Pascal's Triangle at Wolfram Math World", + "source_url": "http://mathworld.wolfram.com/PascalsTriangle.html" } diff --git a/exercises/practice/phone-number/.meta/config.json b/exercises/practice/phone-number/.meta/config.json index ac46491c..411c0ade 100644 --- a/exercises/practice/phone-number/.meta/config.json +++ b/exercises/practice/phone-number/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Event Manager by JumpstartLab", + "source_url": "http://tutorials.jumpstartlab.com/projects/eventmanager.html" } diff --git a/exercises/practice/prime-factors/.meta/config.json b/exercises/practice/prime-factors/.meta/config.json index ac46491c..93ed350a 100644 --- a/exercises/practice/prime-factors/.meta/config.json +++ b/exercises/practice/prime-factors/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "The Prime Factors Kata by Uncle Bob", + "source_url": "http://butunclebob.com/ArticleS.UncleBob.ThePrimeFactorsKata" } diff --git a/exercises/practice/raindrops/.meta/config.json b/exercises/practice/raindrops/.meta/config.json index ac46491c..6e48df37 100644 --- a/exercises/practice/raindrops/.meta/config.json +++ b/exercises/practice/raindrops/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "A variation on FizzBuzz, a famous technical interview question that is intended to weed out potential candidates. That question is itself derived from Fizz Buzz, a popular children's game for teaching division.", + "source_url": "https://en.wikipedia.org/wiki/Fizz_buzz" } diff --git a/exercises/practice/resistor-color-duo/.meta/config.json b/exercises/practice/resistor-color-duo/.meta/config.json index ac46491c..1b78172e 100644 --- a/exercises/practice/resistor-color-duo/.meta/config.json +++ b/exercises/practice/resistor-color-duo/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Maud de Vries, Erik Schierboom", + "source_url": "https://github.com/exercism/problem-specifications/issues/1464" } diff --git a/exercises/practice/resistor-color/.meta/config.json b/exercises/practice/resistor-color/.meta/config.json index ac46491c..49b466f8 100644 --- a/exercises/practice/resistor-color/.meta/config.json +++ b/exercises/practice/resistor-color/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Maud de Vries, Erik Schierboom", + "source_url": "https://github.com/exercism/problem-specifications/issues/1458" } diff --git a/exercises/practice/reverse-string/.meta/config.json b/exercises/practice/reverse-string/.meta/config.json index ac46491c..f67413cd 100644 --- a/exercises/practice/reverse-string/.meta/config.json +++ b/exercises/practice/reverse-string/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Introductory challenge to reverse an input string", + "source_url": "https://medium.freecodecamp.org/how-to-reverse-a-string-in-javascript-in-3-different-ways-75e4763c68cb" } diff --git a/exercises/practice/rna-transcription/.meta/config.json b/exercises/practice/rna-transcription/.meta/config.json index ac46491c..2ad603b8 100644 --- a/exercises/practice/rna-transcription/.meta/config.json +++ b/exercises/practice/rna-transcription/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Hyperphysics", + "source_url": "http://hyperphysics.phy-astr.gsu.edu/hbase/Organic/transcription.html" } diff --git a/exercises/practice/robot-simulator/.meta/config.json b/exercises/practice/robot-simulator/.meta/config.json index ac46491c..132c673d 100644 --- a/exercises/practice/robot-simulator/.meta/config.json +++ b/exercises/practice/robot-simulator/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Inspired by an interview question at a famous company.", + "source_url": "" } diff --git a/exercises/practice/scrabble-score/.meta/config.json b/exercises/practice/scrabble-score/.meta/config.json index ac46491c..8591c660 100644 --- a/exercises/practice/scrabble-score/.meta/config.json +++ b/exercises/practice/scrabble-score/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Inspired by the Extreme Startup game", + "source_url": "https://github.com/rchatley/extreme_startup" } diff --git a/exercises/practice/secret-handshake/.meta/config.json b/exercises/practice/secret-handshake/.meta/config.json index ac46491c..ce8e0878 100644 --- a/exercises/practice/secret-handshake/.meta/config.json +++ b/exercises/practice/secret-handshake/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Bert, in Mary Poppins", + "source_url": "http://www.imdb.com/title/tt0058331/quotes/qt0437047" } diff --git a/exercises/practice/space-age/.meta/config.json b/exercises/practice/space-age/.meta/config.json index ac46491c..a9f0a99e 100644 --- a/exercises/practice/space-age/.meta/config.json +++ b/exercises/practice/space-age/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "Partially inspired by Chapter 1 in Chris Pine's online Learn to Program tutorial.", + "source_url": "http://pine.fm/LearnToProgram/?Chapter=01" } diff --git a/exercises/practice/triangle/.meta/config.json b/exercises/practice/triangle/.meta/config.json index ac46491c..5983daec 100644 --- a/exercises/practice/triangle/.meta/config.json +++ b/exercises/practice/triangle/.meta/config.json @@ -4,5 +4,7 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "The Ruby Koans triangle project, parts 1 & 2", + "source_url": "http://rubykoans.com" } diff --git a/exercises/practice/two-fer/.meta/config.json b/exercises/practice/two-fer/.meta/config.json index ac46491c..20830aed 100644 --- a/exercises/practice/two-fer/.meta/config.json +++ b/exercises/practice/two-fer/.meta/config.json @@ -4,5 +4,6 @@ "solution": [], "test": [], "example": [] - } + }, + "source_url": "https://github.com/exercism/problem-specifications/issues/757" } diff --git a/exercises/practice/word-count/.meta/config.json b/exercises/practice/word-count/.meta/config.json index ac46491c..3f1c1350 100644 --- a/exercises/practice/word-count/.meta/config.json +++ b/exercises/practice/word-count/.meta/config.json @@ -4,5 +4,6 @@ "solution": [], "test": [], "example": [] - } + }, + "source": "This is a classic toy problem, but we were reminded of it by seeing it in the Go Tour." }