Skip to content

Commit

Permalink
Docs and clean up setup files.
Browse files Browse the repository at this point in the history
  • Loading branch information
norman committed Aug 30, 2010
1 parent b9df13b commit 011d471
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Gemfile.default
@@ -1,3 +1,3 @@
source :rubygems
# gem "unicode"
# gem "activesupport"
gem "rbench"
gemspec
4 changes: 3 additions & 1 deletion bench.rb
@@ -1,6 +1,8 @@
# encoding: utf-8
require "benchmark"
require File.expand_path("../init", __FILE__)
require "rubygems"
require "bundler/setup"
require "babosa"

def sample
"Ja, żołnierz Wojska Polskiego, przysięgam służyć wiernie Rzeczypospolitej Polskiej".to_slug
Expand Down
4 changes: 2 additions & 2 deletions init.rb
@@ -1,3 +1,3 @@
$LOAD_PATH << File.expand_path("../lib", __FILE__)
$LOAD_PATH.uniq!
require "rubygems"
require "bundler/setup"
require "babosa"
6 changes: 3 additions & 3 deletions lib/babosa/identifier.rb
Expand Up @@ -66,8 +66,8 @@ def initialize(string)
# string.transliterate # => "日本"
#
# You can pass any key(s) from +Characters.approximations+ as arguments. This allows
# for contextual approximations. By default; +:spanish+ and +:german+ are
# provided:
# for contextual approximations. Danish, German, Serbian and Spanish are currently
# supported.
#
# string = Identifier.new "Jürgen Müller"
# string.transliterate # => "Jurgen Muller"
Expand Down Expand Up @@ -244,6 +244,6 @@ def send_to_new_instance(*args)
end
end

# Support older versions of FriendlyId.
# Identifier is aliased as SlugString to support older versions of FriendlyId.
SlugString = Identifier
end
2 changes: 0 additions & 2 deletions test/babosa_test.rb
@@ -1,7 +1,5 @@
# encoding: utf-8
$KCODE = 'UTF8' if RUBY_VERSION < '1.9'
$LOAD_PATH << File.expand_path("../../lib", __FILE__)
$LOAD_PATH.uniq!

require "rubygems"
require "bundler/setup"
Expand Down

0 comments on commit 011d471

Please sign in to comment.