Fix pointed out by Gaal Yahas in irc
[gitmo/MooseX-Getopt.git] / ChangeLog
CommitLineData
5dac17c3 1Revision history for Perl extension MooseX-Getopt
eab3d04a 2
7a8392d6 3 * Fix argument parseing in process_argv when used with ConfigFromFile so that
4 -v can be used as expected, rather than being grabbed as --version
5
01fde86b 60.38 Fri 23 Dec 2011
449f0087 7 * More documentation on Getopt::Long settings and how they alter this role's
8 behaviour, in particular with regards to extra_argv capturing.
9 (Karen Etheridge)
10
d91beb80 110.37 Wed 30 Mar 2011
192ae1aa 12 * Fix missing dependency. (RT#67077)
13
9d0505a2 140.36 Tue 29 Mar 2011
6caf9a1a 15 * Fix dist.ini 'Prereq' into 'Prereqs' (Damien Krotkine)
0611312e 16 * MooseX::Getopt::GLD
17 - change it to a MooseX::Role::Parameterized, so that it accepts
18 'getopt_conf' parameter (Damien Krotkine)
6caf9a1a 19
76b13789 200.35 Wed 09 Feb 2011
21 * Fix missed change from Test::Exception to Test::Fatal
22
230.34 Tue 08 Feb 2011
aabf4179 24 * The test suite now uses Test::Fatal instead of Test::Exception. (Karen
25 Etheridge)
76b13789 26 * Move most of new_with_options logic into separate publically
27 accessible process_argv method, so that arg processing can be
28 done without actually creating object (Jonathan Swartz)
aabf4179 29
e00e1cd6 300.33 Thu 26 Aug 2010
31 * Remove Test::Most from newly added test (RT#60766)
32
8ab8681c 330.32 Thu 26 Aug 2010
416dcb2e 34 * Fix handling of Union types (RT#58417)
35
ff05e3fc 360.31 Wed 7 Jul 2010
37 * Fix issue causing tests to fail if MooseX::SimpleConfig isn't installed.
38
eab3d04a 390.30 Tue 6 Jul 2010
81b19ed8 40 * MooseX::Getopt::Basic
73038480 41 - uses attribute insertion order when determining the order in which
42 options are documented in the usage (e.g. in $obj->usage->text). (Karen
43 Etheridge)
44
45 * MooseX::Getopt::Basic
81b19ed8 46 - store the usage object to the usage attr (RT#58715)
47 - properly checks whether the *option* --help, --usage, or --? were used,
48 rather than the attribute 'help', 'usage' or '?' were set
49 * MooseX::Getopt::GLD
50 - add the usage attribute for storing the Getopt::Long::Descriptive::Usage
51 object, and the help attribute for storing --help, --usage and --? state
52 (RT#47865, RT#56783, RT#52474). (Karen Etheridge)
dfad990c 53
4a0ab663 54 * MooseX::Getopt::Basic
55 - Disable auto_help config in Getopt::Long, to avoid calling into
13f71373 56 pod2usage when the --help option is used while MooseX::ConfigFromFile
57 is in use (the intent is just to fetch the value of the configfile
81b19ed8 58 option) (RT#57683). (Karen Etheridge)
4a0ab663 59
2b4fef59 600.29 Tue. Jun 15 2010
61 * Fix repository metadata. Thanks Robert Bohne for noticing!
62
72a07e9d 630.28 Sat. Jun 05 2010
fff9a1f8 64 * MooseX::Getopt::Strict
65 - Make it work with Getopt attribute traits in addition to
66 attribute metaclasses.
67
72a07e9d 68 * Switch from Module::Install to Dist::Zilla.
69
fb873421 700.27 Sun. Feb 10 2010
2a7ee26b 71 * Makefile.PL:
fff9a1f8 72 - Bump dependency to Getopt::Long::Descriptive to 0.081 in an attempt to
73 avoid test failures.
2a7ee26b 74
ceeaabeb 75 * MooseX::Getopt::Dashes
fff9a1f8 76 - Document that using a cmd_flag argument to attributes can be used to
77 override the tr/_/-/ replacement ::Dashes does on attribute names
dfad990c 78
8b9e50c3 790.26 Thu. Dec 10 2009
4f214b88 80 * MooseX::Getopt::Basic
fff9a1f8 81 - Fix bug with attribute names containing upper case letters.
5c6054f9 82 * Test suite:
83 - Add t/106_no_ignore_case.t for testing the compatibility with
84 no_ignore_case
dfad990c 85
15460353 860.25 Thu. Nov 26 2009
2860acac 87 * MooseX::Getopt
88 - Split out the warnings and the exception from Getopt so that they can be
89 overridden.
07d7ec05 90 - Split out calling ->die on Getopt::Long::Descriptive::Usage so that
91 it can be overridden.
9b7f80a2 92 - Properly split roles as promised in 0.22.
dfad990c 93
6ac74298 940.24 Fri. Oct 23 2009
95 * MooseX::Getopt
96 - Fix bug with mixed case attribute names (MAROS)
dfad990c 97
5581bb1c 980.23 Fri. Oct 02 2009
99 * MooseX::Getopt
18fa5e72 100 - Allow the config file to return a code ref which is called to return
5581bb1c 101 the config file location (Gordon Irving)
dfad990c 102
38b93252 1030.22 Sat. Sept 05 2009
104 - Require GLD 0.077 for RT#49427 as some versions are broken
dfad990c 105
30ed85f7 106 * MooseX::Getopt
107 - Split into MooseX::Getopt::Basic (without the G::L::Descriptive support)
108 and MooseX::Getopt::GLD.
dfad990c 109
b38b654a 110 * Tests
111 - Ensure author tests get run when in author mode.
dfad990c 112
a0697e31 1130.21 Thu. Aug 27 2009
f7655c45 114 * MooseX::Getopt
115 - Enable and document the argv parameter to the constructor.
c2f6e86c 116 - Applied patches in RT43200 and RT43255
2c379a5c 117 - Applied patch from RT#47766 to not die if SimpleConfig cannot find the
118 default config file name.
dfad990c 119
a2664368 1200.20 Wed. July 9 2009
fe193b81 121 - fix MANIFEST.SKIP to avoid double-packaging
dfad990c 122
7ff9f8b5 1230.19 Wed. July 8 2009
124 * MooseX::Getopt
125 - Fix Getopt config spec for --configfile (t0m)
126 - Add support for --usage/--help/--? (drew@drewtaylor.com)
127 - Fix new_with_options to accept a hashref (DOUGDUDE@cpan.org)
dfad990c 128
7ff9f8b5 129 * Tests
130 - Fix warning from tests with new Moose (t0m)
131 - Fix tests on Win32 from RT#44909 (taro-nishino)
dfad990c 132
5f78e881 1330.18 Thu. April 9 2009
c2f6e86c 134 * MooseX::Getopt::Dashes
135 - New module, for converting undercores to dashes (ilmari)
dfad990c 136
091954ec 1370.17 Wed. April 8 2009
e2dcd71d 138 * MooseX::Getopt
c2f6e86c 139 - work with latest Moose (hdp)
dfad990c 140
fe193b81 141 ~ unify module version numbers with dist version (hdp)
dfad990c 142
98efc899 1430.16 Tue. February 17 2009
fe193b81 144 * t/
145 - run pod tests only if RELEASE_TESTING env var is set
dfad990c 146
a1171b4d 1470.15 Sat. July 26 2008
fe193b81 148 * MooseX::Getopt::OptionTypeMap
149 - Accept type constraint objects in the type mapping, not just names
dfad990c 150
630657d5 1510.14 Thurs. July 10, 2008
fe193b81 152 * MooseX::Getopt::OptionTypeMap
153 - Change 'Float' which doesn't exist to 'Num' which does (perigrin)
9acde841 154
fe193b81 155 * MooseX::Getopt
156 - removed the default handling with Getopt::Long::Descriptive
9acde841 157 as it would override constructor parameters and that was
fe193b81 158 bad. Besides, Moose will just DWIM on this anyway. (stevan)
159 - added test for it (stevan)
dfad990c 160
630657d5 161 * t/
9acde841 162 - fixed Getopt::Long::Descriptive specific tests to only run
630657d5 163 if Getopt::Long::Descriptive is there (stevan)
dfad990c 164
cd9a4a41 1650.13 Saturday, May 24, 2008
78a71ae5 166 * MooseX::Getopt
167 - Commandline option shouldn't be required in the
168 case that the given "required" attribute has
169 been loaded from config (MooseX::ConfigFromFile)
9f1ec7c0 170 - Support for MooseX::ConfigFromFile shouldn't require
e1bab572 171 that role be added at the same level as Getopt.
2814de27 172 - fixed miscapitalization of NoGetopt in the docs
173 - added links to the traits in the docs
9acde841 174
175 ~ converted to Module::Install instead of
cd9a4a41 176 Module::Build
dfad990c 177
adbe3e57 1780.12 Fri. March 14, 2008
179 ~~ updated copyright dates ~~
dfad990c 180
adbe3e57 181 - upped the Moose dependency to support
182 the custom metaclass traits
78a71ae5 183 - added Getopt::Long::Descriptive as an
adbe3e57 184 optional dependency
dfad990c 185
adbe3e57 186 * MooseX::Getopt
187 MooseX::Getopt::Meta::Attribute
188 MooseX::Getopt::Meta::Attribute::Trait
189 MooseX::Getopt::Meta::Attribute::NoGetopt
190 MooseX::Getopt::Meta::Attribute::Trait::NoGetopt
78a71ae5 191 - added support for custom metaclass traits
adbe3e57 192 - added tests for this
dfad990c 193
6c329add 1940.11 Sun. Jan. 27, 2008
195 * MooseX::Getopt
adbe3e57 196 - Commandline option shouldn't be required in the
197 case that the given "required" attribute has
198 a default or a builder method.
dfad990c 199
b4a79051 2000.10 Wed. Jan. 23, 2008
201 * MooseX::Getopt
adbe3e57 202 - Support default configfile attribute when
203 used with MooseX::ConfigFromFile-based roles
dfad990c 204
08ff0d65 2050.09 Tues. Jan. 22, 2008
206 * MooseX::Getopt
adbe3e57 207 - Use Getopt::Long::Descriptive if it's available
dfad990c 208
384fb15d 2090.08 Tues. Dec. 8, 2007
ee69c4ba 210 * MooseX::Getopt
211 - Added support for configfile loading via
212 MooseX::ConfigFromFile-based roles with
213 the -configfile commandline option.
dfad990c 214
29e4cc39 2150.07 Tues. Dec. 4, 2007
78a71ae5 216 * MooseX::Getopt::Meta::Attribute::NoGetopt
6ac028c4 217 - fixed miscapitalization of NoGetopt in the docs
dfad990c 218
f969917f 2190.06 Fri. Nov. 23, 2007
26be7f7e 220 * MooseX::Getopt
78a71ae5 221 - refactored &new_with_option some so that
222 this will work better with other Getopt
26be7f7e 223 modules (nuffin)
dfad990c 224
0f8232b6 225 + MooseX::Getopt::Strict
78a71ae5 226 - version of MooseX::Getopt which requires
227 you to specify which attributes you want
0f8232b6 228 processed explicity
229 - added tests for this
dfad990c 230
0f8232b6 231 + MooseX::Getopt::Meta::Attribute::NoGetopt
78a71ae5 232 - a custom meta-attribute which can be
233 used to specify that an attribute should
0f8232b6 234 not be processed
235 - added tests for this
dfad990c 236
db536e20 2370.05 Tues. July 3, 2007
2482085f 238 * MooseX::Getopt::OptionTypeMap
78a71ae5 239 - added some checks to make sure that the type
240 constraints are found properly and to give
db536e20 241 better diagnostics
dfad990c 242
1566a17b 2430.04 Tues. June 26, 2007
f63e6310 244 * MooseX::Getopt::OptionTypeMap
245 - Added support for subtype constraint inference
78a71ae5 246 from parent types
f63e6310 247 - added tests and docs for this
248 * MooseX::Getopt
249 - Added extra_argv attribute
250 - added tests and docs for this
f7695a83 251 - We now unmangle the Getopt::Long-mangled @ARGV
f63e6310 252 - added tests and docs for this
253 - We now throw an exception from new_with_options
254 if Getopt fails due to bad arguments.
255 - added tests and docs for this
dfad990c 256
3d9a716d 2570.03 Wed. May 2nd, 2007
258 ~ downgraded the Getopt version requirement
e2911e34 259 to 2.35 as per RT #26844
3d9a716d 260 ~ adding blblack to the authors list
dfad990c 261
78a71ae5 262 * MooseX::Getopt
263 - doc update to show simple way to of excluding
264 an attribute, but not having accessors with
3d9a716d 265 underscores (thanks to Zaba on #moose for this)
266 * MooseX::Getopt::Meta::Attribute
78a71ae5 267 - tightening up the type constraint in the
3d9a716d 268 cmd_alias coercion to only accept strings
dfad990c 269
1c3e6142 2700.02 Friday, April 6, 2007
1a8b4ed1 271 * MooseX::Getopt
272 - added the ARGV attribute (thanks to blblack)
273 - added tests and docs for this
dfad990c 274
1a8b4ed1 275 * MooseX::Getopt::Meta::Attribute
276 - added the cmd_aliases attribute (thanks to blblack)
277 - added tests and docs for this
78a71ae5 278 - added support for Moose 0.19's custom
1a8b4ed1 279 attribute metaclass alias registry.
280 - added tests and docs for this
dfad990c 281
d8a58354 2820.01 Friday, March 9, 2007
f63e6310 283 - module released to CPAN