Rakefile in bougyman-freeswitcher-0.1.4 vs Rakefile in bougyman-freeswitcher-0.3.0
- old
+ new
@@ -1,17 +1,17 @@
require 'rake/clean'
require "rubygems"
require "lib/fsr"
require "pathname"
-PROJECT_COPYRIGHT = File.read(Pathname.new(__FILE__).dirname.join("License.txt"))
-PROJECT_README = Pathname.new(__FILE__).dirname.join("README").expand_path.to_s
+PROJECT_COPYRIGHT = Pathname(__FILE__).dirname.join("License.txt").read
+PROJECT_README = Pathname(__FILE__).dirname.join("README").expand_path.to_s
PROJECT_FILES = %x{git ls-files}.split
RELEASE_FILES = PROJECT_FILES.reject { |f| f.match(/^(?:contrib)(?:\/|$)/) }
GEM_FILES = RELEASE_FILES.reject { |f| f.match(/^(?:spec)(?:\/|$)/) }
PROJECT_SPECS = (RELEASE_FILES - GEM_FILES).reject { |d| d.match(/(?:helper.rb)$/) }
-GEM_FILES << "spec/helper.rb" if Pathname.new("spec/helper.rb").file?
+GEM_FILES << "spec/helper.rb" if Pathname("spec/helper.rb").file?
GEMSPEC = Gem::Specification.new do |spec|
spec.name = "freeswitcher"
spec.version = ENV["FSR_VERSION"] || FSR::VERSION
@@ -23,10 +23,10 @@
spec.files = GEM_FILES
spec.test_files = PROJECT_SPECS
spec.require_path = "lib"
- description = File.read(PROJECT_README)
+ description = Pathname(PROJECT_README).read
spec.description = description
spec.rubyforge_project = "freeswitcher"
spec.post_install_message = description
end