jekyll-autoscout24 0.1.5 → 0.1.6

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
  SHA1:
3
- metadata.gz: 081a990a4c3c571c35441800b3be54cb7d50338b
4
- data.tar.gz: 6e6ad1cef0d08c18bf39c8bd1504ac529c38311f
3
+ metadata.gz: 95bf25062e304d9ed50dd04e8cdfac1ade585143
4
+ data.tar.gz: 76302dfbf1749de41572bffda8c8cc5507ae7822
5
5
  SHA512:
6
- metadata.gz: e820b4d4172747c8d9894ab2dd466771fbdae6094426339d95e7026be5fc7b546e2ab73b5c71be0b3ed9f642c47e79709f46b8f94813458d9ba8f19e1038301c
7
- data.tar.gz: d89d80c998296856f86d8c11b315157a12223cba85b5d9922af5e5626094aa602820d2cb17fdccacbd55849206b44e6f0a369150981b452a2117cfafe1470b4b
6
+ metadata.gz: fd5c78072b581a26cf35a91b53bdf855f89af942df8dc55c099599ac98f33ab62cd186745706194ae5422679a2e0abb03807614853814437e3d61bd25a73e6e4
7
+ data.tar.gz: 63ceba105c3cdf13636f18b67a8aac839293b7a2de711a7e5d83325050bd1e79f7b1859561603ee6727153fab169ff7026a9756de1ee57a21164614d89738767
@@ -42,11 +42,47 @@ module Jekyll
42
42
  return nil if found.nil? || found.nodes.empty?
43
43
  # could be an array
44
44
  return Prices.new(found) if name == 'prices'
45
+ return Equipments.new(found) if name == 'equipments'
46
+ return Images.new(found) if name == 'images'
45
47
  # either text or recurse
46
48
  found.text === nil ? Entry.new(found) : found.text
47
49
  end
48
50
  end
49
51
 
52
+ class Images < Liquid::Drop
53
+ include Enumerable
54
+
55
+ attr_reader :node
56
+
57
+ # ctor
58
+ def initialize(node)
59
+ @node = node
60
+ end
61
+
62
+ def each
63
+ @node.locate("image").each do |n|
64
+ yield Entry.new(n)
65
+ end
66
+ end
67
+ end
68
+
69
+ class Equipments < Liquid::Drop
70
+ include Enumerable
71
+
72
+ attr_reader :node
73
+
74
+ # ctor
75
+ def initialize(node)
76
+ @node = node
77
+ end
78
+
79
+ def each
80
+ @node.locate("equipment").each do |n|
81
+ yield Entry.new(n)
82
+ end
83
+ end
84
+ end
85
+
50
86
  class Prices < Liquid::Drop
51
87
  include Enumerable
52
88
 
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Autoscout24
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-autoscout24
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Enrico Caputo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-04-11 00:00:00.000000000 Z
12
+ date: 2018-04-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ox