Sha256: 9f22ae79e426bf9ca1c35ec0a10e937f1dfe2f440410357f2ffcb8422f4a6d7c
Contents?: true
Size: 761 Bytes
Versions: 4
Compression:
Stored size: 761 Bytes
Contents
require_relative 'gherkin/stream/parser_message_stream' module Gherkin DEFAULT_OPTIONS = { include_source: true, include_gherkin_document: true, include_pickles: true }.freeze def self.from_paths(paths, options={}) Stream::ParserMessageStream.new( paths, [], options ).messages end def self.from_sources(sources, options={}) Stream::ParserMessageStream.new( [], sources, options ).messages end def self.from_source(uri, data, options={}) from_sources([encode_source_message(uri, data)], options) end private def self.encode_source_message(uri, data) { uri: uri, data: data, mediaType: 'text/x.cucumber.gherkin+plain' } end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cucumber-gherkin-19.0.3 | lib/gherkin.rb |
cucumber-gherkin-19.0.2 | lib/gherkin.rb |
cucumber-gherkin-19.0.1 | lib/gherkin.rb |
cucumber-gherkin-19.0.0 | lib/gherkin.rb |