Skip to content
Browse files

Updated to 1.0.2

  • Loading branch information...
1 parent 8d35a1f commit 168f445f0c4b17d9b9dba534174b526c28440d7d @peterc peterc committed Aug 23, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/whatlanguage.rb
View
4 lib/whatlanguage.rb
@@ -2,15 +2,15 @@
require 'digest/sha1'
class WhatLanguage
- VERSION = '1.0.0'
+ VERSION = '1.0.2'
HASHER = lambda { |item| Digest::SHA1.digest(item.downcase.strip).unpack("VV") }
BITFIELD_WIDTH = 2_000_000
@@data = {}
- def initialize(options)
+ def initialize(options = {})
languages_folder = File.join(File.dirname(__FILE__), "..", "lang")
Dir.entries(languages_folder).grep(/\.lang/).each do |lang|
@@data[lang[/\w+/].to_sym] ||= BloominSimple.from_dump(File.read(File.join(languages_folder, lang)), &HASHER)

0 comments on commit 168f445

Please sign in to comment.
Something went wrong with that request. Please try again.