Skip to content

Commit

Permalink
refactoring to be an object; templates functional added;
Browse files Browse the repository at this point in the history
  • Loading branch information
z-eos committed Sep 16, 2020
1 parent 48f9b95 commit 80291f2
Show file tree
Hide file tree
Showing 6 changed files with 456 additions and 363 deletions.
11 changes: 6 additions & 5 deletions MYMETA.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"abstract" : "a stub module for gqmt",
"abstract" : "script to clean up old package versions from GitHub repository",
"author" : [
"Zeus Panchenko <[email protected]>"
],
Expand Down Expand Up @@ -33,12 +33,13 @@
"runtime" : {
"requires" : {
"Data::Printer" : "0.38",
"File::Basename" : "2.00",
"Getopt::Long" : "2.00",
"File::Basename" : "2.84",
"Getopt::Long" : "2.34",
"JSON" : "2.00",
"LWP::Protocol::https" : "6.00",
"LWP::UserAgent" : "6.00",
"Pod::Usage" : "1.00",
"Pod::Man" : "2.25",
"Pod::Usage" : "1.51",
"Time::Piece" : "1.05",
"perl" : "5.016001"
}
Expand All @@ -52,6 +53,6 @@
"web" : "https://github.com/z-eos/gqmt.git"
}
},
"version" : "0.8",
"version" : "v0.8.1",
"x_serialization_backend" : "JSON::PP version 4.04"
}
11 changes: 6 additions & 5 deletions MYMETA.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
abstract: 'a stub module for gqmt'
abstract: 'script to clean up old package versions from GitHub repository'
author:
- 'Zeus Panchenko <[email protected]>'
build_requires:
Expand All @@ -19,15 +19,16 @@ no_index:
- inc
requires:
Data::Printer: '0.38'
File::Basename: '2.00'
Getopt::Long: '2.00'
File::Basename: '2.84'
Getopt::Long: '2.34'
JSON: '2.00'
LWP::Protocol::https: '6.00'
LWP::UserAgent: '6.00'
Pod::Usage: '1.00'
Pod::Man: '2.25'
Pod::Usage: '1.51'
Time::Piece: '1.05'
perl: '5.016001'
resources:
repository: ssh://[email protected]:z-eos/gqmt.git
version: '0.8'
version: v0.8.1
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
65 changes: 36 additions & 29 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,35 +1,42 @@
# -*- mode: perl; eval: (follow-mode) -*-
use strict;
use warnings;
use Module::Metadata;
use ExtUtils::MakeMaker;

WriteMakefile(
NAME => 'App::gqmt',
ABSTRACT_FROM => 'lib/App/gqmt.pm',
VERSION_FROM => 'lib/App/gqmt.pm',
EXE_FILES => [ 'gqmt' ],
AUTHOR => 'Zeus Panchenko <[email protected]>',
LICENSE => 'gpl_3',
MIN_PERL_VERSION => 5.016001,
PREREQ_PM => {
'Data::Printer' => '0.38',
'File::Basename' => '2.00',
'Getopt::Long' => '2.00',
'JSON' => '2.00',
'LWP::UserAgent' => '6.00',
'LWP::Protocol::https' => '6.00',
'Pod::Usage' => '1.00',
'Time::Piece' => '1.05',
},
(eval { ExtUtils::MakeMaker->VERSION(6.46) } ? (META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
repository => {
type => 'git',
url => 'ssh://[email protected]:z-eos/gqmt.git',
web => 'https://github.com/z-eos/gqmt.git',
},
}})
: ()
),
);
NAME => 'App::gqmt',
ABSTRACT => 'script to clean up old package versions from GitHub repository',
VERSION_FROM => 'lib/App/gqmt.pm',
EXE_FILES => [ 'gqmt' ],
AUTHOR => 'Zeus Panchenko <[email protected]>',
LICENSE => 'gpl_3',
MIN_PERL_VERSION => 5.016001,
PREREQ_PM => {
'Data::Printer' => '0.38',
'File::Basename' => '2.84',
'Getopt::Long' => '2.34',
'JSON' => '2.00',
'HTTP::Request' => '6.25',
'LWP::UserAgent' => '6.00',
'LWP::Protocol::https' => '6.00',
'Pod::Man' => '2.25',
'Pod::Usage' => '1.51',
'Time::Piece' => '1.05',
},

(eval
{ ExtUtils::MakeMaker->VERSION(6.46) } ?
(META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
repository => {
type => 'git',
url => 'ssh://[email protected]:z-eos/gqmt.git',
web => 'https://github.com/z-eos/gqmt.git',
},
}})
: ()
),

);
4 changes: 2 additions & 2 deletions etc/gqmt.d/github-query-all-versions.tt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
query { repository(name: "[% repo %]", owner: "[% user %]") {
packages(first: [% num %] names: ["[% pkg %]"]) {
packages(first: [% pkg_num %] names: ["[% pkg_name %]"]) {
nodes {
id
name
versions(last: [% num %][% cursor %]) {
versions(last: [% vers_num %][% cursor %]) {
nodes {
id
version
Expand Down
Loading

0 comments on commit 80291f2

Please sign in to comment.