Sha256: 42f415ac78bc012da78f80f1361b72c75e025ef883c21722529c54cdb89abd1e

Contents?: true

Size: 375 Bytes

Versions: 71

Compression:

Stored size: 375 Bytes

Contents

module Bolognese
  module Writers
    module CitationWriter
      def citation
        params = { style: style, locale: locale }
        citation_url = "https://citation.crosscite.org/format?" + URI.encode_www_form(params)
        response = Maremma.post citation_url, content_type: 'json', data: citeproc
        response.body.fetch("data", nil)
      end
    end
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
bolognese-0.9.58 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.56 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.55 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.54 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.52 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.51 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.50 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.48 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.44 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.43 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.42 lib/bolognese/writers/citation_writer.rb