miniswag 0.1.5 → 0.1.7

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: a502dc38c54f892c779dbeaa123253a75a2f5b76da60cc9c9c67333d2c68f24c
4
- data.tar.gz: 53ab313f2be0073e1c9189285de42b8e7bbbbe784a62c2f80a607f12e75fce0f
3
+ metadata.gz: e74ccbc7d9744dc4764d42bee62e529e3d0e1af32498ec100f9476f323ce87fb
4
+ data.tar.gz: 64c482062e16ff3a416081c3eaea73bef3ac7d58676b89e148b99fc96a815fde
5
5
  SHA512:
6
- metadata.gz: 50867f120e9566a0fa0d092e0880a1558aed4414c2aa3895f5f92e59f55bd8a194a8d77e000a5961930176b170081eaea4e10f9485d92a6a21299f7b9eae5184
7
- data.tar.gz: 8f43aec3152308e742a00dbb82e02180c8285acc74761c86f8c3e134d9d6f2bd05ac0fad937523e9dc1dfa7dd7e662333ff983219b5c8b00f82b23ec91a7fe4e
6
+ metadata.gz: 91f6721bbf24b0e51d4c9d1464cb34fae135d7fead2fdb95f1847994df2d31a20c11423296bd0918efe98f66432501432c543aadabca5a91d8ba5ebc8f57e5e3
7
+ data.tar.gz: 8e80c7bc672ced286837ca71853a60f320708869597249c7d318716e659b8a20a2bcabbb48a5fafb9a9d78aa07b700c9f3c6be379a3da9d672ccfcd286096bad
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Miniswag
4
- VERSION = '0.1.5'
4
+ VERSION = '0.1.7'
5
5
  end
@@ -6,14 +6,11 @@ namespace :miniswag do
6
6
  pattern = ENV.fetch('PATTERN', 'test/integration/**/*_test.rb')
7
7
  additional_opts = ENV.fetch('ADDITIONAL_OPTS', '')
8
8
 
9
- # Set the env var so the minitest plugin activates
9
+ # Set the env var so the minitest plugin activates in the subprocess
10
10
  ENV['MINISWAG_GENERATE'] = '1'
11
11
 
12
- # Require the openapi_helper which configures Miniswag
13
- helper_path = Rails.root.join('test', 'openapi_helper.rb')
14
- require helper_path.to_s if File.exist?(helper_path)
15
-
16
12
  # Run minitest with the matching pattern
13
+ # The openapi_helper is loaded by the test files themselves via require "openapi_helper"
17
14
  args = [
18
15
  'bin/rails', 'test',
19
16
  *Dir.glob(pattern),
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miniswag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edem Kumodzi
@@ -122,13 +122,13 @@ files:
122
122
  - lib/miniswag/configuration.rb
123
123
  - lib/miniswag/dsl.rb
124
124
  - lib/miniswag/extended_schema.rb
125
- - lib/miniswag/minitest_plugin.rb
126
125
  - lib/miniswag/openapi_generator.rb
127
126
  - lib/miniswag/railtie.rb
128
127
  - lib/miniswag/request_factory.rb
129
128
  - lib/miniswag/response_validator.rb
130
129
  - lib/miniswag/test_case.rb
131
130
  - lib/miniswag/version.rb
131
+ - lib/minitest/miniswag_plugin.rb
132
132
  - lib/tasks/miniswag_tasks.rake
133
133
  homepage: https://github.com/edemkumodzi/miniswag
134
134
  licenses: