delivery-sdk-ruby 0.11.3 → 0.11.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93bedb0d59952488e4abf5736db0442a9fae71a990b454e843ce3781f23e357d
|
4
|
+
data.tar.gz: d6057dfc9b64c77131675037a7dcf9d29cd9c123908c2e318c65446b970d9e47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cef13a61db0fe6fbbed38a9a2b31a9fcf318e82038a9a2111aee12aaacdee085f733cbf855725f543c06726528a3bbdde99ff2914a114cbbae76dda5f0c533c
|
7
|
+
data.tar.gz: 406c66405ea177a8b79dafa22f2d7b2fe8c74c31515884c88597146498251a789ad6d8f3f0f1fea9171d435f4b24867a6ac0a3cca9d1babfbd6a761f2f8d743c
|
@@ -17,11 +17,12 @@ module Delivery
|
|
17
17
|
tags = doc.xpath('//object[@type="application/kenticocloud"][@data-type="item"]')
|
18
18
|
tags.each do |tag|
|
19
19
|
output = resolve_tag tag, inline_items
|
20
|
-
doc.at_xpath(
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
20
|
+
el = doc.at_xpath(
|
21
|
+
'//object[@type="application/kenticocloud"][@data-type="item"][@data-codename=$value]',
|
22
|
+
nil,
|
23
|
+
value: tag['data-codename']
|
24
|
+
)
|
25
|
+
el.swap(output) unless output.nil?
|
25
26
|
end
|
26
27
|
doc.inner_html
|
27
28
|
end
|
@@ -42,8 +43,6 @@ module Delivery
|
|
42
43
|
else
|
43
44
|
@callback.call matches[0]
|
44
45
|
end
|
45
|
-
else
|
46
|
-
'/404'
|
47
46
|
end
|
48
47
|
end
|
49
48
|
end
|
data/lib/delivery/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delivery-sdk-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Dugre
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|