Skip to content

Commit 58d5cf0

Browse files
committed
Fixed power_set() vs power_set_iterator() POD bug.
1 parent c859afd commit 58d5cf0

File tree

15 files changed

+51
-22
lines changed

15 files changed

+51
-22
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
1.28 2014-02-24 Dave Oswald <davido@cpan.org>
2+
* Fix POD example showing power_set() method returning an iterator. Now it
3+
correctly demonstrates power_set_iterator() returning an iterator.
4+
(Response to report from vagabonding_electron on PerlMonks.)
5+
16
1.27 2013-12-31 Dave Oswald <davido@cpan.org>
27

38
* Merge pull request for typo fix in POD.

META.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Jarkko Hietaniemi <jhi@iki.fi>"
55
],
66
"dynamic_config" : 1,
7-
"generated_by" : "ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 2.133380",
7+
"generated_by" : "ExtUtils::MakeMaker version 6.86, CPAN::Meta::Converter version 2.133380",
88
"license" : [
99
"perl_5"
1010
],
@@ -19,6 +19,21 @@
1919
"inc"
2020
]
2121
},
22+
"prereqs" : {
23+
"build" : {
24+
"requires" : {
25+
"ExtUtils::MakeMaker" : "0"
26+
}
27+
},
28+
"configure" : {
29+
"requires" : {
30+
"ExtUtils::MakeMaker" : "0"
31+
}
32+
},
33+
"runtime" : {
34+
"requires" : {}
35+
}
36+
},
2237
"release_status" : "stable",
2338
"resources" : {
2439
"repository" : {
@@ -27,5 +42,5 @@
2742
"web" : "https://github.com/daoswald/Set-Scalar"
2843
}
2944
},
30-
"version" : "1.27"
45+
"version" : "1.28"
3146
}

META.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
abstract: unknown
33
author:
44
- 'Jarkko Hietaniemi <jhi@iki.fi>'
5-
build_requires: {}
5+
build_requires:
6+
ExtUtils::MakeMaker: 0
7+
configure_requires:
8+
ExtUtils::MakeMaker: 0
69
dynamic_config: 1
7-
generated_by: 'ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 2.133380'
10+
generated_by: 'ExtUtils::MakeMaker version 6.86, CPAN::Meta::Converter version 2.133380'
811
license: perl
912
meta-spec:
1013
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -14,6 +17,7 @@ no_index:
1417
directory:
1518
- t
1619
- inc
20+
requires: {}
1721
resources:
1822
repository: https://github.com/daoswald/Set-Scalar.git
19-
version: 1.27
23+
version: 1.28

Makefile.PL

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ WriteMakefile(
88
'NAME' => 'Set::Scalar',
99
'VERSION_FROM' => 'lib/Set/Scalar.pm',
1010
'dist' => { 'COMPRESS' => 'gzip' },
11-
PREREQ_PM =>
12-
{
13-
# 'Scalar::Util' => 0, # Not a requirement anymore.
14-
# 'Test::More' => 0,
15-
},
11+
PREREQ_PM => { },
1612
AUTHOR => 'Jarkko Hietaniemi <jhi@iki.fi>',
1713
META_MERGE => {
1814
'meta-spec' => { version => 2 },

README

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ Please see lib/Set/Scalar.pm for more information, once you have
77
installed this module, "perldoc Set::Scalar" should work.
88

99
--
10-
jhi@iki.fi
10+
jhi@iki.fi : Original author.
11+
davido@cpan.org : Current maintainer.

README.old

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
---- THE FOLLOWING DOCUMENT IS PRESERVED FOR ITS HISTORICAL VALUE ONLY. ----
2+
13
This is a long-waited-for (I hope) rewrite of the venerable Set::Scalar
24
module. The original 0.00x series culminated in 0.003 back in May 1996,
35
the 0.004 in October 1998 was just a minor update.

lib/Set/Scalar.pm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ use strict;
55

66
use vars qw($VERSION @ISA);
77

8-
$VERSION = '1.27';
9-
8+
$VERSION = '1.28';
109
@ISA = qw(Set::Scalar::Real Set::Scalar::Null Set::Scalar::Base);
1110

1211
use Set::Scalar::Base qw(_make_elements is_equal as_string_callback);
@@ -334,7 +333,7 @@ Even the empty set has a power set, of size one.
334333
If you don't want to construct the power set, you can construct an
335334
iterator and call it until it returns no more members:
336335
337-
my $iter = Set::Scalar->power_set($a);
336+
my $iter = Set::Scalar->power_set_iterator($a);
338337
my @m;
339338
do {
340339
@m = $iter->();

lib/Set/Scalar/Base.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ use strict;
55

66
require Exporter;
77

8-
use vars qw(@ISA @EXPORT_OK);
8+
use vars qw($VERSION @ISA @EXPORT_OK);
99

10+
$VERSION = '1.28';
1011
@ISA = qw(Exporter);
1112

1213
BEGIN {

lib/Set/Scalar/Null.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ package Set::Scalar::Null;
33
use strict;
44
local $^W = 1;
55

6-
use vars qw(@ISA);
6+
use vars qw($VERSION @ISA);
77

8+
$VERSION = '1.28';
89
@ISA = qw(Set::Scalar::Base Set::Scalar::Virtual);
910
use Set::Scalar::Virtual;
1011
use Set::Scalar::Base;

lib/Set/Scalar/Real.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ package Set::Scalar::Real;
33
use strict;
44
local $^W = 1;
55

6-
use vars qw(@ISA);
6+
use vars qw($VERSION @ISA);
77

8+
$VERSION = '1.28';
89
@ISA = qw(Set::Scalar::Base);
910

1011
use Set::Scalar::Base qw(_make_elements _binary_underload);

0 commit comments

Comments
 (0)