Sha256: 28d0838c90c02b3d53569e2c3194ba4bd79d00de0ff01f68f8f3415b5fb15dbd

Contents?: true

Size: 649 Bytes

Versions: 12

Compression:

Stored size: 649 Bytes

Contents

require 'rdoc/task'
require 'sdoc'

require 'rspec/core/rake_task'
require "rubygems/package_task"

desc "Run all tests: Exhaustive."
RSpec::Core::RakeTask.new

namespace :spec do
  desc "Only run unit tests: Fast. "
  RSpec::Core::RakeTask.new(:unit) do |task|
    task.pattern = "spec/parslet/**/*_spec.rb"
  end
end

task :default => :spec

# This task actually builds the gem. 
task :gem => :spec
spec = eval(File.read('parslet.gemspec'))

desc "Prints LOC stats"
task :stat do
  %w(lib spec example).each do |dir|
    loc = %x(find #{dir} -name "*.rb" | xargs wc -l | grep 'total').split.first.to_i
    printf("%20s %d\n", dir, loc)
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
parslet-2.0.0 Rakefile
parslet-1.8.2 Rakefile
parslet-1.8.1 Rakefile
parslet-1.8.0 Rakefile
swift-pyrite-0.1.1 vendor/bundle/ruby/2.0.0/gems/parslet-1.7.1/Rakefile
swift-pyrite-0.1.0 vendor/bundle/ruby/2.0.0/gems/parslet-1.7.1/Rakefile
parslet-1.7.1 Rakefile
parslet-1.7.0 Rakefile
parslet-1.6.2 Rakefile
parslet-1.6.1 Rakefile
parslet-1.6.0 Rakefile
parslet-1.5.0 Rakefile