Skip to content

Instantly share code, notes, and snippets.

@git2samus
Created March 9, 2015 19:16
Show Gist options
  • Select an option

  • Save git2samus/e01de451df5d6fc141c7 to your computer and use it in GitHub Desktop.

Select an option

Save git2samus/e01de451df5d6fc141c7 to your computer and use it in GitHub Desktop.
Gem::Specification.new do |spec|
spec.name = 'readability'
spec.author = 'Michael Cetrulo'
spec.email = '[email protected]'
spec.version = '0.0.1'
spec.summary = 'Calculates several readability indices.'
spec.description = 'Readability indices or formulas attempt to represent an entire text with a single number that is representative of the comprehension level required for reading the given text.'
spec.files = ['lib/readability.rb',
'lib/readability/abbreviations.rb',
'lib/readability/syllables.rb',
'lib/readability/data/abbreviations.txt',
'lib/readability/data/dale_chall.txt']
end
$ irb
2.1.4 :001 > require 'readability'
=> true
2.1.4 :002 > Readability.new('').abbr
Errno::ENOENT: No such file or directory @ rb_sysopen - /home/samus/.rvm/gems/ruby-2.1.4@readability/gems/readability-0.0.1/lib/readability/data/abbreviations.txt
from /home/samus/.rvm/gems/ruby-2.1.4@readability/gems/readability-0.0.1/lib/readability/abbreviations.rb:11:in `read'
from /home/samus/.rvm/gems/ruby-2.1.4@readability/gems/readability-0.0.1/lib/readability/abbreviations.rb:11:in `get_list'
from /home/samus/.rvm/gems/ruby-2.1.4@readability/gems/readability-0.0.1/lib/readability.rb:31:in `abbr'
from (irb):2
from /home/samus/.rvm/rubies/ruby-2.1.4/bin/irb:11:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment