Skip to content

Commit 687c840

Browse files
committed
Have only one list of releases
Changed 2016.07 to 2016.07.1. Also added 2016.08.1 which should be available shortly.
1 parent 0868027 commit 687c840

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Benchable.p6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ method process($message, $config, $code is copy) {
9494
my $num-commits = @commits.elems;
9595
return "Too many commits ($num-commits) in range, you're only allowed " ~ LIMIT if $num-commits > LIMIT;
9696
} elsif $config ~~ /:i releases / {
97-
@commits = <2015.10 2015.11 2015.12 2016.02 2016.03 2016.04 2016.05 2016.06 2016.07 HEAD>;
97+
@commits = @.releases;
9898
} elsif $config ~~ /:i compare \s $<commit>=\S+ / {
9999
@commits = $<commit>;
100100
} else {

Committable.p6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ method process($message, $config, $code is copy) {
5858
my $num-commits = @commits.elems;
5959
return Too many commits ($num-commits) in range, you're only allowed {LIMIT} if $num-commits > LIMIT;
6060
} elsif $config ~~ /:i releases / {
61-
@commits = <2015.10 2015.11 2015.12 2016.02 2016.03 2016.04 2016.05 2016.06 2016.07 HEAD>;
61+
@commits = @.releases;
6262
} else {
6363
@commits = $config;
6464
}

Whateverable.pm6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ unit class Whateverable does IRC::Client::Plugin;
3737

3838
has $!timeout = 10;
3939
has $!stdin = slurp stdin;
40+
has $!releases = <2015.10 2015.11 2015.12 2016.02 2016.03 2016.04 2016.05 2016.06 2016.07.1 2016.08.1 HEAD>;
4041

4142
class ResponseStr is Str is export {
4243
# I know it looks crazy, but we will subclass a Str and hope

0 commit comments

Comments
 (0)