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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8ca8b18b79e43d8505546bbbeda09e605a92b4507cc8bff45d1148dd49f6c0a
4
- data.tar.gz: a591fa2e21329722d252d0d50351d516b5d65da002c2e59988c7f54873123dee
3
+ metadata.gz: 326ccddda2c92236e815bc06b7a29f64b5b4a1d59a796f000c5c424b91b1f7cd
4
+ data.tar.gz: 557e962da1fb3232dd7ed29e05597a88771c9ce1f34fd35ec39b5140c901ed65
5
5
  SHA512:
6
- metadata.gz: b8bb3ed0a6e545ea9069eb7fccc09e1c7a807cb09bec232866443033795724a8047236e849e4d44ed36aafaf9961121ae1e346782dc45007d24cbffcad23f08f
7
- data.tar.gz: b9fb89b9b170ef81df5af69a7838942ff461d835aa5ec5b5f2d7f23dfc74c3d02a02d34e50ae7039f2fa1342f9a0c23e0fdf2db8f2f2a72ff7dd7c4dc8d530b5
6
+ metadata.gz: f6c067ae52cb5e3609e0cab96e08b3e016438bbf7ed04281bd2ce024e2af0bd47e601aa3ba85dca61b1c973dca495431b635be1b24d8ef7dbf8fbcf7f5218d90
7
+ data.tar.gz: 8caf8633ab01634c0fa42a38edc44f07127f4bd984792144562b7274ba46f31a9e0af52828ce8221f678c61866e9b7c6ccbb5ffe14935c9b2b0e9f0668c7ef1b
data/lib/swagcov.rb CHANGED
@@ -7,5 +7,7 @@ if defined?(Rails)
7
7
  require "swagcov/coverage"
8
8
  end
9
9
 
10
+ require "swagcov/core_ext/string"
11
+
10
12
  module Swagcov
11
13
  end
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Swagcov
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
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.0
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-20 00:00:00.000000000 Z
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