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 +4 -4
- data/README.md +1 -0
- data/lib/picasa/presenter/media.rb +5 -0
- data/lib/picasa/version.rb +1 -1
- data/test/api/album_test.rb +5 -0
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a919f287a26d11d7377d530bd7d63463f8d4e66d
|
4
|
+
data.tar.gz: 685f7dd9e7e0501cd01c135bc3255e170f553a14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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"]
|
data/lib/picasa/version.rb
CHANGED
data/test/api/album_test.rb
CHANGED
@@ -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
|
+
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-
|
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:
|