Sha256: 26a9d5fbe9975f5ffe5e702444ffac00bb309a903f8ab360d4417f36a16ec50a
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 KB
Contents
clean_white_space = lambda do |entry| entry.gsub(/(\A\n+|\n+\z)/, '') + "\n" end $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "lib")) require "palette/version" Gem::Specification.new do |spec| spec.name = "red-palette" spec.version = Palette::VERSION spec.homepage = "https://github.com/red-data-tools/red-palette" spec.authors = ["Kenta Murata"] spec.email = ["mrkn@mrkn.jp"] readme = File.read("README.md") readme.force_encoding("UTF-8") entries = readme.split(/^\#\#\s(.*)$/) clean_white_space.call(entries[entries.index("Description") + 1]) description = clean_white_space.call(entries[entries.index("Description") + 1]) spec.summary, spec.description, = description.split(/\n\n+/, 3) spec.license = "MIT" spec.files = [ "README.md", "LICENSE.txt", "Rakefile", "Gemfile", "#{spec.name}.gemspec", ] spec.files += [".yardopts"] spec.files += Dir.glob("lib/**/*.rb") spec.files += Dir.glob("image/*.*") spec.files += Dir.glob("doc/text/*") spec.test_files += Dir.glob("test/**/*") spec.add_dependency("red-colors") spec.add_development_dependency("bundler") spec.add_development_dependency("rake") spec.add_development_dependency("test-unit") spec.add_development_dependency("yard") spec.add_development_dependency("kramdown") end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
red-palette-0.3.0 | red-palette.gemspec |
red-palette-0.2.0 | red-palette.gemspec |