For the very beginning it can be copied, but it would be nice to:
Handle versions with || inside
Handle versions in format "1.1 - 1.3"
Handle versions with ^
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
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: