Project

General

Profile

« Previous | Next » 

Revision 16403f41

Added by hasumikin (hitoshi hasumi) about 2 years ago

[ruby/reline] Introduce a new class Reline::Face to configure
character attributes
(https://github.com/ruby/reline/pull/552)

  • Reine::Face

  • fix test_yamatanooroti

  • Define singleton methods to make accessors to attributes of a face

  • s/display/foreground/

  • s/default/default_style/ && s/normal_line/default/ && s/enhanced_line/enhanced/

  • fix typo

  • FaceConfig.new now takes keyword arguments

  • Update lib/reline/face.rb

Co-authored-by: Stan Lo

  • Update test/reline/test_face.rb

Co-authored-by: Stan Lo

ref https://github.com/ruby/reline/pull/552#discussion_r1367722247

  • Change to Hash-accessor style
  • Reline::Face[:completion_dialog].enhanced ->
    Reline::Face[:completion_dialog][:enhanced]
  • Reline::Face.configs shows all defined values

Co-authored-by: Stan Lo

  • Update test/reline/test_face.rb

Co-authored-by: Stan Lo

  • Add methods: load_initial_config and reset_to_initial_config. And teardown in tests

  • omission in amending "style: :default" to "style: :reset"

  • refs https://github.com/ruby/reline/issues/598

  • Fix link

  • amend method name

  • Update lib/reline/face.rb

Co-authored-by: ima1zumi


https://github.com/ruby/reline/commit/fdc1d3b1e5

Co-authored-by: Stan Lo
Co-authored-by: ima1zumi