sheerun / bowered

Bower client that integrates with Sprockets
MIT License
2 stars 0 forks source link

Versions converter #14

Open sheerun opened 10 years ago

sheerun commented 10 years ago

It's needed for build process. It converts bower versions to rubygems versions.

The current implementation in Rails Assets is available in: https://github.com/rails-assets/rails-assets/blob/master/app/models/build/utils.rb

For the very beginning it can be copied, but it would be nice to:

Also it would be nice to extract all possible version format from all current repositories and check if version converter can deal with them.

The output of this task is class:

class VersionConverter
  # @param name [String] dependency name from bower
  # @param version [String] dependency version from bower
  # @return [String] normalized version name in rubygems format
  def call(name, version)
  end
end
sheerun commented 10 years ago

I just realized we don't need this because we don't package rubygems with bowered :)

This feature would be nice for 2.0 to drop bower dependency at all.