Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Don't add '+' to deltaconfirmed if it's a negative number | Andinus | 2020-06-08 | 1 | -1/+6 | |
| | | | | | "State Unassigned" had deltaconfirmed of -773 today which showed up as "+-773". | |||||
* | Restyle code | Andinus | 2020-06-07 | 1 | -46/+47 | |
| | | | | Looks like many like this style, looks good to me too. | |||||
* | Use foreach instead of each | Andinus | 2020-06-06 | 1 | -3/+4 | |
| | ||||||
* | Use if block instead of '?' | Andinus | 2020-06-06 | 1 | -2/+4 | |
| | ||||||
* | Remove unused feature 'say' | Andinus | 2020-06-06 | 1 | -1/+0 | |
| | ||||||
* | Add demo video, remove example output | Andinus | 2020-06-06 | 1 | -46/+1 | |
| | | | | | | | Example output will change all the time & I also added new things like State Notes so better just remove it instead of creating huge diffs for every new function. Instead I added a demo video which users can watch. | |||||
* | Change Notes column width to 74 | Andinus | 2020-06-06 | 1 | -1/+1 | |
| | ||||||
* | Add help flag | Andinus | 2020-06-06 | 1 | -0/+12 | |
| | ||||||
* | Add Getopt::Long to cpanfile | Andinus | 2020-06-06 | 1 | -0/+1 | |
| | ||||||
* | Add $rows argument, change behaviour | Andinus | 2020-06-06 | 1 | -73/+81 | |
| | | | | | | | | | | | | | User can now specify the number of rows to print. It'll print all the rows if --notes is passed or if $rows evaluates to false or if the user passed value greater than the length of Array. It'll now warn the user if file doesn't exist locally & user has passed --local, also instead of just dying it fetches the file from the web instead. $covid_19_data not doesn't get printed if --notes is passed. We assume that the user either wants to see notes or $covid_19_data. | |||||
* | use Getopt::Long to GetOptions from cli | Andinus | 2020-06-06 | 1 | -9/+31 | |
| | ||||||
* | Remove Text::Table::Tiny from cpanfile | Andinus | 2020-06-06 | 1 | -1/+0 | |
| | ||||||
* | Switch to Text::ASCIITable for $covid_19_data | Andinus | 2020-06-06 | 1 | -8/+18 | |
| | | | | Instead of using 2 modules we switch everything to Text:ASCIITable. | |||||
* | Add Time::Moment, remove DateTime from cpanfile | Andinus | 2020-06-06 | 1 | -1/+1 | |
| | ||||||
* | Remove DateTime, use Time::Moment instead | Andinus | 2020-06-06 | 1 | -9/+11 | |
| | | | | | | | After removing all DateTime code it took ~0.98s to run, before that it was ~1.2s. And after removing 'use DateTime' it now takes ~0.30s to run, all of this is without File::Fetch part, it loaded the data from disk instead of fetching. | |||||
* | Use == to compare numbers instead of eq | Andinus | 2020-06-06 | 1 | -1/+1 | |
| | | | | | No need to convert it to string for comparision, we instead use == to compare numbers. | |||||
* | Use Time::Moment for $file_mtime instead of DateTime | Andinus | 2020-06-06 | 1 | -5/+3 | |
| | | | | | | | | | First step to replacing DateTime with Time::Moment, DateTime is very huge, no need to load that large module for simple tasks, it'll also make the program run faster. This comparison happens in utc time instead of converting it to other time zone which was meaningless anyways. | |||||
* | use File::Fetch only when required | Andinus | 2020-06-06 | 1 | -1/+2 | |
| | | | | | 'use File::Fetch' gets processed at compile time so we use 'require File::Fetch' instead. | |||||
* | Add Text::ASCIITable to cpanfile | Andinus | 2020-06-06 | 1 | -0/+1 | |
| | ||||||
* | Use Text::ASCIITable for State Notes | Andinus | 2020-06-05 | 1 | -7/+7 | |
| | | | | | | Text::Table::Tiny wasn't good for state notes because they were long & had characters like '\n'. Text::ASCIITable has nice options to work with these. | |||||
* | Print state notes along with covid-19 data | Andinus | 2020-06-05 | 1 | -4/+16 | |
| | ||||||
* | Merge if statements into a single block | Andinus | 2020-06-05 | 1 | -9/+7 | |
| | | | | | Instead of checking if( $update_info eq "Today" ) three times, we check it only once. | |||||
* | Fetch latest data only if local data is old or doesn't exist | Andinus | 2020-06-05 | 1 | -6/+24 | |
| | | | | | This will fetch the latest data only if the local data is older than 8 minutes or the file doesn't exist. | |||||
* | Fix deltarecovered & deltadeaths | Andinus | 2020-06-05 | 1 | -2/+2 | |
| | | | | They were swapped for some reason. | |||||
* | Show delta only if it was updated Today | Andinus | 2020-06-05 | 1 | -3/+16 | |
| | ||||||
* | Add $statewise as intermediate | Andinus | 2020-06-03 | 1 | -7/+10 | |
| | ||||||
* | Remove @statewise & clean up code | Andinus | 2020-06-03 | 1 | -10/+7 | |
| | | | | | @statewise thing did some stuff that I didn't understand, instead of that we directly take data from $json_data. | |||||
* | Add cpanfile | Andinus | 2020-05-29 | 1 | -0/+5 | |
| | ||||||
* | Remove use Data::Dumper | Andinus | 2020-05-29 | 1 | -1/+0 | |
| | ||||||
* | Use statecode if state name is too long | Andinus | 2020-05-29 | 1 | -4/+8 | |
| | ||||||
* | Change timezone to 'Asia/Kolkata' | Andinus | 2020-05-29 | 1 | -1/+1 | |
| | ||||||
* | Use $last_update_dmy instead of substr func everywhere | Andinus | 2020-05-29 | 1 | -3/+4 | |
| | ||||||
* | Remove CPAN Modules list from README | Andinus | 2020-05-29 | 1 | -5/+0 | |
| | | | | User can look at 'use' lines in ara.pl. | |||||
* | Update example in README | Andinus | 2020-05-29 | 1 | -5/+43 | |
| | ||||||
* | Fix datetime check, clone before subtract/add | Andinus | 2020-05-29 | 1 | -2/+2 | |
| | | | | subtract/add modifies in place so we clone it. | |||||
* | Add check for tomorrow in dates | Andinus | 2020-05-29 | 1 | -2/+4 | |
| | ||||||
* | Make time relative in output | Andinus | 2020-05-29 | 1 | -1/+20 | |
| | | | | | It now shows "Today", "Yesterday" instead of showing solid dates for all entries. | |||||
* | Format date in output to 'Month Date' | Andinus | 2020-05-29 | 1 | -1/+4 | |
| | ||||||
* | Add last updated to output | Andinus | 2020-05-29 | 1 | -1/+3 | |
| | ||||||
* | Change output format to tables | Andinus | 2020-05-29 | 1 | -6/+24 | |
| | | | | | | | This version is much better, it will print all states information along with delta in some fields like confirmed, deaths, recovered. I'm not sure though if this is the best way, it just works. | |||||
* | Add example output to README | Andinus | 2020-05-29 | 1 | -0/+10 | |
| | ||||||
* | Add required modules, other notes to README | Andinus | 2020-05-29 | 1 | -1/+10 | |
| | ||||||
* | Initial version | Andinus | 2020-05-29 | 1 | -0/+59 | |
| | ||||||
* | Initial commit | Andinus | 2020-05-28 | 2 | -0/+27 | |