Sha256: 163652e78c7a8b49a636bb637128fe69647c02eb51742e2ae9e99c5fcaa35b1f

Contents?: true

Size: 1.76 KB

Versions: 4

Compression:

Stored size: 1.76 KB

Contents

= Rfcbib

RFCBib is a Ruby gem that search and fetch RFC standards.
The standards scrape form https://www.rfc-editor.org/search/rfc_search.php

== Installation

Add this line to your application's Gemfile:

[source, ruby]
----
gem 'rfcbib'
----

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install rfcbib

== Usage

=== Search document

[source,ruby]
----
item = RfcBib::RfcBibliography.search 'RFC 8341'
=> #<IsoBibItem::BibliographicItem:0x007fdb0803a0f8>

# Return nil if document doesn't exist.
RfcBib::RfcBibliography.search '1111'
=> nil
----

=== Serialization

[source,ruby]
----
item.to_xml
=>"<bibitem id='RFC8341'>
  <title format='plain' language='en' script='Latn'>Network Configuration Access Control Model</title>
  <link type='src'>https://www.rfc-editor.org/info/rfc8341</link>
  <date type='published'>
    <on>2018</on>
  </date>
  <contributor>
    <role type='author'/>
    <person>
      <name>
        <completename language='en'>A. Bierman</completename>
      </name>
      <affilation>
        <organization>
          <name/>
          <abbreviation>IETF</abbreviation>
        </organization>
      </affilation>
    </person>
  </contributor>
  <contributor>
    <role type='author'/>
    <person>
      <name>
        <completename language='en'>M. Bjorklund</completename>
      </name>
      <affilation>
        <organization>
          <name/>
          <abbreviation>IETF</abbreviation>
        </organization>
      </affilation>
    </person>
  </contributor>
  <language>en</language>
</bibitem>"
----

== Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rfcbib.

== License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rfcbib-0.2.2 README.adoc
rfcbib-0.2.1 README.adoc
rfcbib-0.2.0 README.adoc
rfcbib-0.1.1 README.adoc