minitag 0.6.0 → 0.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3149cc0ce5b301309d45193c6e997b300adb38c6944b2e0c22a0e2634d5e576b
4
- data.tar.gz: a15958d81aaa6f99f2d2656cb4ee3840e877bd2c0bf8f4ff877ad6514bb1bfca
3
+ metadata.gz: edc15f86cd75fafe193dda4ce0c3ec53195a3c831b3b364c1268468cec1fa58b
4
+ data.tar.gz: a7cba97a2c8f4cde4263f7d4e880510a6f14a6606649eb3920bfe0a569ef9805
5
5
  SHA512:
6
- metadata.gz: a4ee8c9f7de0386c4275b997c426bb12be7eff7fbd76b7966fde47e8452e35d529e496e6cfb3ccd02e0ab50a622c60ca3d8d2204ae8de940c26e4e9f57124603
7
- data.tar.gz: 726bb9c4307f77aba61d23966b339d8a26f20e4b9238dba73546466e942abead18c8e7c7842eb37ab02fb3b9e85c7a2ff6203f830b623c4267790963f65f3a63
6
+ metadata.gz: 4e2aa1f83f281212d0417747906b9ec9cc0e7e97f9aa7d0d38eac636d1d8d0f98c555cace09b410ee2655c060e4008fa5eaafae7225f4a674f26e1bb9a19810c
7
+ data.tar.gz: 31b67943091e116adf9ec47a751075b8d1e5fac32480a04bbbd406bcaa732252d31fb274cfd5645f6a2cf8ded9318817dce1537eaf707572aa090e9b3a438421
@@ -1,26 +1,26 @@
1
1
  name: continuous-integration
2
- on:
3
- push:
4
- pull_request:
5
- branches:
6
- - master
2
+ on: [push, pull_request]
7
3
 
8
4
  jobs:
9
5
  ci:
10
6
  runs-on: ubuntu-latest
7
+ strategy:
8
+ matrix:
9
+ ruby: [ '2.6', '2.7' ]
10
+ name: Ruby ${{ matrix.ruby }}
11
11
  steps:
12
12
  - uses: actions/checkout@v2
13
- - name: Set up Ruby 2.7
13
+ - name: Set up Ruby ${{ matrix.ruby }}
14
14
  uses: actions/setup-ruby@v1
15
15
  with:
16
- ruby-version: "2.7"
16
+ ruby-version: ${{ matrix.ruby }}
17
17
  - name: Cache gems
18
18
  uses: actions/cache@v2
19
19
  with:
20
20
  path: vendor/bundle
21
- key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
21
+ key: ${{ runner.os }}-${{ matrix.ruby }}-gem-${{ hashFiles('**/Gemfile.lock') }}
22
22
  restore-keys: |
23
- ${{ runner.os }}-gem-
23
+ ${{ runner.os }}-${{ matrix.ruby }}-gem-
24
24
  - name: Install gems
25
25
  run: |
26
26
  sed -i '/ruby ".*"/,+1 d' Gemfile
data/.rubocop.yml CHANGED
@@ -6,3 +6,7 @@ Layout/LineLength:
6
6
 
7
7
  Metrics/ClassLength:
8
8
  Enabled: false
9
+
10
+ Metrics/BlockLength:
11
+ Exclude:
12
+ - 'test/**/*_test.rb'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minitag (0.6.0)
4
+ minitag (0.6.1)
5
5
  minitest (~> 5.0)
6
6
 
7
7
  GEM
@@ -15,7 +15,7 @@ GEM
15
15
  rainbow (3.0.0)
16
16
  rake (13.0.1)
17
17
  regexp_parser (1.7.1)
18
- rexml (3.2.4)
18
+ rexml (3.2.5)
19
19
  rubocop (0.87.1)
20
20
  parallel (~> 1.10)
21
21
  parser (>= 2.7.1.1)
data/README.md CHANGED
@@ -7,14 +7,6 @@ A simple gem that allow developers using minitest to specify tags for their clas
7
7
  This gem should be framework agnostic, let me know if you encounter any problems
8
8
  running this within the framework of your choice.
9
9
 
10
- ## When should I use this?
11
-
12
- - When there's a need to split a test suite into different CI steps.
13
- - During development, it's helpful to have extra flexibility when running a big
14
- test suite.
15
- - When there are tests that you want to run only occasionality. For example,
16
- tests that perform network calls or have expensive side effects.
17
-
18
10
  ## Installation
19
11
 
20
12
  Add this line to your application's Gemfile:
@@ -31,12 +23,6 @@ $ gem install minitag
31
23
 
32
24
  ## Usage
33
25
 
34
- ### Setup
35
-
36
- Require `minitag` within `test_helper.rb`:
37
-
38
- `require 'minitag'`
39
-
40
26
  ### Adding tags
41
27
 
42
28
  We can tag specific classes or tests with one or more tags.
@@ -84,6 +70,24 @@ $ bundle exec rake test --tag '~unit'
84
70
  $ bundle exec rake test --tag 'unit' --tag '~parallel'
85
71
  ```
86
72
 
73
+ ## FAQ
74
+
75
+ ### Is this gem compatible with Rails?
76
+
77
+ Yes. Found any problems? Please open an issue or reach out to me.
78
+
79
+ ### Is this gem compatible with the spec part of minitest?
80
+
81
+ For the most part yes, but tagging `describe` blocks are not supported.
82
+
83
+ ### When should I use this gem?
84
+
85
+ - When there's a need to split a test suite into different CI steps.
86
+ - During development, it's helpful to have extra flexibility when running a big
87
+ test suite.
88
+ - When there are tests that you want to run only occasionality. For example,
89
+ tests that perform network calls or have expensive side effects.
90
+
87
91
  ## Development
88
92
 
89
93
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Minitag
4
- VERSION = '0.6.0'
4
+ VERSION = '0.6.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernardo de Araujo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-17 00:00:00.000000000 Z
11
+ date: 2021-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler