basic_calculator 0.0.2 → 0.0.3

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/basic_calculator.rb +11 -3
  3. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c9d3f953d27d26b006c06323448ad6cc9807445
4
- data.tar.gz: 2a9f68bd774bb6def3b54bb0517039d7f106eb06
3
+ metadata.gz: 9c301ac0989d946d45ea689da942023b8e1c3936
4
+ data.tar.gz: 4900e028cfe0aa19b60b331751f34546c1e17cd0
5
5
  SHA512:
6
- metadata.gz: ebe80ee18f07d8be8781dffbaea4b2dec85192f18bd307bb34e6865ddbb9c186b798c25eb486652a27a04c79cecced9c228909de1b8b35a407882bcc43a306ec
7
- data.tar.gz: 359311c2aa16ed98ec29afcc2074667bf1566c9efb4d8065686ab35743044ee60db79293abdfcb1b92bb92bad77b910fabe617638fb334728e5ce2c300fac690
6
+ metadata.gz: 0d77315fc0a2ac6d3c1d76d77a13473a9178a09bd20e6bba57d433efc23d8dfd83b0f021554f4864137e54175f0b88b8264dee4bbb29dbd5f7595d790e932c8d
7
+ data.tar.gz: 283899dbec6b7dbefd1f47794b4623e2b2880ef639e19c9bea4f042165abd9343b82b42260244530d84e82dea99dae027cd2dea095681733197464d0ff216fa2
@@ -3,7 +3,7 @@ class BasicCalculator
3
3
  begin
4
4
  return a + b
5
5
  rescue Exception => e
6
- puts "Something went wrong #{e}"
6
+ puts "Something went wrong. #{e}"
7
7
  end
8
8
  end
9
9
 
@@ -11,7 +11,7 @@ class BasicCalculator
11
11
  begin
12
12
  return a-b
13
13
  rescue Exception => e
14
- puts "Something went wrong #{e}"
14
+ puts "Something went wrong. #{e}"
15
15
  end
16
16
  end
17
17
 
@@ -19,7 +19,15 @@ class BasicCalculator
19
19
  begin
20
20
  return a*b
21
21
  rescue Exception => e
22
- "Something went wrong #{e}"
22
+ "Something went wrong. #{e}"
23
+ end
24
+ end
25
+
26
+ def self.devide(a,b)
27
+ begin
28
+ return a/b
29
+ rescue Exception => e
30
+ "Something went wrong. #{e}"
23
31
  end
24
32
  end
25
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basic_calculator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Syed Saud Hasan
@@ -10,7 +10,8 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2019-10-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: You can perform basic mathematical operations using this ruby gem
13
+ description: You can perform basic mathematical operations(add/subtract/multiply/devide)
14
+ using this ruby gem
14
15
  email: syedsaud@theporter.in
15
16
  executables: []
16
17
  extensions: []