Permalink
Browse files

restructure files to conform to gem standards. Add gemspec

  • Loading branch information...
lazylester committed May 14, 2013
1 parent 6dd26f5 commit b9a9b96fd43cd5b61d8c49152a9b5b4012785125
Showing with 6 additions and 24 deletions.
  1. +2 −0 .gitignore
  2. +1 −19 Gemfile
  3. +0 −1 VERSION
  4. +3 −0 lib/damerau-levenschtein/version.rb
  5. +0 −4 lib/damerau-levenshtein.rb
View
@@ -52,3 +52,5 @@ pkg
# For rubinius:
#*.rbc
+
+.rvmrc
View
20 Gemfile
@@ -1,19 +1 @@
-source 'https://rubygems.org'
-
-gem 'bundler', '~> 1.0'
-gem 'jeweler', '~> 1.8'
-gem 'rake', '~> 10.0'
-gem 'rake-compiler', '~> 0.8'
-
-group :development do
- gem 'debugger', '~> 1.4'
-end
-
-group :test do
- gem 'rspec', '~> 2.13'
- gem 'cucumber', '~> 1.2'
- gem 'simplecov', '~> 0.7'
- gem 'ruby-prof', '~> 0.13'
- gem 'shoulda', '~> 3.3'
- gem 'mocha', '~> 0.10'
-end
+gemspec
View
@@ -1 +0,0 @@
-1.0.1
@@ -0,0 +1,3 @@
+module DamerauLevenschtein
+ VERSION = 1.0.1
+end
@@ -5,10 +5,6 @@
module DamerauLevenshtein
extend DamerauLevenshteinBinding
- def self.version
- open(File.join(File.dirname(__FILE__), '..', 'VERSION')).read.strip
- end
-
def self.distance(str1, str2, block_size = 1, max_distance = 10)
distance_utf(str1.unpack('U*'), str2.unpack('U*'), block_size, max_distance)
end

0 comments on commit b9a9b96

Please sign in to comment.