Sha256: 68e37c696ec978c99617f429909b53cca2d32fe15c3c9db9bd78197af67ca0f6

Contents?: true

Size: 1.62 KB

Versions: 2

Compression:

Stored size: 1.62 KB

Contents

# -*- encoding: utf-8 -*-

require File.expand_path('../lib/<%= @namespace_path %>/version', __FILE__)

Gem::Specification.new do |gem|
  gem.name          = <%= @name.inspect %>
  gem.version       = <%= @namespace %>::VERSION
  gem.summary       = %q{<%= @summary %>}
  gem.description   = %q{<%= @description %>}
  gem.license       = <%= @license.inspect %>
  gem.authors       = <%= @authors.inspect %>
  gem.email         = [<%= @email.inspect %>]
  gem.homepage      = <%= @homepage.inspect %>

<%- if git? -%>
  gem.files         = `git ls-files`.split($/)
<%- elsif hg? -%>
  gem.files         = `hg manifest`.split($/)
<%- elsif svn? -%>
  gem.files         = `svn ls -R`.split($/).select { |path| File.file?(path) }
<%- else -%>
  gem.files         = Dir['{**/}{.*,*}'].select { |path| File.file?(path) }
<%- end -%>
  gem.executables   = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
  gem.test_files    = gem.files.grep(%r{^(test|spec|features)/})
  gem.require_paths = ["lib"]
<%- unless @dependencies.empty? -%>

<%-   @dependencies.each do |name,version| -%>
  gem.add_dependency <%= name.inspect %>, <%= version.inspect %>
<%-   end -%>
<%- end -%>

<%- if bundler? -%>
  gem.add_development_dependency "bundler", <%= @development_dependencies['bundler'].inspect %>
<%-   if yard? -%>
  gem.add_development_dependency "yard", <%= @development_dependencies['yard'].inspect %>
<%-   end -%>
<%- else -%>
<%-   unless @development_dependencies.empty? -%>
<%-     @development_dependencies.each do |name,version| -%>
  gem.add_development_dependency <%= name.inspect %>, <%= version.inspect %>
<%-     end -%>
<%-   end -%>
<%- end -%>end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ore-0.9.1 data/ore/templates/gemspec/[name].gemspec.erb
ore-0.9.0 data/ore/templates/gemspec/[name].gemspec.erb