closest_fibonacci 1.2.7 → 1.2.9
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/VERSION +1 -1
- data/closest_fibonacci.gemspec +1 -1
- data/lib/closest_fibonacci.rb +3 -3
- data/test/test_closest_fibonacci.rb +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.9
|
data/closest_fibonacci.gemspec
CHANGED
data/lib/closest_fibonacci.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
module
|
1
|
+
module Fibonacci
|
2
2
|
|
3
3
|
def closest_fibonacci
|
4
4
|
|
@@ -21,5 +21,5 @@ module fibonacci
|
|
21
21
|
|
22
22
|
end
|
23
23
|
|
24
|
-
class Float; include
|
25
|
-
class Fixnum; include
|
24
|
+
class Float; include Fibonacci; end
|
25
|
+
class Fixnum; include Fibonacci; end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'helper'
|
2
2
|
|
3
3
|
class TestClosestFibonacci < Test::Unit::TestCase
|
4
|
-
should "
|
5
|
-
|
4
|
+
should "be a numeric value" do
|
5
|
+
assert_true, /^[\d]+(\.[\d]+){0,1}$/ === 100
|
6
6
|
end
|
7
7
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: closest_fibonacci
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 9
|
10
|
+
version: 1.2.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Boris Polania
|