number_prefix 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +1 -1
- data/lib/number_prefix/number_helper.rb +0 -1
- data/lib/number_prefix/version.rb +1 -1
- metadata +5 -2
data/MIT-LICENSE
CHANGED
@@ -14,7 +14,6 @@ module ActionView
|
|
14
14
|
value = number.to_s.to_d
|
15
15
|
prefix = options[:prefix].present? && (value > 0 || value < 0 && options[:prefix_match] == :negative || options[:prefix_match] == :any)
|
16
16
|
simbol = options[:prefix] == true ? '+' : options[:prefix]
|
17
|
-
puts prefix
|
18
17
|
|
19
18
|
if prefix && nstr.present?
|
20
19
|
nstr.sub(/(-|[0-9])/, simbol+'\1')
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: number_prefix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 31
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Kristijan Sedlak
|
@@ -52,6 +53,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
52
53
|
requirements:
|
53
54
|
- - ">="
|
54
55
|
- !ruby/object:Gem::Version
|
56
|
+
hash: 3
|
55
57
|
segments:
|
56
58
|
- 0
|
57
59
|
version: "0"
|
@@ -60,6 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
62
|
requirements:
|
61
63
|
- - ">="
|
62
64
|
- !ruby/object:Gem::Version
|
65
|
+
hash: 3
|
63
66
|
segments:
|
64
67
|
- 0
|
65
68
|
version: "0"
|