This is the first release compatible with the Stoplight 4.1 version. This release brings some incompatible changes. This is the summary of the changes that you have to make if you use rails:
require 'redis'
- require 'sinatra/stoplight_admin'
+ require 'stoplight_admin/application'
class StoplightAdmin < Sinatra::Base
- register Sinatra::StoplightAdmin
+ register StoplightAdmin::Application
redis = Redis.new # Uses REDIS_URL environment variable.
data_store = Stoplight::DataStore::Redis.new(redis)
set :data_store, data_store
end
Rails.application.routes.draw do
- mount StoplightAdmin => '/stoplights'
+ mount StoplightAdminApp => '/stoplights'
end
Do not name your class.StoplightAdmin
this name is reserved by the stoplight-admin gem itself.
What's Changed
- feat | Rewrite templates in ERB by @Lokideos in #38
- Feature/fix docker file by @bolshakov in #39
- Do not specify bundler version by @bolshakov in #40
- Add docker build action by @bolshakov in #41
- Fix docker build by @bolshakov in #42
- Refactoring by @bolshakov in #43
- Update sinatra-contrib requirement from ~> 2.2.3 to >= 2.2.3, < 3.2.0 by @dependabot in #45
- Release/v0.4 by @bolshakov in #44
New Contributors
- @dependabot made their first contribution in #45
Full Changelog: v0.3.6...v0.4.0