polyrex-feed-reader 0.3.1 → 0.3.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.
- data.tar.gz.sig +0 -0
- data/lib/polyrex-feed-reader.rb +8 -0
- metadata +45 -22
- metadata.gz.sig +3 -0
data.tar.gz.sig
ADDED
Binary file
|
data/lib/polyrex-feed-reader.rb
CHANGED
@@ -26,6 +26,8 @@ end
|
|
26
26
|
class PolyrexFeedReader
|
27
27
|
include REXML
|
28
28
|
|
29
|
+
# read the Polyrex file otherwise create the file_path
|
30
|
+
#
|
29
31
|
def initialize(file_path)
|
30
32
|
@file_path = file_path
|
31
33
|
if File.exists? @file_path then
|
@@ -37,10 +39,14 @@ class PolyrexFeedReader
|
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
42
|
+
# read the input from raw lines
|
43
|
+
#
|
40
44
|
def parse(lines)
|
41
45
|
@feeds.parse(lines)
|
42
46
|
end
|
43
47
|
|
48
|
+
# read all feeds
|
49
|
+
#
|
44
50
|
def read()
|
45
51
|
@feeds.records.each do |col|
|
46
52
|
col.records.each do |feed|
|
@@ -90,6 +96,8 @@ class PolyrexFeedReader
|
|
90
96
|
buffer
|
91
97
|
end
|
92
98
|
|
99
|
+
# read a single feed
|
100
|
+
#
|
93
101
|
def read_feed(feed_name)
|
94
102
|
feed = @feeds.find_by_feed_title(feed_name)
|
95
103
|
fetch_feed(feed, save_rss: true)
|
metadata
CHANGED
@@ -1,47 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyrex-feed-reader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease:
|
5
|
+
version: 0.3.2
|
5
6
|
platform: ruby
|
6
|
-
authors:
|
7
|
-
|
7
|
+
authors:
|
8
|
+
- James Robertson
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
+
cert_chain:
|
12
|
+
- |
|
13
|
+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2Q/dn6tDJy4Z5fONfxCOhhcOyh9bRMlyYGAMmPw/uPnnH0K6KJn8mfklMhjoGL
|
29
|
+
h4XJqDsyLYmAUjj2P/198zQ+d7bzfE/5qUXz4SaMMl/ctR2aMv4qLX0kwtLRn/mi
|
30
|
+
LxhpHfLSRfOWDFimU0YGVs8dISSHOneULhblAYTTb7tvv2Zr8wG/bdlLhWuwoz23
|
31
|
+
L5EDjzznPMmVNG60mdktue6PKdOEFp7N
|
32
|
+
-----END CERTIFICATE-----
|
11
33
|
|
12
|
-
date:
|
13
|
-
default_executable:
|
34
|
+
date: 2013-02-06 00:00:00 Z
|
14
35
|
dependencies:
|
15
36
|
- !ruby/object:Gem::Dependency
|
16
37
|
name: polyrex
|
17
|
-
|
18
|
-
|
19
|
-
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
20
41
|
requirements:
|
21
42
|
- - ">="
|
22
43
|
- !ruby/object:Gem::Version
|
23
44
|
version: "0"
|
24
|
-
|
45
|
+
type: :runtime
|
46
|
+
version_requirements: *id001
|
25
47
|
- !ruby/object:Gem::Dependency
|
26
48
|
name: builder
|
27
|
-
|
28
|
-
|
29
|
-
|
49
|
+
prerelease: false
|
50
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
30
52
|
requirements:
|
31
53
|
- - ">="
|
32
54
|
- !ruby/object:Gem::Version
|
33
55
|
version: "0"
|
34
|
-
|
56
|
+
type: :runtime
|
57
|
+
version_requirements: *id002
|
35
58
|
- !ruby/object:Gem::Dependency
|
36
59
|
name: chronic
|
37
|
-
|
38
|
-
|
39
|
-
|
60
|
+
prerelease: false
|
61
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
40
63
|
requirements:
|
41
64
|
- - ">="
|
42
65
|
- !ruby/object:Gem::Version
|
43
66
|
version: "0"
|
44
|
-
|
67
|
+
type: :runtime
|
68
|
+
version_requirements: *id003
|
45
69
|
description:
|
46
70
|
email:
|
47
71
|
executables: []
|
@@ -52,7 +76,6 @@ extra_rdoc_files: []
|
|
52
76
|
|
53
77
|
files:
|
54
78
|
- lib/polyrex-feed-reader.rb
|
55
|
-
has_rdoc: true
|
56
79
|
homepage:
|
57
80
|
licenses: []
|
58
81
|
|
@@ -62,21 +85,21 @@ rdoc_options: []
|
|
62
85
|
require_paths:
|
63
86
|
- lib
|
64
87
|
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
65
89
|
requirements:
|
66
90
|
- - ">="
|
67
91
|
- !ruby/object:Gem::Version
|
68
92
|
version: "0"
|
69
|
-
version:
|
70
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
71
95
|
requirements:
|
72
96
|
- - ">="
|
73
97
|
- !ruby/object:Gem::Version
|
74
98
|
version: "0"
|
75
|
-
version:
|
76
99
|
requirements: []
|
77
100
|
|
78
101
|
rubyforge_project:
|
79
|
-
rubygems_version: 1.
|
102
|
+
rubygems_version: 1.8.23
|
80
103
|
signing_key:
|
81
104
|
specification_version: 3
|
82
105
|
summary: polyrex-feed-reader
|
metadata.gz.sig
ADDED