ruby_minitest_analyzer 0.1.1 → 0.1.2
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/.github/workflows/codeql-analysis.yml +70 -0
- data/Gemfile.lock +2 -3
- data/README.md +2 -2
- data/Rakefile +0 -1
- data/lib/ruby_minitest_analyzer/version.rb +1 -1
- data/ruby_minitest_analyzer.gemspec +1 -2
- metadata +4 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 482855886866635ff202178a86c09e20196ffde4cc2c649252cdce2a7de35e91
|
4
|
+
data.tar.gz: 22e4520f2445de20b3f388cbc9d8d62b435b2ade3c3b5fbc8c11cfcdf108eca1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd736ac81722ba3fefe6f2de52c8ac892edc30610dd3b07cb0625d3c88ca6d4839bfecb7fe04b9883399172a926e4803ebe894326d71ea0dd196f49b0b0eca3b
|
7
|
+
data.tar.gz: e45b53f23e1a2dd6f258a02736b2ef92e5f03148a849b9bcb1f71488eca62634ade2e936ea14c931a4363326487ffaee023007fb5f2399ca2706e245e8b062d4
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# For most projects, this workflow file will not need changing; you simply need
|
2
|
+
# to commit it to your repository.
|
3
|
+
#
|
4
|
+
# You may wish to alter this file to override the set of languages analyzed,
|
5
|
+
# or to provide custom queries or build logic.
|
6
|
+
#
|
7
|
+
# ******** NOTE ********
|
8
|
+
# We have attempted to detect the languages in your repository. Please check
|
9
|
+
# the `language` matrix defined below to confirm you have the correct set of
|
10
|
+
# supported CodeQL languages.
|
11
|
+
#
|
12
|
+
name: "CodeQL"
|
13
|
+
|
14
|
+
on:
|
15
|
+
push:
|
16
|
+
branches: [ main ]
|
17
|
+
pull_request:
|
18
|
+
# The branches below must be a subset of the branches above
|
19
|
+
branches: [ main ]
|
20
|
+
schedule:
|
21
|
+
- cron: '36 21 * * 3'
|
22
|
+
|
23
|
+
jobs:
|
24
|
+
analyze:
|
25
|
+
name: Analyze
|
26
|
+
runs-on: ubuntu-latest
|
27
|
+
permissions:
|
28
|
+
actions: read
|
29
|
+
contents: read
|
30
|
+
security-events: write
|
31
|
+
|
32
|
+
strategy:
|
33
|
+
fail-fast: false
|
34
|
+
matrix:
|
35
|
+
language: [ 'ruby' ]
|
36
|
+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
37
|
+
# Learn more about CodeQL language support at https://git.io/codeql-language-support
|
38
|
+
|
39
|
+
steps:
|
40
|
+
- name: Checkout repository
|
41
|
+
uses: actions/checkout@v2
|
42
|
+
|
43
|
+
# Initializes the CodeQL tools for scanning.
|
44
|
+
- name: Initialize CodeQL
|
45
|
+
uses: github/codeql-action/init@v1
|
46
|
+
with:
|
47
|
+
languages: ${{ matrix.language }}
|
48
|
+
# If you wish to specify custom queries, you can do so here or in a config file.
|
49
|
+
# By default, queries listed here will override any specified in a config file.
|
50
|
+
# Prefix the list here with "+" to use these queries and those in the config file.
|
51
|
+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
52
|
+
|
53
|
+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
54
|
+
# If this step fails, then you should remove it and run the build manually (see below)
|
55
|
+
- name: Autobuild
|
56
|
+
uses: github/codeql-action/autobuild@v1
|
57
|
+
|
58
|
+
# ℹ️ Command-line programs to run using the OS shell.
|
59
|
+
# 📚 https://git.io/JvXDl
|
60
|
+
|
61
|
+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
62
|
+
# and modify them (or add more) to build your code if your project
|
63
|
+
# uses a compiled language
|
64
|
+
|
65
|
+
#- run: |
|
66
|
+
# make bootstrap
|
67
|
+
# make release
|
68
|
+
|
69
|
+
- name: Perform CodeQL Analysis
|
70
|
+
uses: github/codeql-action/analyze@v1
|
data/Gemfile.lock
CHANGED
@@ -23,7 +23,7 @@ GEM
|
|
23
23
|
byebug (~> 11.0)
|
24
24
|
pry (~> 0.13.0)
|
25
25
|
rainbow (3.1.1)
|
26
|
-
rake (
|
26
|
+
rake (13.0.6)
|
27
27
|
regexp_parser (2.2.1)
|
28
28
|
rexml (3.2.5)
|
29
29
|
rubocop (1.25.1)
|
@@ -47,12 +47,11 @@ PLATFORMS
|
|
47
47
|
ruby
|
48
48
|
|
49
49
|
DEPENDENCIES
|
50
|
-
bundler (~> 1.17)
|
51
50
|
minitest (~> 5.0)
|
52
51
|
mocha
|
53
52
|
pry (~> 0.13.1)
|
54
53
|
pry-byebug (~> 3.9.0)
|
55
|
-
rake (~>
|
54
|
+
rake (~> 13.0)
|
56
55
|
rubocop (~> 1.25.1)
|
57
56
|
rubocop-minitest (~> 0.17.2)
|
58
57
|
ruby_minitest_analyzer!
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Ruby Minitest Analyzer will analyze your Minitest classes and detect any duplica
|
|
7
7
|
|
8
8
|

|
9
9
|
|
10
|
-
This Library is explained in detail in [this Post](https://ignaciochiazzo.medium.com/dont-run-ruby-minitest-
|
10
|
+
**This Library is explained in detail in [this Post](https://ignaciochiazzo.medium.com/dont-run-your-ruby-minitest-classes-twice-988645662cdb)**
|
11
11
|
|
12
12
|
### Example
|
13
13
|
See the following case.
|
@@ -48,7 +48,7 @@ Finished in 0.001218s, 3284.0724 runs/s, 0.0000 assertions/s.
|
|
48
48
|
|
49
49
|
The reason is that `ProductTest` is a subclass of `ProductParentTest`.
|
50
50
|
|
51
|
-
More details in [this Post](https://ignaciochiazzo.medium.com/dont-run-ruby-minitest-
|
51
|
+
**More details in [this Post](https://ignaciochiazzo.medium.com/dont-run-your-ruby-minitest-classes-twice-988645662cdb)**
|
52
52
|
|
53
53
|
## Installation
|
54
54
|
|
data/Rakefile
CHANGED
@@ -36,9 +36,8 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
37
37
|
spec.require_paths = ['lib']
|
38
38
|
|
39
|
-
spec.add_development_dependency 'bundler', '~> 1.17'
|
40
39
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
41
|
-
spec.add_development_dependency 'rake', '~>
|
40
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
42
41
|
spec.add_dependency 'table_print', '~> 1.5.7'
|
43
42
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
44
43
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_minitest_analyzer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ignacio Chiazzo Cardarello
|
@@ -10,20 +10,6 @@ bindir: exe
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2022-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.17'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.17'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: minitest
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +30,14 @@ dependencies:
|
|
44
30
|
requirements:
|
45
31
|
- - "~>"
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
33
|
+
version: '13.0'
|
48
34
|
type: :development
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
38
|
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
40
|
+
version: '13.0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: table_print
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -74,6 +60,7 @@ extensions: []
|
|
74
60
|
extra_rdoc_files: []
|
75
61
|
files:
|
76
62
|
- ".circleci/config.yml"
|
63
|
+
- ".github/workflows/codeql-analysis.yml"
|
77
64
|
- ".gitignore"
|
78
65
|
- ".rubocop.yml"
|
79
66
|
- ".travis.yml"
|