Skip to content

Commit

Permalink
Build results of 7ef03aa (on master)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentfredric committed Aug 30, 2014
1 parent 18e39dc commit 1baaaea
Show file tree
Hide file tree
Showing 14 changed files with 94 additions and 29 deletions.
5 changes: 5 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Release history for Acme-Time-Constant

0.001003 2014-08-30T07:49:40Z
[00 Trivial]
- Improve test coverage.
- Pull timespace and subspace closer together.

0.001002 2014-08-30T00:35:43Z
[00 Trivial]
- no code changes
Expand Down
1 change: 1 addition & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ t/00-compile/lib_Acme_Time_Constant_pm.t
t/00-report-prereqs.dd
t/00-report-prereqs.t
t/basic.t
t/noargs.t
weaver.ini
xt/author/critic.t
xt/release/cpan-changes.t
Expand Down
23 changes: 14 additions & 9 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"provides" : {
"Acme::Time::Constant" : {
"file" : "lib/Acme/Time/Constant.pm",
"version" : "0.001002"
"version" : "0.001003"
}
},
"release_status" : "stable",
Expand All @@ -122,7 +122,7 @@
"web" : "https://github.com/kentnl/Acme-Time-Constant"
}
},
"version" : "0.001002",
"version" : "0.001003",
"x_BuiltWith" : {
"modules" : {
"CPAN::Meta" : "2.142060",
Expand Down Expand Up @@ -434,11 +434,6 @@
"name" : "Version",
"version" : "4.006"
},
{
"class" : "Pod::Weaver::Section::Region",
"name" : "prelude",
"version" : "4.006"
},
{
"class" : "Pod::Weaver::Section::Generic",
"name" : "SYNOPSIS",
Expand All @@ -454,11 +449,21 @@
"name" : "OVERVIEW",
"version" : "4.006"
},
{
"class" : "Pod::Weaver::Section::Region",
"name" : "abouttime",
"version" : "4.006"
},
{
"class" : "Pod::Weaver::Section::Collect",
"name" : "METHODS",
"version" : "4.006"
},
{
"class" : "Pod::Weaver::Section::Collect",
"name" : "FUNCTIONS",
"version" : "4.006"
},
{
"class" : "Pod::Weaver::Section::Collect",
"name" : "ATTRIBUTES",
Expand Down Expand Up @@ -626,7 +631,7 @@
"Dist::Zilla::Plugin::Git::Tag" : {
"branch" : null,
"signed" : 0,
"tag" : "0.001002-source",
"tag" : "0.001003-source",
"tag_format" : "%v-source",
"tag_message" : "v%v",
"time_zone" : "local"
Expand Down Expand Up @@ -697,7 +702,7 @@
"Dist::Zilla::Plugin::Git::Tag" : {
"branch" : "releases",
"signed" : 0,
"tag" : "0.001002",
"tag" : "0.001003",
"tag_format" : "%v",
"tag_message" : "v%v",
"time_zone" : "local"
Expand Down
20 changes: 12 additions & 8 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ name: Acme-Time-Constant
provides:
Acme::Time::Constant:
file: lib/Acme/Time/Constant.pm
version: '0.001002'
version: '0.001003'
requires:
Sub::Exporter::Progressive: '0'
Time::HiRes: '0'
Expand All @@ -31,7 +31,7 @@ resources:
bugtracker: https://github.com/kentnl/Acme-Time-Constant/issues
homepage: https://github.com/kentnl/Acme-Time-Constant
repository: https://github.com/kentnl/Acme-Time-Constant.git
version: '0.001002'
version: '0.001003'
x_BuiltWith:
modules:
CPAN::Meta: '2.142060'
Expand Down Expand Up @@ -287,10 +287,6 @@ x_Dist_Zilla:
class: Pod::Weaver::Section::Version
name: Version
version: '4.006'
-
class: Pod::Weaver::Section::Region
name: prelude
version: '4.006'
-
class: Pod::Weaver::Section::Generic
name: SYNOPSIS
Expand All @@ -303,10 +299,18 @@ x_Dist_Zilla:
class: Pod::Weaver::Section::Generic
name: OVERVIEW
version: '4.006'
-
class: Pod::Weaver::Section::Region
name: abouttime
version: '4.006'
-
class: Pod::Weaver::Section::Collect
name: METHODS
version: '4.006'
-
class: Pod::Weaver::Section::Collect
name: FUNCTIONS
version: '4.006'
-
class: Pod::Weaver::Section::Collect
name: ATTRIBUTES
Expand Down Expand Up @@ -433,7 +437,7 @@ x_Dist_Zilla:
Dist::Zilla::Plugin::Git::Tag:
branch: ~
signed: '0'
tag: 0.001002-source
tag: 0.001003-source
tag_format: '%v-source'
tag_message: v%v
time_zone: local
Expand Down Expand Up @@ -487,7 +491,7 @@ x_Dist_Zilla:
Dist::Zilla::Plugin::Git::Tag:
branch: releases
signed: '0'
tag: '0.001002'
tag: '0.001003'
tag_format: '%v'
tag_message: v%v
time_zone: local
Expand Down
2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ my %WriteMakefileArgs = (
"File::Spec" => 0,
"Test::More" => "0.89"
},
"VERSION" => "0.001002",
"VERSION" => "0.001003",
"test" => {
"TESTS" => "t/*.t t/00-compile/*.t"
}
Expand Down
7 changes: 6 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ NAME
Acme::Time::Constant - Run any code in constant time.

VERSION
version 0.001002
version 0.001003

SYNOPSIS
This code contains within it, the golden calf of computer science: The
Expand Down Expand Up @@ -57,6 +57,11 @@ BUGS
simply our devilish tactic to make the conspirators think we're
willingly playing for them. You know better. ;)

FUNCTIONS
"constant_time"
constant_time( $time, $callback );
constant_time( $callback ); # $time defaults to 1 second.

AUTHOR
Kent Fredric <kentnl@cpan.org>

Expand Down
16 changes: 12 additions & 4 deletions lib/Acme/Time/Constant.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use utf8;

package Acme::Time::Constant;

our $VERSION = '0.001002';
our $VERSION = '0.001003';

# ABSTRACT: Run any code in constant time.

Expand Down Expand Up @@ -33,6 +33,9 @@ BEGIN { $old_import = \&import }






sub constant_time {
my $nargs = ( my ( $time, $callback ) = @_ );

Expand Down Expand Up @@ -60,7 +63,7 @@ Acme::Time::Constant - Run any code in constant time.
=head1 VERSION
version 0.001002
version 0.001003
=head1 SYNOPSIS
Expand All @@ -82,8 +85,6 @@ This code contains within it, the golden calf of computer science: The ability t
print $timestamp - time; # 2 seconds
=for Pod::Coverage constant_time
=head1 BUGS
=head4 General relativity does not hold in the context of this code.
Expand Down Expand Up @@ -115,6 +116,13 @@ knowledge of.
One may note that this module depends on C<Time::HiRes>, but this is simply our devilish tactic to make the conspirators
think we're willingly playing for them. You know better. ;)
=head1 FUNCTIONS
=head2 C<constant_time>
constant_time( $time, $callback );
constant_time( $callback ); # $time defaults to 1 second.
=head1 AUTHOR
Kent Fredric <kentnl@cpan.org>
Expand Down
4 changes: 3 additions & 1 deletion misc/Changes.deps
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
This file contains changes in REQUIRED dependencies for standard CPAN phases (configure/build/runtime/test)

0.001002
0.001003

0.001002 2014-08-30T00:35:43Z

0.001001 2014-08-15T21:11:15Z

4 changes: 3 additions & 1 deletion misc/Changes.deps.all
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
This file contains ALL changes in dependencies in both REQUIRED / OPTIONAL dependencies for all phases (configure/build/runtime/test/develop)

0.001002
0.001003

0.001002 2014-08-30T00:35:43Z
[Added / develop requires]
- Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes 0.001001

Expand Down
4 changes: 3 additions & 1 deletion misc/Changes.deps.dev
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
This file contains changes to DEVELOPMENT dependencies only ( both REQUIRED and OPTIONAL )

0.001002
0.001003

0.001002 2014-08-30T00:35:43Z
[Added / develop requires]
- Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes 0.001001

Expand Down
4 changes: 3 additions & 1 deletion misc/Changes.deps.opt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
This file contains changes in OPTIONAL dependencies for standard CPAN phases (configure/build/runtime/test)

0.001002
0.001003

0.001002 2014-08-30T00:35:43Z

0.001001 2014-08-15T21:11:15Z

2 changes: 1 addition & 1 deletion t/basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ $timestamp = time;
constant_time(
1 => sub {
my $j;
for my $i ( 0 .. 50_000_000 ) {
for my $i ( 0 .. 2_000_000 ) {
$j += $i;
}
}
Expand Down
25 changes: 25 additions & 0 deletions t/noargs.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
use strict;
use warnings;

use Test::More;

# FILENAME: basic.t
# CREATED: 08/04/14 15:40:32 by Kent Fredric (kentnl) <kentfredric@gmail.com>
# ABSTRACT: Test the continuum

use Acme::Time::Constant qw( constant_time );

my $timestamp = time;
constant_time(
sub {
my $j;
for my $i ( 0 .. 1 ) {
$j += $i;
}
}
);
my $delta = time - $timestamp;
cmp_ok( $delta, '>', 0.5, 'Constant time fixed at at least 0.5 second pass 1' );
cmp_ok( $delta, '<', 1.5, 'Constant time fixed at at most 1.5 second pass 1' );

done_testing;
6 changes: 5 additions & 1 deletion weaver.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,21 @@
[Name]
[Version]

[Region / prelude]

[Generic / SYNOPSIS]
[Generic / DESCRIPTION]
[Generic / OVERVIEW]

[Region / abouttime]

;[Generic / METHODS]
;[Collect / METHODS]
[Collect / METHODS]
command = method

[Collect / FUNCTIONS]
command = function


[Collect / ATTRIBUTES]
command = attr
Expand Down

0 comments on commit 1baaaea

Please sign in to comment.