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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bdb1adee3b96e70550ebe13e6e0c8a5fb25003bf9f3e6921547ecc597aa12a53
4
- data.tar.gz: c358a310a99dfff0bf57002f81ea5e4dfccbc6937ed064908a5693d234c77568
3
+ metadata.gz: aa114e4773fb08fcaa761ebcc584caa4e6314e321e04d66fecccf107af2c72b9
4
+ data.tar.gz: bb57609da9d647843d17ddfa11e9b9fbbdbe116e35c624fb36a769cafa203dd9
5
5
  SHA512:
6
- metadata.gz: afc8027a1addee047913baa073b8ac5cdac7a5e8d42b7c1a81f303e7d8b28c51948a478f02b240760513787d28a0f583e800e2f65a8abc7a6e0e64103661a1fb
7
- data.tar.gz: 0bfb44fbd9f541ea33738cd1a4f5150040cc9d69d2c3afd40ea5b198cc19b3b8361851bcfb5e6ed412cc0afe74e67d372fcf2a914163fdf672dbea96f60b7dfb
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.width) || st2.start_x > (st1.start_x + st1.width)
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.length) || st2.start_y > (st1.start_y + st1.length)
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
@@ -1,5 +1,5 @@
1
1
  module Cats
2
2
  module Core
3
- VERSION = '1.2.1'.freeze
3
+ VERSION = '1.2.2'.freeze
4
4
  end
5
5
  end
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.1
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-03 00:00:00.000000000 Z
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