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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ebb32ab10d88d6c9d5163ad9dea64a42b833cb42
4
- data.tar.gz: 054bce52d43621e34943be4a7bc1673924d7fdc8
3
+ metadata.gz: 8b1f0afa629e360ea4646da85dc68d5a490752c5
4
+ data.tar.gz: 180345690e58445dd6d7d9f387c3843f66eae70e
5
5
  SHA512:
6
- metadata.gz: 4cd209d9c6668395c953ffd3d21b184da5ab34c22882a14d7e4aab74b3006f611a6b9dab2bff31c50766e9518400e756d9ade2cfd20a91b439474daddee9ad06
7
- data.tar.gz: 21bb65d81c354edcd65fa88e9fddbd408e00d13563cf333e1a8ab3ff8abb02b4aaf4c3b3872515976f7c1a9e81a302e76d8720b4df95fed78c01d624efcbbae9
6
+ metadata.gz: 94cdb162f3ebf198695e9dc03f35b24e87096fbcab40d225f97fcc3eae8a0f670d6fda0c0199b797ef3dc789eb5de664d78b00ac35a43526752c418914781601
7
+ data.tar.gz: de710375244528cfe458df472393e77e38518e20769e3d98156c531315daa03ffa7ff764858d814a8ddac3815f8215ca07ea6f57dc9fb1aeaaa72227b8f4475d
@@ -66,7 +66,7 @@ module FeedDuck
66
66
  parsed_entry.link.href
67
67
  end
68
68
 
69
- def id
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, :id]
84
+ [:title, :content, :published_at, :author, :url, :uuid]
85
85
  end
86
86
  end
87
87
  end
@@ -70,7 +70,7 @@ module FeedDuck
70
70
  parsed_feed_entry.link
71
71
  end
72
72
 
73
- def id
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, :id]
88
+ [:title, :content, :published_at, :author, :url, :uuid]
89
89
  end
90
90
  end
91
91
  end
@@ -1,3 +1,3 @@
1
1
  module FeedDuck
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -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
- id: "urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a"
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 "#id" do
113
- it "returns the entry id" do
114
- expect(subject.id).to eq "urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a"
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
- id: "urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a",
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
- id: "http://www.rubyflow.com/items/10851-a-guide-to-choosing-the-best-gems-for-your-ruby-project"
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 "#id" do
108
- it "returns the entry id" do
109
- expect(subject.id).to eq "http://www.rubyflow.com/items/10851-a-guide-to-choosing-the-best-gems-for-your-ruby-project"
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
- id: "http://www.rubyflow.com/items/10851-a-guide-to-choosing-the-best-gems-for-your-ruby-project"
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.1
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-05-08 00:00:00.000000000 Z
11
+ date: 2014-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler