GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • faraday.gemspec
  • spec/external_adapters
    • faraday_specs_setup.rb
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎faraday.gemspec‎

Copy file name to clipboardExpand all lines: faraday.gemspec
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ Gem::Specification.new do |spec|
2525
spec.add_dependency 'json'
2626
spec.add_dependency 'logger'
2727

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']
3032
spec.require_paths = %w[lib spec/external_adapters]
3133
spec.metadata = {
3234
'homepage_uri' => 'https://lostisland.github.io/faraday',
Collapse file

‎spec/external_adapters/faraday_specs_setup.rb‎

Copy file name to clipboardExpand all lines: spec/external_adapters/faraday_specs_setup.rb
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
require 'webmock/rspec'
44
WebMock.disable_net_connect!(allow_localhost: true)
55

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.
68
require_relative '../support/helper_methods'
79
require_relative '../support/disabling_stub'
810
require_relative '../support/streaming_response_checker'

0 commit comments

Comments
0 (0)
You are visitor 01402605 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.