rstacruz / sinatra-assetpack

Package your assets transparently in Sinatra.
http://ricostacruz.com/sinatra-assetpack/
MIT License
542 stars 97 forks source link

glob acting in surprising manner #108

Closed aj0strow closed 11 years ago

aj0strow commented 11 years ago

I was expecting the line '/js/views/**/*.js' to come up with both js/views/application.js and js/views/dashboard/header.js, instead I have to do the following

'/js/views/*.js', '/js/views/**/*.js'

It should work like Dir#glob, no?

"Using sinatra-assetpack (0.2.3) "

j15e commented 11 years ago

What your code looks like exactly?

aj0strow commented 11 years ago

Here's the asset block:

app.assets do
  css :styles, '/css/application.css', [
    '/css/main.css'
  ]

  js :scripts, '/js/application.js', %w{
    /js/vendor/underscore*.js
    /js/vendor/jquery*.js
    /js/vendor/backbone*.js

    /js/modreal.js
    /js/models/*.js
    /js/models/**/*.js
    /js/collections/*.js
    /js/collections/**/*.js
    /js/views/*.js
    /js/views/**/*.js
    /js/routers/*.js

    /js/app.js
    /js/setup.js
    /js/vendor.js

  }

  css_compression :sass
  js_compression :yui
end
j15e commented 11 years ago

Fixed in latest 0.2.7 release

aj0strow commented 11 years ago

Sweet, thanks!