feed_duck 0.0.1 → 0.0.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.
- checksums.yaml +4 -4
- data/lib/feed_duck/atom_feed.rb +2 -2
- data/lib/feed_duck/rss_feed.rb +2 -2
- data/lib/feed_duck/version.rb +1 -1
- data/spec/feed_duck/atom_feed_spec.rb +5 -5
- data/spec/feed_duck/rss_feed_spec.rb +5 -5
- 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: 8b1f0afa629e360ea4646da85dc68d5a490752c5
|
4
|
+
data.tar.gz: 180345690e58445dd6d7d9f387c3843f66eae70e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94cdb162f3ebf198695e9dc03f35b24e87096fbcab40d225f97fcc3eae8a0f670d6fda0c0199b797ef3dc789eb5de664d78b00ac35a43526752c418914781601
|
7
|
+
data.tar.gz: de710375244528cfe458df472393e77e38518e20769e3d98156c531315daa03ffa7ff764858d814a8ddac3815f8215ca07ea6f57dc9fb1aeaaa72227b8f4475d
|
data/lib/feed_duck/atom_feed.rb
CHANGED
@@ -66,7 +66,7 @@ module FeedDuck
|
|
66
66
|
parsed_entry.link.href
|
67
67
|
end
|
68
68
|
|
69
|
-
def
|
69
|
+
def uuid
|
70
70
|
parsed_entry.id.content
|
71
71
|
end
|
72
72
|
|
@@ -81,7 +81,7 @@ module FeedDuck
|
|
81
81
|
attr_reader :parsed_entry
|
82
82
|
|
83
83
|
def public_attributes
|
84
|
-
[:title, :content, :published_at, :author, :url, :
|
84
|
+
[:title, :content, :published_at, :author, :url, :uuid]
|
85
85
|
end
|
86
86
|
end
|
87
87
|
end
|
data/lib/feed_duck/rss_feed.rb
CHANGED
@@ -70,7 +70,7 @@ module FeedDuck
|
|
70
70
|
parsed_feed_entry.link
|
71
71
|
end
|
72
72
|
|
73
|
-
def
|
73
|
+
def uuid
|
74
74
|
parsed_feed_entry.guid.content
|
75
75
|
end
|
76
76
|
|
@@ -85,7 +85,7 @@ module FeedDuck
|
|
85
85
|
attr_reader :parsed_feed_entry
|
86
86
|
|
87
87
|
def public_attributes
|
88
|
-
[:title, :content, :published_at, :author, :url, :
|
88
|
+
[:title, :content, :published_at, :author, :url, :uuid]
|
89
89
|
end
|
90
90
|
end
|
91
91
|
end
|
data/lib/feed_duck/version.rb
CHANGED
@@ -57,7 +57,7 @@ describe FeedDuck::AtomFeed do
|
|
57
57
|
published_at: Time.utc(2003, 12, 13, 18, 30, 02),
|
58
58
|
author: "John Doe",
|
59
59
|
url: "http://example.org/2003/12/13/atom03",
|
60
|
-
|
60
|
+
uuid: "urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a"
|
61
61
|
}],
|
62
62
|
})
|
63
63
|
end
|
@@ -109,9 +109,9 @@ describe FeedDuck::AtomEntry do
|
|
109
109
|
end
|
110
110
|
end
|
111
111
|
|
112
|
-
describe "#
|
113
|
-
it "returns the entry
|
114
|
-
expect(subject.
|
112
|
+
describe "#uuid" do
|
113
|
+
it "returns the entry uuid" do
|
114
|
+
expect(subject.uuid).to eq "urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a"
|
115
115
|
end
|
116
116
|
end
|
117
117
|
|
@@ -123,7 +123,7 @@ describe FeedDuck::AtomEntry do
|
|
123
123
|
published_at: Time.utc(2003, 12, 13, 18, 30, 02),
|
124
124
|
author: "John Doe",
|
125
125
|
url: "http://example.org/2003/12/13/atom03",
|
126
|
-
|
126
|
+
uuid: "urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a",
|
127
127
|
})
|
128
128
|
end
|
129
129
|
end
|
@@ -52,7 +52,7 @@ describe FeedDuck::RSSFeed do
|
|
52
52
|
published_at: Time.new(2014, 4, 8, 16, 40, 33, "+02:00"),
|
53
53
|
author: "Author",
|
54
54
|
url: "http://feedproxy.google.com/~r/Rubyflow/~3/2ynPljVok9U/10851-a-guide-to-choosing-the-best-gems-for-your-ruby-project",
|
55
|
-
|
55
|
+
uuid: "http://www.rubyflow.com/items/10851-a-guide-to-choosing-the-best-gems-for-your-ruby-project"
|
56
56
|
}]
|
57
57
|
})
|
58
58
|
end
|
@@ -104,9 +104,9 @@ describe FeedDuck::RSSEntry do
|
|
104
104
|
end
|
105
105
|
end
|
106
106
|
|
107
|
-
describe "#
|
108
|
-
it "returns the entry
|
109
|
-
expect(subject.
|
107
|
+
describe "#uuid" do
|
108
|
+
it "returns the entry uuid" do
|
109
|
+
expect(subject.uuid).to eq "http://www.rubyflow.com/items/10851-a-guide-to-choosing-the-best-gems-for-your-ruby-project"
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
@@ -118,7 +118,7 @@ describe FeedDuck::RSSEntry do
|
|
118
118
|
published_at: Time.new(2014, 4, 8, 16, 40, 33, "+02:00"),
|
119
119
|
author: "Author",
|
120
120
|
url: "http://feedproxy.google.com/~r/Rubyflow/~3/2ynPljVok9U/10851-a-guide-to-choosing-the-best-gems-for-your-ruby-project",
|
121
|
-
|
121
|
+
uuid: "http://www.rubyflow.com/items/10851-a-guide-to-choosing-the-best-gems-for-your-ruby-project"
|
122
122
|
})
|
123
123
|
end
|
124
124
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: feed_duck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- André Bernardes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|