simplecov-single_file 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7841a1cb3ec63357c557d54124e69a446704849e8190167b42d58f7b5b989fd3
4
+ data.tar.gz: fc7ec61d3979e281ff6979e2e497c6520ac03976c734407065b21811625fc02d
5
+ SHA512:
6
+ metadata.gz: c37cfb1f1ba86f5f84b242c39fe8a2db630bdc4265281b782e22d29b9ca7e51fa2b1d239f9315541f20d9b3c6676be93610cce8d6c8828160b5bc57476f246f5
7
+ data.tar.gz: 2426e00edd619d9ce8dcb81b8c65bcbfbef5cdc9e3e06aa08f701380380b5a1d7da71766ab9d6a743bcf84c454ca73e31bdce3a3facf6d4da41a90b823c0e49a
data/.rubocop.yml ADDED
@@ -0,0 +1,19 @@
1
+ AllCops:
2
+ SuggestExtensions: false
3
+ NewCops: enable
4
+ TargetRubyVersion: 2.7
5
+
6
+ Layout/LineLength:
7
+ Max: 120
8
+
9
+ Style/Documentation:
10
+ Enabled: false
11
+ Style/RegexpLiteral:
12
+ EnforcedStyle: percent_r
13
+ Style/FormatString:
14
+ EnforcedStyle: percent
15
+
16
+ Metrics/AbcSize:
17
+ Max: 35
18
+ Metrics/MethodLength:
19
+ Max: 20
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.1.0
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2022-02-17
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at taras.shpachenko@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,57 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ simplecov-single_file (0.1.0)
5
+ simplecov (~> 0.2)
6
+ terminal-table (~> 3.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ ast (2.4.2)
12
+ docile (1.4.0)
13
+ parallel (1.21.0)
14
+ parser (3.1.0.0)
15
+ ast (~> 2.4.1)
16
+ power_assert (2.0.1)
17
+ rainbow (3.1.1)
18
+ rake (13.0.6)
19
+ regexp_parser (2.2.1)
20
+ rexml (3.2.5)
21
+ rubocop (1.25.1)
22
+ parallel (~> 1.10)
23
+ parser (>= 3.1.0.0)
24
+ rainbow (>= 2.2.2, < 4.0)
25
+ regexp_parser (>= 1.8, < 3.0)
26
+ rexml
27
+ rubocop-ast (>= 1.15.1, < 2.0)
28
+ ruby-progressbar (~> 1.7)
29
+ unicode-display_width (>= 1.4.0, < 3.0)
30
+ rubocop-ast (1.15.2)
31
+ parser (>= 3.0.1.1)
32
+ ruby-progressbar (1.11.0)
33
+ simplecov (0.21.2)
34
+ docile (~> 1.1)
35
+ simplecov-html (~> 0.11)
36
+ simplecov_json_formatter (~> 0.1)
37
+ simplecov-html (0.12.3)
38
+ simplecov_json_formatter (0.1.4)
39
+ terminal-table (3.0.2)
40
+ unicode-display_width (>= 1.1.1, < 3)
41
+ test-unit (3.5.3)
42
+ power_assert
43
+ unicode-display_width (2.1.0)
44
+
45
+ PLATFORMS
46
+ x86_64-darwin-20
47
+ x86_64-darwin-21
48
+ x86_64-linux
49
+
50
+ DEPENDENCIES
51
+ rake
52
+ rubocop
53
+ simplecov-single_file!
54
+ test-unit
55
+
56
+ BUNDLED WITH
57
+ 2.2.33
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Taras Shpachenko
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,126 @@
1
+ # SimpleCov::SingleFile
2
+
3
+ Single file console output formatter for SimpleCov when running specs for single file.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'simplecov-single_file'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle install
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install simplecov-single_file
20
+
21
+ ## Usage
22
+
23
+ Add `simplecov-single_file` to your Gemfile and bundle install:
24
+
25
+ ```ruby
26
+ gem 'simplecov-single_file', require: false, group: :test
27
+ ```
28
+
29
+ Require `simplecov-single_file` after `simplecov` **at the very top of your** `test/test_helper.rb` (or `spec_helper.rb`, `rails_helper.rb`, cucumber `env.rb`, or whatever your preferred test framework uses):
30
+ ```ruby
31
+ require 'simplecov'
32
+ require 'simplecov/single_file'
33
+ ```
34
+
35
+ Add formatter to SimpleCov:
36
+ ```ruby
37
+ SimpleCov.formatter = SimpleCov::SingleFile::Formatter
38
+ # or
39
+ SimpleCov.formatters = [SimpleCov::Formatter::HTMLFormatter, SimpleCov::SingleFile::Formatter]
40
+ ```
41
+
42
+ ## Configuration
43
+ simplecov-single_file is configurable via Ruby code, generally in your test helper or setup file.
44
+ ```ruby
45
+ SimpleCov::SingleFile.configure do |config|
46
+ config.output_colorized = true
47
+ config.output_style = :table
48
+ config.output_green_threshold = 100
49
+ config.output_orange_threshold = 80
50
+ config.output_red_color = "\e[31m%<message>s\e[0m"
51
+ config.output_green_color = "\e[32m%<message>s\e[0m"
52
+ config.output_orange_color = "\e[33m%<message>s\e[0m"
53
+ end
54
+ ```
55
+ All the configs above are default ones.
56
+
57
+ ### Disabling colorized output
58
+ Color support is active by default. To disable:
59
+ ```ruby
60
+ SimpleCov::SingleFile.config.output_colorized = false
61
+ ```
62
+
63
+ ### Output style
64
+ #### Table style (active by default)
65
+ Example output:
66
+ ```
67
+ +-----------------------------------------+
68
+ | SimpleCov Single File Coverage |
69
+ +---------+-------------------------------+
70
+ | FILE: | /app/services/some_service.rb |
71
+ +---------+-------------------------------+
72
+ | LINE: | 100.0 -- 13/13 lines. |
73
+ +---------+-------------------------------+
74
+ | BRANCH: | 50.0 -- 2/4 branches. |
75
+ +---------+-------------------------------+
76
+ ```
77
+ #### Block style
78
+ ```ruby
79
+ SimpleCov::SingleFile.config.output_style = :block
80
+ ```
81
+ Example output:
82
+ ```bash
83
+ SimpleCov Single File Coverage
84
+ FILE: /app/services/some_service.rb
85
+ LINE: 100.0 -- 13/13 lines.
86
+ BRANCH: 50.0 -- 2/4 branches.
87
+ ```
88
+ ### Color thresholds
89
+ You can configure thresholds for colors:
90
+ ```ruby
91
+ SimpleCov::SingleFile.config.output_green_threshold = 80
92
+ SimpleCov::SingleFile.config.output_orange_threshold = 43.5
93
+ ```
94
+ By default `output_green_threshold` is 100 and `output_orange_threshold` is a value defined in `SimpleCov.minimum_coverage`.
95
+ Rules are the next:
96
+ ```ruby
97
+ if file_coverage_percentage >= green_threshold
98
+ # Use green color
99
+ elsif file_coverage_percentage >= orange_threshold
100
+ # Use orange color
101
+ else
102
+ # Use red color
103
+ end
104
+ ```
105
+
106
+ ### Colors
107
+ You can configure colors:
108
+ ```ruby
109
+ SimpleCov::SingleFile.config.output_red_color = "\e[31m%<message>s\e[0m"
110
+ SimpleCov::SingleFile.config.output_green_color = "\e[32m%<message>s\e[0m"
111
+ SimpleCov::SingleFile.config.output_orange_color = "\e[33m%<message>s\e[0m"
112
+ ```
113
+ It should be an ANSI color in format `"ANSI_COLOR%<message>s\e[0m"`
114
+
115
+
116
+ ## Contributing
117
+
118
+ Bug reports and pull requests are welcome on GitHub at https://github.com/floor114/simplecov-single_file. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/floor114/simplecov-single_file/blob/main/CODE_OF_CONDUCT.md).
119
+
120
+ ## License
121
+
122
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
123
+
124
+ ## Code of Conduct
125
+
126
+ Everyone interacting in the SimpleCov::SingleFile project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/floor114/simplecov-single_file/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rake/testtask'
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << 'test'
8
+ t.libs << 'lib'
9
+ t.test_files = FileList['test/**/*_test.rb']
10
+ end
11
+
12
+ require 'rubocop/rake_task'
13
+
14
+ RuboCop::RakeTask.new
15
+
16
+ task default: %i[test rubocop]
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'simplecov/single_file'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SimpleCov
4
+ module SingleFile
5
+ class Config
6
+ COLOR_RED = "\e[31m%<message>s\e[0m"
7
+ COLOR_GREEN = "\e[32m%<message>s\e[0m"
8
+ COLOR_ORANGE = "\e[33m%<message>s\e[0m"
9
+
10
+ attr_accessor :output_colorized,
11
+ :output_style,
12
+ :output_green_threshold,
13
+ :output_orange_threshold,
14
+ :output_red_color,
15
+ :output_green_color,
16
+ :output_orange_color
17
+
18
+ def initialize
19
+ @output_colorized = true
20
+ @output_red_color = COLOR_RED
21
+ @output_green_color = COLOR_GREEN
22
+ @output_orange_color = COLOR_ORANGE
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,109 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SimpleCov
4
+ module SingleFile
5
+ class Formatter
6
+ RSPEC_REGEX = %r{r?spec}.freeze
7
+ RB_EXTENSION = '.rb'
8
+ DEFAULT_GREEN_THRESHOLD = 100
9
+ BLOCK_STYLE = :block
10
+ NO_COLOR = '%<message>s'
11
+
12
+ def format(result)
13
+ return unless single_file?
14
+
15
+ include_output
16
+
17
+ @result = result
18
+ lines = []
19
+
20
+ if (file = tested_file(result))
21
+ lines << file_message(file)
22
+ lines << coverage_message(file.coverage_statistics[:line])
23
+ lines << branch_coverage_message(file.coverage_statistics[:branch]) if SimpleCov.branch_coverage?
24
+ else
25
+ lines << file_not_found_message
26
+ end
27
+
28
+ output(lines)
29
+ end
30
+
31
+ private
32
+
33
+ attr_reader :result
34
+
35
+ def include_output
36
+ if SimpleCov::SingleFile.config.output_style == BLOCK_STYLE
37
+ extend SimpleCov::SingleFile::Output::Block
38
+ else
39
+ extend SimpleCov::SingleFile::Output::Table
40
+ end
41
+ end
42
+
43
+ def file_not_found_message
44
+ [SimpleCov::SingleFile.config.output_red_color % { message: 'Could not find tested file.' }]
45
+ end
46
+
47
+ def file_message(file)
48
+ ['FILE:', file.project_filename]
49
+ end
50
+
51
+ def coverage_message(statistic)
52
+ color = color(statistic.percent, SimpleCov.minimum_coverage[:line].to_f)
53
+
54
+ [
55
+ color % { message: 'LINE:' },
56
+ color % { message: "#{statistic.percent.round(2)} -- #{statistic.covered}/#{statistic.total} lines." }
57
+ ]
58
+ end
59
+
60
+ def branch_coverage_message(statistic)
61
+ color = color(statistic.percent, SimpleCov.minimum_coverage[:branch].to_f)
62
+
63
+ [
64
+ color % { message: 'BRANCH:' },
65
+ color % { message: "#{statistic.percent.round(2)} -- #{statistic.covered}/#{statistic.total} branches." }
66
+ ]
67
+ end
68
+
69
+ def color(current_percentage = 100, expected_percentage = 0)
70
+ return NO_COLOR unless SimpleCov::SingleFile.config.output_colorized
71
+
72
+ green_threshold = SimpleCov::SingleFile.config.output_green_threshold || DEFAULT_GREEN_THRESHOLD
73
+ orange_threshold = SimpleCov::SingleFile.config.output_orange_threshold || expected_percentage
74
+
75
+ if current_percentage >= green_threshold
76
+ SimpleCov::SingleFile.config.output_green_color
77
+ elsif current_percentage >= orange_threshold
78
+ SimpleCov::SingleFile.config.output_orange_color
79
+ else
80
+ SimpleCov::SingleFile.config.output_red_color
81
+ end
82
+ end
83
+
84
+ def tested_file(result)
85
+ files_to_scan = result.files.to_a
86
+
87
+ filename_args.reverse_each.each_with_object([]) do |arg, new_args|
88
+ break if files_to_scan.size <= 1
89
+
90
+ new_args.prepend(arg)
91
+
92
+ files_to_scan.select! { |f| f.filename.match?(%r{#{Regexp.escape(new_args.join('/'))}}) }
93
+ end
94
+
95
+ files_to_scan[0]
96
+ end
97
+
98
+ def single_file?
99
+ ARGV.size == 1 && ARGV[0].match?(RSPEC_REGEX) && File.exist?(ARGV[0]) && File.extname(ARGV[0]) == RB_EXTENSION
100
+ end
101
+
102
+ def filename_args
103
+ @filename_args ||= ARGV[0].sub(%r{#{RSPEC_REGEX}/}, '')
104
+ .sub(%r{_#{RSPEC_REGEX}#{RB_EXTENSION}}, RB_EXTENSION)
105
+ .split('/')
106
+ end
107
+ end
108
+ end
109
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SimpleCov
4
+ module SingleFile
5
+ module Output
6
+ module Block
7
+ def output(lines)
8
+ puts 'SimpleCov Single File Coverage'
9
+
10
+ lines.each do |line|
11
+ puts line.join(' ')
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'terminal-table'
4
+
5
+ module SimpleCov
6
+ module SingleFile
7
+ module Output
8
+ module Table
9
+ def output(lines)
10
+ table = Terminal::Table.new(
11
+ title: 'SimpleCov Single File Coverage',
12
+ rows: lines,
13
+ style: { all_separators: true }
14
+ )
15
+
16
+ puts table
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SimpleCov
4
+ module SingleFile
5
+ VERSION = '0.1.0'
6
+ end
7
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'single_file/output/block'
4
+ require_relative 'single_file/output/table'
5
+ require_relative 'single_file/config'
6
+ require_relative 'single_file/formatter'
7
+ require_relative 'single_file/version'
8
+
9
+ module SimpleCov
10
+ module SingleFile
11
+ class << self
12
+ def config
13
+ @config ||= Config.new
14
+ end
15
+
16
+ def configure
17
+ yield(config)
18
+ end
19
+ end
20
+ end
21
+ end
metadata ADDED
@@ -0,0 +1,133 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: simplecov-single_file
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Taras Shpachenko
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-02-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: simplecov
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: terminal-table
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: test-unit
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Single file coverage reports for SimpleCov.
84
+ email:
85
+ - taras.shpachenko@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".rubocop.yml"
91
+ - ".ruby-version"
92
+ - CHANGELOG.md
93
+ - CODE_OF_CONDUCT.md
94
+ - Gemfile
95
+ - Gemfile.lock
96
+ - LICENSE
97
+ - README.md
98
+ - Rakefile
99
+ - bin/console
100
+ - bin/setup
101
+ - lib/simplecov/single_file.rb
102
+ - lib/simplecov/single_file/config.rb
103
+ - lib/simplecov/single_file/formatter.rb
104
+ - lib/simplecov/single_file/output/block.rb
105
+ - lib/simplecov/single_file/output/table.rb
106
+ - lib/simplecov/single_file/version.rb
107
+ homepage: https://github.com/floor114/simplecov-single_file
108
+ licenses:
109
+ - MIT
110
+ metadata:
111
+ homepage_uri: https://github.com/floor114/simplecov-single_file
112
+ source_code_uri: https://github.com/floor114/simplecov-single_file
113
+ rubygems_mfa_required: 'true'
114
+ post_install_message:
115
+ rdoc_options: []
116
+ require_paths:
117
+ - lib
118
+ required_ruby_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: '2.7'
123
+ required_rubygems_version: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: '0'
128
+ requirements: []
129
+ rubygems_version: 3.2.3
130
+ signing_key:
131
+ specification_version: 4
132
+ summary: Single file coverage reports for SimpleCov.
133
+ test_files: []