googleplus-reader 0.1.0 → 0.2.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c126bad5368e5f680abc775ca2838173f07de11
|
4
|
+
data.tar.gz: 4e7581fef42b66b4a478f679255f3520d85afef6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5736d3f7d078ee6e08c999f40742922c92e0e0477fc5dd84ae0787dfcac59adc58c2983dade8d36a47d38f14adeaee4dfc614557cc04909dda433427ac725c42
|
7
|
+
data.tar.gz: 1f27daab18bb7e59c01c8f71a4722089a7de2f75053e7c1dd9914a8e62a1ad483244d127d141ebef2907fb2422a5e30b4fc49ef873102031a4064db97fe3ac7c
|
data/CHANGELOG.md
CHANGED
@@ -27,11 +27,9 @@ define 'googleplus.photo', ['jquery'], ($) ->
|
|
27
27
|
deferred.promise()
|
28
28
|
|
29
29
|
url: (options = {}) ->
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
@attributes.preview_url.replace(/w\d+-h\d+(-p)?/, "w#{width}")
|
35
|
-
|
30
|
+
width = options.width or @attributes.width
|
31
|
+
width = Math.min(width, @attributes.width) if @attributes.width?
|
32
|
+
if width?
|
33
|
+
@attributes.url.replace(/w\d+-h\d+(-p)?/, "w#{Math.round(width)}")
|
36
34
|
else
|
37
|
-
@attributes.url
|
35
|
+
@attributes.url
|
@@ -30,16 +30,15 @@ define 'googleplus.photoreader', ['googleplus.reader', 'googleplus.photo'], (Rea
|
|
30
30
|
collection.push new Photo
|
31
31
|
activity_id: item.id,
|
32
32
|
date: date,
|
33
|
-
url: attachment.
|
33
|
+
url: attachment.image.url,
|
34
34
|
width: attachment.fullImage.width,
|
35
35
|
height: attachment.fullImage.height,
|
36
|
-
preview_url: attachment.image.url,
|
37
36
|
|
38
37
|
else
|
39
38
|
collection.push new Photo
|
40
39
|
activity_id: item.id,
|
41
40
|
date: date,
|
42
|
-
|
41
|
+
url: attachment.image.url,
|
43
42
|
|
44
43
|
else if attachment.objectType is 'album'
|
45
44
|
continue unless attachment.thumbnails?
|
@@ -50,6 +49,6 @@ define 'googleplus.photoreader', ['googleplus.reader', 'googleplus.photo'], (Rea
|
|
50
49
|
collection.push new Photo
|
51
50
|
activity_id: item.id,
|
52
51
|
date: date,
|
53
|
-
|
52
|
+
url: thumbnail.image.url,
|
54
53
|
|
55
54
|
collection
|