dynarex 1.8.12 → 1.8.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +5 -1
- data.tar.gz.sig +0 -0
- data/lib/dynarex.rb +15 -5
- metadata +2 -2
- metadata.gz.sig +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d350a78873ffe9e82236f9af9f20e83d90b26b800027d4c77d0058a9a9b0f5f
|
4
|
+
data.tar.gz: 53236835ad1754d1a0ac9d67e8a51911789be664e2da8ead7c0d098a3be0b06e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0ad316618307054e5d6e14cff110ba5ffcf1d1cc3a2db5175eb30190e69d69b13864acd098b0049d57b6803a1ff6a9877230161c7d92ecc1184ebe4979dbab0
|
7
|
+
data.tar.gz: 83056323d5dff558c8ecede4b7bb6e547fb1c7b210b7edb1f542aa6e716f11bcfd702bbf4e942583c5a1dcfc22b3a19f4dbdf2c2f60359fcbd32c3cb9215bd23
|
checksums.yaml.gz.sig
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dynarex.rb
CHANGED
@@ -685,6 +685,8 @@ EOF
|
|
685
685
|
|
686
686
|
def to_rss(opt={}, xslt=nil)
|
687
687
|
|
688
|
+
puts 'inside to_rss'.info if @debug
|
689
|
+
|
688
690
|
unless xslt then
|
689
691
|
|
690
692
|
h = {limit: 11}.merge(opt)
|
@@ -698,10 +700,12 @@ EOF
|
|
698
700
|
|
699
701
|
pubdate = @xslt_schema[/pubDate:/]
|
700
702
|
xslif = Rexle.new("<xsl:if test='position() < #{h[:limit]}'/>").root
|
703
|
+
|
704
|
+
|
701
705
|
|
702
706
|
if pubdate.nil? then
|
703
|
-
|
704
|
-
new_item.add
|
707
|
+
pubdate2 = Rexle.new("<pubDate><xsl:value-of select='pubDate'></xsl:value-of></pubDate>").root
|
708
|
+
new_item.add pubdate2
|
705
709
|
end
|
706
710
|
|
707
711
|
xslif.add new_item
|
@@ -712,7 +716,9 @@ EOF
|
|
712
716
|
end
|
713
717
|
|
714
718
|
doc = Rexle.new(self.to_xml)
|
715
|
-
|
719
|
+
|
720
|
+
puts ('pubdate: ' + pubdate.inspect).debug if @debug
|
721
|
+
|
716
722
|
if pubdate.nil? then
|
717
723
|
doc.root.xpath('records/*').each do |x|
|
718
724
|
raw_dt = DateTime.parse x.attributes[:created]
|
@@ -721,8 +727,12 @@ EOF
|
|
721
727
|
end
|
722
728
|
end
|
723
729
|
|
724
|
-
|
725
|
-
|
730
|
+
puts ('doc: ' + doc.root.xml)if @debug
|
731
|
+
#File.write '/tmp/blog.xml', doc.root.xml
|
732
|
+
puts ('xslt:' + xslt.inspect) if @debug
|
733
|
+
#File.write '/tmp/blog.xslt', xslt
|
734
|
+
|
735
|
+
out = Rexslt.new(xslt, doc).to_s(declaration: false)
|
726
736
|
|
727
737
|
#Rexle.new("<rss version='2.0'>%s</rss>" % xml).xml(pretty: true)
|
728
738
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynarex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
+2pKHQJfU1lEmVoo4afsLMvmq/CZPJba1LR3Z1QJXYCWt9IEZTECStKlK7H6RiIx
|
31
31
|
gRA=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2019-01-
|
33
|
+
date: 2019-01-08 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: dynarex-import
|
metadata.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
8c=;�Z�]:w��i��5B7�
|