Sha256: a561b39c35763a3066afe3113da5790f6c34109adb27df1d3afab98767833743
Contents?: true
Size: 770 Bytes
Versions: 1
Compression:
Stored size: 770 Bytes
Contents
require 'rubygems' require "#{File.dirname(__FILE__)}/lib/new_relic/version.rb" require "#{File.dirname(__FILE__)}/lib/tasks/all.rb" desc 'Generate gemspec [ build_number, stage ]' task :gemspec, [ :build_number, :stage ] do |t, args| require 'erb' version = NewRelic::VERSION::STRING.split('.')[0..2] version << args.build_number.to_s if args.build_number version << args.stage.to_s if args.stage version_string = version.join('.') gem_version = Gem::VERSION date = Time.now.strftime('%Y-%m-%d') files = `git ls-files`.split + ['newrelic_rpm.gemspec'] template = ERB.new(File.read('newrelic_rpm.gemspec.erb')) File.open('newrelic_rpm.gemspec', 'w') do |gemspec| gemspec.write(template.result(binding)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
newrelic_rpm-3.5.2.17 | Rakefile |