picasa 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 328507fd4e8867c4a55c4191c1b9f663d152cf97
4
- data.tar.gz: c49d27f1d5c72c0d39bfa1129439cec0ea34dd17
3
+ metadata.gz: a919f287a26d11d7377d530bd7d63463f8d4e66d
4
+ data.tar.gz: 685f7dd9e7e0501cd01c135bc3255e170f553a14
5
5
  SHA512:
6
- metadata.gz: 11803b719743322deadda834a58f9f70cb437247fadf5c7905850a84bff08db84545f353958c60d5022d9199ee15f2b8c192ced3c84088c8ce499f0d974e56f5
7
- data.tar.gz: e68f02ddfa1fb6cefe8b7bedc742eac448bcd705bbd709062ec8bd3650f7a25e1dbaa8c4ad1faf98fcf5455845e6c3f6eea62c3c275076cf308dfa27016abb55
6
+ metadata.gz: b1c329012564890cd7354f63df9e10fc29559c546fe9465bca55ed438b22c45c6008fa2279d7b16e6f3690399e853eed4daf47bac860cf4ab279a7ee6f78e665
7
+ data.tar.gz: 8e86bea1f9ce94b379886efdab037cdcb8eb6aac19f07164e613ee29dddb42a189a9618e66d645b0042145ba0e752a62f0c80e3497af2c5965e8f408e8134773
data/README.md CHANGED
@@ -98,6 +98,7 @@ Picasa uses gzipped requests to speedup fetching results. Benchmarks are availab
98
98
  * [Sébastien Grosjean](https://github.com/ZenCocoon)
99
99
  * [Grant Gardner](https://github.com/lwoggardner)
100
100
  * [Anton Astashov](https://github.com/astashov)
101
+ * [Ojash Dahal](https://github.com/ojash)
101
102
 
102
103
  ## Copyright
103
104
 
@@ -8,6 +8,11 @@ module Picasa
8
8
  @thumbnails ||= array_wrap(safe_retrieve(parsed_body, "media$thumbnail")).map { |thumbnail| Thumbnail.new(thumbnail) }
9
9
  end
10
10
 
11
+ # @return [String]
12
+ def cover_photo_url
13
+ @cover_photo_url ||= parsed_body['media$content'][0]['url']
14
+ end
15
+
11
16
  # @return [String]
12
17
  def credit
13
18
  @credit ||= parsed_body["media$credit"][0]["$t"]
@@ -1,3 +1,3 @@
1
1
  module Picasa
2
- VERSION = "0.7.4"
2
+ VERSION = "0.7.5"
3
3
  end
@@ -58,6 +58,11 @@ describe Picasa::API::Album do
58
58
  assert_equal "Wojciech Wnętrzak", @album_list.nickname
59
59
  end
60
60
 
61
+ it "has cover_photo" do
62
+ expected = "https://lh6.googleusercontent.com/-ZqXRf3HicvI/SLakNnjixrE/AAAAAAAAAkc/3EAZ0eF3-CQ/Test.jpg"
63
+ assert_equal expected, @album_list.albums[0].media.cover_photo_url
64
+ end
65
+
61
66
  it "has thumbnail" do
62
67
  expected = "https://lh3.googleusercontent.com/-6ezHc54U8x0/AAAAAAAAAAI/AAAAAAAAAAA/PBuxm7Ehn6E/s64-c/106136347770555028022.jpg"
63
68
  assert_equal expected, @album_list.thumbnail
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picasa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wojciech Wnętrzak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-07 00:00:00.000000000 Z
11
+ date: 2015-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -263,4 +263,3 @@ test_files:
263
263
  - test/presenter/photo_test.rb
264
264
  - test/template_test.rb
265
265
  - test/utils_test.rb
266
- has_rdoc: