Skip to content

v0.4.0

Latest
Compare
Choose a tag to compare
@bolshakov bolshakov released this 23 Aug 21:20
0a5f9f8

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

New Contributors

Full Changelog: v0.3.6...v0.4.0