Commit graph

36 commits

Author SHA1 Message Date
Oliver Davies 7502a4c50e refactor: update attendee names 2022-01-13 20:28:17 +00:00
Oliver Davies 133cc8c822 refactor: use a Collection for attendees 2022-01-13 20:22:57 +00:00
Oliver Davies aec86ad237 build(deps): add Collections 2022-01-13 20:18:33 +00:00
Oliver Davies 6883f63d95 test: add the first assertion 2022-01-13 20:18:14 +00:00
Oliver Davies 2962800349 wip: initial class setup 2022-01-13 20:13:28 +00:00
Oliver Davies 06f764a188 build(docker): add vendor/bin to PATH 2022-01-13 19:54:29 +00:00
Oliver Davies 415711e853 build(deps): add symfony/test-pack 2022-01-13 19:47:14 +00:00
Oliver Davies b7ef5c69b7 build(deps): update dependencies 2022-01-13 19:41:45 +00:00
Oliver Davies a28f276048 build: ignore /bin 2022-01-13 19:41:19 +00:00
Oliver Davies f83cc1971a build(docker): add Dockerfile 2022-01-13 19:40:47 +00:00
Oliver Davies b874c01ea2 Add missing return type 2020-06-29 21:32:21 +01:00
Oliver Davies 5f79f6b497 Update the default command 2020-06-29 21:32:21 +01:00
Oliver Davies dca7125df1 More refactoring 2020-05-22 23:02:22 +01:00
Oliver Davies 5aa1f79279 Refactor to a UseCase and some value objects 2020-05-22 22:27:46 +01:00
Oliver Davies ba75e22439 Show the photo URL if the winner has one 2020-05-22 21:51:52 +01:00
Oliver Davies dab1f156e3 Ensure that organisers are excluded 2020-05-22 21:51:49 +01:00
Oliver Davies 3bffa3cdd6
Create LICENSE 2020-05-10 16:05:24 +01:00
Oliver Davies 5a2f82885d Remove blank line 2020-05-05 10:40:33 +01:00
Oliver Davies 72c4c2af78 Remove dependency on illuminate/support 2020-05-05 10:34:35 +01:00
Oliver Davies 6ef4cb5ee0 Add Makefile, use in GitHub Actions 2020-05-05 10:23:49 +01:00
Oliver Davies 7a5a1871df Remove docblocks 2020-05-05 10:23:49 +01:00
Oliver Davies 9b58af3a62 Use PHP 7.4 typed properties
Fixes #8
2020-05-05 10:23:49 +01:00
Oliver Davies 2e0ec011f2 Remove sleep 2020-05-05 10:02:47 +01:00
Oliver Davies b18a9ba3c9 Add a GitHub Actions workflow for PHPCS
Ensure that the code matches the PSR-12 coding standards by
automatically running PHPCS for each push and pull request.

Fixes #5
2020-05-01 02:13:51 +01:00
Oliver Davies 08d9465cf0 Add event URL 2020-04-30 22:59:18 +01:00
Oliver Davies 3d2290c194 Fix coding standards problems
Fixes #4
2020-04-30 00:22:00 +01:00
Oliver Davies d577510355 Add phpcs
References #4
2020-04-30 00:21:23 +01:00
Oliver Davies 71d3314a8e Make the command final, enable strict types 2020-04-29 23:57:45 +01:00
Oliver Davies c188676033 Exclude event hosts
Automatically filter event hosts (i.e. organisers) from the RSVP list so
that they aren't potentially returned as winners.

Fixes #2
2020-04-29 23:54:16 +01:00
Oliver Davies 3ad31b95b0 Use the event name in the title
Retrieve the event data from Meetup, and build the title from the meetup
name and the event name.
2020-04-29 23:34:50 +01:00
Oliver Davies 48aa11b38e Display all yes RSVP names 2020-04-29 23:18:51 +01:00
Oliver Davies 371ea1310b Add README.md 2020-04-29 23:01:58 +01:00
Oliver Davies d3f962e19c Cache RSVPs from Meetup per event
Introduce the Cache component and use a filesystem adapter to cache the
results from the query to the Meetup API.

This will prevent duplicate API calls being made if we need to run it
multiple times in a short space of time - i.e. if we want to pick more
than one winner during the same event.

Fixes #1.
2020-04-29 22:25:35 +01:00
Oliver Davies f823514a73 Add GetRaffleWinnerCommand 2020-04-29 22:23:44 +01:00
Oliver Davies 870c58b23a Add dependencies 2020-04-29 21:24:19 +01:00
Oliver Davies 9f3b94b2c4 Add initial set of files 2020-04-29 20:20:38 +01:00