oops_can 0.0.3 → 0.0.11

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: a4be3f9d3428a6f51893e5e1bb84bcb071c0032e
4
- data.tar.gz: d96d89ef50623e33ca3084af00204d8954f26904
3
+ metadata.gz: ff097c69b571642f4d71a18999410bb8a99bafb6
4
+ data.tar.gz: c978bcee5fbe5cc5281f55243d8bd305dd62b2ac
5
5
  SHA512:
6
- metadata.gz: 5bcee1b23b915aaf450623c8a95407e50e873bb1fbbc58d28360abc9f4d8a1b239ba1fd26e3616db442c94c1bbbbba02d127e247814d9710518a1782ff5b0464
7
- data.tar.gz: dd05a50428208b9d80767162447ee339218429441e01ba23fae8ff69b5fe8be3ab19c3a27044e03a733fd56d26dfcdef9f174a4f78eed3ca724e69c4ba7852f7
6
+ metadata.gz: d7cdaceefecec570852c9f9613e17ece27b9df35a6476dede76b79aecd6da69a1756a59e18d9cadf7955b11cfa0494e9ff981727bf9c88f34ccfd8e0a8581c46
7
+ data.tar.gz: 2d33c1547ebe9b7b4aea7e3410e216993f605abfccfcee6c78ffb351b873725dc5ffafe8c3ed0247842aaf2591ee64fe9f42f3c524b06553c57f7b36266b66a5
@@ -1,3 +1,3 @@
1
1
  module OopsCan
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.11"
3
3
  end
data/lib/oops_can.rb CHANGED
@@ -1,11 +1,30 @@
1
1
  require "oops_can/version"
2
- class Hola
3
- def self.hi
4
- puts "Hello, Vladimir"
5
- end
2
+ class Discriminant
3
+ def self.answer
4
+
5
+ puts "Please input the A: "
6
+ a = gets.to_i
7
+
8
+ puts "Please input the B: "
9
+ b = gets.to_i
6
10
 
7
- def self.bye
8
- puts "Bye, Vladimir"
9
- end
10
- end
11
+ puts "Please input the C: "
12
+ c = gets.to_i
11
13
 
14
+
15
+ d = (b**2) - (4 * a * c )
16
+ puts "Discriminant: #{d}"
17
+ if d > 0 then
18
+
19
+ x1 = (b - (d ** 0.5))/(2 * a)
20
+ x2 = (b + (d ** 0.5))/(2 * a)
21
+ puts "x1: #{x1}"
22
+ puts "x2: #{x2}"
23
+
24
+
25
+
26
+ else
27
+ puts "Not Found X's"
28
+ end
29
+ end
30
+ end
data/oops_can.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Ubuntus"]
10
10
  spec.email = ["uxx_zz@mail.ru"]
11
11
  spec.summary = %q{Hola!}
12
- spec.description = %q{A simple Hello Gem}
12
+ spec.description = %q{A simple discriminant gem}
13
13
  spec.homepage = ""
14
14
  spec.license = "MIT"
15
15
 
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.3
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ubuntus
@@ -38,7 +38,7 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: A simple Hello Gem
41
+ description: A simple discriminant gem
42
42
  email:
43
43
  - uxx_zz@mail.ru
44
44
  executables: []