Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

No longer support `require "big_band"`

  • Loading branch information...
commit eac1ab3dd4f112d968d995ac88e4e0f4ab9f4a52 1 parent 2e50729
@rkh authored
Showing with 0 additions and 19 deletions.
  1. +0 −19 lib/big_band.rb
View
19 lib/big_band.rb
@@ -1,19 +0,0 @@
-warn "#{caller.detect { |c| c !~ /require/ }}: require 'big_band' is deprecated, use require 'sinatra/big_band' instead."
-require "sinatra/big_band"
-
-def BigBand(*args, &block)
- warn "#{caller.first}: Using BigBand is deprecated, use Sinatra::BigBand instead. It will be removed in BigBand 0.5."
- Monkey.invisible { Sinatra::BigBand(*args, &block) }
-end
-
-Module.class_eval do
- alias const_missing_without_deprecation_warnings const_missing
- def const_missing(name)
- Monkey.invisible __FILE__ do
- return const_missing_without_deprecation_warnings(name) unless name == :BigBand and self != ::Sinatra
- from = caller.detect { |e| e !~ /const_missing/ }
- warn "#{from}: Using BigBand is deprecated, use Sinatra::BigBand instead. It will be removed in BigBand 0.5."
- Sinatra::BigBand
- end
- end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.