Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ehowe committed Jun 21, 2022
1 parent 63ea001 commit 144745e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 27 deletions.
43 changes: 22 additions & 21 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
PATH
remote: .
specs:
swagalicious (0.4.4)
faraday (~> 1.3.0)
swagalicious (0.4.5)
faraday (~> 2.0)
faraday-rack
json-schema (~> 2.8.1)
oj (~> 3.11.0)
rspec (~> 3.10.0)
rspec (~> 3)

GEM
remote: https://rubygems.org/
Expand All @@ -24,18 +25,18 @@ GEM
diff-lcs (1.5.0)
factory_bot (6.1.0)
activesupport (>= 5.0.0)
faraday (1.3.1)
faraday-net_http (~> 1.0)
multipart-post (>= 1.2, < 3)
faraday (2.3.0)
faraday-net_http (~> 2.0)
ruby2_keywords (>= 0.0.4)
faraday-net_http (1.0.1)
faraday-net_http (2.0.3)
faraday-rack (2.0.0)
faraday (~> 2.0)
i18n (1.10.0)
concurrent-ruby (~> 1.0)
json-schema (2.8.1)
addressable (>= 2.4)
method_source (1.0.0)
minitest (5.15.0)
multipart-post (2.2.0)
minitest (5.16.1)
oj (3.11.8)
pry (0.13.1)
coderay (~> 1.1)
Expand All @@ -48,23 +49,23 @@ GEM
rack-test (1.1.0)
rack (>= 1.0, < 3)
rake (12.3.3)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-core (3.10.2)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.2)
rspec (3.11.0)
rspec-core (~> 3.11.0)
rspec-expectations (~> 3.11.0)
rspec-mocks (~> 3.11.0)
rspec-core (3.11.0)
rspec-support (~> 3.11.0)
rspec-expectations (3.11.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.3)
rspec-support (~> 3.11.0)
rspec-mocks (3.11.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-support (3.10.3)
rspec-support (~> 3.11.0)
rspec-support (3.11.0)
ruby2_keywords (0.0.5)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
zeitwerk (2.5.4)
zeitwerk (2.6.0)

PLATFORMS
ruby
Expand Down
6 changes: 3 additions & 3 deletions lib/swagalicious/example_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require "faraday"
require "faraday/adapter/rack"
require "faraday/rack"
require "rack"
require "oj"

Expand All @@ -25,7 +25,7 @@ def app

def client
@client ||= Faraday.new do |b|
b.adapter Faraday::Adapter::Rack, app
b.adapter(:rack)
end
end

Expand Down Expand Up @@ -68,7 +68,7 @@ def submit_request(metadata, mocked: false, mock_name: nil)
metadata[:response][:requestBody][:content][mime_type][:examples][full_title][:value] = Oj.load(request[:payload]).dup
end

metadata[:response][:examples][mime_type] ||= {}
metadata[:response][:examples][mime_type] ||= {}
metadata[:response][:examples][mime_type][full_title] = @body
end

Expand Down
7 changes: 4 additions & 3 deletions swagalicious.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Gem::Specification.new do |spec|
spec.name = "swagalicious"
spec.version = Swagalicious::VERSION
spec.authors = ["Eugene Howe"]
spec.email = ["eugene@xtreme-computers.net"]
spec.email = ["eugene.howe@protonmail.com"]

spec.summary = %q{RSwag without Rails}
spec.description = %q{This gem is almost a straight copy and paste of https://github.com/rswag/rswag/tree/master/rswag-specs with the Rails specific code stripped out so it can be used in Rack applications that don't use Rails.}
Expand All @@ -24,10 +24,11 @@ Gem::Specification.new do |spec|
end
spec.require_paths = ["lib"]

spec.add_dependency "faraday", "~> 1.3.0"
spec.add_dependency "faraday", "~> 2.0"
spec.add_dependency "faraday-rack"
spec.add_dependency "json-schema", "~> 2.8.1"
spec.add_dependency "oj", "~> 3.11.0"
spec.add_dependency "rspec", "~> 3.10.0"
spec.add_dependency "rspec", "~> 3"

spec.add_development_dependency "factory_bot", "~> 6.1.0"
spec.add_development_dependency "pry-byebug", "~> 3.9.0"
Expand Down

0 comments on commit 144745e

Please sign in to comment.