pubid-core 0.1.9 → 0.2.0

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: 674271de02078016cd77e900a75a3f85b24b0349f584aa378965915d7dc4ed31
4
- data.tar.gz: 3e077010f8e7ae81846e1723181aac3e740c13aed14f6783599c80f5dd8188c4
3
+ metadata.gz: 93c28e13e304c094216d1462cea591513b1aede6f05af471f3d132c3be3377b4
4
+ data.tar.gz: 271fe8e18f93cdc6992661dd1d947a5b0b07a94a274d89dd7a570ebebf584e62
5
5
  SHA512:
6
- metadata.gz: f1d9907f47c38ec0b024467a6ae84368fefd9060b46e663f03997b4f97273eaa2019745daf3b181dc2ec16da0c425a5ea5e0de13b2056a6f2571d02e3e2ab4f5
7
- data.tar.gz: eb5e3cc9e61fab3859a391cc9dfd9b45f62ef78fa2900bc5277754846a70d37a05da4d7c7e8976832c146b67f75a974db82f6d670251ccbd903c3902e5a2698b
6
+ metadata.gz: 6d2f3e659948c50b0adbbcf3bcc493fc3de30c18328152dc68763c54d194ddf632008a82794101110fd292fadaef4f66aca698da69e907f2499906eb9bbcbb5a
7
+ data.tar.gz: 979782c7e32cb6887f0bac5d308a140eba206bee84b994d9137aeb952ebb6d2419f3c5c7a3c3baa989e3e46753659c9ccdec21374e26afedbe96491cbdb8f6aa
@@ -15,12 +15,13 @@ module Pubid::Core::Renderer
15
15
 
16
16
  def prerender_params(params, opts)
17
17
  params.map do |key, value|
18
+ next unless value
18
19
  if respond_to?("render_#{key}")
19
20
  [key, send("render_#{key}", value, opts, params)]
20
21
  else
21
22
  [key, value]
22
23
  end
23
- end.to_h
24
+ end.compact.to_h
24
25
  end
25
26
 
26
27
  # render from hash keys
@@ -1,5 +1,5 @@
1
1
  module Pubid
2
2
  module Core
3
- VERSION = "0.1.9".freeze
3
+ VERSION = "0.2.0".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubid-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-13 00:00:00.000000000 Z
11
+ date: 2022-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake