diff --git a/bibliothecary.gemspec b/bibliothecary.gemspec index 19daf2ba..59d36590 100644 --- a/bibliothecary.gemspec +++ b/bibliothecary.gemspec @@ -31,7 +31,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency "rake", "~> 12.0" spec.add_development_dependency "rspec", "~> 3.0" spec.add_development_dependency "webmock" - spec.add_development_dependency "vcr" spec.add_development_dependency "rubocop" spec.add_development_dependency "rubocop-rails" end diff --git a/spec/bibliothecary_spec.rb b/spec/bibliothecary_spec.rb index 3c696a14..4dc80392 100644 --- a/spec/bibliothecary_spec.rb +++ b/spec/bibliothecary_spec.rb @@ -130,7 +130,7 @@ related_paths: ["Gemfile", "Gemfile.lock"] }]) end - it "handles a complicated folder with many manifests", :vcr do + it "handles a complicated folder with many manifests" do # If we run the analysis in pwd, confusion about absolute vs. # relative paths is concealed because both work orig_pwd = Dir.pwd @@ -207,7 +207,7 @@ Bibliothecary.reset end - it "handles a complicated folder with many manifests", :vcr do + it "handles a complicated folder with many manifests" do # If we run the analysis in pwd, confusion about absolute vs. # relative paths is concealed because both work orig_pwd = Dir.pwd @@ -293,7 +293,7 @@ Bibliothecary.reset end - it "handles a dual-platformed file (pip/conda)", :vcr do + it "handles a dual-platformed file (pip/conda)" do # If we run the analysis in pwd, confusion about absolute vs. # relative paths is concealed because both work orig_pwd = Dir.pwd diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 7f0e102c..e0904f33 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -21,14 +21,7 @@ def load_fixture(name) end end -require "vcr" require "webmock/rspec" WebMock.disable_net_connect!(allow_localhost: true) -VCR.configure do |c| - c.cassette_library_dir = "spec/vcr" - c.configure_rspec_metadata! - c.hook_into :webmock -end - require "pry" diff --git a/spec/vcr/Bibliothecary/handles_a_complicated_folder_with_many_manifests.yml b/spec/vcr/Bibliothecary/handles_a_complicated_folder_with_many_manifests.yml deleted file mode 100644 index ace71edc..00000000 --- a/spec/vcr/Bibliothecary/handles_a_complicated_folder_with_many_manifests.yml +++ /dev/null @@ -1,156 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://yarn-parser.libraries.io/parse - body: - encoding: UTF-8 - string: | - # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. - # yarn lockfile v1 - - - body-parser@^1.15.2: - version "1.16.1" - resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.16.1.tgz#51540d045adfa7a0c6995a014bb6b1ed9b802329" - dependencies: - bytes "2.4.0" - content-type "~1.0.2" - debug "2.6.1" - depd "~1.1.0" - http-errors "~1.5.1" - iconv-lite "0.4.15" - on-finished "~2.3.0" - qs "6.2.1" - raw-body "~2.2.0" - type-is "~1.6.14" - - bytes@2.4.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/bytes/-/bytes-2.4.0.tgz#7d97196f9d5baf7f6935e25985549edd2a6c2339" - - content-type@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.2.tgz#b7d113aee7a8dd27bd21133c4dc2529df1721eed" - - debug@2.6.1: - version "2.6.1" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.1.tgz#79855090ba2c4e3115cc7d8769491d58f0491351" - dependencies: - ms "0.7.2" - - depd@~1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.0.tgz#e1bd82c6aab6ced965b97b88b17ed3e528ca18c3" - - ee-first@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" - - http-errors@~1.5.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.5.1.tgz#788c0d2c1de2c81b9e6e8c01843b6b97eb920750" - dependencies: - inherits "2.0.3" - setprototypeof "1.0.2" - statuses ">= 1.3.1 < 2" - - iconv-lite@0.4.15: - version "0.4.15" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.15.tgz#fe265a218ac6a57cfe854927e9d04c19825eddeb" - - inherits@2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" - - media-typer@0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" - - mime-db@~1.26.0: - version "1.26.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.26.0.tgz#eaffcd0e4fc6935cf8134da246e2e6c35305adff" - - mime-types@~2.1.13: - version "2.1.14" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.14.tgz#f7ef7d97583fcaf3b7d282b6f8b5679dab1e94ee" - dependencies: - mime-db "~1.26.0" - - ms@0.7.2: - version "0.7.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.2.tgz#ae25cf2512b3885a1d95d7f037868d8431124765" - - on-finished@~2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" - dependencies: - ee-first "1.1.1" - - qs@6.2.1: - version "6.2.1" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.2.1.tgz#ce03c5ff0935bc1d9d69a9f14cbd18e568d67625" - - raw-body@~2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.2.0.tgz#994976cf6a5096a41162840492f0bdc5d6e7fb96" - dependencies: - bytes "2.4.0" - iconv-lite "0.4.15" - unpipe "1.0.0" - - setprototypeof@1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.0.2.tgz#81a552141ec104b88e89ce383103ad5c66564d08" - - "statuses@>= 1.3.1 < 2": - version "1.3.1" - resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.3.1.tgz#faf51b9eb74aaef3b3acf4ad5f61abf24cb7b93e" - - type-is@~1.6.14: - version "1.6.14" - resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.14.tgz#e219639c17ded1ca0789092dd54a03826b817cb2" - dependencies: - media-typer "0.3.0" - mime-types "~2.1.13" - - unpipe@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - Expect: - - '' - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 28 Jun 2018 15:57:24 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '1106' - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d460fe3c8da9d516457fe70ac598b5cdd1530201443; expires=Fri, 28-Jun-19 - 15:57:23 GMT; path=/; domain=.libraries.io; HttpOnly - Access-Control-Allow-Origin: - - "*" - Etag: - - W/"452-n1qmHvnZbxlptttUr+/kx7nLbFU" - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Server: - - cloudflare - Cf-Ray: - - 4321594fff7782bb-ATL - body: - encoding: UTF-8 - string: '[{"name":"body-parser","version":"1.16.1","type":"runtime"},{"name":"bytes","version":"2.4.0","type":"runtime"},{"name":"content-type","version":"1.0.2","type":"runtime"},{"name":"debug","version":"2.6.1","type":"runtime"},{"name":"depd","version":"1.1.0","type":"runtime"},{"name":"ee-first","version":"1.1.1","type":"runtime"},{"name":"http-errors","version":"1.5.1","type":"runtime"},{"name":"iconv-lite","version":"0.4.15","type":"runtime"},{"name":"inherits","version":"2.0.3","type":"runtime"},{"name":"media-typer","version":"0.3.0","type":"runtime"},{"name":"mime-db","version":"1.26.0","type":"runtime"},{"name":"mime-types","version":"2.1.14","type":"runtime"},{"name":"ms","version":"0.7.2","type":"runtime"},{"name":"on-finished","version":"2.3.0","type":"runtime"},{"name":"qs","version":"6.2.1","type":"runtime"},{"name":"raw-body","version":"2.2.0","type":"runtime"},{"name":"setprototypeof","version":"1.0.2","type":"runtime"},{"name":"statuses","version":"1.3.1","type":"runtime"},{"name":"type-is","version":"1.6.14","type":"runtime"},{"name":"unpipe","version":"1.0.0","type":"runtime"}]' - http_version: - recorded_at: Thu, 28 Jun 2018 15:57:24 GMT -recorded_with: VCR 4.0.0 diff --git a/spec/vcr/Bibliothecary/handles_a_complicated_folder_with_many_manifests_complaining_about_no-parser_files.yml b/spec/vcr/Bibliothecary/handles_a_complicated_folder_with_many_manifests_complaining_about_no-parser_files.yml deleted file mode 100644 index 8a17b3c7..00000000 --- a/spec/vcr/Bibliothecary/handles_a_complicated_folder_with_many_manifests_complaining_about_no-parser_files.yml +++ /dev/null @@ -1,158 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://yarn-parser.libraries.io/parse - body: - encoding: UTF-8 - string: | - # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. - # yarn lockfile v1 - - - body-parser@^1.15.2: - version "1.16.1" - resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.16.1.tgz#51540d045adfa7a0c6995a014bb6b1ed9b802329" - dependencies: - bytes "2.4.0" - content-type "~1.0.2" - debug "2.6.1" - depd "~1.1.0" - http-errors "~1.5.1" - iconv-lite "0.4.15" - on-finished "~2.3.0" - qs "6.2.1" - raw-body "~2.2.0" - type-is "~1.6.14" - - bytes@2.4.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/bytes/-/bytes-2.4.0.tgz#7d97196f9d5baf7f6935e25985549edd2a6c2339" - - content-type@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.2.tgz#b7d113aee7a8dd27bd21133c4dc2529df1721eed" - - debug@2.6.1: - version "2.6.1" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.1.tgz#79855090ba2c4e3115cc7d8769491d58f0491351" - dependencies: - ms "0.7.2" - - depd@~1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.0.tgz#e1bd82c6aab6ced965b97b88b17ed3e528ca18c3" - - ee-first@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" - - http-errors@~1.5.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.5.1.tgz#788c0d2c1de2c81b9e6e8c01843b6b97eb920750" - dependencies: - inherits "2.0.3" - setprototypeof "1.0.2" - statuses ">= 1.3.1 < 2" - - iconv-lite@0.4.15: - version "0.4.15" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.15.tgz#fe265a218ac6a57cfe854927e9d04c19825eddeb" - - inherits@2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" - - media-typer@0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" - - mime-db@~1.26.0: - version "1.26.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.26.0.tgz#eaffcd0e4fc6935cf8134da246e2e6c35305adff" - - mime-types@~2.1.13: - version "2.1.14" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.14.tgz#f7ef7d97583fcaf3b7d282b6f8b5679dab1e94ee" - dependencies: - mime-db "~1.26.0" - - ms@0.7.2: - version "0.7.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.2.tgz#ae25cf2512b3885a1d95d7f037868d8431124765" - - on-finished@~2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" - dependencies: - ee-first "1.1.1" - - qs@6.2.1: - version "6.2.1" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.2.1.tgz#ce03c5ff0935bc1d9d69a9f14cbd18e568d67625" - - raw-body@~2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.2.0.tgz#994976cf6a5096a41162840492f0bdc5d6e7fb96" - dependencies: - bytes "2.4.0" - iconv-lite "0.4.15" - unpipe "1.0.0" - - setprototypeof@1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.0.2.tgz#81a552141ec104b88e89ce383103ad5c66564d08" - - "statuses@>= 1.3.1 < 2": - version "1.3.1" - resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.3.1.tgz#faf51b9eb74aaef3b3acf4ad5f61abf24cb7b93e" - - type-is@~1.6.14: - version "1.6.14" - resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.14.tgz#e219639c17ded1ca0789092dd54a03826b817cb2" - dependencies: - media-typer "0.3.0" - mime-types "~2.1.13" - - unpipe@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - Expect: - - '' - response: - status: - code: 200 - message: OK - headers: - Date: - - Wed, 07 Nov 2018 16:02:16 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '1106' - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dd25f4095eb2c0797955ba22db12bddd11541606536; expires=Thu, 07-Nov-19 - 16:02:16 GMT; path=/; domain=.libraries.io; HttpOnly - Access-Control-Allow-Origin: - - "*" - Etag: - - W/"452-n1qmHvnZbxlptttUr+/kx7nLbFU" - Via: - - 1.1 google - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Server: - - cloudflare - Cf-Ray: - - 476105f7bc07ba90-ATL - body: - encoding: UTF-8 - string: '[{"name":"body-parser","version":"1.16.1","type":"runtime"},{"name":"bytes","version":"2.4.0","type":"runtime"},{"name":"content-type","version":"1.0.2","type":"runtime"},{"name":"debug","version":"2.6.1","type":"runtime"},{"name":"depd","version":"1.1.0","type":"runtime"},{"name":"ee-first","version":"1.1.1","type":"runtime"},{"name":"http-errors","version":"1.5.1","type":"runtime"},{"name":"iconv-lite","version":"0.4.15","type":"runtime"},{"name":"inherits","version":"2.0.3","type":"runtime"},{"name":"media-typer","version":"0.3.0","type":"runtime"},{"name":"mime-db","version":"1.26.0","type":"runtime"},{"name":"mime-types","version":"2.1.14","type":"runtime"},{"name":"ms","version":"0.7.2","type":"runtime"},{"name":"on-finished","version":"2.3.0","type":"runtime"},{"name":"qs","version":"6.2.1","type":"runtime"},{"name":"raw-body","version":"2.2.0","type":"runtime"},{"name":"setprototypeof","version":"1.0.2","type":"runtime"},{"name":"statuses","version":"1.3.1","type":"runtime"},{"name":"type-is","version":"1.6.14","type":"runtime"},{"name":"unpipe","version":"1.0.0","type":"runtime"}]' - http_version: - recorded_at: Wed, 07 Nov 2018 16:02:16 GMT -recorded_with: VCR 4.0.0 diff --git a/spec/vcr/Bibliothecary/handles_a_dual-platformed_file_pip/conda_.yml b/spec/vcr/Bibliothecary/handles_a_dual-platformed_file_pip/conda_.yml deleted file mode 100644 index 01cd5c2d..00000000 --- a/spec/vcr/Bibliothecary/handles_a_dual-platformed_file_pip/conda_.yml +++ /dev/null @@ -1,40 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://conda-parser.libraries.io/parse - body: - encoding: UTF-8 - string: file=name%3A%20testingenv%0Achannels%3A%0A%20%20-%20defaults%0Adependencies%3A%0A%20%20-%20pip%0A%20%20-%20pip%3A%0A%20%20%20%20%20%20-%20urllib3%0A%20%20%20%20%20%20-%20Django%3D%3D2.0.0%0A%20%20-%20sqlite%3D3.29.0%3Dh7b6447c_0%0A&filename=environment.yml - headers: - User-Agent: - - Typhoeus - https://github.com/typhoeus/typhoeus - Contenttype: - - multipart/form-data - Expect: - - '' - response: - status: - code: 200 - message: '' - headers: - Server: - - gunicorn/19.9.0 - Date: - - Tue, 11 May 2021 16:48:25 GMT - Content-Type: - - application/json - Content-Length: - - '143' - Via: - - 1.1 google - Alt-Svc: - - clear - body: - encoding: ASCII-8BIT - string: '{"bad_specs":[],"channels":["defaults"],"lockfile":null,"manifest":[{"name":"pip","requirement":""},{"name":"sqlite","requirement":"3.29.0"}]} - -' - http_version: null - recorded_at: Tue, 11 May 2021 16:48:25 GMT -recorded_with: VCR 5.1.0