From 97c4e0ae9585a6e5403341d82fb9b06be39b7b6b Mon Sep 17 00:00:00 2001 From: Yusuke Nakamura Date: Mon, 26 Dec 2022 02:49:14 +0900 Subject: [PATCH 1/4] Remove bundler version constraint Now, bundler has v2 --- certifi.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certifi.gemspec b/certifi.gemspec index e474204..4acc9d2 100644 --- a/certifi.gemspec +++ b/certifi.gemspec @@ -31,7 +31,7 @@ Gem::Specification.new do |spec| spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - spec.add_development_dependency "bundler", "~> 1.6" + spec.add_development_dependency "bundler" spec.add_development_dependency "rake" spec.add_development_dependency "rspec-core" spec.add_development_dependency "rspec-expectations" From bd0ea9428f368250b8d751220885a421e97d9a42 Mon Sep 17 00:00:00 2001 From: Yusuke Nakamura Date: Mon, 26 Dec 2022 02:52:36 +0900 Subject: [PATCH 2/4] Fix rspec mock_with option :none was invalid from rspec v3.0.0.beta2 --- spec/spec_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a37b22e..6a74d06 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -8,5 +8,5 @@ config.expect_with :rspec do |c| c.syntax = :expect end - config.mock_with :none + config.mock_with :nothing end From cd828583f72cf74ce63d40c6b4c5a2f30e388807 Mon Sep 17 00:00:00 2001 From: Yusuke Nakamura Date: Mon, 26 Dec 2022 02:54:29 +0900 Subject: [PATCH 3/4] Require net/http as explicitly --- spec/certifi_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/certifi_spec.rb b/spec/certifi_spec.rb index fb2a6c2..c3e992b 100644 --- a/spec/certifi_spec.rb +++ b/spec/certifi_spec.rb @@ -1,5 +1,6 @@ require_relative 'spec_helper' require_relative '../lib/certifi' +require "net/http" describe Certifi do describe ".where" do From a0f7d589d628862f0dd0a00ed7dd66ad95963c19 Mon Sep 17 00:00:00 2001 From: Yusuke Nakamura Date: Mon, 26 Dec 2022 02:55:43 +0900 Subject: [PATCH 4/4] 'be_true' is outdated matcher, use 'be true' --- spec/certifi_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/certifi_spec.rb b/spec/certifi_spec.rb index c3e992b..52754c5 100644 --- a/spec/certifi_spec.rb +++ b/spec/certifi_spec.rb @@ -5,7 +5,7 @@ describe Certifi do describe ".where" do it "should return the path to the cacert.pem" do - expect(File.exist?(Certifi.where)).to be_true + expect(File.exist?(Certifi.where)).to be true end it "should verify the cert" do