hoodoo 2.12.2 → 2.12.3

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: 97098d14a63ca3169567bec32d623914a8e04389c0b26a1c513ccfcd3069e101
4
- data.tar.gz: 0d673e879ca169f1dbcecd0d1c03bba5c8ec138f377abe99fc7aeccb3c39713d
3
+ metadata.gz: 77237a09b76c06f3de3d9b841ab279df2e85f0face805921bc434d27d0121647
4
+ data.tar.gz: 5c9dea30b74dae008458abddc8a7070dc515522a521dcfc7139c3b341baefbdf
5
5
  SHA512:
6
- metadata.gz: a626927fcbd049c377698fe423550c78cd2feaf1225a54281e63dcc16cfa61093f7d03fbadfa01ef9739ca6987e6a1737fc0e29460a0734ee01536311479dd27
7
- data.tar.gz: 056a00f6fb6e7d171a3228d20e931f27e4e95aad9c5813dc91999666e1472b2f379964d87edf34e40adb2bfcb0692bd33fa0db091a6244a25c35b57297abde1e
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].blank? ? type_option_to_class( options.delete( :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
@@ -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.2'
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-07-11'
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.blank? ? ENV.delete( 'TZ' ) : ENV[ 'TZ' ] = @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.2
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-07-11 00:00:00.000000000 Z
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
- rubyforge_project:
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