Skip to content

Commit 694dde2

Browse files
committed
➕ net-http is a runtime dependency
1 parent 5966594 commit 694dde2

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

Gemfile.lock

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ PATH
22
remote: .
33
specs:
44
ruby-openid2 (3.0.0)
5+
net-http (~> 0.4, >= 0.4.1)
56
rexml (~> 3.3, >= 3.3.7)
67
version_gem (~> 1.1, >= 1.1.4)
78

@@ -28,6 +29,8 @@ GEM
2829
language_server-protocol (3.17.0.3)
2930
lint_roller (1.1.0)
3031
minitest (5.25.1)
32+
net-http (0.4.1)
33+
uri
3134
ostruct (0.6.0)
3235
parallel (1.26.3)
3336
parser (3.3.5.0)
@@ -124,6 +127,7 @@ GEM
124127
terminal-table (3.0.2)
125128
unicode-display_width (>= 1.1.1, < 3)
126129
unicode-display_width (2.6.0)
130+
uri (0.13.1)
127131
version_gem (1.1.4)
128132
webrick (1.8.1)
129133
yard (0.9.37)

bin/bundle

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ m = Module.new do
3030
if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN
3131
bundler_version = a
3232
end
33-
next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/o
33+
next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
3434
bundler_version = $1
3535
update_index = i
3636
end
@@ -56,7 +56,7 @@ m = Module.new do
5656
def lockfile_version
5757
return unless File.file?(lockfile)
5858
lockfile_contents = File.read(lockfile)
59-
return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/o
59+
return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
6060
Regexp.last_match(1)
6161
end
6262

@@ -83,15 +83,15 @@ m = Module.new do
8383

8484
def activate_bundler
8585
gem_error = activation_error_handling do
86-
gem("bundler", bundler_requirement)
86+
gem "bundler", bundler_requirement
8787
end
8888
return if gem_error.nil?
8989
require_error = activation_error_handling do
9090
require "bundler/version"
9191
end
9292
return if require_error.nil? && Gem::Requirement.new(bundler_requirement).satisfied_by?(Gem::Version.new(Bundler::VERSION))
93-
warn("Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`")
94-
exit(42)
93+
warn "Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`"
94+
exit 42
9595
end
9696

9797
def activation_error_handling

ruby-openid2.gemspec

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Gem::Specification.new do |spec|
4343
spec.metadata["funding_uri"] = "https://liberapay.com/pboling"
4444
spec.metadata["rubygems_mfa_required"] = "true"
4545

46+
spec.add_dependency("net-http", "~> 0.4", ">= 0.4.1")
4647
spec.add_dependency("rexml", "~> 3.3", ">= 3.3.7")
4748
spec.add_dependency("version_gem", "~> 1.1", ">= 1.1.4")
4849

0 commit comments

Comments
 (0)