social_net 0.2.2 → 0.2.3
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: b4bce5becaa807c514761c3f60186fb6f797a486
|
4
|
+
data.tar.gz: 85ca2408083e5c52bc7a47b973adf348e1fe37c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcc990148b3ff352e4368ab9073fa6a4de1d620f0ecb2d132e0ca75fb8708a40eb46d61c6161649ec53136d335cc133bce249c5d80a7ea61fb7cc8bfd920d2e0
|
7
|
+
data.tar.gz: 26814f7b9dc4d87fb431373fbfa778b55157852b496ce37b092b15867bb7505dd2b54d122dadb5db08542eb892f0a0109792303177442a286cb3026d710ccf9d
|
@@ -19,6 +19,7 @@ module SocialNet
|
|
19
19
|
def videos
|
20
20
|
request = Api::Request.new endpoint: "users/#{id}/media/recent"
|
21
21
|
videos = request.run.select {|p| p['type'] == 'video'}
|
22
|
+
require 'pry';binding.pry; true;
|
22
23
|
videos.map {|r| SocialNet::Instagram::Video.new r }
|
23
24
|
rescue Errors::ResponseError => error
|
24
25
|
case error.response
|
@@ -2,7 +2,7 @@ module SocialNet
|
|
2
2
|
module Instagram
|
3
3
|
module Models
|
4
4
|
class Video
|
5
|
-
attr_reader :id, :caption, :likes, :file, :thumbnail
|
5
|
+
attr_reader :id, :caption, :likes, :file, :thumbnail, :link
|
6
6
|
|
7
7
|
def initialize(attrs = {})
|
8
8
|
@id = attrs['id']
|
@@ -10,6 +10,7 @@ module SocialNet
|
|
10
10
|
@likes = attrs['likes']['count']
|
11
11
|
@file = attrs['videos']['standard_resolution']['url']
|
12
12
|
@thumbnail = attrs['images']['standard_resolution']['url']
|
13
|
+
@link = attrs['link']
|
13
14
|
end
|
14
15
|
end
|
15
16
|
end
|
data/lib/social_net/version.rb
CHANGED
data/social_net.gemspec
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.3
|
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-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '1.19'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: pry
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
125
139
|
description: Retrieves information for Instagram users
|
126
140
|
email:
|
127
141
|
- jeremy@collabcreators.com
|