black_friday 1.0.0 → 1.0.1

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: 7966bbf57ee41cf2517eb0dec3ca6195cb6b64f524cc6a7a05b2b5ffa38c666f
4
- data.tar.gz: eb327004e46a88dbbd45ad513142ff790ce5bf85abe287ef5e0537eab6afc042
3
+ metadata.gz: 4e679dd4cfca531e409eef4065b42bb7d057724366cdee2828749191f908547b
4
+ data.tar.gz: 606472c6b02891eb1cac69679c07823ba5a6c082f8973fb66a7051cf80be76c2
5
5
  SHA512:
6
- metadata.gz: 49b2d7aa8c84b5c01e0fb451fb72e3c1e2d467fc82bf80a17a44a6281374da6f19d4eb6df0ec10dccb39aac2341680a38d1bdc428e88ef1afb75c648ab122f3d
7
- data.tar.gz: 477c1820b56c6d7cb13de244299b81b3aed8cea4c7eb812b57a905f18f0831fd9a2e35a1b8c4ff2032488f683bb5da94d6c6a115019f650238a45f16928e0a4b
6
+ metadata.gz: ce90f9beccdc0eb519ec21b1663dd180afd585c057ae0b075a16156467931fea49808ab25aadeccd5adec4036306215353034d8d2f9a0fa74d2fe17c0f3736b8
7
+ data.tar.gz: 0eaf8488af278d3858040b27fb08f798032982355eb93558378b617a9891cad207ae95a26b2aa6fbc3e0d000dad74f0269369e10cc23f1fd9cccbc2af037468a
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BlackFriday
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
data/lib/black_friday.rb CHANGED
@@ -34,7 +34,7 @@ module BlackFriday
34
34
  end
35
35
 
36
36
  def in_range?(range)
37
- range.include?(range.first.is_a?(Date) ? Date.today : Time.current)
37
+ range.cover?(range.first.is_a?(Date) ? Date.today : Time.current)
38
38
  end
39
39
 
40
40
  # Date helpers
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: black_friday
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Oliver