kelredd-useful 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,7 @@
1
1
  require File.join(File.dirname(__FILE__), '..', 'ruby_extensions_from_rails', 'object') unless Object.new.respond_to?(:blank?)
2
2
  require File.join(File.dirname(__FILE__), '..', 'ruby_extensions_from_rails', 'hash') unless Hash.new.respond_to?(:symbolize_keys!)
3
3
  require File.join(File.dirname(__FILE__), '..', 'ruby_extensions_from_rails', 'string') unless String.new.respond_to?(:starts_with?)
4
+ require File.join(File.dirname(__FILE__), 'hash') unless Hash.new.respond_to?(:only)
4
5
 
5
6
  module Useful
6
7
  module RubyExtensions
@@ -92,6 +93,7 @@ module Useful
92
93
  def with_precision(opts = {})
93
94
  opts.symbolize_keys!
94
95
  opts[:locale] ||= :en
96
+ opts[:delimiter] ||= ''
95
97
  locale = LOCALES[opts.delete(:locale)]
96
98
  opts = locale[:defaults].merge(locale[:format]).merge(opts) unless locale.nil?
97
99
  opts[:precision] ||= 2
@@ -3,7 +3,7 @@ module Useful
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
- TINY = 12
6
+ TINY = 13
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kelredd-useful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelredd
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-29 00:00:00 -07:00
12
+ date: 2009-06-30 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15