Sha256: 407592a5046c380629c3ab434010fee432782e2344c800a598d6489f06d7a2d8

Contents?: true

Size: 502 Bytes

Versions: 18

Compression:

Stored size: 502 Bytes

Contents

# frozen_string_literal: true

require 'cucumber/formatter/io'
require 'cucumber/formatter/message_builder'

module Cucumber
  module Formatter
    # The formatter used for <tt>--format message</tt>
    class Message < MessageBuilder
      include Io

      def initialize(config)
        @io = ensure_io(config.out_stream, config.error_stream)
        super(config)
      end

      def output_envelope(envelope)
        @io.write(envelope.to_json)
        @io.write("\n")
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
cucumber-9.2.0 lib/cucumber/formatter/message.rb
cucumber-9.1.2 lib/cucumber/formatter/message.rb
cucumber-9.1.1 lib/cucumber/formatter/message.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/cucumber-9.1.0/lib/cucumber/formatter/message.rb
cucumber-9.1.0 lib/cucumber/formatter/message.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/cucumber-9.0.2/lib/cucumber/formatter/message.rb
cucumber-9.0.2 lib/cucumber/formatter/message.rb
cucumber-9.0.1 lib/cucumber/formatter/message.rb
cucumber-9.0.0 lib/cucumber/formatter/message.rb
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/formatter/message.rb
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/formatter/message.rb
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/formatter/message.rb
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/formatter/message.rb
cucumber-8.0.0 lib/cucumber/formatter/message.rb
cucumber-8.0.0.rc.1 lib/cucumber/formatter/message.rb
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/cucumber-7.1.0/lib/cucumber/formatter/message.rb
cucumber-7.1.0 lib/cucumber/formatter/message.rb
cucumber-7.0.0 lib/cucumber/formatter/message.rb