kyrylo / pry-theme

An easy way to customize Pry colors via theme files
zlib License
171 stars 14 forks source link

Colours rendering bug #33

Closed kyrylo closed 10 years ago

kyrylo commented 11 years ago

CodeRay 1.1.0 has introduced a new syntax for colours. We need to update Pry Theme and release a new version.

[1] pry(main)> 38;5;166;3$

From: /usr/lib/ruby/2.0.0/psych/core_ext.rb @ line 1:
Class name: Object
Number of monkeypatches: 7. Use the `-a` option to display all available monkeypatches
Number of lines: 18

38;5;173;1class 38;5;223;1Object
  38;5;173;1def 38;5;223self.38;5;228yaml_tag url
    38;5;223;1Psych.add_tag(url, 38;5;223self)
  38;5;173;1end

  38;5;108# FIXME: rename this to "to_yaml" when syck is removed

  38;5;108###
  38;5;108# call-seq: to_yaml(options = {})
  38;5;108#
  38;5;108# Convert an object to YAML.  See Psych.dump for more information on the
  38;5;108# available +options+.
  38;5;173;1def 38;5;228psych_to_yaml options = {}
    38;5;223;1Psych.dump 38;5;223self, options
  38;5;173;1end
  remove_method 38;5;174;1:to_yaml 38;5;173;1rescue 38;5;223nil
  38;5;173;1alias 38;5;174;1:to_yaml 38;5;174;1:psych_to_yaml
38;5;173;1end
kyrylo commented 10 years ago

Not fixed!

[2] pry(main)> pry-theme colors
Color model 256: 
  m0:mblack               m43:mturquoise            m86:maquamarine03         m129:mviolet04              m172:msiena                 m215:mpink_orange 
kyrylo commented 10 years ago

Well, it turned out this is specific to the colors subcommand. See https://github.com/kyrylo/pry-theme/issues/35.