ArgumentError: tried to create Proc object without a block
Trying to allow users to book uber rides using this gem on rails 6.1.4 and ruby 3.0.2 and getting the error in faraday. I tried upgrading the faraday gem and that seemed to cause a bunch of tests to fail:
rspec ./spec/lib/api/activities_spec.rb:34 # Uber::API::Activities should return the user's activities rspec ./spec/lib/api/deliveries_spec.rb:100 # Uber::API::Deliveries on requesting deliveries should return list of all deliveries rspec ./spec/lib/api/deliveries_spec.rb:207 # Uber::API::Deliveries on requesting a particular delivery should give detail about that delivery rspec ./spec/lib/api/deliveries_spec.rb:359 # Uber::API::Deliveries on creating a delivery should return newly created delivery rspec ./spec/lib/api/deliveries_spec.rb:487 # Uber::API::Deliveries on adding quote should return on-demand and scheduled delivery quotes rspec ./spec/lib/api/deliveries_spec.rb:533 # Uber::API::Deliveries on requesting receipt should return delivery receipt with details rspec ./spec/lib/api/deliveries_spec.rb:559 # Uber::API::Deliveries on requesting ratings of a delivery should return all avilable ratings for that delivery rspec ./spec/lib/api/deliveries_spec.rb:584 # Uber::API::Deliveries on adding a rating to a delivery should create rating and return nothing rspec ./spec/lib/api/deliveries_spec.rb:618 # Uber::API::Deliveries on request delivery rating tags should return all available rating tags for the delivery rspec ./spec/lib/api/deliveries_spec.rb:636 # Uber::API::Deliveries on canceling the delivery should cancel the delivery request and return status code rspec ./spec/lib/api/deliveries_spec.rb:664 # Uber::API::Deliveries on requesting regions should return all regions where UberRUSH is available rspec ./spec/lib/api/me_spec.rb:21 # Uber::API::Me should return the user profile rspec ./spec/lib/api/partners_spec.rb:23 # Uber::API::Partners profile should give profile of authenticated driver rspec ./spec/lib/api/partners_spec.rb:72 # Uber::API::Partners payments without options should return information about payments rspec ./spec/lib/api/partners_spec.rb:114 # Uber::API::Partners payments with options should return information about payments with correct limits rspec ./spec/lib/api/partners_spec.rb:166 # Uber::API::Partners trips without options should return information about trips rspec ./spec/lib/api/partners_spec.rb:227 # Uber::API::Partners trips with options should return information about trips with limits rspec ./spec/lib/api/places_spec.rb:11 # Uber::API::Places should return information about place rspec ./spec/lib/api/places_spec.rb:22 # Uber::API::Places update should save and return correct address rspec ./spec/lib/api/price_estimates_spec.rb:61 # Uber::API::PriceEstimates should return time estimates for various products rspec ./spec/lib/api/products_spec.rb:115 # Uber::API::Products#products with a valid response should list all the products rspec ./spec/lib/api/products_spec.rb:183 # Uber::API::Products#apply_surge should update the surge of the product in the sandbox rspec ./spec/lib/api/products_spec.rb:201 # Uber::API::Products#apply_availability should update the drivers availability of the product in the sandbox rspec ./spec/lib/api/promotions_spec.rb:18 # Uber::API::Promotions should return available promotion rspec ./spec/lib/api/reminders_spec.rb:16 # Uber::API::Reminders get reminder should return details about reminder rspec ./spec/lib/api/reminders_spec.rb:23 # Uber::API::Reminders get reminder should also respond to reminder_detail rspec ./spec/lib/api/reminders_spec.rb:54 # Uber::API::Reminders add reminder should return reminder with details rspec ./spec/lib/api/reminders_spec.rb:88 # Uber::API::Reminders update reminder should return updated reminder rspec ./spec/lib/api/reminders_spec.rb:104 # Uber::API::Reminders delete reminder should successfully delete the reminder rspec ./spec/lib/api/requests_spec.rb:34 # Uber::API::Requests#trip_estimate with a valid response should submit a request estimate rspec ./spec/lib/api/requests_spec.rb:86 # Uber::API::Requests#trip_request with a valid response should submit a request for a ride rspec ./spec/lib/api/requests_spec.rb:142 # Uber::API::Requests#trip_request with a valid response with a sandbox API should submit a request for a ride rspec ./spec/lib/api/requests_spec.rb:183 # Uber::API::Requests#trip_request with a "processing" response should submit a request for a ride rspec ./spec/lib/api/requests_spec.rb:219 # Uber::API::Requests#trip_request with a 409 conflict with surge response should submit a request for a ride rspec ./spec/lib/api/requests_spec.rb:273 # Uber::API::Requests#trip_details should show the request for a ride rspec ./spec/lib/api/requests_spec.rb:314 # Uber::API::Requests#trip_map should show the map for the ride rspec ./spec/lib/api/requests_spec.rb:333 # Uber::API::Requests#trip_update should update the state of the request in the sandbox rspec ./spec/lib/api/requests_spec.rb:351 # Uber::API::Requests#trip_cancel should cancel the request in the sandbox rspec ./spec/lib/api/requests_spec.rb:375 # Uber::API::Requests#trip_receipt should retrieve the ride receipt rspec ./spec/lib/api/time_estimates_spec.rb:37 # Uber::API::TimeEstimates should return time estimates for various products