rstacruz/sinatra-assetpack — pull request #168 by fj (2014-04-28 20:05:08+00:00)
Title: Updates dependent require calls on invocation

Without a `require 'sinatra'` in this spot, `Sinatra::AssetPack` must be loaded in a Gemfile after Sinatra is already loaded in order to work. Otherwise, it will generate problems:

```
NoMethodError: undefined method `register' for Sinatra:Module
...src/projects/uphex/uphex-pulse/.gem/ruby/2.1.0/gems/sinatra-assetpack-0.3.2/lib/sinatra/assetpack.rb:70:in `'
...src/projects/uphex/uphex-pulse/.gem/ruby/2.1.0/gems/sinatra-assetpack-0.3.2/lib/sinatra/assetpack.rb:4:in `'
```

Since `Sinatra::AssetPack` depends on Sinatra, it needs to use that dependency here or else it is vulnerable to this sort of breakage.