feed-abstract 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/feed-abstract.gemspec +2 -3
- data/lib/feed-abstract/channel/atom.rb +8 -6
- data/lib/feed-abstract/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa6ed71d4c69fce0113439a19e3b404bee76e11d
|
4
|
+
data.tar.gz: ffc54c285c14a3bc0bb6226964642dde96671d07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6846cb502e8f33d1863ff386d4f419adae8de96500948575304570f10ff8d5448577a8d970601be32256a8d3f04f724556af5ed4a68cb9ddd661ebf8231990a2
|
7
|
+
data.tar.gz: eaf6be3194c2d770a5e86b846059086d67e9a17689f1817917d4654f2dafd07acb8f516061143453c8a3dff42a3f5092e706c2770f635c99b113f87da5e127ea
|
data/feed-abstract.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: feed-abstract 0.0.
|
5
|
+
# stub: feed-abstract 0.0.16 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "feed-abstract"
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.16"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
@@ -85,4 +85,3 @@ Gem::Specification.new do |s|
|
|
85
85
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
86
86
|
end
|
87
87
|
end
|
88
|
-
|
@@ -28,12 +28,14 @@ module FeedAbstract
|
|
28
28
|
|
29
29
|
# A string representing the application that created this feed.
|
30
30
|
def generator
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
31
|
+
unless self.link.nil?
|
32
|
+
if self.link.match(/zotero\.org/)
|
33
|
+
return 'Zotero'
|
34
|
+
elsif self.link.match(/wordpress\.com/)
|
35
|
+
return 'WordPress'
|
36
|
+
elsif self.link.match(/https?:\/\/.*\.?twitter\.com/i)
|
37
|
+
return 'Twitter'
|
38
|
+
end
|
37
39
|
end
|
38
40
|
return '' if @feed.generator.nil?
|
39
41
|
@feed.generator.content
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: feed-abstract
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Collis-Puro
|
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
151
|
version: '0'
|
152
152
|
requirements: []
|
153
153
|
rubyforge_project:
|
154
|
-
rubygems_version: 2.
|
154
|
+
rubygems_version: 2.6.13
|
155
155
|
signing_key:
|
156
156
|
specification_version: 4
|
157
157
|
summary: Abstracts RSS/Atom/RDF stdlib parsing into a common object graph.
|