social_net 0.2.9 → 0.2.10
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/social_net/instagram/api/scrape_request.rb +3 -1
- data/lib/social_net/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 40df815906bf5307c729879e97005763f6e80de5
|
|
4
|
+
data.tar.gz: 75136538f3bd177933d295ae755a5ac7d9dbb9c4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f6916f4d58b6e35f2fb9ea2a51d881c07bec2858ee86426d3d17b4c7b4f9d6de2e1801280fb850bea2ef9575cca67bb791fc4e74b1e38c835ed4c69a7023678
|
|
7
|
+
data.tar.gz: e8e71ab40d76c27d7de33a83550ec377b30d00c132369320931ad45f9c10c3531e57dd2d21ef199d52d52ff5ee31461f2cc66b201f6a6b7419954c77d3e12e05
|
data/CHANGELOG.md
CHANGED
|
@@ -37,3 +37,7 @@ For more information about changelogs, check
|
|
|
37
37
|
## 0.2.9 - 2017-11-30
|
|
38
38
|
|
|
39
39
|
* [FEATURE] Add `Instagram::Video` support for `find_by private_shortcode:` and `find_by! private_shortcode:`
|
|
40
|
+
|
|
41
|
+
## 0.2.10 - 2017-12-20
|
|
42
|
+
|
|
43
|
+
* [BUGFIX] Return nil for an Private Instagram video's caption if it doesn't exist.
|
|
@@ -48,11 +48,13 @@ module SocialNet
|
|
|
48
48
|
raise Errors::UnknownVideo unless video_data[:is_video]
|
|
49
49
|
{}.tap do |video|
|
|
50
50
|
video['id'] = video_data[:shortcode]
|
|
51
|
-
video['caption'] = {'text' => video_data[:edge_media_to_caption][:edges][0][:node][:text]}
|
|
52
51
|
video['likes'] = {'count' => video_data[:edge_media_preview_like][:count]}
|
|
53
52
|
video['videos'] = {'standard_resolution' => {'url' => video_data[:video_url]}}
|
|
54
53
|
video['images'] = {'standard_resolution' => {'url' => video_data[:display_url]}}
|
|
55
54
|
video['link'] = "https://www.instagram.com/p/#{video_data[:shortcode]}/"
|
|
55
|
+
if video_data[:edge_media_to_caption][:edges].present?
|
|
56
|
+
video['caption'] = {'text' => video_data[:edge_media_to_caption][:edges][0][:node][:text]}
|
|
57
|
+
end
|
|
56
58
|
end
|
|
57
59
|
end
|
|
58
60
|
|
data/lib/social_net/version.rb
CHANGED
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
|
+
version: 0.2.10
|
|
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-
|
|
11
|
+
date: 2017-12-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|