swagcov 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/swagcov.rb +2 -0
- data/lib/swagcov/core_ext/string.rb +17 -0
- data/lib/swagcov/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 326ccddda2c92236e815bc06b7a29f64b5b4a1d59a796f000c5c424b91b1f7cd
|
4
|
+
data.tar.gz: 557e962da1fb3232dd7ed29e05597a88771c9ce1f34fd35ec39b5140c901ed65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6c067ae52cb5e3609e0cab96e08b3e016438bbf7ed04281bd2ce024e2af0bd47e601aa3ba85dca61b1c973dca495431b635be1b24d8ef7dbf8fbcf7f5218d90
|
7
|
+
data.tar.gz: 8caf8633ab01634c0fa42a38edc44f07127f4bd984792144562b7274ba46f31a9e0af52828ce8221f678c61866e9b7c6ccbb5ffe14935c9b2b0e9f0668c7ef1b
|
data/lib/swagcov.rb
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class String
|
4
|
+
COLORS = {
|
5
|
+
red: 31,
|
6
|
+
green: 32,
|
7
|
+
yellow: 33,
|
8
|
+
blue: 34
|
9
|
+
}.freeze
|
10
|
+
|
11
|
+
# returns bold colors
|
12
|
+
COLORS.each_pair do |color, value|
|
13
|
+
define_method(color) do
|
14
|
+
"\e[1;#{value}m#{self}\e[0m"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/swagcov/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swagcov
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sarah Ridge
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- README.md
|
78
78
|
- Rakefile
|
79
79
|
- lib/swagcov.rb
|
80
|
+
- lib/swagcov/core_ext/string.rb
|
80
81
|
- lib/swagcov/coverage.rb
|
81
82
|
- lib/swagcov/railtie.rb
|
82
83
|
- lib/swagcov/version.rb
|