bitwiseCalc 1.0.0 → 1.1.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/lib/bitwiseCalc +2 -2
- 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: 67fef78d0694a16699b749c8dce9611a318b6663
|
4
|
+
data.tar.gz: 97e4c2427f814f9e0925c0466c6ed57782e7fced
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76a0ca578273cbef6c3b80b429e55831468366bdc336d0400807151c12ca4f32c7e18f0916088b4666bb6909612fc9630f9dde44e1dbdf9933656d81ac94529a
|
7
|
+
data.tar.gz: f592001f40988336367bf203be74cfebbe337f78e5c68ce29af8fc2ceaa331c461d44a3a8d4352bce56023f9782d5a5390897c3c220c80592129e9acbe941501
|
data/lib/bitwiseCalc
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
# @Email: vargash1@wit.edu
|
5
5
|
# @Date: 2015-02-23 10:23:20
|
6
6
|
# @Last Modified by: vargash1
|
7
|
-
# @Last Modified time: 2015-06-12
|
7
|
+
# @Last Modified time: 2015-06-12 18:11:32
|
8
8
|
require 'colorize'
|
9
9
|
class BoolCalc
|
10
10
|
def print_all_radix(num)
|
@@ -68,7 +68,7 @@ class BoolCalc
|
|
68
68
|
#rad can read in 2 arguments, but can work with 1
|
69
69
|
#if operation is not either and y is nil then the user forgot an argument
|
70
70
|
operation_restriction = (@operation != "NOT" && @operation != "RAD")
|
71
|
-
if ((operation_restriction && @y == nil) || (@x == nil))
|
71
|
+
if ((operation_restriction && (@y == nil || @y == 0)) || (@x == nil || @x == 0))
|
72
72
|
abort("ERROR, Missing Numbers for Operation:\t#{@operation}".red)
|
73
73
|
end
|
74
74
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitwiseCalc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hector Vargas
|
@@ -42,7 +42,7 @@ homepage: https://github.com/vargash1/Bitwise-Calculator
|
|
42
42
|
licenses:
|
43
43
|
- MIT
|
44
44
|
metadata: {}
|
45
|
-
post_install_message: Thanks for installing!
|
45
|
+
post_install_message: Thanks for installing! run bitwiseCalc -h for usage!
|
46
46
|
rdoc_options: []
|
47
47
|
require_paths:
|
48
48
|
- lib
|