mirror of
https://github.com/thomaspark/bootswatch.git
synced 2025-10-07 01:54:07 +00:00

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.
15 lines
465 B
Ruby
Executable File
15 lines
465 B
Ruby
Executable File
require "json"
|
|
$package = JSON.parse(File.read(File.expand_path("package.json", __dir__)))
|
|
|
|
Gem::Specification.new do |s|
|
|
s.name = "bootswatch"
|
|
s.version = $package["version"].tr("+", ".")
|
|
s.author = $package["author"]
|
|
s.homepage = $package["homepage"]
|
|
s.summary = $package["description"]
|
|
s.license = $package["license"]
|
|
|
|
s.files = Dir["{dist}/**/*", "LICENSE", "README.md", "package.json"]
|
|
s.require_paths = ["dist"]
|
|
end
|