logicgates 0.0.4 → 0.0.5

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: c42149d3acf1ea91dae5da4310f4ec129f38c05b
4
- data.tar.gz: ec8a98da8af2c4abdaf6612a037cee9771d14ff1
3
+ metadata.gz: ea9c813bab09117d9949491070c590907fac3b14
4
+ data.tar.gz: 14e29ef8c84e49869daa76124b6d299068e16710
5
5
  SHA512:
6
- metadata.gz: e0aaff8cd9968b547986a71072e02dc944374ec5f747c5ad02d10184194452c590e95f5dc54d7c056c55dcb4216633d2a89f5ed3ae783a553a3526ea91a6ac36
7
- data.tar.gz: 24f72ad1d0fde5cae5812f7f7eca695950ebb57f26988bf72402a499e495b2ec166b44e6ea245a09519cdfd714bc9e2048de4db22eec80b73be0d2f3884cf8e0
6
+ metadata.gz: c75ec18329b5b56a41daa70d30d148834c7115a635c09d676cbe67cd5cc7ac5f9706bd725a06cc8ff32e2a6596f7c0db93b84eb21d8f7629b73deb1b264d5de7
7
+ data.tar.gz: f06a01a9501a14d880a1572049d89e82effb494f096b25ec37aa12be05b37cf5cf009d2b0a5f56c0a531562a535d882297c6c6af0ffa67936f4793bfdcaaf03a
data/.gitignore CHANGED
@@ -6,3 +6,4 @@ logicgates-0.0.0.gem
6
6
  logicgates-0.0.1.gem
7
7
  logicgates-0.0.2.gem
8
8
  logicgates-0.0.3.gem
9
+ logicgates-0.0.4.gem
@@ -1,3 +1,3 @@
1
1
  module LogicGates
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/logicgates.rb CHANGED
@@ -1,10 +1,10 @@
1
1
  module LogicGates
2
2
 
3
- def self.and(a, b)
3
+ def self.my_and(a, b)
4
4
  a && b
5
5
  end
6
6
 
7
- def self.or(a, b)
7
+ def self.my_or(a, b)
8
8
  a || b
9
9
  end
10
10
 
@@ -13,15 +13,15 @@ module LogicGates
13
13
  end
14
14
 
15
15
  def self.xor(a, b)
16
- and(or(a, b), not(and(a, b)))
16
+ my_and(my_or(a, b), not(my_and(a, b)))
17
17
  end
18
18
 
19
19
  def self.nor(a, b)
20
- not(or(a, b))
20
+ not(my_or(a, b))
21
21
  end
22
22
 
23
- def self.nand(a, b)
24
- not(and(a, b))
23
+ def self.nmy_and(a, b)
24
+ not(my_and(a, b))
25
25
  end
26
26
 
27
27
  def self.xnor(a, b)
@@ -29,7 +29,7 @@ module LogicGates
29
29
  end
30
30
 
31
31
  def self.mux(a, b, s)
32
- or(and(a, not(s)), and(b, s))
32
+ my_or(my_and(a, not(s)), my_and(b, s))
33
33
  end
34
34
 
35
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logicgates
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - DouglasTGordon