feed2imap 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -0
- data/lib/feed2imap/feed2imap.rb +1 -0
- data/lib/feed2imap/rexml_settings.rb +1 -0
- data/lib/feed2imap/version.rb +1 -1
- metadata +4 -4
- data/lib/feed2imap/rexml_patch.rb +0 -47
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fb49a362fe928d9110966a05eb10818817251e4e162845d2760c6318b8de0e2
|
4
|
+
data.tar.gz: 3790225dff5442b61e3099221c58cfb9d73b3b72dfa3c2213ceebb8c9b42dbac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09010a59e0f460df3b6ebab675a6d2d09f82368043b999bdc95570f2c899f1d1ef02303f128e0c1419ae8a73a0b3e6b79b79527f8c1a99e4b5f9046fc7aecf9b'
|
7
|
+
data.tar.gz: 38cb3888369396fac6e0656a0eb53bab2ff2add0e383c4fe4b97653603e8deae716831fa30793dfffef35e0b5d6106643c0d3cd42c068045e05e96e241b84f41
|
data/Rakefile
CHANGED
data/lib/feed2imap/feed2imap.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
REXML::Security.entity_expansion_text_limit *= 10
|
data/lib/feed2imap/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: feed2imap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lucas Nussbaum
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-feedparser
|
@@ -71,7 +71,7 @@ files:
|
|
71
71
|
- lib/feed2imap/imap.rb
|
72
72
|
- lib/feed2imap/itemtomail.rb
|
73
73
|
- lib/feed2imap/maildir.rb
|
74
|
-
- lib/feed2imap/
|
74
|
+
- lib/feed2imap/rexml_settings.rb
|
75
75
|
- lib/feed2imap/sgml-parser.rb
|
76
76
|
- lib/feed2imap/version.rb
|
77
77
|
- setup.rb
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
requirements: []
|
105
|
-
rubygems_version: 3.
|
105
|
+
rubygems_version: 3.3.5
|
106
106
|
signing_key:
|
107
107
|
specification_version: 4
|
108
108
|
summary: RSS/Atom feed aggregator
|
@@ -1,47 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
Feed2Imap - RSS/Atom Aggregator uploading to an IMAP Server
|
3
|
-
Copyright (c) 2005 Lucas Nussbaum <lucas@lucas-nussbaum.net>
|
4
|
-
|
5
|
-
This program is free software; you can redistribute it and/or modify
|
6
|
-
it under the terms of the GNU General Public License as published by
|
7
|
-
the Free Software Foundation; either version 2 of the License, or
|
8
|
-
(at your option) any later version.
|
9
|
-
|
10
|
-
This program is distributed in the hope that it will be useful,
|
11
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
-
GNU General Public License for more details.
|
14
|
-
|
15
|
-
You should have received a copy of the GNU General Public License
|
16
|
-
along with this program; if not, write to the Free Software
|
17
|
-
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
18
|
-
=end
|
19
|
-
|
20
|
-
require 'feedparser'
|
21
|
-
|
22
|
-
# Patch for REXML
|
23
|
-
# Very ugly patch to make REXML error-proof.
|
24
|
-
# The problem is REXML uses IConv, which isn't error-proof at all.
|
25
|
-
# With those changes, it uses unpack/pack with some error handling
|
26
|
-
module REXML
|
27
|
-
module Encoding
|
28
|
-
def decode(str)
|
29
|
-
return str.encode(@encoding)
|
30
|
-
end
|
31
|
-
|
32
|
-
def encode(str)
|
33
|
-
return str
|
34
|
-
end
|
35
|
-
|
36
|
-
def encoding=(enc)
|
37
|
-
return if defined? @encoding and enc == @encoding
|
38
|
-
@encoding = enc || 'utf-8'
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
class Element
|
43
|
-
def children
|
44
|
-
@children
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|