comee_core 0.3.45 → 0.3.46

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: 1cdf83e72f0053b9db40024b34cc8ec6a9e801503882b53aa18cf471f4fbd4e9
4
- data.tar.gz: cd461f1b90d26b2cd310b880740e041eeac305916a028a0f0cabee1889e192e8
3
+ metadata.gz: ba758dcd6e3e198f9bce176c3068a6c551b3268be25f8d02f6f07dfae89d2338
4
+ data.tar.gz: c52bebae8f6f5ba36544242c6988a796fd84909fbadc568f669926e11dbd944a
5
5
  SHA512:
6
- metadata.gz: '09c222ad1003b4c1b78dcb312c86b7972e7d15d2dbe5053acdcb82bc65944b0a551f23cd00c1b16a0a85438a4fcc602e606447113398cacdaa9998c48aaa2343'
7
- data.tar.gz: e48fe3fa4a1930568b5b29fc0b40a78c9b4fca15b878b68e5ba2cad80db67734842a60e3342507faf0391c781e13e84cf1302486c6b858221bae46c0bd76723b
6
+ metadata.gz: 3bbce625a264c90c8fedafdb4a7fd6528ff89e3a63b78a0321a7d0ef53e77227142bb6a50f03b7357ceddfd0eead9e3736ae364f672e28313e63b57ab719d935
7
+ data.tar.gz: 16eaadf9d4e751ed618e9eca798593d70c8474b16caf36cfd3972b8dfe70abdc1366cc2af458c59e8a775c5073e74a65ccdcb24482b9ca6ecc5f826bc1b31c29
@@ -71,7 +71,10 @@ module Comee
71
71
 
72
72
  return nil if period1 > period2 || period1.contains?(period2)
73
73
 
74
- Period.new(period1.finish.advance(days: 1), period2.finish)
74
+ period = Period.new(period1.finish.advance(days: 1), period2.finish)
75
+ return nil unless period.valid?
76
+
77
+ period
75
78
  end
76
79
  end
77
80
  end
@@ -1,5 +1,5 @@
1
1
  module Comee
2
2
  module Core
3
- VERSION = "0.3.45".freeze
3
+ VERSION = "0.3.46".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comee_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.45
4
+ version: 0.3.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-07 00:00:00.000000000 Z
11
+ date: 2024-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers