paramore 3.6.3 → 3.6.4

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: e733dfa7ee459ddb6414dd08d445849699d018c2a48d1f2e0b2f2931175b129b
4
- data.tar.gz: ca5be42b9ea963be8af195748f1fc34979fbbc0b78ee0f5cb9894b67ab98086e
3
+ metadata.gz: f25798a2596838cff8c3355c05286e6c8c6c0493226fed24f93d6d27271a10a5
4
+ data.tar.gz: 9a1bff5d5e92b3fab7045b2ad8904d97b7de7c814f37e9d0535028648db46bc1
5
5
  SHA512:
6
- metadata.gz: ae3f9d54ff493f62b2b6ca3ab8b6d091649123b91f0eaba6f5c3176785bd829576ecea2fdd7a6302e30f778c9119c9719f3d8e6bad4674619baf1bf03316b5e8
7
- data.tar.gz: dc4d963d8e24f838419647f4a7cf2c2591466844d7dc89f99f69ffbb1d0726e2d659101b1f5f9399dcfef762ff3231b1bd3c756ecd37cfe3b1bac1be6f20317b
6
+ metadata.gz: 2a21bf0e45a727fa73473d6d011f6650e0894843962d0c9b493e01093792fd87add7ba1462e66440155b8269ff03d2d49780453f220d847ccafaf22e2a642a03
7
+ data.tar.gz: 9b6d06d90120343be0cd44665c4642c461f02e76a053e694f87e51447e0285eb741d32caa53d888d39ad4000e5fd9bc9e83400f9f07066f6fa78cc77ea8ccc1f
@@ -54,9 +54,11 @@ module Paramore
54
54
  def typecast_array(field, array, name)
55
55
  raise Paramore::ArrayExpected.new(name, array) unless array.is_a?(Array)
56
56
 
57
- array
57
+ result = array
58
58
  .reject { |unit| unit.to_s == '' && field.compact? }
59
59
  .map { |unit| cast(Paramore.field(field.type.first, null: true), unit) }
60
+
61
+ field.compact? ? result.compact : result
60
62
  end
61
63
 
62
64
  def typecast_value(type, value, name)
@@ -6,7 +6,7 @@ module Paramore
6
6
  null: false,
7
7
  compact: false,
8
8
  default: nil,
9
- empty: true,
9
+ empty: false,
10
10
  required: true,
11
11
  }.freeze
12
12
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paramore
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.3
4
+ version: 3.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Kairevičius
@@ -115,7 +115,7 @@ licenses:
115
115
  - MIT
116
116
  metadata: {}
117
117
  post_install_message: |
118
- Thank you for installing Paramore 3.6.3 !
118
+ Thank you for installing Paramore 3.6.4 !
119
119
  From the command line you can run `paramore` to generate a configuration file
120
120
 
121
121
  More details here : https://github.com/lumzdas/paramore/blob/master/README.md