bitwiseCalc 1.6.0 → 1.6.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 +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 719c535cb175d4653546c4bb81ef1d1f10938e93
|
4
|
+
data.tar.gz: 2f4760f7f3de6d1aa6fee2ae9d91be98508b9937
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc63a581cfd8e6bc1f9a36d75a10749dba33853d147d573366aab003e5ed5cfd0b22cdc90755a49c51cac0630657f0359238e99a427f7a1e8a01df510f9ae744
|
7
|
+
data.tar.gz: 53dba6b9e3cb8394739480126db2d9efb4f6319366b06f8c9a50cd33b41b3538a9b41c63de2750ec11c7a1fdc34b3c1bf41cca9a80d5f807f7753cbc5e40a105
|
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: Tuesday, May 10th 2016,
|
7
|
+
# @Last modified time: Tuesday, May 10th 2016, 6:40:15 pm
|
8
8
|
require 'colorize'
|
9
9
|
|
10
10
|
class BoolCalc
|
@@ -142,7 +142,7 @@ class BoolCalc
|
|
142
142
|
when arg[/0[0-7]+/]
|
143
143
|
@x == nil ? @x = arg.to_i(8) : @y = arg.to_i(8)
|
144
144
|
#decimal number
|
145
|
-
|
145
|
+
when arg[/^-?[0-9]+/]
|
146
146
|
@x == nil ? @x = arg.to_i : @y = arg.to_i
|
147
147
|
end
|
148
148
|
end
|