Sha256: 98ecf1ad17ac903a17d842439ae39948107a76197896cc2684dcc14a6f954cb1
Contents?: true
Size: 780 Bytes
Versions: 4
Compression:
Stored size: 780 Bytes
Contents
#!/usr/bin/ruby # Ruby RPM Spec Updater # # Simple tool to update the rpm spec of a packaged gem # or ruby app. # # User should specify the location of the rpm spec to # manipulate. Script takes an additional option to specify # the version of the gem to update to or the location of # the gem/gemspec/gemfile source which parse and use. # # Usage: # ruby_rpm_spec_updater.rb <path-to-spec> <optional-source-or-version> # # Licensed under the MIT License # Copyright (C) 2013-2014 Red Hat, Inc. require 'polisher' spec_file = ARGV.shift source = ARGV.shift rpmspec = Polisher::RPM::Spec.parse File.read(spec_file) source = source.nil? ? Polisher::Gem.retrieve(rpmspec.gem_name) : Polisher::Upstream.parse(source) rpmspec.update_to(source) puts rpmspec.to_string
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
polisher-0.10.2 | bin/ruby_rpm_spec_updater.rb |
polisher-0.10.1 | bin/ruby_rpm_spec_updater.rb |
polisher-0.9.1 | bin/ruby_rpm_spec_updater.rb |
polisher-0.8.1 | bin/ruby_rpm_spec_updater.rb |