Sha256: 7d95517584412646cd933ef8a353c8a36905d45956a7987dd606fa7091e726ec
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
# encoding: utf-8 # Bundler is managing $LOAD_PATH, any gem needed by this Rakefile must be # listed as a development dependency in the gemspec require 'bundler/setup' require 'bundler/gem_tasks' require 'rspec/core/rake_task' desc "Run RSpec" RSpec::Core::RakeTask.new do |spec| spec.pattern = 'spec/**/*_spec.rb' end task :default => :spec # put the gemfiles task in the bundler dependency chain task :build => [:gemfiles] task :install => [:gemfiles] task :release => [:gemfiles] desc "Generate .gemfiles via 'git ls-files'" task :gemfiles do files = `git ls-files` filename = File.join(File.dirname(__FILE__), '.gemfiles') cached_files = nil if File.exists?(filename) puts ".gemfiles exists, reading..." cached_files = File.open(filename, "rb") {|f| f.read} end if cached_files && cached_files.match("\r\n") puts ".gemfiles using DOS EOL" files.gsub!(/\n/, "\r\n") end if cached_files != files puts ".gemfiles updating" File.open(filename, 'wb') {|f| f.write(files)} else puts ".gemfiles update not required" end raise "unable to process .gemfiles" unless files end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dynabix-0.3.2 | Rakefile |