concerto_simple_rss 0.1 → 0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/simple_rss.rb +4 -2
- data/lib/concerto_simple_rss/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: 0862961c2fc33975aaadb48733a8106c1574fdda
|
|
4
|
+
data.tar.gz: 48532a8bb9c91fe600a0d14b7bd6a0c1ee021295
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa9938a88821f71008b08b9e5c1ec8dc731775c81773ec7ec4e935ad980b9815640425dbc5a050a0b295f433e45cfdad41c2ba3e6ea8c8276f8b1669ccf85b87
|
|
7
|
+
data.tar.gz: 887b422a63307522e274a9f513d87e750639bedefd94f1815849e89da83e551cc8c205e4d089eccab5ce523fcd3afe7b1d72078b7539c6e6fd2aaaa92f2ed86d
|
data/app/models/simple_rss.rb
CHANGED
|
@@ -66,6 +66,8 @@ class SimpleRss < DynamicContent
|
|
|
66
66
|
# by adding the bogus namespace http://concerto.functions
|
|
67
67
|
# A nodeset comes in as an array of REXML::Elements
|
|
68
68
|
XML::XSLT.registerExtFunc("http://concerto.functions", "replace") do |nodes, pattern, replacement|
|
|
69
|
+
Rails.logger.debug("pattern = #{pattern}")
|
|
70
|
+
Rails.logger.debug("replacement = #{replacement}")
|
|
69
71
|
result = []
|
|
70
72
|
begin
|
|
71
73
|
# this will only work with nodesets for now
|
|
@@ -82,8 +84,8 @@ class SimpleRss < DynamicContent
|
|
|
82
84
|
# dont know how to handle this
|
|
83
85
|
Rails.logger.info "I'm sorry, but the xsl external function replace does not know how to handle this type #{nodes.class}"
|
|
84
86
|
end
|
|
85
|
-
rescue
|
|
86
|
-
Rails.logger.error "there was a problem replacing #{pattern} with #{replacement}"
|
|
87
|
+
rescue => e
|
|
88
|
+
Rails.logger.error "there was a problem replacing #{pattern} with #{replacement} - #{e.message}"
|
|
87
89
|
end
|
|
88
90
|
|
|
89
91
|
result
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: concerto_simple_rss
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.2'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brian Michalski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-05-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|