googleplus-reader 0.1.0 → 0.2.0

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: 2de1653bedcdeab3a7934dd51de3e68de01326c1
4
- data.tar.gz: c2d9bb8ce038fe246429d6ea8b5e5a2b9cbdbf71
3
+ metadata.gz: 3c126bad5368e5f680abc775ca2838173f07de11
4
+ data.tar.gz: 4e7581fef42b66b4a478f679255f3520d85afef6
5
5
  SHA512:
6
- metadata.gz: f67cd24f00d31c136e8b8efb46bd45660187ac985e758e89ec783f26048e3421242b267bebd62f509ec4e7f588d0d573f2bf87d96006b41b049c3821c90332d1
7
- data.tar.gz: 6829f86dbd21d0d30646f3713c97f2254977a74cadd505250d2cee20d5df13e20134d3e993e721e18731249ec4c31d6e106fbcf0375f91252b5d782effbcf984
6
+ metadata.gz: 5736d3f7d078ee6e08c999f40742922c92e0e0477fc5dd84ae0787dfcac59adc58c2983dade8d36a47d38f14adeaee4dfc614557cc04909dda433427ac725c42
7
+ data.tar.gz: 1f27daab18bb7e59c01c8f71a4722089a7de2f75053e7c1dd9914a8e62a1ad483244d127d141ebef2907fb2422a5e30b4fc49ef873102031a4064db97fe3ac7c
@@ -1,3 +1,7 @@
1
+ ## GooglePlus Reader 0.2.0 (June 16, 2016)
2
+
3
+ * Reverted the changed of version 0.1.0.
4
+
1
5
  ## GooglePlus Reader 0.1.0 (June 16, 2016)
2
6
 
3
7
  * Changed the `url` attribute of a photo to contain the URL of the original
@@ -27,11 +27,9 @@ define 'googleplus.photo', ['jquery'], ($) ->
27
27
  deferred.promise()
28
28
 
29
29
  url: (options = {}) ->
30
- if options.width? and @attributes.preview_url?
31
- width = options.width
32
- width = Math.min(width, @attributes.width) if @attributes.width?
33
- width = Math.round(width)
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 or @attributes.preview_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.fullImage.url,
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
- preview_url: attachment.image.url,
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
- preview_url: thumbnail.image.url,
52
+ url: thumbnail.image.url,
54
53
 
55
54
  collection
@@ -1,5 +1,5 @@
1
1
  module GooglePlus
2
2
  module Reader
3
- VERSION = '0.1.0'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: googleplus-reader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Ukhov