continued_fractions 1.8.5 → 1.8.6
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.
- checksums.yaml +4 -4
- data/lib/continued_fractions.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e5eab62cd6bdda7fe01267a8fb9e1bb34315965c8abfb5432e9a56e375072aef
|
|
4
|
+
data.tar.gz: 5e622e355e22d1178e851c0be379d585b1e1532ccf12cf7848ee36353eed9a91
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b63ae5b51dde6a0dbf94caf43d28c90018a4b37165e3b99c7379a5f1a18493e3c198c9d8ee3dedebe358da5dd8a9543335b51ff3883b1bd750c9378c4cd5760e
|
|
7
|
+
data.tar.gz: ad8e4e948994e0087ae46e9bb31f6c569adb68f6719a4537ab4d86e214a7033c0cf2a747963c5f936ad0a84c8483ce293dd1965d90f1706c21682ace09f87090
|
data/lib/continued_fractions.rb
CHANGED
|
@@ -4,12 +4,12 @@ require 'continued_fractions/include'
|
|
|
4
4
|
#
|
|
5
5
|
# Generates quotients and convergents for a given number
|
|
6
6
|
#
|
|
7
|
-
# Author:: Jose Hales-Garcia (mailto:
|
|
8
|
-
# Copyright:: Copyright (c)
|
|
7
|
+
# Author:: Jose Hales-Garcia (mailto:jose@halesgarcia.com)
|
|
8
|
+
# Copyright:: Copyright (c) 2023 Jose Hales-Garcia
|
|
9
9
|
#
|
|
10
10
|
#
|
|
11
11
|
class ContinuedFraction
|
|
12
|
-
include
|
|
12
|
+
include Comparable
|
|
13
13
|
|
|
14
14
|
attr_accessor :number, :quotients, :limit
|
|
15
15
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: continued_fractions
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.8.
|
|
4
|
+
version: 1.8.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jose Hales-Garcia
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-09-
|
|
11
|
+
date: 2023-09-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|