Skip to content

Commit 049b1c4

Browse files
authored
Merge pull request #66 from atoomic/tpc23
Multiple changes during PTS 23
2 parents c07c44e + ecd5943 commit 049b1c4

28 files changed

+2495
-1148
lines changed

.perlcriticrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,19 @@ verbose = 11
1111
[-RegularExpressions::RequireExtendedFormatting]
1212
[-RegularExpressions::RequireLineBoundaryMatching]
1313
[-Subroutines::ProhibitExplicitReturnUndef]
14+
[-Subroutines::ProhibitSubroutinePrototypes]
1415
[-ValuesAndExpressions::ProhibitNoisyQuotes]
1516
[-ValuesAndExpressions::ProhibitAccessOfPrivateData]
1617
[-Variables::ProhibitPunctuationVars]
1718

1819
[CodeLayout::RequireTrailingCommas]
1920
severity = 4
2021

22+
# Don't use function prototypes
23+
[Community::Prototypes]
24+
severity = 4
25+
signature_enablers = cPstrict GrepCpan::std
26+
2127
[TestingAndDebugging::RequireUseStrict]
2228
equivalent_modules = MetaCPAN::Moose Mojo::Base Test::Routine
2329

.tidyallrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ select = bin/app.psgi
55
select = cpanfile
66
ignore = t/var/**/*
77
ignore = .gitignore
8+
ignore = cpanfile
89
argv = --profile=$ROOT/.perltidyrc
910

1011
[PerlCritic]

Makefile.PL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ WriteMakefile(
1212
AUTHOR => q{Nicolas R. <[email protected]>},
1313
VERSION_FROM => 'lib/grepcpan.pm',
1414
ABSTRACT => 'grep metacpan web frontend',
15-
MIN_PERL_VERSION => 5.022,
15+
MIN_PERL_VERSION => 5.036,
1616
(
1717
$eumm_version >= 6.3001
1818
? ( 'LICENSE' => 'perl' )

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@ but it should be pretty straight forward to setup a development environment and
1515
## Requirements
1616

1717
* a git client (should be compiled with libpcre)
18-
* perl 5.22 or later (5.22 is the recommended version, consider [using perlbrew](https://perlbrew.pl))
18+
* perl 5.36 or later (5.36 is the recommended version, consider [using perlbrew](https://perlbrew.pl))
1919
* App::cpanminus (read manual on [metacpan](https://metacpan.org/pod/App::cpanminus) )
2020

2121
### git with pcre support
2222

2323
For macOS users, it's recommended to use [homebrew](https://brew.sh) to install git with pcre support
2424

2525
> brew install pcre
26-
> brew reinstall --with-pcre git
26+
> export USE_LIBPCRE=yes
27+
> brew reinstall --build-from-source git
2728

2829
You can check if git support pcre by using the '-P' option
2930

@@ -32,7 +33,7 @@ You can check if git support pcre by using the '-P' option
3233

3334
## Cloning repositories
3435

35-
You should start forking the main (metacpan-grep-front-end repository)[https://github.com/metacpan/metacpan-grep-front-end]
36+
You should start forking the main [metacpan-grep-front-end repository](https://github.com/metacpan/metacpan-grep-front-end)
3637
You can then clone it locally (where you should replace ~YOUR-GITHUB-USERNAME~ by your github username )
3738

3839
> git clone [email protected]:~YOUR-GITHUB-USERNAME~/metacpan-grep-front-end.git
@@ -41,14 +42,14 @@ You can then clone it locally (where you should replace ~YOUR-GITHUB-USERNAME~ b
4142

4243
The frontend is not using a database, but a `git repo` itself as a backend.
4344
For this the production is using one huge git repository (~20 Go) indexing all the CPAN in one place !
44-
You can read more on this topic and find tools used to build this Git repo on the (GitHub Repos)[https://grep.metacpan.org/source-code] page.
45+
You can read more on this topic and find tools used to build this Git repo on the [GitHub Repos](https://grep.metacpan.org/source-code) page.
4546

4647
We do not want to use such a beast during development cycles, we only need a smaller version of it,
47-
you can simply clone it from this (metacpan-cpan-extracted-lite)[https://github.com/metacpan/metacpan-cpan-extracted-lite].
48+
you can simply clone it from this [metacpan-cpan-extracted-lite](https://github.com/metacpan/metacpan-cpan-extracted-lite).
4849
It should be clone at the same level of *metacpan-grep-front-end* itself (do not clone it inside the repository).
4950

5051
# clone at the same level of metacpan-grep-front-end
51-
# cd ..; # if you are in metacpan-grep-front-end repo
52+
# cd .. # if you are in metacpan-grep-front-end repo
5253
> git clone https://github.com/metacpan/metacpan-cpan-extracted-lite.git
5354

5455
# you should have something like this
@@ -59,7 +60,7 @@ It should be clone at the same level of *metacpan-grep-front-end* itself (do not
5960

6061
Now that you have the repository set, let's install all the perl modules required.
6162

62-
You can check your perl version. ( 5.022001 is the recommended one for now )
63+
You can check your perl version. ( 5.036000 is the recommended one for now )
6364

6465
perl -E 'say $]'
6566

@@ -120,7 +121,7 @@ From there you should be ready to
120121

121122
The project comes with a basic `.travis.yml` file.
122123

123-
If you want to start smoking your own branches, you simply need to link your [GitHub account](https://github.com)
124-
to your (Travis CI account)[https://travis-ci.org/], then enable the repository in your (Travis Dashboard)[https://travis-ci.org/dashboard]
124+
If you want to start smoking your own branches, you simply need to link your [GitHub account](https://github.com/)
125+
to your [Travis CI account](https://travis-ci.org/), then enable the repository in your [Travis Dashboard](https://travis-ci.org/dashboard)
125126

126127
Note that any Pull Request submitted via GitHub would trigger a Travis smoke without any settings required from your side :-)

config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ grepcpan:
7575
git: '/home/atoomic/bin/git'
7676
cache:
7777
directory: '~APPDIR~/var/tmp'
78-
version: '1.14'
78+
version: '2.02'
7979

cpanfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ requires "Git::Repository" => 0;
22
requires "Gazelle" => 0;
33
requires "Proc::ProcessTable" => 0;
44
requires "Digest::MD5" => 0;
5-
requires "YAML::Syck" => 0;
65
requires "Simple::Accessor" => "1.02";
76
requires "Time::HiRes" => 0;
87
requires "Test::Harness" => 0;
@@ -19,6 +18,9 @@ requires "FindBin" => 0;
1918
requires "Cpanel::JSON::XS" => 0;
2019
requires "JSON::MaybeXS" => 0;
2120
requires "HTTP::Entity::Parser" => 0;
21+
requires "Sereal" => 0;
22+
requires "Sereal::Encoder" => 0;
23+
requires "Sereal::Decoder" => 0;
2224

2325
recommends "YAML" => "0";
2426
recommends "URL::Encode::XS" => "0";
@@ -40,6 +42,9 @@ on "test" => sub {
4042
on 'develop' => sub {
4143
recommends 'Devel::NYTProf';
4244
recommends "Code::TidyAll::Git::Precommit";
45+
recommends "Code::TidyAll::Plugin::UniqueLines";
46+
recommends "Perl::Critic::Policy::Documentation::RequirePodLinksIncludeText";
4347
recommends "Perl::Critic::Nits";
48+
recommends "Perl::Critic::Policy::Community::Prototypes";
4449
};
4550

0 commit comments

Comments
 (0)