mirror of
https://github.com/thomaspark/bootswatch.git
synced 2025-10-07 01:54:07 +00:00
Coerce version number to Bundler-accepted format
The Ruby package manager, Bundler, chokes on the "+" in a version number like "4.1.0+1". This fix translates "+" to "." in the version number read from package.json.
This commit is contained in:
@@ -3,7 +3,7 @@ $package = JSON.parse(File.read(File.expand_path("package.json", __dir__)))
|
|||||||
|
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = "bootswatch"
|
s.name = "bootswatch"
|
||||||
s.version = $package["version"]
|
s.version = $package["version"].tr("+", ".")
|
||||||
s.author = $package["author"]
|
s.author = $package["author"]
|
||||||
s.homepage = $package["homepage"]
|
s.homepage = $package["homepage"]
|
||||||
s.summary = $package["description"]
|
s.summary = $package["description"]
|
||||||
|
Reference in New Issue
Block a user