#!/usr/bin/env ruby require File.expand_path('../refinerycms-blog.rb', __FILE__) version = ::Refinery::Blog.version raise "Could not get version so gemspec can not be built" if version.nil? files = Dir.glob("**/*").flatten.reject do |file| file =~ /\.gem(spec)?$/ end gemspec = <= 0.9.9.1' s.add_dependency 'filters_spam', '~> 0.2' s.add_dependency 'acts-as-taggable-on' s.files = %w( #{files.join("\n ")} ) #{"s.test_files = %w( #{Dir.glob("test/**/*.rb").join("\n ")} )" if File.directory?("test")} end EOF File.open(File.expand_path("../../refinerycms-blog.gemspec", __FILE__), 'w').puts(gemspec)