closest_fibonacci 1.1.0 → 1.2.0

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 CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.2.0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "closest_fibonacci"
8
- s.version = "1.1.0"
8
+ s.version = "1.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Boris Polania"]
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
24
24
  "README.rdoc",
25
25
  "Rakefile",
26
26
  "VERSION",
27
- "closest_fibonacci-1.1.0.gem",
27
+ "closest_fibonacci-1.2.0.gem",
28
28
  "closest_fibonacci.gemspec",
29
29
  "lib/closest_fibonacci.rb",
30
30
  "test/helper.rb",
@@ -1,6 +1,18 @@
1
1
  module SiUnits
2
2
 
3
- def kilo; self * 1000; end
3
+ def closest_fibonacci
4
+
5
+ while f < self
6
+
7
+ f = f + (f + 1)
8
+
9
+ end
10
+
11
+ f
12
+
13
+ end
14
+
15
+ #def kilo; self * 1000; end
4
16
 
5
17
  end
6
18
 
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: 19
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 1.1.0
10
+ version: 1.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Boris Polania
@@ -109,7 +109,7 @@ files:
109
109
  - README.rdoc
110
110
  - Rakefile
111
111
  - VERSION
112
- - closest_fibonacci-1.1.0.gem
112
+ - closest_fibonacci-1.2.0.gem
113
113
  - closest_fibonacci.gemspec
114
114
  - lib/closest_fibonacci.rb
115
115
  - test/helper.rb