🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

summon-refworks

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

summon-refworks

bundlerRubygems
Version
0.0.1
Version published
Maintainers
2
Created
Source

Summon::Refworks

This provides an extension to the summon gem to convert summon documents to refworks tagged format

It does this by implementing a single to_refworks method, which returns a hash containing refworks tags as keys corresponding to field values.

Basic Usage

require 'summon/refworks'
document = summon.search('shakespeare').first
document.to_refworks #=> {:RT => ['Play'], :T1 => ['Romeo and Juliet'], ...}

Advanced Usage

If you want to override the default mappings, you can do so by passing in a hash of options to the to_refworks method where the keys are the refworks tag names, and the values are either a value, a symbol or a proc

Mappings

Content type mappings can be found in lib/summon/refworks/RT.yaml

Other field mappings are found in lib/summon/refworks/mappings.rb

Installation

summon-refworks requires ruby > 1.9.2

Gemfile

gem 'summon-refworks'

standalone

gem install summon-refworks

FAQs

Package last updated on 24 May 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts