Sha256: 4f07a5c71366f292906c09565bdfdb96e0a55d3788ef9523cb971b1ed295de63

Contents?: true

Size: 1.26 KB

Versions: 6

Compression:

Stored size: 1.26 KB

Contents

# --------------------------------------------------
# Tests
# --------------------------------------------------
load 'test/tests.rake'
task(:default => "test:all")

namespace(:test) do

  desc "Run all tests on multiple ruby versions (requires rvm)"
  task(:portability) do
    versions = %w(  1.8.6  1.8.7  1.9  1.9.2  jruby  )
    versions.each do |version|
      system <<-BASH
        bash -c 'source ~/.rvm/scripts/rvm;
                 rvm use #{version};
                 echo "--------- #{version} ----------";
                 rake -s test:all'
      BASH
    end
  end
end

# --------------------------------------------------
# Docs
# --------------------------------------------------
desc "Generate YARD Documentation"
task :yardoc do
  require 'yard'
  files   = %w( lib/**/*.rb )
  options = %w( -o doc/yard --readme README --files LICENSE )
  YARD::CLI::Yardoc.run *(options + files)
end

# --------------------------------------------------
# Stats
# --------------------------------------------------
desc "LOC count"
task(:loc) do
  loc = 0
  Dir['lib/**/*'].each do |file|
    next if File.directory?(file)
    File.read(file).each_line do |line|
      loc += 1 unless line.strip.empty? || line.strip =~ /^#/
    end
  end
  puts "lib files contain #{loc} SLOCs"
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
social_url_stats-0.0.1 vendor/ruby/1.9.1/gems/mynyml-redgreen-0.7.1/Rakefile
mynyml-redgreen-0.7.1 Rakefile
mynyml-redgreen-0.7 Rakefile
mynyml-redgreen-0.6.2.1 Rakefile
mynyml-redgreen-0.6.2 Rakefile
mynyml-redgreen-0.6 Rakefile