Project

biburi

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Find the BibTeX information when your citation has an identifier
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3.5
~> 0.7.0
~> 10.1
~> 2.14.1

Runtime

~> 3.1.1
~> 1.6.0
 Project Readme

BibURI

Gem Version Continuous Integration Status Coverage Status CodeClimate Dependency Status

This is a gem to extract BibTeX information for URIs which refer to bibliographic resources, such as DOIs, Biodiversity Heritage Library links, and others.

Currently, BibURI supports the following types of data:

  • DOIs (via CrossRef)
  • Any web page containing one or more COinS spans.

Installation

Add this line to your application's Gemfile:

gem 'biburi'

And then execute:

$ bundle

Or install it yourself as:

$ gem install biburi

Usage

BibURI mainly works out of a single method:

require 'biburi'

entry = BibURI::lookup('doi:10.1038/171737a0')
# => [#<BibTeX::Entry identifiers = info:doi/http://dx.doi.org/10.1038/171737a0 http://dx.doi.org/10.1038/171737a0, journal = Nature, pages = 737--738, author = WATSON, J. D. and CRICK, F. H. C., date = 1953, year = 1953, title = Molecular Structure of Nucleic Acids: A Structure for Deoxyribose Nucleic Acid, volume = 171, number = 4356, url = http://dx.doi.org/10.1038/171737a0, doi = 10.1038/171737a0>]

Full documentation is available online at RubyDoc.org.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new pull request

Release

Use Git Flow to manage releases, and rake build to build a gem.