continued_fractions 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/README.txt +2 -2
- data/Rakefile +1 -1
- data/continued_fractions.gemspec +2 -2
- metadata +3 -3
data/History.txt
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
=== 1.2.1 / 2010-03-18
|
2
|
+
|
3
|
+
* Updated README file to display change in return class of ContinuedFractions#convergents.
|
4
|
+
|
1
5
|
=== 1.2.0 / 2010-03-18
|
2
6
|
|
3
7
|
* Changed parameter signature of ContinuedFraction#convergents_as_rationals. Added a nth parameter to select the length of the convergents to return.
|
data/README.txt
CHANGED
@@ -26,10 +26,10 @@ Generates quotients and convergents for a given number.
|
|
26
26
|
[355, 113], [103993, 33102], [104348, 33215], [208341, 66317], [312689, 99532], [833719, 265381], [1146408, 364913]]>
|
27
27
|
|
28
28
|
cf.convergents
|
29
|
-
=> [
|
29
|
+
=> [[3,1], [22,7], [333,106], [355,113], [103993,33102], [104348,33215], [208341,66317], [312689,99532], [833719,265381], [1146408,364913]]
|
30
30
|
|
31
31
|
cf.convergent(1)
|
32
|
-
=>
|
32
|
+
=> [22,7]
|
33
33
|
|
34
34
|
cf.quotients
|
35
35
|
=> [3, 7, 15, 1, 292, 1, 1, 1, 2, 1]
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('continued_fractions', '1.2.
|
5
|
+
Echoe.new('continued_fractions', '1.2.1') do |config|
|
6
6
|
config.summary = 'Generate continued fractions.'
|
7
7
|
config.author = 'Jose Hales-Garcia'
|
8
8
|
config.url = 'http://bitbucket.org/jolohaga/continued_fractions/'
|
data/continued_fractions.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{continued_fractions}
|
5
|
-
s.version = "1.2.
|
5
|
+
s.version = "1.2.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Jose Hales-Garcia"]
|
9
|
-
s.date = %q{2010-03-
|
9
|
+
s.date = %q{2010-03-22}
|
10
10
|
s.description = %q{Generate continued fractions.}
|
11
11
|
s.email = %q{jolohaga@me.com}
|
12
12
|
s.extra_rdoc_files = ["README.txt", "lib/continued_fractions.rb"]
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 1.2.
|
8
|
+
- 1
|
9
|
+
version: 1.2.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jose Hales-Garcia
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-03-
|
17
|
+
date: 2010-03-22 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|