cats_core 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/cats/core/stack.rb +2 -2
- data/lib/cats/core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa114e4773fb08fcaa761ebcc584caa4e6314e321e04d66fecccf107af2c72b9
|
4
|
+
data.tar.gz: bb57609da9d647843d17ddfa11e9b9fbbdbe116e35c624fb36a769cafa203dd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1e019180bc325929319cf7e014db073015f9db04f322f904edc436ee17798df1dea5533b8d8f9758b617e60de2d5bc5d3c3fc8741b44b24b062330758389791
|
7
|
+
data.tar.gz: e4221dc2d453f8454ecb8f4cab23757b277dbb18e4f6802abba7463908997227e18298ac6e1add7deae5e932aa3b06c67c4cffa2b9d5ea4d0d35f494c7bc55ab
|
@@ -97,9 +97,9 @@ module Cats
|
|
97
97
|
# If both conditions fail, it means an overlap exists b/n the two stacks
|
98
98
|
|
99
99
|
def overlaps?(st1, st2)
|
100
|
-
return false if st1.start_x > (st2.start_x + st2.
|
100
|
+
return false if st1.start_x > (st2.start_x + st2.length) || st2.start_x > (st1.start_x + st1.length)
|
101
101
|
|
102
|
-
return false if st1.start_y > (st2.start_y + st2.
|
102
|
+
return false if st1.start_y > (st2.start_y + st2.width) || st2.start_y > (st1.start_y + st1.width)
|
103
103
|
|
104
104
|
true
|
105
105
|
end
|
data/lib/cats/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cats_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henock L.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_model_serializers
|