sequel-tstzrange-fields 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: ec8083564a067989885ce28a4df1ea40f771bc9e9dc0629391d2029c92e0192a
4
- data.tar.gz: '048514b958e7a5f84cab268c3f3e3da5a380378001a780f763f11ca680a66aa3'
3
+ metadata.gz: 8ce882832d62ea1342d7daaea5e30958d2bda7f52f02d6279d0f03b38b4b0a10
4
+ data.tar.gz: 99d7b2e90fe4b6d050f9e4f856d709bab47a97cf658ecf12c57131705006a89e
5
5
  SHA512:
6
- metadata.gz: ccff8dea73d55454198dd75875c82c7a05c201404bd757d2d2d5b1559619635806a2ca31bbb1f442223f3ed1ce59f2c8f4e7265625e934ee8ae0d9468de38b39
7
- data.tar.gz: 7a44746f3b61f8338f3e3dd3335efeef8bf6ac00a19bb742359ffb87a63b5f57b16c152f3f1d90630396982610d8bcc1808e33a4d56122d681502ccf837cdb67
6
+ metadata.gz: '0389be6b6156008e52eb8db931bd1b710aa444ec877a1971c7255cca008c9650e46d14ea107525ddae52447cbdc41dcb901425b1ebcf168a870ee2741272fca0'
7
+ data.tar.gz: cd145bb21d5a9b24c260bcbf342bcc214dc7a1eac5adbb05f8ab64ed47b148921b7545866f1750dedc41d83f76113760457a882457f73517998968847223f9b4
@@ -130,7 +130,7 @@ module Sequel
130
130
  # Limit the dataset to the rows where the tstzrange column contains the given value.
131
131
  # val is cast into a timestamptz.
132
132
  # column is the default/first tstzrange column if not given.
133
- def tztsrange_contains(val, column: nil)
133
+ def tstzrange_contains(val, column: nil)
134
134
  column ||= self.model.tstzrange_columns.first
135
135
  self.where(Sequel.pg_range(column).contains(Sequel.cast(val, :timestamptz)))
136
136
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SequelTstzrangeFields
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-tstzrange-fields
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lithic Tech