simple_imgur 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/lib/imgur/album.rb CHANGED
@@ -7,8 +7,15 @@ module Imgur
7
7
  end
8
8
 
9
9
  def image_links
10
- images.map &:link
10
+ @image_links ||= images.map &:link
11
11
  end
12
12
 
13
+ def cover_link
14
+ find_image_by_id(cover).try :link
15
+ end
16
+
17
+ def find_image_by_id(id)
18
+ images.find { |i| i.id == id }
19
+ end
13
20
  end
14
21
  end
data/lib/imgur/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Imgur
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_imgur
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Robin Boutros