Sha256: 8e18ceea03cb73b6d23d8303878e1f0d1465960089ab32570a723c47c1218e56
Contents?: true
Size: 594 Bytes
Versions: 7
Compression:
Stored size: 594 Bytes
Contents
#!/usr/bin/env ruby require 'yaml' name = ARGV.shift # bundler_options are currently not used, maybe later #conf_file = "#{ENV['HOME']}/.gem_polish.yml" #conf = File.exists?(conf_file) ? #YAML.load(File.read(conf_file))['bundler_options'].to_s : {} # hardcoding rspec as testframework conf = '-t rspec' rebuilt_arguments = ARGV.map do |opt| opt.start_with?('-') ? opt : %{"#{opt}"} end.join(' ') b_command = "bundle gem #{name} #{conf}" p_command = "polish_gem #{name} #{rebuilt_arguments}" g_command = "cd #{name} && git add -A" exec([b_command, p_command, g_command].join (' && '))
Version data entries
7 entries across 7 versions & 1 rubygems