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.10.21 lib/bolognese/writers/citation_writer.rb
bolognese-0.10.20 lib/bolognese/writers/citation_writer.rb
bolognese-0.10.19 lib/bolognese/writers/citation_writer.rb
bolognese-0.10.18 lib/bolognese/writers/citation_writer.rb
bolognese-0.10.17 lib/bolognese/writers/citation_writer.rb
bolognese-0.10.16 lib/bolognese/writers/citation_writer.rb
bolognese-0.10.15 lib/bolognese/writers/citation_writer.rb
bolognese-0.10.14 lib/bolognese/writers/citation_writer.rb
bolognese-0.10.13 lib/bolognese/writers/citation_writer.rb
bolognese-0.10.11 lib/bolognese/writers/citation_writer.rb
bolognese-0.10.10 lib/bolognese/writers/citation_writer.rb
bolognese-0.10.9 lib/bolognese/writers/citation_writer.rb
bolognese-0.10.8 lib/bolognese/writers/citation_writer.rb
bolognese-0.10.7 lib/bolognese/writers/citation_writer.rb
bolognese-0.10.6 lib/bolognese/writers/citation_writer.rb
bolognese-0.10.5 lib/bolognese/writers/citation_writer.rb
bolognese-0.10.4 lib/bolognese/writers/citation_writer.rb
bolognese-0.10.3 lib/bolognese/writers/citation_writer.rb
bolognese-0.10.2 lib/bolognese/writers/citation_writer.rb
bolognese-0.10 lib/bolognese/writers/citation_writer.rb