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 +4 -4
- data/lib/pubid/core/renderer/base.rb +2 -1
- data/lib/pubid/core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93c28e13e304c094216d1462cea591513b1aede6f05af471f3d132c3be3377b4
|
4
|
+
data.tar.gz: 271fe8e18f93cdc6992661dd1d947a5b0b07a94a274d89dd7a570ebebf584e62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/pubid/core/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2022-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|