Sha256: 6763bed29ee096d895a0f867e5f71dc15f7b20f84aae70cc53f0acc0bed0cc7c

Contents?: true

Size: 278 Bytes

Versions: 26

Compression:

Stored size: 278 Bytes

Contents

#!/usr/bin/env ruby

begin
        require 'rubygems'
        require 'classifier'
rescue
        require 'classifier'
end

require 'open-uri'

num = ARGV[1].to_i
num = num < 1 ? 10 : num

text = open(ARGV.first).read
puts text.gsub(/<[^>]+>/,"").gsub(/[\s]+/," ").summary(num)

Version data entries

26 entries across 26 versions & 9 rubygems

Version Path
classifier-1.4.4 bin/summarize.rb
classifier-1.4.3 bin/summarize.rb
classifier-1.4.2 bin/summarize.rb
classifier-1.4.1 bin/summarize.rb
classifier-1.4.0 bin/summarize.rb
classifier-1.3.5 bin/summarize.rb
classifier-reborn-2.0.4 bin/summarize.rb
scoot-0.0.4 .bundle/gems/ruby/2.2.0/gems/classifier-reborn-2.0.3/bin/summarize.rb
classifier-reborn-2.0.3 bin/summarize.rb
classifier-reborn-2.0.2 bin/summarize.rb
classifier-reborn-2.0.1 bin/summarize.rb
classifier-reborn-2.0.0 bin/summarize.rb
otherinbox-classifier-1.3.1.1 bin/summarize.rb
classifier-reborn-2.0.0.rc1 bin/summarize.rb
classifier-fork-1.3.4 bin/summarize.rb
classifier-1.3.4 bin/summarize.rb
otherinbox-classifier-1.3.1.2.20121218.2 bin/summarize.rb
otherinbox-classifier-1.3.1.2.20121218 bin/summarize.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/classifier-1.3.3/bin/summarize.rb
classifier-1.3.3 bin/summarize.rb