closest_fibonacci 1.2.6 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
data/.DS_Store CHANGED
Binary file
data/Rakefile CHANGED
@@ -21,7 +21,6 @@ Jeweler::Tasks.new do |gem|
21
21
  gem.description = "Fibonacci gem for ModCloth"
22
22
  gem.email = "boris.polania@gmail.com"
23
23
  gem.authors = ["Boris Polania"]
24
- gem.executables = ['closest_fibonacci']
25
24
  # dependencies defined in Gemfile
26
25
  end
27
26
  Jeweler::RubygemsDotOrgTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.6
1
+ 1.2.7
@@ -5,14 +5,13 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "closest_fibonacci"
8
- s.version = "1.2.6"
8
+ s.version = "1.2.7"
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"]
12
12
  s.date = "2012-01-25"
13
13
  s.description = "Fibonacci gem for ModCloth"
14
14
  s.email = "boris.polania@gmail.com"
15
- s.executables = ["closest_fibonacci"]
16
15
  s.extra_rdoc_files = [
17
16
  "LICENSE.txt",
18
17
  "README.rdoc"
@@ -26,9 +25,6 @@ Gem::Specification.new do |s|
26
25
  "README.rdoc",
27
26
  "Rakefile",
28
27
  "VERSION",
29
- "bin/.DS_Store",
30
- "bin/closest_fibonacci",
31
- "bin/textexec",
32
28
  "closest_fibonacci.gemspec",
33
29
  "lib/closest_fibonacci.rb",
34
30
  "test/helper.rb",
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: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 6
10
- version: 1.2.6
9
+ - 7
10
+ version: 1.2.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Boris Polania
@@ -94,8 +94,8 @@ dependencies:
94
94
  requirement: *id005
95
95
  description: Fibonacci gem for ModCloth
96
96
  email: boris.polania@gmail.com
97
- executables:
98
- - closest_fibonacci
97
+ executables: []
98
+
99
99
  extensions: []
100
100
 
101
101
  extra_rdoc_files:
@@ -110,9 +110,6 @@ files:
110
110
  - README.rdoc
111
111
  - Rakefile
112
112
  - VERSION
113
- - bin/.DS_Store
114
- - bin/closest_fibonacci
115
- - bin/textexec
116
113
  - closest_fibonacci.gemspec
117
114
  - lib/closest_fibonacci.rb
118
115
  - test/helper.rb
data/bin/.DS_Store DELETED
Binary file
@@ -1,26 +0,0 @@
1
- #!/usr/bin/env ruby
2
- module fibonacci
3
-
4
- def closest_fibonacci
5
-
6
- def fibonaccit(n)
7
- return n if (0..1).include? n
8
- fibonaccit(n-1) + fibonaccit(n-2) if n > 1
9
- end
10
-
11
- i = 0
12
-
13
- while fibonaccit(i) < self do
14
-
15
- i = i + 1;
16
-
17
- end
18
-
19
- fib(i - 1)
20
-
21
- end
22
-
23
- end
24
-
25
- class Float; include fibonacci; end
26
- class Fixnum; include fibonacci; end
data/bin/textexec DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env ruby
2
- puts "hello world"