Permalink
Browse files

Adding constants for abbreviated number min/max, changing github path…

… for ruby-cldr now that our PR has been merged
  • Loading branch information...
1 parent 2907707 commit 81f9e83966d6758a8b5831adafe1de68ce3db3f7 Cameron Dutro committed Nov 15, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 Gemfile
  2. +2 −2 lib/twitter_cldr/formatters/numbers/abbreviated/abbreviated_number_formatter.rb
View
@@ -10,7 +10,7 @@ end
group :development do
gem 'nokogiri'
- gem 'ruby-cldr', :github => 'camertron/ruby-cldr', :branch => "additional_date_time_formats"
+ gem 'ruby-cldr', :github => 'svenfuchs/ruby-cldr'
end
group :test do
@@ -6,8 +6,8 @@
module TwitterCldr
module Formatters
class AbbreviatedNumberFormatter < NumberFormatter
- NUMBER_MAX = (10 ** 15)
- NUMBER_MIN = 1000
+ NUMBER_MAX = 10 ** (TwitterCldr::Tokenizers::NumberTokenizer::ABBREVIATED_MAX_POWER + 1)
+ NUMBER_MIN = 10 ** TwitterCldr::Tokenizers::NumberTokenizer::ABBREVIATED_MIN_POWER
def default_format_options_for(number)
{ :precision => 0 }

0 comments on commit 81f9e83

Please sign in to comment.