hoodoo 2.12.2 → 2.12.3
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 +4 -4
- data/lib/hoodoo/presenters/types/hash.rb +1 -1
- data/lib/hoodoo/version.rb +2 -2
- data/spec/utilities/utilities_spec.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77237a09b76c06f3de3d9b841ab279df2e85f0face805921bc434d27d0121647
|
|
4
|
+
data.tar.gz: 5c9dea30b74dae008458abddc8a7070dc515522a521dcfc7139c3b341baefbdf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1ab5e8db21aefa1574adf39df846347078eba173ca7af321648bc6375a932a9cfc1791f0492f88f44bea1d0782254fc236c9e23a09d4c6b1038ef516facdbe30
|
|
7
|
+
data.tar.gz: f248fd134ea0a9366f226f25b3afbd748f3315296b406b9d1463044158a5d45ecfab115a8d95e48873097de1e0b3438b373bbd42ef083635a79b365a17dae678
|
|
@@ -62,7 +62,7 @@ module Hoodoo
|
|
|
62
62
|
# If an explicit type is given, use that. Otherwise, default to Field
|
|
63
63
|
# if no block is given, or Object is a block is given.
|
|
64
64
|
#
|
|
65
|
-
value_klass = !options[:type].
|
|
65
|
+
value_klass = !(options[:type].nil? || options[:type] == '') ? type_option_to_class( options.delete( :type ) ) :
|
|
66
66
|
(block_given? ? Hoodoo::Presenters::Object : Hoodoo::Presenters::Field)
|
|
67
67
|
|
|
68
68
|
# If we're defining specific keys and some of those keys have fields
|
data/lib/hoodoo/version.rb
CHANGED
|
@@ -12,11 +12,11 @@ module Hoodoo
|
|
|
12
12
|
# The Hoodoo gem version. If this changes, be sure to re-run
|
|
13
13
|
# <tt>bundle install</tt> or <tt>bundle update</tt>.
|
|
14
14
|
#
|
|
15
|
-
VERSION = '2.12.
|
|
15
|
+
VERSION = '2.12.3'
|
|
16
16
|
|
|
17
17
|
# The Hoodoo gem date. If this changes, be sure to re-run
|
|
18
18
|
# <tt>bundle install</tt> or <tt>bundle update</tt>.
|
|
19
19
|
#
|
|
20
|
-
DATE = '2019-
|
|
20
|
+
DATE = '2019-11-12'
|
|
21
21
|
|
|
22
22
|
end
|
|
@@ -604,7 +604,7 @@ describe Hoodoo::Utilities do
|
|
|
604
604
|
end
|
|
605
605
|
|
|
606
606
|
after :each do
|
|
607
|
-
@old_tz.
|
|
607
|
+
(@old_tz.nil? || @old_tz == '') ? ENV.delete( 'TZ' ) : ENV[ 'TZ' ] = @old_tz
|
|
608
608
|
end
|
|
609
609
|
|
|
610
610
|
it 'accepts a non-UTC Time and renders a UTC date-time' do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hoodoo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.12.
|
|
4
|
+
version: 2.12.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Loyalty New Zealand
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-11-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rack
|
|
@@ -598,8 +598,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
598
598
|
- !ruby/object:Gem::Version
|
|
599
599
|
version: '0'
|
|
600
600
|
requirements: []
|
|
601
|
-
|
|
602
|
-
rubygems_version: 2.7.7
|
|
601
|
+
rubygems_version: 3.0.6
|
|
603
602
|
signing_key:
|
|
604
603
|
specification_version: 4
|
|
605
604
|
summary: Opinionated APIs
|