rss-motor 0.0.7 → 0.0.8

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/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 ]
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rss-motor (0.0.6)
4
+ rss-motor (0.0.7)
5
5
  xml-motor (>= 0.1.4)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- xml-motor (0.1.4)
10
+ xml-motor (0.1.5)
11
11
 
12
12
  PLATFORMS
13
13
  ruby
@@ -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
- for idx in 0..(items.count - 1)
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' => titles[idx] || '',
21
- 'link' => links[idx] || '',
22
- 'guid' => guids[idx] || '',
23
- 'description' => descriptions[idx] || '',
24
- 'date' => pubDates[idx] || '',
25
- 'author' => authors[idx] || '',
26
- 'enclosure' => enclosures[idx] || ''
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
@@ -1,5 +1,5 @@
1
1
  module Rss
2
2
  module Motor
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
@@ -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.4'
22
- s.add_development_dependency 'xml-motor', '>= 0.1.4'
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.7
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-06-10 00:00:00.000000000 Z
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: &9202620 !ruby/object:Gem::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.4
21
+ version: 0.1.5
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *9202620
24
+ version_requirements: *19685160
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: xml-motor
27
- requirement: &9218520 !ruby/object:Gem::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.4
32
+ version: 0.1.5
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *9218520
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