Skip to content

Commit

Permalink
Prepare 0.3.3 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
norman committed Apr 5, 2011
1 parent 800f894 commit 6da5347
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
12 changes: 8 additions & 4 deletions README.md
Expand Up @@ -20,8 +20,9 @@ FriendlyId.
"Jürgen Müller".to_slug.transliterate.to_s #=> "Jurgen Muller" "Jürgen Müller".to_slug.transliterate.to_s #=> "Jurgen Muller"
"Jürgen Müller".to_slug.transliterate(:german).to_s #=> "Juergen Mueller" "Jürgen Müller".to_slug.transliterate(:german).to_s #=> "Juergen Mueller"


Supported language currently include Danish, German, Serbian and Spanish. I'll Many European languages using both Roman and Cyrillic alphabets are supported.
gladly accept contributions and support more languages. I'll gladly accept contributions from fluent speakers to support more
languages.


### Non-ASCII removal ### Non-ASCII removal


Expand Down Expand Up @@ -164,15 +165,18 @@ Please use Babosa's [Github issue tracker](http://github.com/norman/babosa/issue


## Contributors ## Contributors


* [Kim Joar Bekkelund](https://github.com/kjbekkelund) - Norwegian support
* [Alexey Shkolnikov](https://github.com/grlm) - Russian support * [Alexey Shkolnikov](https://github.com/grlm) - Russian support
* [Martin Petrov](https://github.com/martin-petrov) - Bulgarian support * [Martin Petrov](https://github.com/martin-petrov) - Bulgarian support
* [Molte Emil Strange Andersen](https://github.com/molte) - Danish support * [Molte Emil Strange Andersen](https://github.com/molte) - Danish support
* [Milan Dobrota](https://github.com/milandobrota) - Serbian support * [Milan Dobrota](https://github.com/milandobrota) - Serbian support
* [Kim Joar Bekkelund](https://github.com/kjbekkelund) - Norwegian support




## Changelog ## Changelog


* 0.3.3 - Add Norwegian support.
* 0.3.2 - Improve Macedonian support.
* 0.3.1 - Small fixes to Cyrillic.
* 0.3.0 - Cyrillic support. Improve support for various Unicode spaces and dashes. * 0.3.0 - Cyrillic support. Improve support for various Unicode spaces and dashes.
* 0.2.2 - Fix for "smart" quote handling. * 0.2.2 - Fix for "smart" quote handling.
* 0.2.1 - Implement #empty? for compatiblity with Active Support's #blank?. * 0.2.1 - Implement #empty? for compatiblity with Active Support's #blank?.
Expand All @@ -182,7 +186,7 @@ Please use Babosa's [Github issue tracker](http://github.com/norman/babosa/issue


## Copyright ## Copyright


Copyright (c) 2010 Norman Clarke Copyright (c) 2010-2011 Norman Clarke


Permission is hereby granted, free of charge, to any person obtaining a copy of Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in this software and associated documentation files (the "Software"), to deal in
Expand Down
8 changes: 4 additions & 4 deletions lib/babosa/identifier.rb
Expand Up @@ -84,14 +84,14 @@ def empty?
# characters that are Roman-alphabet characters + diacritics. Non-letter # characters that are Roman-alphabet characters + diacritics. Non-letter
# characters are left unmodified. # characters are left unmodified.
# #
# string = Identifier.new "Łódź, Poland" # string = Identifier.new "Łódź
# string.transliterate # => "Lodz, Poland" # string.transliterate # => "Lodz, Poland"
# string = Identifier.new "日本" # string = Identifier.new "日本"
# string.transliterate # => "日本" # string.transliterate # => "日本"
# #
# You can pass any key(s) from +Characters.approximations+ as arguments. This allows # You can pass any key(s) from +Characters.approximations+ as arguments. This allows
# for contextual approximations. Danish, German, Norwegian, Serbian and Spanish are # for contextual approximations. Various languages are supported, you can see which ones
# currently supported. # by looking at the source of {Babosa::Transliterator::Base}.
# #
# string = Identifier.new "Jürgen Müller" # string = Identifier.new "Jürgen Müller"
# string.transliterate # => "Jurgen Muller" # string.transliterate # => "Jurgen Muller"
Expand Down Expand Up @@ -242,7 +242,7 @@ def tidy_bytes!
end end


%w[transliterate clean downcase word_chars normalize normalize_utf8 %w[transliterate clean downcase word_chars normalize normalize_utf8
tidy_bytes to_ascii to_ruby_method truncate truncate_bytes upcase tidy_bytes to_ascii to_ruby_method truncate truncate_bytes upcase
with_separators].each do |method| with_separators].each do |method|
class_eval(<<-EOM, __FILE__, __LINE__ + 1) class_eval(<<-EOM, __FILE__, __LINE__ + 1)
def #{method}(*args) def #{method}(*args)
Expand Down
2 changes: 1 addition & 1 deletion lib/babosa/version.rb
@@ -1,5 +1,5 @@
module Babosa module Babosa
module Version module Version
STRING = "0.3.2" STRING = "0.3.3"
end end
end end

0 comments on commit 6da5347

Please sign in to comment.