closest_fibonacci 1.2.0 → 1.2.1

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.2.0
1
+ 1.2.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "closest_fibonacci"
8
- s.version = "1.2.0"
8
+ s.version = "1.2.1"
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,6 @@ Gem::Specification.new do |s|
24
24
  "README.rdoc",
25
25
  "Rakefile",
26
26
  "VERSION",
27
- "closest_fibonacci-1.2.0.gem",
28
27
  "closest_fibonacci.gemspec",
29
28
  "lib/closest_fibonacci.rb",
30
29
  "test/helper.rb",
@@ -2,7 +2,9 @@ module SiUnits
2
2
 
3
3
  def closest_fibonacci
4
4
 
5
- while f < self
5
+ f = 0
6
+
7
+ while f < self do
6
8
 
7
9
  f = f + (f + 1)
8
10
 
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: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 0
10
- version: 1.2.0
9
+ - 1
10
+ version: 1.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Boris Polania
@@ -109,7 +109,6 @@ files:
109
109
  - README.rdoc
110
110
  - Rakefile
111
111
  - VERSION
112
- - closest_fibonacci-1.2.0.gem
113
112
  - closest_fibonacci.gemspec
114
113
  - lib/closest_fibonacci.rb
115
114
  - test/helper.rb