oops_can 0.0.12 → 0.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b6d413b364d3d9fba352820a0cd422f373cce12
4
- data.tar.gz: ecb34d58e550bb01f8fc72a9cc7f422d852727d5
3
+ metadata.gz: 83fd69904546f8df46a0d3a6d262637a2066a247
4
+ data.tar.gz: ffb58e1b83abbe976637a9ab75139502291aca09
5
5
  SHA512:
6
- metadata.gz: 647d4638b69d9804cea7bf86c41321c2b5024e72b82521e741db55bd53880be04fa9d0fae6ff0ce5a0d30a6b7721c25196588bc2a8cb06aaf8a92cd3abbf37ed
7
- data.tar.gz: 2126514e3b5b10428afd4bf3b2ce6731e686186549bffffe691a461e60caa774831469678ff7253dcee2a9c94ce56b0ae82d273863263af58b3dd9ee7c6a2a63
6
+ metadata.gz: 7ef1607807bbdc5d53c4de4d963381773bc46721cd26ab1941fedb730447c95145099447ea735521c2c1a366f996882105db63526d0db1b7dd80e3a4f86e17b0
7
+ data.tar.gz: 248d53f6b91ac88ad238a4e6e97d5e1973f16425f92024329601cf0003487d086d1e447b2f79007ec9ded0241b63c4c0a445c0812aa80ebd8b8f82963ef0240b
@@ -1,3 +1,3 @@
1
1
  module OopsCan
2
- VERSION = "0.0.12"
2
+ VERSION = "0.1.0"
3
3
  end
data/lib/oops_can.rb CHANGED
@@ -14,14 +14,13 @@ class Discriminant
14
14
 
15
15
  d = (b**2) - (4 * a * c )
16
16
  puts "Discriminant: #{d}"
17
- if d > 0 then
18
-
17
+ if d > 0
19
18
  x1 = (b - (d ** 0.5))/(2 * a)
20
19
  x2 = (b + (d ** 0.5))/(2 * a)
21
20
  puts "x1: #{x1}"
22
21
  puts "x2: #{x2}"
23
22
 
24
- elsif d = 0 then
23
+ elsif d == 0
25
24
  x = (-b )/(2 * a)
26
25
  puts "x: #{x}"
27
26
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oops_can
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ubuntus