rss-motor 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/Gemfile.lock +2 -2
- data/lib/rss-motor/rss-proc.rb +17 -16
- data/lib/rss-motor/version.rb +1 -1
- data/rss-motor.gemspec +2 -2
- metadata +8 -8
data/CHANGELOG
CHANGED
@@ -8,6 +8,10 @@
|
|
8
8
|
CHANGE-LOG
|
9
9
|
=====================================================================
|
10
10
|
=====================================================================
|
11
|
+
Changes from v0.0.7 to v0.0.8
|
12
|
+
[+] updated to xml-motor v0.1.5 making <solonode/> grep corrected
|
13
|
+
[+] fixed any chance of mismatch number of elements inside item-node
|
14
|
+
=====================================================================
|
11
15
|
Changes from v0.0.6 to v0.0.7
|
12
16
|
[+] rss_grep, rss_grep_link's filter match made case in-sensitive
|
13
17
|
[+] RSpec Added [ @fntzr ]
|
data/Gemfile.lock
CHANGED
data/lib/rss-motor/rss-proc.rb
CHANGED
@@ -4,26 +4,27 @@ module Rss
|
|
4
4
|
def self.rss_hashr(rss_data)
|
5
5
|
splitd = XMLMotor.splitter rss_data
|
6
6
|
tags = XMLMotor.indexify splitd
|
7
|
-
|
8
7
|
items = XMLMotor.xmldata splitd, tags, 'item'
|
9
|
-
titles = XMLMotor.xmldata splitd, tags, 'title'
|
10
|
-
links = XMLMotor.xmldata splitd, tags, 'link'
|
11
|
-
guids = XMLMotor.xmldata splitd, tags, 'guid'
|
12
|
-
descriptions = XMLMotor.xmldata splitd, tags, 'description'
|
13
|
-
pubDates = XMLMotor.xmldata splitd, tags, 'pubDate'
|
14
|
-
authors = XMLMotor.xmldata splitd, tags, 'author'
|
15
|
-
enclosures = XMLMotor.xmldata splitd, tags, 'enclosure'
|
16
8
|
|
17
9
|
rss_hash = []
|
18
|
-
|
10
|
+
items.each_with_index do |item, idx|
|
11
|
+
item_splitd = XMLMotor.splitter item
|
12
|
+
item_tags = XMLMotor.indexify item_splitd
|
13
|
+
title = XMLMotor.xmldata item_splitd, item_tags, 'title'
|
14
|
+
link = XMLMotor.xmldata item_splitd, item_tags, 'link'
|
15
|
+
guid = XMLMotor.xmldata item_splitd, item_tags, 'guid'
|
16
|
+
description = XMLMotor.xmldata item_splitd, item_tags, 'description'
|
17
|
+
pubDate = XMLMotor.xmldata item_splitd, item_tags, 'pubDate'
|
18
|
+
author = XMLMotor.xmldata item_splitd, item_tags, 'author'
|
19
|
+
enclosure = XMLMotor.xmldata item_splitd, item_tags, 'enclosure', nil, true
|
19
20
|
rss_hash[idx] = {
|
20
|
-
'title' =>
|
21
|
-
'link' =>
|
22
|
-
'guid' =>
|
23
|
-
'description' =>
|
24
|
-
'date' =>
|
25
|
-
'author' =>
|
26
|
-
'enclosure' =>
|
21
|
+
'title' => title.join,
|
22
|
+
'link' => link.join,
|
23
|
+
'guid' => guid.join,
|
24
|
+
'description' => description.join,
|
25
|
+
'date' => pubDate.join,
|
26
|
+
'author' => author.join,
|
27
|
+
'enclosure' => enclosure.join
|
27
28
|
}
|
28
29
|
end
|
29
30
|
return rss_hash
|
data/lib/rss-motor/version.rb
CHANGED
data/rss-motor.gemspec
CHANGED
@@ -18,6 +18,6 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
|
-
s.add_runtime_dependency 'xml-motor', '>= 0.1.
|
22
|
-
s.add_development_dependency 'xml-motor', '>= 0.1.
|
21
|
+
s.add_runtime_dependency 'xml-motor', '>= 0.1.5'
|
22
|
+
s.add_development_dependency 'xml-motor', '>= 0.1.5'
|
23
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rss-motor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,30 +9,30 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: xml-motor
|
16
|
-
requirement: &
|
16
|
+
requirement: &19685160 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.1.
|
21
|
+
version: 0.1.5
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *19685160
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: xml-motor
|
27
|
-
requirement: &
|
27
|
+
requirement: &19684660 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.1.
|
32
|
+
version: 0.1.5
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *19684660
|
36
36
|
description: ! 'boost up your RSS related applications with the motor available: https://github.com/abhishekkr/rubygem_rss_motor/blob/master/README'
|
37
37
|
email:
|
38
38
|
- abhikumar163@gmail.com
|