social_net 0.2.4 → 0.2.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: babda607eeef914b389518cdfcaee4f33fa9590b
4
- data.tar.gz: 5f396c3e4101e23cd30315803a3c79c4328214fe
3
+ metadata.gz: c4fb1ec63c5ce47d9ff040eb09b8cc6f2fb3ddbd
4
+ data.tar.gz: fa53574cd10a0c6cce4eec7f23dca92edbcbcfc6
5
5
  SHA512:
6
- metadata.gz: 389bb289dc6dacf96c828422cf45348288cec92cdf89a0474dbb9000e68c566223e70476e351f344626f9d0282363f600727fc09bd6f2118bb7aed9e06baf80c
7
- data.tar.gz: b770e95532bbbac9855d0f0b804812cc745e21f35099ccf85bba2392f9faf66f1d4f697e6833d209f656ff56bf711e1300fd40e7dd650aa3b6447ad46c041372
6
+ metadata.gz: 6a8219b4539a81d7f18e51569bc21315c993e661d913b6e80748b3a3daa920e593cf2298950623dad8071318475d62160af1b8aa306a6455440f3a7a5737cc89
7
+ data.tar.gz: ea0716f10d023237fc8cdc150d8686361a0d5d5648779a9caa99eaddad018f83a11e4284756e59ff330f394a48135d6016ef6f54d43f314368751ac2fd66fbb3
data/CHANGELOG.md CHANGED
@@ -17,3 +17,7 @@ For more information about changelogs, check
17
17
  ## 0.2.2 - 2017-3-14
18
18
 
19
19
  * [IMPROVEMENT] Rename `.posts` to `.videos`.
20
+
21
+ ## 0.2.5 - 2017-5-31
22
+
23
+ * [BUGFIX] Return nil for an Instagram video's caption if it doesn't exist.
@@ -6,7 +6,7 @@ module SocialNet
6
6
 
7
7
  def initialize(attrs = {})
8
8
  @id = attrs['id']
9
- @caption = attrs['caption']['text']
9
+ @caption = attrs['caption']['text'] if attrs['caption']
10
10
  @likes = attrs['likes']['count']
11
11
  @file = attrs['videos']['standard_resolution']['url']
12
12
  @thumbnail = attrs['images']['standard_resolution']['url']
@@ -1,3 +1,3 @@
1
1
  module SocialNet
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_net
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Cohen Hoffing
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-23 00:00:00.000000000 Z
11
+ date: 2017-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport