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: d3a8336b094dc7fea6c057a02c031b9456287be4c2902faa3413d5a9616bf588
4
- data.tar.gz: e0098e35a12a8930f23f45a7506d5dde4b4ae2cbc9e56c4d25f9e7c8d2f75663
3
+ metadata.gz: 93bedb0d59952488e4abf5736db0442a9fae71a990b454e843ce3781f23e357d
4
+ data.tar.gz: d6057dfc9b64c77131675037a7dcf9d29cd9c123908c2e318c65446b970d9e47
5
5
  SHA512:
6
- metadata.gz: 158a4a9c1be44cf4975f67dc8d51ad34a4938d4053402b149c459873a0eb19fe3efc4d1a1e8aebf6cfcad0b31dc6ee792d59c2ea6858b215972a39b6376884ff
7
- data.tar.gz: e5cc4d63702e84443e1e371cd4af06d079829134373ca43f304f73f7602cb13cd5bec7e2bc10b6b1b1345840c0e3d983b31838152b3cb936e47ad3317b4f195e
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('//object[@type="application/kenticocloud"][@data-type="item"][@data-codename=$value]',
21
- nil,
22
- :value => tag['data-codename']
23
- )
24
- .swap(output)
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
@@ -1,3 +1,3 @@
1
1
  module Delivery
2
- VERSION = '0.11.3'.freeze
2
+ VERSION = '0.11.4'.freeze
3
3
  end
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.3
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-17 00:00:00.000000000 Z
11
+ date: 2019-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri