templates/stanza/gemspec.erb in togostanza-1.4.1 vs templates/stanza/gemspec.erb in togostanza-1.5.0

- old
+ new

@@ -1,16 +1,21 @@ lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'json' +metadata = open('./metadata.json') do |io| + JSON.load(io) +end + Gem::Specification.new do |spec| spec.name = '<%= file_name %>' spec.version = '0.0.1' - spec.authors = ['TODO: Write your name'] - spec.email = ['TODO: Write your email address'] - spec.summary = %q{Data visualization, analysis and searching tool for semantic web.} - spec.description = %q{<%= file_name %>.} + spec.authors = Array(metadata["stanza:author"]) + spec.email = Array(metadata["stanza:address"]) + spec.summary = metadata["stanza:label"] + spec.description = metadata["stanza:definition"] spec.homepage = '' - spec.license = 'MIT' + spec.license = metadata["stanza:license"] spec.files = Dir.glob('**/*') spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ['lib']