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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bitwiseCalc +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 359f4a4bae8bf1ea241c9fd891e5d4fedadefb3f
4
- data.tar.gz: 2ebc039007a8bb5aff21170ac6b372da65a22390
3
+ metadata.gz: 67fef78d0694a16699b749c8dce9611a318b6663
4
+ data.tar.gz: 97e4c2427f814f9e0925c0466c6ed57782e7fced
5
5
  SHA512:
6
- metadata.gz: f5ad42a008402a0a9e100d638dd8520a11c247bd7ede1ec6b384225e1a4082d83d6106533aee1c7048b0da476157be2a46c57f949af62a0d9c6bbb0010a1b2a8
7
- data.tar.gz: 3db8551ed89b036ce5fe39789e22ea8bb1dce8dd81e447ce90e934e39be8f4ca3e099b65dd0df42c3560589f68e4f053a4c2e6091878e74116f9816e664756b0
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 17:30:50
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.0.0
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