GeezerVison is showing github.com — Ship only the specs external adapters need (#1726) · lostisland/faraday@745b0f3
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: faraday.gemspec +4-2Lines changed: 4 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -25,8 +25,10 @@ Gem::Specification.new do |spec| |
25 | 25 | spec.add_dependency 'json' |
26 | 26 | spec.add_dependency 'logger' |
27 | 27 |
|
28 | | - # Includes `examples` and `spec` to allow external adapter gems to run Faraday unit and integration tests |
29 | | - spec.files = Dir['CHANGELOG.md', '{examples,lib,spec}/**/*', 'LICENSE.md', 'Rakefile', 'README.md'] |
| 28 | + # Includes `examples` and the adapter specs (`spec/external_adapters`, `spec/support`) |
| 29 | + # so that external adapter gems can run Faraday's shared adapter examples |
| 30 | + spec.files = Dir['CHANGELOG.md', '{examples,lib,spec/external_adapters,spec/support}/**/*', |
| 31 | + 'LICENSE.md', 'Rakefile', 'README.md'] |
30 | 32 | spec.require_paths = %w[lib spec/external_adapters] |
31 | 33 | spec.metadata = { |
32 | 34 | 'homepage_uri' => 'https://lostisland.github.io/faraday', |
|
Collapse file
Copy file name to clipboardExpand all lines: spec/external_adapters/faraday_specs_setup.rb +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
3 | 3 | require 'webmock/rspec' |
4 | 4 | WebMock.disable_net_connect!(allow_localhost: true) |
5 | 5 |
|
| 6 | +# The gem ships only `spec/external_adapters` and `spec/support` (see `spec.files` in |
| 7 | +# faraday.gemspec). Requiring a file from anywhere else means updating the gemspec too. |
6 | 8 | require_relative '../support/helper_methods' |
7 | 9 | require_relative '../support/disabling_stub' |
8 | 10 | require_relative '../support/streaming_response_checker' |
|