concerto_simple_rss 0.1 → 0.2

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: 5e6fb52c7e3495312e80894ac2eb676a17e35d24
4
- data.tar.gz: 7c7cf3c32745e8f4f62e8ed0e09ea944fb228dbd
3
+ metadata.gz: 0862961c2fc33975aaadb48733a8106c1574fdda
4
+ data.tar.gz: 48532a8bb9c91fe600a0d14b7bd6a0c1ee021295
5
5
  SHA512:
6
- metadata.gz: a33d6fcaa6f01b09b975812216f2eb044137363d86543575a1bb18d244aee0c160129edf94b2485a2a2724a05e3daecf49abfa126621d95e0cec5622e04eee00
7
- data.tar.gz: c687174d1b8677b00114db8d97f7277f718d8f58220c6ae819b4a487d1ceceb22a80f7ac5d24527c983d6a441c036b5156ac9a072589072ae8a34a5035f8c99d
6
+ metadata.gz: aa9938a88821f71008b08b9e5c1ec8dc731775c81773ec7ec4e935ad980b9815640425dbc5a050a0b295f433e45cfdad41c2ba3e6ea8c8276f8b1669ccf85b87
7
+ data.tar.gz: 887b422a63307522e274a9f513d87e750639bedefd94f1815849e89da83e551cc8c205e4d089eccab5ce523fcd3afe7b1d72078b7539c6e6fd2aaaa92f2ed86d
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ConcertoSimpleRss
2
- VERSION = "0.1"
2
+ VERSION = "0.2"
3
3
  end
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.1'
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-01-23 00:00:00.000000000 Z
11
+ date: 2014-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails