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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/ruby/reforge/reporter.rb +7 -1
- data/lib/ruby/reforge/rewriter.rb +7 -1
- data/lib/ruby/reforge/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: 3e2a13f530eb5dbdd0f84893005c37a6506764f52ca82a447598b63d3996cc9a
|
|
4
|
+
data.tar.gz: 35c589c7120e8040d0e391e0a1d3fc881bc67b204ff7db95729a7a7ebb37e8ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|
-
|
|
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
|
data/lib/ruby/reforge/version.rb
CHANGED