A bunch of fixes and modifications added:

- vendor dir is set as a default as it was described in #16
- @assets_path is now just '/assets' by default as Bower doesn’t just handle JavaScript libraries: it will manage any packages, even if that means HTML, CSS, or images.
- added missing :name option for BowerRails::Dsl#dependencies_to_json method as it is needed for Bower 1.0.0
- added BowerRails::Dsl#write_dotbowerrc to use .bowerrc as a native tool for managing assets' directory
- fix for BowerRails::Dsl#js method:

Before it was like:

  @groups = ["lib"] if @groups.empty?

  @groups.each do |g|
    g_options = Hash === g.last ? g.pop : {}
    assets_path = g_options[:assets_path] || @assets_path

    g_norm = normalize_location_path(g.first,assets_path)
    @dependencies[g_norm] ||= {}
    @dependencies[g_norm][name] = version
  end

But you call Array#last and Array#first for the instance of String as g is a String in @groups.each block

Now it is like:

  @groups = [["vendor", {}]] if @groups.empty?