api-regulator 0.1.6 → 0.1.7

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: bc90df799ef332c90224ad7dc69c09b1382e794bd0d78cce52626ba5417cc937
4
- data.tar.gz: 37b309941d4636af0df1db9c3434c6bb559e975d40f70976b27c3d6b928c92d9
3
+ metadata.gz: 21f65fe067c5267aa27557544c2ff86d4bc860be047322336b9489562d6912fa
4
+ data.tar.gz: c87cb89c91c7d5f8a5d2d0454db67c80672696b34594e0f18aab5d0721db39bf
5
5
  SHA512:
6
- metadata.gz: 737dd5beea6afff1a23a105ff48aa7bbc3718d292e59b5e3c91a7373bd5ec7994281472649f42969beb083027999b9f7874e6da12385a096178c6b32106891c0
7
- data.tar.gz: c90270e1edb4a58f0397291ab072224751df8e0ff6a3ebfd3d348f9758a4e4c064177ce371f2d36c761f11ebbfbc5323d5722fe47a2cbbeac779f66033911dce
6
+ metadata.gz: 02f6d4e3824a31fe8ac562d08c87ec1c5c3bb80050e7589ab76b9a2aee172ca06a96965bcc714d54729d263aa85c4eca245608eaaf98dff487f36b4cbdc65c60
7
+ data.tar.gz: 294239002947154ea624821f5f73d4e9600113ce380a7d3344315dba9c3a36be77e77c1a41e28c02890f9fe56ccab981d2a63e177f14069fb0938a3cd023febf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- api-regulator (0.1.6)
4
+ api-regulator (0.1.7)
5
5
  activemodel (~> 8.0)
6
6
  activesupport (~> 8.0)
7
7
 
@@ -4,6 +4,7 @@ require 'uri'
4
4
  module ApiRegulator
5
5
  module Formats
6
6
  DATE = ActiveModel::Type::Date::ISO_DATE
7
+ DATETIME = ActiveModel::Type::Time::ISO_DATETIME
7
8
  EMAIL = URI::MailTo::EMAIL_REGEXP
8
9
  ZIP_CODE = /\A\d{5}(-\d{4})?\z/
9
10
  URI = URI::DEFAULT_PARSER.make_regexp
@@ -141,6 +141,8 @@ module ApiRegulator
141
141
  schema[:format] = 'email'
142
142
  elsif param.options[:format][:with] == Formats::DATE
143
143
  schema[:format] = 'date'
144
+ elsif param.options[:format][:with] == Formats::DATETIME
145
+ schema[:format] = 'date-type'
144
146
  elsif param.options[:format][:with] == Formats::URI
145
147
  schema[:format] = 'uri'
146
148
  elsif param.options[:format][:with].is_a?(Regexp)
@@ -1,3 +1,3 @@
1
1
  module ApiRegulator
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api-regulator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoff Massanek
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-17 00:00:00.000000000 Z
11
+ date: 2024-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport