Sha256: 771f361e263495b6744a7b99358c031bca86d150380598d6ba6eee53ff08062a
Contents?: true
Size: 868 Bytes
Versions: 5
Compression:
Stored size: 868 Bytes
Contents
require '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) Cucumber::Messages::Source.new({ uri: uri, data: data, media: Cucumber::Messages::Media.new({ encoding: :UTF8, content_type: 'text/x.cucumber.gherkin+plain' }) }) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
gherkin-9.0.0 | lib/gherkin.rb |
gherkin-8.2.1 | lib/gherkin.rb |
gherkin-8.2.0 | lib/gherkin.rb |
gherkin-8.1.1 | lib/gherkin.rb |
gherkin-8.0.0 | lib/gherkin.rb |