{"push_id":766814595,"size":35,"distinct_size":35,"ref":"refs/heads/master","head":"b7ef3b29a7c0b7b494893189fe465251ad424c2b","before":"5db3f4b79bc958a99428f271f953e12eea938053","commits":[{"sha":"4d7155b15cc74d88c3fcb09e2f625a616af35c88","author":{"email":"3d928645612786af07f011fdfbce45f81efe5a40@plutono.com","name":"Eric James Michael Ritz"},"message":"[Feature] Implement a function to randomly generate small syllables","distinct":true,"url":"https://api.github.com/repos/ejmr/chance.lua/commits/4d7155b15cc74d88c3fcb09e2f625a616af35c88"},{"sha":"84c2b0e21fa2025c9c79defc661683655f491ba7","author":{"email":"3d928645612786af07f011fdfbce45f81efe5a40@plutono.com","name":"Eric James Michael Ritz"},"message":"[Refactor] Rename is_within_range() to simply within_range()\n\nCurrent uses of the assertion look like this:\n\n    assert.is_within_range(...)\n\nHowever, Busted allows us to use `is` (or not) inherently in an\nassertion, meaning we can also write the above like so:\n\n    assert.is.is_within_range(...)\n\nThis example demonstrates the problem with the current name, as we\nrepeat `is`, which is not necessary.  This patch renames the custom\nassertion function in order to improve readability in the test suite.","distinct":true,"url":"https://api.github.com/repos/ejmr/chance.lua/commits/84c2b0e21fa2025c9c79defc661683655f491ba7"},{"sha":"04c5849ad455e01ffbce4a36db4a15c76b93a6fc","author":{"email":"3d928645612786af07f011fdfbce45f81efe5a40@plutono.com","name":"Eric James Michael Ritz"},"message":"[Feature] Implement function to generate random nonsense words\n\nThe function creates words using `chance.syllable()`, which is why the\nwords are described as \"nonsense\", as there is little chance that\n`chance.word()` will return an actual word in an actual language.","distinct":true,"url":"https://api.github.com/repos/ejmr/chance.lua/commits/04c5849ad455e01ffbce4a36db4a15c76b93a6fc"},{"sha":"a981a010f23c6999d4af4703aae26210e51a1196","author":{"email":"3d928645612786af07f011fdfbce45f81efe5a40@plutono.com","name":"Eric James Michael Ritz"},"message":"[Docs] Add usage examples and cross-references to chance.syllable()","distinct":true,"url":"https://api.github.com/repos/ejmr/chance.lua/commits/a981a010f23c6999d4af4703aae26210e51a1196"},{"sha":"441edbb08a483b679ddb16c2270c1b5817b91bd0","author":{"email":"3d928645612786af07f011fdfbce45f81efe5a40@plutono.com","name":"Eric James Michael Ritz"},"message":"[Feature] Implement a function for generating random sentences\n\nThis builds off the existing Text API functions `chance.word()`, and\nthus `chance.syllable()`, to provide a function which generates a\nrandom sentence.  Due to the fact that `chance.word()` returns\ngibberish the sentences created by `chance.sentence()` will also be\nnonsensical gibberish.","distinct":true,"url":"https://api.github.com/repos/ejmr/chance.lua/commits/441edbb08a483b679ddb16c2270c1b5817b91bd0"},{"sha":"cd8b8f6d49c48e4cfc1ead6316bd87c6be8d9215","author":{"email":"3d928645612786af07f011fdfbce45f81efe5a40@plutono.com","name":"Eric James Michael Ritz"},"message":"[Feature] Capitalize and add punctuation in chance.sentence()\n\nThis patch improves `chance.sentence()` by automatically capitalizing\nthe first word and adding a period at the end, thus making it easier\nto combine sentences, e.g.  when creating paragraphs.","distinct":true,"url":"https://api.github.com/repos/ejmr/chance.lua/commits/cd8b8f6d49c48e4cfc1ead6316bd87c6be8d9215"},{"sha":"11a4bc43efd3313d69b2e99e7b28a7d33dba5acb","author":{"email":"3d928645612786af07f011fdfbce45f81efe5a40@plutono.com","name":"Eric James Michael Ritz"},"message":"[Feature] Implement a function to generate random paragraphs","distinct":true,"url":"https://api.github.com/repos/ejmr/chance.lua/commits/11a4bc43efd3313d69b2e99e7b28a7d33dba5acb"},{"sha":"df98137942d9f1a370ca50980d9289031eaf0820","author":{"email":"3d928645612786af07f011fdfbce45f81efe5a40@plutono.com","name":"Eric James Michael Ritz"},"message":"[Fix] Remove an unused value from chance.sentence()\n\nWe initially define `words` as an empty table but we never use that\nvalue, which produces a warning from Luacheck.  This patch removes\nthat unused empty table, thereby addressing and squashing the warning.","distinct":true,"url":"https://api.github.com/repos/ejmr/chance.lua/commits/df98137942d9f1a370ca50980d9289031eaf0820"},{"sha":"c47635a0ac5de4a74b859011b259d42ea3feef39","author":{"email":"3d928645612786af07f011fdfbce45f81efe5a40@plutono.com","name":"Eric James Michael Ritz"},"message":"Merge branch 'text-api'","distinct":true,"url":"https://api.github.com/repos/ejmr/chance.lua/commits/c47635a0ac5de4a74b859011b259d42ea3feef39"},{"sha":"ecd201a0da7c967defd34433f8032117e0fc1e21","author":{"email":"3d928645612786af07f011fdfbce45f81efe5a40@plutono.com","name":"Eric James Michael Ritz"},"message":"[Feature] Make the input to chance.rpg() case-insensitive\n\nThis patch makes the following two calls equivalent:\n\n    chance.rpg(\"3d6\")\n    chance.rpg(\"3D6\")\n\nPrior to this the second example above would cause an error.","distinct":true,"url":"https://api.github.com/repos/ejmr/chance.lua/commits/ecd201a0da7c967defd34433f8032117e0fc1e21"},{"sha":"501c0b96b5fc6702e0b4ceb71f745de1b2a4eebf","author":{"email":"3d928645612786af07f011fdfbce45f81efe5a40@plutono.com","name":"Eric James Michael Ritz"},"message":"[Feature] Add a function to generate a unique array of data\n\nThis patch introduces a function which behaves like `chance.n()`\nexcept that it guarantees the resulting array contains unique elements\nwith no duplicates.  For example, the code\n\n    chance.n(chance.day, 3)\n\nmight produce the array\n\n    { \"Monday\", \"Wednesday\", \"Wednesday\" }\n\nBut `chance.unique()` will never return such an array.  Calling\n\n    chance.unique(chance.day, 3)\n\nwill return an array of three random days but without any duplicates\nlike we may get when using `chance.n()`.","distinct":true,"url":"https://api.github.com/repos/ejmr/chance.lua/commits/501c0b96b5fc6702e0b4ceb71f745de1b2a4eebf"},{"sha":"47e0da09c8ec13f61577897fc1e71a5b65c73465","author":{"email":"3d928645612786af07f011fdfbce45f81efe5a40@plutono.com","name":"Eric James Michael Ritz"},"message":"[Test] Document and test additional arguments with chance.unique()\n\nJust like `chance.n()`, the function `chance.unique()` accepts any\nnumber of additional arguments which it will pass on to the generator\nfunction on each invocation.  This patch updates the documentation and\ntest suite to demonstrate that functionality.","distinct":true,"url":"https://api.github.com/repos/ejmr/chance.lua/commits/47e0da09c8ec13f61577897fc1e71a5b65c73465"},{"sha":"e222d0823f6d8e742ec7a29437e8f89d5984c4d2","author":{"email":"3d928645612786af07f011fdfbce45f81efe5a40@plutono.com","name":"Eric James Michael Ritz"},"message":"[Test] Provide an assertion for testing arrays for uniqueness\n\nThe two unit tests for `chance.unique()` have the same, copy-paste\nstyle code for determining if the results of the function produces an\narray of unique values.  This patch implements a new `unique_array()`\nassertion which performs that same test but allows us to reduce the\namount of code in the unit tests themselves, allowing us to reduce\nboth tests for `chance.unique()` into simple one-liners.","distinct":true,"url":"https://api.github.com/repos/ejmr/chance.lua/commits/e222d0823f6d8e742ec7a29437e8f89d5984c4d2"},{"sha":"169c9f6c79540988d8997346583e702755166944","author":{"email":"3d928645612786af07f011fdfbce45f81efe5a40@plutono.com","name":"Eric James Michael Ritz"},"message":"[Test] Seed the random generator differently for tests\n\nThis improves the quality of the test suite since it makes the results\nof the `chance` functions less predictable.  Or to put it another way,\nit allows us to ensure that tests pass for randomized results instead\nof basing the tests on a seed where the functions always return the\nsame value.  This helps a lot when we run the entire test suite\nmultiple times, as we do whenever we run Tup to build the project.","distinct":true,"url":"https://api.github.com/repos/ejmr/chance.lua/commits/169c9f6c79540988d8997346583e702755166944"},{"sha":"d45735fb6f6b5051f736a0d49159aa6294bd4b26","author":{"email":"3d928645612786af07f011fdfbce45f81efe5a40@plutono.com","name":"Eric James Michael Ritz"},"message":"[Fix] Correct the test for the number of letters in a random syllable\n\nThe function `chance.syllable()` returns a string that can have a\nminimum of two characters.  But the unit test does not correctly\nreflect that.  This patch fixes the unit test and adds some additional\ndocumentation to `chance.syllable()` regarding the length of strings\nit can return.","distinct":true,"url":"https://api.github.com/repos/ejmr/chance.lua/commits/d45735fb6f6b5051f736a0d49159aa6294bd4b26"},{"sha":"30e995034a3ab30c7ed881649e1d480672d2d008","author":{"email":"3d928645612786af07f011fdfbce45f81efe5a40@plutono.com","name":"Eric James Michael Ritz"},"message":"[Fix] Return correct values from chance.day() when using flags\n\nIf we use one of the optional flags for `chance.day()`, i.e. we call\nthe function in either of these forms\n\n    chance.day { weekdays = false }\n    chance.day { weekends = false }\n\nthen there is a chance the function will not return a correct value.\nThis happens because of the \"clever\" table manipulation we do inside\nof `chance.day()` in order to restrict the possible return values.\nThis patch corrects the problem by restructuring the `days` data set\nso that it has specific subsets for `\"weekdays\"` and `\"weekends\"`,\nwhich allows us to rewrite `chance.day()` in such a way that it\nselects from the proper subtables without the need for any\nmanipulation of said tables.","distinct":true,"url":"https://api.github.com/repos/ejmr/chance.lua/commits/30e995034a3ab30c7ed881649e1d480672d2d008"},{"sha":"9f3cbf2466d865d82310b9b1e785401556daedce","author":{"email":"3d928645612786af07f011fdfbce45f81efe5a40@plutono.com","name":"Eric James Michael Ritz"},"message":"[Feature] Allow chance.day() to accept boolean true flags\n\nCurrently `chance.day()` allows selecting weekdays or weekends by\nusing boolean false with the optional flags like so:\n\n    chance.day { weekdays = false }\n\nThat code returns a weekend.  This patch modifies the functions so\nthat those flags accept boolean true values, meaning we can rewrite\nthe above code like so:\n\n    chance.day { weekends = true }\n\nThis can improve readability and intent, and at the very least makes\nthe API more consistent, as it was strange the function accepted only\nfalse values.","distinct":true,"url":"https://api.github.com/repos/ejmr/chance.lua/commits/9f3cbf2466d865d82310b9b1e785401556daedce"},{"sha":"94340fbd4476dededcfc18e5059a0eb06585b8b1","author":{"email":"3d928645612786af07f011fdfbce45f81efe5a40@plutono.com","name":"Eric James Michael Ritz"},"message":"[Feature] Implement a function to generate hashes in hexadecimal\n\nThe function `chance.hash()` will create strings representing random\nhexadecimal numbers, useful for randomly generating data such as SHA-1\nhashes.  The patch adds a new character group, `hex`, so that we can\nsimply write\n\n    chance.string { group = \"hex\", length = ... }\n\nfor the implementation of `chance.hash()`.","distinct":true,"url":"https://api.github.com/repos/ejmr/chance.lua/commits/94340fbd4476dededcfc18e5059a0eb06585b8b1"},{"sha":"02c6e089928cc941a531a63a54dcfd2a350fe7c3","author":{"email":"3d928645612786af07f011fdfbce45f81efe5a40@plutono.com","name":"Eric James Michael Ritz"},"message":"[Feature] Randomly generate top-level domains for web addresses","distinct":true,"url":"https://api.github.com/repos/ejmr/chance.lua/commits/02c6e089928cc941a531a63a54dcfd2a350fe7c3"},{"sha":"897073afbe3c4928ced665801ccac635c52f0e03","author":{"email":"3d928645612786af07f011fdfbce45f81efe5a40@plutono.com","name":"Eric James Michael Ritz"},"message":"[Feature] Randomly generate domains for web addresses\n\nThis feature builds upon `chance.tld()` by creating random domain\nnames, using a combination of random words via `chance.word()` and\ntop-level domains via `chance.tld()`.","distinct":true,"url":"https://api.github.com/repos/ejmr/chance.lua/commits/897073afbe3c4928ced665801ccac635c52f0e03"}]}