kelredd-useful 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/useful/ruby_extensions/numeric.rb +2 -0
- data/lib/useful/version.rb +1 -1
- metadata +2 -2
@@ -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
|
data/lib/useful/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2009-06-30 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|