minitest-spec-context 0.0.4 → 0.0.5

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: 2fa36eae2dabc798e99126404dff8c84612770f28d4c446ac3a352c9a5c5e7cb
4
- data.tar.gz: 2582a2a43460abd5efe283d11e6bb9749e147e0f547f33574ebc23a9a65110b8
3
+ metadata.gz: f73ac320f38a6858e0d18fc81e5089cc313eb6478e4cf2912d3d1be5874c4153
4
+ data.tar.gz: a8770c302c7db09235213037deed91686e4bd90753927928dcde18feba337374
5
5
  SHA512:
6
- metadata.gz: dccf940ec45839e7bc2238c9c7415f5a7d293361c8b0998db4104197642d84e1c2b6b560bf1dc678ecabf24d62ed907ef251fa29aafbda947970bd6eefb56198
7
- data.tar.gz: ff68837bb52d07333507fe7198145b9f509af0e945e64ccbb57c51ca656bffe0ee4a28413b9739f8bf116e3121e3a6a131d62de408976dbf77a9ca33eed87b53
6
+ metadata.gz: 68d87792e43d9c883b171bb9256ca9b5f51a3734f5e01e7bbaee7d6168a47bd652beb4644550b00bdebc472d56630f8169eaf5ff8ac8f39347767f5a9b0a9572
7
+ data.tar.gz: 8060d343a5f3faa1aa8d62c3a9066b2078538c6e65a72b0dae01dd46262097172844320730fee997854df5d2a688cfbb40cdac3a4a26061a900432a572470099
@@ -0,0 +1,38 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: Ruby
9
+
10
+ on:
11
+ push:
12
+ branches: [ "master" ]
13
+ pull_request:
14
+ branches: [ "master" ]
15
+
16
+ permissions:
17
+ contents: read
18
+
19
+ jobs:
20
+ test:
21
+
22
+ runs-on: ubuntu-latest
23
+ strategy:
24
+ matrix:
25
+ ruby-version: ['2.6', '2.7', '3.0']
26
+
27
+ steps:
28
+ - uses: actions/checkout@v3
29
+ - name: Test
30
+ # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
31
+ # change this to (see https://github.com/ruby/setup-ruby#versioning):
32
+ # uses: ruby/setup-ruby@v1
33
+ uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
34
+ with:
35
+ ruby-version: ${{ matrix.ruby-version }}
36
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
37
+ - name: Run tests
38
+ run: bundle exec ruby test/context_test.rb
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Minitest::Spec::Context
2
2
 
3
- This gem provides a ```context``` method for MiniTest::Spec
3
+ This gem provides a ```context``` method for Minitest::Spec
4
4
 
5
5
  ## Installation
6
6
 
@@ -1,6 +1,6 @@
1
1
  require 'minitest/spec'
2
2
 
3
- module MiniTest
3
+ module Minitest
4
4
  class Spec
5
5
  class << self
6
6
  alias_method :context, :describe
@@ -2,8 +2,8 @@
2
2
  Gem::Specification.new do |gem|
3
3
  gem.authors = ["Yi Wen"]
4
4
  gem.email = ["hayafirst@gmail.com"]
5
- gem.description = %q{Provides context method to MiniTest::Spec}
6
- gem.summary = %q{Provides context method to MiniTest::Spec}
5
+ gem.description = %q{Provides context method to Minitest::Spec}
6
+ gem.summary = %q{Provides context method to Minitest::Spec}
7
7
  gem.homepage = "https://github.com/ywen/minitest-spec-context"
8
8
 
9
9
  gem.files = `git ls-files`.split($\)
@@ -11,7 +11,8 @@ Gem::Specification.new do |gem|
11
11
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
12
12
  gem.name = "minitest-spec-context"
13
13
  gem.require_paths = ["lib"]
14
- gem.version = '0.0.4'
14
+ gem.version = '0.0.5'
15
15
 
16
16
  gem.add_development_dependency "activesupport", "~> 6.0"
17
+ gem.add_development_dependency "minitest"
17
18
  end
data/test/context_test.rb CHANGED
@@ -4,7 +4,7 @@ require_relative '../lib/minitest-spec-context'
4
4
  require 'active_support'
5
5
  require 'active_support/test_case'
6
6
 
7
- describe MiniTest::Spec do
7
+ describe Minitest::Spec do
8
8
  describe ".context" do
9
9
  let(:object) { "44" }
10
10
  context "when nested with context method" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-spec-context
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yi Wen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-17 00:00:00.000000000 Z
11
+ date: 2023-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -24,13 +24,28 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '6.0'
27
- description: Provides context method to MiniTest::Spec
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Provides context method to Minitest::Spec
28
42
  email:
29
43
  - hayafirst@gmail.com
30
44
  executables: []
31
45
  extensions: []
32
46
  extra_rdoc_files: []
33
47
  files:
48
+ - ".github/workflows/tests.yml"
34
49
  - ".gitignore"
35
50
  - Gemfile
36
51
  - LICENSE
@@ -43,7 +58,7 @@ files:
43
58
  homepage: https://github.com/ywen/minitest-spec-context
44
59
  licenses: []
45
60
  metadata: {}
46
- post_install_message:
61
+ post_install_message:
47
62
  rdoc_options: []
48
63
  require_paths:
49
64
  - lib
@@ -58,9 +73,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
73
  - !ruby/object:Gem::Version
59
74
  version: '0'
60
75
  requirements: []
61
- rubygems_version: 3.0.3
62
- signing_key:
76
+ rubygems_version: 3.3.26
77
+ signing_key:
63
78
  specification_version: 4
64
- summary: Provides context method to MiniTest::Spec
79
+ summary: Provides context method to Minitest::Spec
65
80
  test_files:
66
81
  - test/context_test.rb