Sha256: 1f17a5f948a1c5a54baa0315d22bc83d82a06e7e365343a100880a6e1e474699

Contents?: true

Size: 1.08 KB

Versions: 2

Compression:

Stored size: 1.08 KB

Contents

module Logirel::Tasks
  def nuspec_task proj_meta, opts={}

    k = proj_meta[:ruby_key]

    append_to_file BUILD_FILE, <<-EOF, :verbose => false

desc "Create a nuspec for '#{proj_meta[:title]}'"
nuspec #{inject_task_name opts, k + "_nuspec"}#{ inject_dependency opts } do |nuspec|
  nuspec.id = "\#{PROJECTS[:#{k}][:nuget_key]}"
  nuspec.version = BUILD_VERSION
  nuspec.authors = "\#{PROJECTS[:#{k}][:authors]}"
  nuspec.description = "\#{PROJECTS[:#{k}][:description]}"
  nuspec.title = "\#{PROJECTS[:#{k}][:title]}"
  # nuspec.projectUrl = 'http://github.com/haf' # TODO: Set this for nuget generation
  nuspec.language = "en-US"
  nuspec.licenseUrl = "http://www.apache.org/licenses/LICENSE-2.0" # TODO: set this for nuget generation
  nuspec.requireLicenseAcceptance = "false"
  #{proj_meta[:dependencies].
    collect{|dep| "  nuspec.dependency '#{dep[:nuget_key]}', '#{dep[:version]}'" }.
    join("\n") unless proj_meta[:dependencies].empty?
  }
  nuspec.output_file = FILES[:#{k}][:nuspec]
  nuspec_copy(:#{k}, "\#{PROJECTS[:#{k}][:id]}.{dll,pdb,xml}")
end

EOF
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
logirel-0.1.6 lib/logirel/tasks/nuspec.rb
logirel-0.1.5 lib/logirel/tasks/nuspec.rb