#!/usr/bin/env ruby version = '1.0.3' raise "Could not get version so gemspec can not be built" if version.nil? files = Dir.glob("**/*").flatten.reject do |file| file =~ /\.gem$/ end gemspec = < 0.2') end EOF File.open(File.expand_path("../../cms-inquiries.gemspec", __FILE__), 'w').puts(gemspec)