paint 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/paint/constants.rb +5 -5
- data/lib/paint/version.rb +1 -1
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: cc0c0a99ec42618baf8e8bad533afc8dab0a1989d6b24e6adbebc3fbaf05a719
         | 
| 4 | 
            +
              data.tar.gz: 21f050d8e09d07e8724897f20a484ce7d58546e60743eb4289a322d62633c9f1
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 8890ead156f4680bdd5ed2a4f1d9b85e9d30084065dacc7697be1542cc53e11819927b8a0d67b43dcc558bca97ff93475df87a1e2615a4f4bbf1e494a55d997a
         | 
| 7 | 
            +
              data.tar.gz: 11e155127fd7b12e7d3d1b1fc6313d5888b1515d2681caec233852fbba305f2c4aeeda42a4e6c093991f66442f17628e6688370ac68c001af7704b7f4e9d5714
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | @@ -104,7 +104,7 @@ Terminal colors/effects get created by [ANSI escape sequences](http://en.wikiped | |
| 104 104 | 
             
            * `:blue`
         | 
| 105 105 | 
             
            * `:magenta`
         | 
| 106 106 | 
             
            * `:cyan`
         | 
| 107 | 
            -
            * `:white`
         | 
| 107 | 
            +
            * `:white`, `:gray`
         | 
| 108 108 | 
             
            * (`:default`)
         | 
| 109 109 |  | 
| 110 110 | 
             
            When combined with the `:bright` (= `:bold`) effect, the color in the terminal emulator often differs a little bit, thus it is possible to represent 16 colors.
         | 
    
        data/lib/paint/constants.rb
    CHANGED
    
    | @@ -15,7 +15,7 @@ module Paint | |
| 15 15 | 
             
                :blue    => 4,
         | 
| 16 16 | 
             
                :magenta => 5,
         | 
| 17 17 | 
             
                :cyan    => 6,
         | 
| 18 | 
            -
                :white   => 7,
         | 
| 18 | 
            +
                :white   => 7, :gray => 7,
         | 
| 19 19 | 
             
                :default => 9,
         | 
| 20 20 | 
             
              }.freeze
         | 
| 21 21 |  | 
| @@ -27,7 +27,7 @@ module Paint | |
| 27 27 | 
             
                :blue    => 34,
         | 
| 28 28 | 
             
                :magenta => 35,
         | 
| 29 29 | 
             
                :cyan    => 36,
         | 
| 30 | 
            -
                :white   => 37,
         | 
| 30 | 
            +
                :white   => 37, :gray => 37,
         | 
| 31 31 | 
             
                :default => 39,
         | 
| 32 32 | 
             
              }.freeze
         | 
| 33 33 |  | 
| @@ -39,7 +39,7 @@ module Paint | |
| 39 39 | 
             
                :blue    => 44,
         | 
| 40 40 | 
             
                :magenta => 45,
         | 
| 41 41 | 
             
                :cyan    => 46,
         | 
| 42 | 
            -
                :white   => 47,
         | 
| 42 | 
            +
                :white   => 47, :gray => 47,
         | 
| 43 43 | 
             
                :default => 49,
         | 
| 44 44 | 
             
              }.freeze
         | 
| 45 45 |  | 
| @@ -84,7 +84,7 @@ module Paint | |
| 84 84 | 
             
                :blue    => [  0,   0, 238],
         | 
| 85 85 | 
             
                :magenta => [205,   0, 205],
         | 
| 86 86 | 
             
                :cyan    => [  0, 205, 205],
         | 
| 87 | 
            -
                :white   => [229, 229, 229],
         | 
| 87 | 
            +
                :white   => [229, 229, 229], :gray => [229, 229, 229],
         | 
| 88 88 | 
             
              }.each { |k, v| v.freeze }.freeze
         | 
| 89 89 |  | 
| 90 90 | 
             
              # A list of color names for standard bright ansi colors, needed for 16 color fallback mode
         | 
| @@ -97,6 +97,6 @@ module Paint | |
| 97 97 | 
             
                :blue    => [ 92,  92, 255],
         | 
| 98 98 | 
             
                :magenta => [255,   0, 255],
         | 
| 99 99 | 
             
                :cyan    => [  0, 255, 255],
         | 
| 100 | 
            -
                :white   => [255, 255, 255],
         | 
| 100 | 
            +
                :white   => [255, 255, 255], :gray => [255, 255, 255],
         | 
| 101 101 | 
             
              }.each { |k, v| v.freeze }.freeze
         | 
| 102 102 | 
             
            end
         | 
    
        data/lib/paint/version.rb
    CHANGED