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.78 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.77 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.76 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.75 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.74 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.73 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.72 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.71 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.70 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.69 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.68 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.67 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.66 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.65 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.64 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.63 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.62 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.61 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.60 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.59 lib/bolognese/writers/citation_writer.rb