jejacks0n / apitome

Apitome: /iˈpitəmē/ An API documentation presentation layer for RSpec API Documentation output.
250 stars 126 forks source link

Update ruby version requirement to allow ruby 3.0 #122

Closed andrewsheelan closed 3 years ago

andrewsheelan commented 3 years ago

Ruby 3.0.0 #121

jejacks0n commented 3 years ago

I'll try to cut a release of this by the weekend.

jmziya commented 3 years ago

Hey @jejacks0n , a release for this would be great. Without the release it's conflicting with #115 somehow, if you specify in Gemfile to pull from this github repo.

andrewsheelan commented 3 years ago

Not the best solution, I had add this along for now with ruby 3 upgrade. This monkey patch helped: config/initializers/apitome.rb

Rails.configuration.to_prepare do
  Apitome::DocsController.class_eval do
    def open(file, file_opts)
      URI.open(file, **file_opts)
    end
  end
end