Sha256: 2276127fca3d37a3092e704946cbfe64944c2c526fc2a23170d2c2cc6ccabeed
Contents?: true
Size: 700 Bytes
Versions: 1
Compression:
Stored size: 700 Bytes
Contents
require 'rake' desc "install gem" task :install_gem do puts `gem build fakebook.gemspec && sudo gem install fakebook*.gem --no-rdoc --no-ri && rm fakebook*.gem` end desc "update gemspec with latest file list, because github can't deal with File.glob tricks" task :manifest do list = Dir['**/*'].sort spec_file = Dir['*.gemspec'].first list -= [spec_file] if spec_file if spec_file spec = File.read(spec_file) spec.gsub! /^(\s* s.(test_)?files \s* = \s* )( \[ [^\]]* \] | %w\( [^)]* \) )/mx do assignment = $1 bunch = $2 ? list.grep(/^test\//) : list '%s%%w(%s)' % [assignment, bunch.join(' ')] end File.open(spec_file, 'w') {|f| f << spec } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sco-fakebook-0.1.2 | Rakefile |