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: ec838ad570a00f54e721234700fe4904d96c2aa6
4
- data.tar.gz: b1fb9ba571da10b71cb32c60a4913ec8e62ccae6
3
+ metadata.gz: b4bce5becaa807c514761c3f60186fb6f797a486
4
+ data.tar.gz: 85ca2408083e5c52bc7a47b973adf348e1fe37c7
5
5
  SHA512:
6
- metadata.gz: c6aa6f702c2ebd840c1f6a057a064a54a43ab34419f16d54ae2a798521dcb7b490701ae060a8487830597a58cec162e74ca31bb007c53a3a8414d543f3ad75d5
7
- data.tar.gz: 934f9fb405eef8d90f303754c010b29b7a5576bb60b9d528d4473b6a6038ac88dea5a5de611a02ee36f9ab2ffedce9c2c7faa292b8650b722e28c88fe3fc48ac
6
+ metadata.gz: bcc990148b3ff352e4368ab9073fa6a4de1d620f0ecb2d132e0ca75fb8708a40eb46d61c6161649ec53136d335cc133bce249c5d80a7ea61fb7cc8bfd920d2e0
7
+ data.tar.gz: 26814f7b9dc4d87fb431373fbfa778b55157852b496ce37b092b15867bb7505dd2b54d122dadb5db08542eb892f0a0109792303177442a286cb3026d710ccf9d
@@ -15,7 +15,7 @@ module SocialNet
15
15
  end
16
16
 
17
17
  def run
18
- #print "#{as_curl}\n"
18
+ print "#{as_curl}\n"
19
19
  case response = run_http_request
20
20
  when Net::HTTPOK
21
21
  JSON(response.body)['data']
@@ -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
@@ -1,3 +1,3 @@
1
1
  module SocialNet
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
data/social_net.gemspec CHANGED
@@ -27,4 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency "coveralls", "~> 0.7.1"
28
28
  spec.add_development_dependency "vcr", "~> 2.9"
29
29
  spec.add_development_dependency "webmock", "~> 1.19"
30
+ spec.add_development_dependency 'pry'
30
31
  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.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-03-14 00:00:00.000000000 Z
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