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 +4 -4
- data/lib/jekyll-autoscout24/backup_reader.rb +36 -0
- data/lib/jekyll-autoscout24/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95bf25062e304d9ed50dd04e8cdfac1ade585143
|
4
|
+
data.tar.gz: 76302dfbf1749de41572bffda8c8cc5507ae7822
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
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.
|
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-
|
12
|
+
date: 2018-04-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ox
|