linear_graph 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c38193e5e1bbcf5013c2f2fe45a3adc80344ee2
4
- data.tar.gz: cef822e6dff8de1c54325566a2174114b172e458
3
+ metadata.gz: 66caf9beb8c329c2923990af5c26c337c8d2b0ae
4
+ data.tar.gz: 294d567b32aa34d4bd4f02d451e5a5155af2ead6
5
5
  SHA512:
6
- metadata.gz: cee3f9e1fe4af21e21e67735f869c5704f56d90aabd9cbdfafa4051982c409ab35964ca41d6e5b217576b75d5f495e7eeab0ce3313bca1506da80176aa0a9bc1
7
- data.tar.gz: 4913a0af6b0d56f238a5267e2526602daa98c630fc29d36bc4028beba26716c1c33d252a62d03eb33c0e89abb97a1b7a8e49d925a4234df31dd1af7e4b9bfa2b
6
+ metadata.gz: 5fc065274103005db86c5fe8ed339f9c70d4b6ddba3d4b7599637f8af0814ecfd64fbb7ec30f6c3191e57248cb9f9f44d8db64a2d7e28d12839b5af8110c31ab
7
+ data.tar.gz: f4e0bb05406a78181d3777b1a4dfcc07bab18e52544e91921f29b436bc1e5b68fd016af07af8d6ab381bc4719ff68d6f55843c34eee23358d4ee7a503b18e101
@@ -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
@@ -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 | false
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.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-02 00:00:00.000000000 Z
11
+ date: 2015-01-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: zrp200@gmail.com