Sha256: bfbfe89068e67964771835da802aa2787c6348d432529d887c77ae287c0a73f7

Contents?: true

Size: 546 Bytes

Versions: 9

Compression:

Stored size: 546 Bytes

Contents

match 'lib/**.rb' do |file, line|
  case line
  when /^\s*#/
    'Comment'
  when /^\s*$/
    'Blank'
  else
    'Ruby'
  end
end

match 'test/**.rb' do |file, line|
  case file
  when /fixtures/i
    nil
  else
    case line
    when /^\s*#/
      'Comment'
    when /^\s*$/
      'Blank'
    else
      'Test'
    end
  end
end

match 'application/js/*.js' do |file, line|
  case file
  when /vendor/i
    nil
  else
    case line
    when /^\s*\/\//
      'Comment'
    when /^\s*$/
      'Blank'
    else
      'JavaScript'
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta10 .locat
spontaneous-0.2.0.beta9 .locat
spontaneous-0.2.0.beta8 .locat
spontaneous-0.2.0.beta7 .locat
spontaneous-0.2.0.beta6 .locat
spontaneous-0.2.0.beta5 .locat
spontaneous-0.2.0.beta4 .locat
spontaneous-0.2.0.beta3 .locat
spontaneous-0.2.0.beta2 .locat