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.99 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.98 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.97 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.96 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.95 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.94 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.93 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.92 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.91 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.89 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.88 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.87 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.86 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.85 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.84 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.83 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.82 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.81 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.80 lib/bolognese/writers/citation_writer.rb
bolognese-0.9.79 lib/bolognese/writers/citation_writer.rb