Files
bootswatch/bootswatch.gemspec
Jonathan Hefner d9f9944d5a 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.
2018-04-29 17:45:22 -05:00

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