[Bug 688317] New: Review Request - rubygem-loquacious - Descriptive configuration files for Ruby written in Ruby

bugzilla at redhat.com bugzilla at redhat.com
Wed Mar 16 19:35:50 UTC 2011


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: Review Request - rubygem-loquacious -  Descriptive configuration files for Ruby written in Ruby

https://bugzilla.redhat.com/show_bug.cgi?id=688317

           Summary: Review Request - rubygem-loquacious -  Descriptive
                    configuration files for Ruby written in Ruby
           Product: Fedora
           Version: rawhide
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: medium
          Priority: unspecified
         Component: Package Review
        AssignedTo: nobody at fedoraproject.org
        ReportedBy: clalance at redhat.com
         QAContact: extras-qa at fedoraproject.org
                CC: notting at redhat.com, fedora-package-review at redhat.com
   Estimated Hours: 0.0
    Classification: Fedora


Spec URL:
http://people.redhat.com/clalance/rubygem-loquacious/rubygem-loquacious.spec
SRPM URL:
http://people.redhat.com/clalance/rubygem-loquacious/rubygem-loquacious-1.7.1-1.fc14.src.rpm
Description: Descriptive configuration files for Ruby written in Ruby.
Loquacious provides a very open configuration system written in ruby and
descriptions for each configuration attribute. The attributes and descriptions
can be iterated over allowing for helpful information about those attributes
to
be displayed to the user.
In the simple case we have a file something like
Loquacious.configuration_for('app') {
name 'value', :desc => "Defines the name"
foo  'bar',   :desc => "FooBar"
id   42,      :desc => "Ara T. Howard"
}
Which can be loaded via the standard Ruby loading mechanisms
Kernel.load 'config/app.rb'
The attributes and their descriptions can be printed by using a Help object
help = Loquacious.help_for('app')
help.show :values => true        # show the values for the attributes, too
Descriptions are optional, and configurations can be nested arbitrarily deep.
Loquacious.configuration_for('nested') {
desc "The outermost level"
a {
desc "One more level in"
b {
desc "Finally, a real value"
c 'value'
}
}
}
config = Loquacious.configuration_for('nested')
p config.a.b.c  #=> "value"
And as you can see, descriptions can either be given inline after the value or
they can appear above the attribute and value on their own line.

I ran rpmlint against the package:
[clalance at localhost SPECS]$ rpmlint rubygem-loquacious.spec
0 packages and 1 specfiles checked; 0 errors, 0 warnings.
[clalance at localhost SPECS]$ rpmlint
../SRPMS/rubygem-loquacious-1.7.1-1.fc14.src.rpm 
rubygem-loquacious.src: W: spelling-error %description -l en_US config -> con
fig, con-fig, configure
rubygem-loquacious.src: W: spelling-error %description -l en_US rb -> br, Rb, r
1 packages and 0 specfiles checked; 0 errors, 2 warnings.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the package-review mailing list