linear_graph 0.0.0 → 0.0.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.
- checksums.yaml +4 -4
- data/bin/linear_graph +2 -2
- data/lib/linear_graph.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66caf9beb8c329c2923990af5c26c337c8d2b0ae
|
4
|
+
data.tar.gz: 294d567b32aa34d4bd4f02d451e5a5155af2ead6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fc065274103005db86c5fe8ed339f9c70d4b6ddba3d4b7599637f8af0814ecfd64fbb7ec30f6c3191e57248cb9f9f44d8db64a2d7e28d12839b5af8110c31ab
|
7
|
+
data.tar.gz: f4e0bb05406a78181d3777b1a4dfcc07bab18e52544e91921f29b436bc1e5b68fd016af07af8d6ab381bc4719ff68d6f55843c34eee23358d4ee7a503b18e101
|
data/bin/linear_graph
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require "linear_graph"
|
3
3
|
|
4
|
+
LinearGraph.borders = false if ARGV.include? "--no_borders"
|
4
5
|
if ARGV.include? "--help"
|
5
6
|
puts <<HELP
|
6
7
|
Usage: coordinate_plane slope y-intercept [--zero] [--help]
|
7
8
|
\u00B7 default -> Displays the line of the function in quadrent 1
|
8
9
|
\u00B7 --zero -> Displays the zero of the function
|
10
|
+
\u00B7 --no_borders -> Turns the borders off
|
9
11
|
\u00B7 --help -> Displays this message
|
10
12
|
HELP
|
11
|
-
|
12
13
|
elsif ARGV.include? "--zero"
|
13
14
|
puts LinearGraph.(ARGV[0].to_f, ARGV[1].to_f).zero
|
14
|
-
exit
|
15
15
|
else
|
16
16
|
puts LinearGraph.new(ARGV[0].to_f, ARGV[1].to_f)
|
17
17
|
end
|
data/lib/linear_graph.rb
CHANGED
@@ -36,7 +36,7 @@ class LinearGraph
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def self.borders=(bool)
|
39
|
-
raise ArgumentError, "Argument must be true or false" unless bool == true
|
39
|
+
raise ArgumentError, "Argument must be true or false" unless bool == true || bool == false
|
40
40
|
@@borders = bool
|
41
41
|
end
|
42
42
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linear_graph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zachary Perlmutter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: zrp200@gmail.com
|