New upstream version 2.050
Dominique Dumont
7 years ago
|
0 |
2.050 2016-09-17
|
|
1 |
|
|
2 |
Bug fix:
|
|
3 |
* model generator: fix call to load (gh #2).
|
|
4 |
(Thanks Slaven Rezić)
|
|
5 |
* fix doc typo in LCDd.conf
|
|
6 |
|
0 | 7 |
2.049 2016-07-15
|
1 | 8 |
|
2 | 9 |
* merge gen_LCDd_model in lcdconf2model (gh #1)
|
0 | |
# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.005.
|
|
0 |
# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.007.
|
1 | 1 |
Build.PL
|
2 | 2 |
CONTRIBUTING.md
|
3 | 3 |
Changes
|
3 | 3 |
"Dominique Dumont"
|
4 | 4 |
],
|
5 | 5 |
"dynamic_config" : 0,
|
6 | |
"generated_by" : "Dist::Zilla version 6.005, CPAN::Meta::Converter version 2.150005",
|
|
6 |
"generated_by" : "Dist::Zilla version 6.007, CPAN::Meta::Converter version 2.150010",
|
7 | 7 |
"license" : [
|
8 | 8 |
"lgpl_2_1"
|
9 | 9 |
],
|
|
52 | 52 |
"web" : "http://github.com/dod38fr/config-model-lcdproc"
|
53 | 53 |
}
|
54 | 54 |
},
|
55 | |
"version" : "2.049"
|
|
55 |
"version" : "2.050",
|
|
56 |
"x_serialization_backend" : "Cpanel::JSON::XS version 3.0217"
|
56 | 57 |
}
|
57 | 58 |
|
11 | 11 |
Module::Build: '0.34'
|
12 | 12 |
Path::Tiny: '0'
|
13 | 13 |
dynamic_config: 0
|
14 | |
generated_by: 'Dist::Zilla version 6.005, CPAN::Meta::Converter version 2.150005'
|
|
14 |
generated_by: 'Dist::Zilla version 6.007, CPAN::Meta::Converter version 2.150010'
|
15 | 15 |
license: lgpl
|
16 | 16 |
meta-spec:
|
17 | 17 |
url: http://module-build.sourceforge.net/META-spec-v1.4.html
|
|
24 | 24 |
bugtracker: https://github.com/dod38fr/config-model-lcdproc/issues
|
25 | 25 |
homepage: https://github.com/dod38fr/config-model/wiki
|
26 | 26 |
repository: git://github.com/dod38fr/config-model-lcdproc.git
|
27 | |
version: '2.049'
|
|
27 |
version: '2.050'
|
|
28 |
x_serialization_backend: 'YAML::Tiny version 1.69'
|
530 | 530 |
## Hitachi HD44780 driver ##
|
531 | 531 |
[hd44780]
|
532 | 532 |
|
533 | |
# Select what type of connection. See documentation for availabe types.
|
|
533 |
# Select what type of connection. See documentation for available types.
|
534 | 534 |
ConnectionType=4bit
|
535 | 535 |
|
536 | 536 |
# I/O address of the LPT port. Usual values are: 0x278, 0x378 and 0x3BC.
|
7 | 7 |
# The GNU Lesser General Public License, Version 2.1, February 1999
|
8 | 8 |
#
|
9 | 9 |
package Config::Model::LcdProc;
|
10 | |
$Config::Model::LcdProc::VERSION = '2.049';
|
|
10 |
$Config::Model::LcdProc::VERSION = '2.050';
|
11 | 11 |
use 5.10.1;
|
12 | 12 |
|
13 | 13 |
use Config::Model 2.043;
|
|
28 | 28 |
|
29 | 29 |
=head1 VERSION
|
30 | 30 |
|
31 | |
version 2.049
|
|
31 |
version 2.050
|
32 | 32 |
|
33 | 33 |
=head1 SYNOPSIS
|
34 | 34 |
|
50 | 50 |
'ConnectionType',
|
51 | 51 |
{
|
52 | 52 |
'default' => '4bit',
|
53 | |
'description' => 'Select what type of connection. See documentation for availabe types.',
|
|
53 |
'description' => 'Select what type of connection. See documentation for available types.',
|
54 | 54 |
'type' => 'leaf',
|
55 | 55 |
'value_type' => 'uniline'
|
56 | 56 |
},
|
31 | 31 |
|
32 | 32 |
=head2 ConnectionType
|
33 | 33 |
|
34 | |
Select what type of connection. See documentation for availabe types. I<< Optional. Type uniline. default: '4bit'. >>
|
|
34 |
Select what type of connection. See documentation for available types. I<< Optional. Type uniline. default: '4bit'. >>
|
35 | 35 |
|
36 | 36 |
=head2 Contrast
|
37 | 37 |
|
407 | 407 |
if (my $legal = delete $info{legal} || '') {
|
408 | 408 |
if ( $legal =~ /^([\d.]*)-([\d.]*)$/ or $legal =~ /^>([\d.]+)$/ ) {
|
409 | 409 |
my $bounds = '';
|
410 | |
$bounds.= "min=$1 " if defined $1;
|
411 | |
$bounds.= "max=$2 " if defined $2;
|
|
410 |
$bounds.= "min=$1 " if defined $1 and length($1);
|
|
411 |
$bounds.= "max=$2 " if defined $2 and length($2);
|
412 | 412 |
my $vt = "value_type=";
|
413 | 413 |
$vt .= $bounds =~ m/\./ ? 'number ' : 'integer ';
|
414 | 414 |
push @model, $vt.$bounds;
|
|
423 | 423 |
push @model, "value_type=enum choice=$1"
|
424 | 424 |
}
|
425 | 425 |
else{
|
|
426 |
# push back $legal info if no model snippet could be extracted
|
426 | 427 |
say "note: unhandled legal spec: '$legal'. Sending it back to doc";
|
427 | 428 |
push @model, "value_type=$value_type ";
|
428 | 429 |
$$info_r .= "legal: $legal "
|
429 | 430 |
}
|
430 | |
# push back $legal info if no model snippet could be extracted
|
431 | 431 |
}
|
432 | 432 |
else {
|
433 | 433 |
push @model, "value_type=$value_type ";
|