gci-class-extensions 1.2.3 → 1.2.4
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/gci-class-extensions.rb +7 -0
- data/spec/gci-class-extensions_spec.rb +8 -0
- metadata +13 -34
data/lib/gci-class-extensions.rb
CHANGED
@@ -156,6 +156,14 @@ describe String, "when scrubbing the dollar amounts to only the digits" do
|
|
156
156
|
|
157
157
|
end
|
158
158
|
|
159
|
+
describe Fixnum, "accepting a parameter to round as float does" do
|
160
|
+
it "should ignore the parameter and just return itself" do
|
161
|
+
1.round(2).should == 1.0
|
162
|
+
7.round(9).should == 7.0
|
163
|
+
0.round(123456789).should == 0.0
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
159
167
|
describe Float, "knowing its value as a percentage" do
|
160
168
|
it "should convert itself with the default precision" do
|
161
169
|
# when it rounds
|
metadata
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gci-class-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 2
|
9
|
-
- 3
|
10
|
-
version: 1.2.3
|
4
|
+
version: 1.2.4
|
11
5
|
platform: ruby
|
12
6
|
authors:
|
13
7
|
- Patrick Byrne
|
@@ -15,37 +9,29 @@ autorequire:
|
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
11
|
|
18
|
-
date: 2010-08-
|
12
|
+
date: 2010-08-24 00:00:00 -05:00
|
19
13
|
default_executable:
|
20
14
|
dependencies:
|
21
15
|
- !ruby/object:Gem::Dependency
|
22
16
|
name: activesupport
|
23
|
-
|
24
|
-
|
25
|
-
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
20
|
requirements:
|
27
21
|
- - ">="
|
28
22
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
|
-
segments:
|
31
|
-
- 0
|
32
23
|
version: "0"
|
33
|
-
|
34
|
-
version_requirements: *id001
|
24
|
+
version:
|
35
25
|
- !ruby/object:Gem::Dependency
|
36
26
|
name: valid-date
|
37
|
-
|
38
|
-
|
39
|
-
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
30
|
requirements:
|
41
31
|
- - ">="
|
42
32
|
- !ruby/object:Gem::Version
|
43
|
-
hash: 3
|
44
|
-
segments:
|
45
|
-
- 0
|
46
33
|
version: "0"
|
47
|
-
|
48
|
-
version_requirements: *id002
|
34
|
+
version:
|
49
35
|
description:
|
50
36
|
email: code@patrickbyrne.net
|
51
37
|
executables: []
|
@@ -57,7 +43,6 @@ extra_rdoc_files:
|
|
57
43
|
files:
|
58
44
|
- lib/gci-class-extensions.rb
|
59
45
|
- README
|
60
|
-
- spec/gci-class-extensions_spec.rb
|
61
46
|
has_rdoc: true
|
62
47
|
homepage: http://bitbucket.org/pbyrne/common-ruby-class-extensions/
|
63
48
|
licenses: []
|
@@ -68,27 +53,21 @@ rdoc_options: []
|
|
68
53
|
require_paths:
|
69
54
|
- lib
|
70
55
|
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
-
none: false
|
72
56
|
requirements:
|
73
57
|
- - ">="
|
74
58
|
- !ruby/object:Gem::Version
|
75
|
-
hash: 3
|
76
|
-
segments:
|
77
|
-
- 0
|
78
59
|
version: "0"
|
60
|
+
version:
|
79
61
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
-
none: false
|
81
62
|
requirements:
|
82
63
|
- - ">="
|
83
64
|
- !ruby/object:Gem::Version
|
84
|
-
hash: 3
|
85
|
-
segments:
|
86
|
-
- 0
|
87
65
|
version: "0"
|
66
|
+
version:
|
88
67
|
requirements: []
|
89
68
|
|
90
69
|
rubyforge_project:
|
91
|
-
rubygems_version: 1.3.
|
70
|
+
rubygems_version: 1.3.5
|
92
71
|
signing_key:
|
93
72
|
specification_version: 3
|
94
73
|
summary: A gem used by our internal team for common class extensions, like not_blank? and not_nil? counterparts to blank? and nil?.
|