ruby-reforge 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab4619d1d1f5500df76531c2c3483b1ac972c2b513e5a2ac9017a271219ad605
4
- data.tar.gz: a4c5435975e097dd6e3241ddc4122fb6e9830bd55e9101a987edbb6f3b392a37
3
+ metadata.gz: 3e2a13f530eb5dbdd0f84893005c37a6506764f52ca82a447598b63d3996cc9a
4
+ data.tar.gz: 35c589c7120e8040d0e391e0a1d3fc881bc67b204ff7db95729a7a7ebb37e8ba
5
5
  SHA512:
6
- metadata.gz: 106c1ed7177fc8010264651a160cf50434f5768762a6cd1ed1536c373464e1f8f32950f0e5d815fcf0b393070a48719ba3bca1e84ddf0b98c84f200676ea32a4
7
- data.tar.gz: cf2e590eaa44a0d37aff8081d1dc32a338c817be793a88c6c355db628752288e9a2ede674d924270c1e683a6eaf0fd47f8d74be5a52646c4f974c94c439847d1
6
+ metadata.gz: 2d79e7c32ada115ab284f0c6338c42e211bc0964ac022d99617f2187868dfc2872acd0aa66444e95b126fb8c392f9ce1df524f8b5d3d59a1695e96b00b2991bc
7
+ data.tar.gz: 424d6d75b2db23bfb7035d522c058fc64c7a409011c0bfc3cbaf702a6d8e7c24a71cd01bda7ebcdc125bc41b3c5a52314c2bb669668668e49bfd69511c00be60
data/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.1.1] - 2024-01-XX
9
+
10
+ ### Fixed
11
+ - Fixed Rainbow color error when outputting messages without colors (nil color handling)
12
+ - Fixed reporter and rewriter to properly handle empty color parameters
13
+
8
14
  ## [0.1.0] - 2024-01-XX
9
15
 
10
16
  ### Added
@@ -75,7 +75,13 @@ module Ruby
75
75
  private
76
76
 
77
77
  def say(message, color = nil)
78
- puts Rainbow(message).color(color)
78
+ Rainbow.enabled = true
79
+ if color && !color.to_s.empty?
80
+ output = Rainbow(message).color(color)
81
+ else
82
+ output = message
83
+ end
84
+ puts output
79
85
  end
80
86
  end
81
87
  end
@@ -88,7 +88,13 @@ module Ruby
88
88
 
89
89
  def say(message, color = nil)
90
90
  require "rainbow"
91
- puts Rainbow(message).color(color)
91
+ Rainbow.enabled = true
92
+ if color && !color.to_s.empty?
93
+ output = Rainbow(message).color(color)
94
+ else
95
+ output = message
96
+ end
97
+ puts output
92
98
  end
93
99
  end
94
100
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Ruby
4
4
  module Reforge
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-reforge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Afshin Amini