social_net 0.2.23 → 0.2.24
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc65c967c3e3fc142468a16de260f7391a4063dac3eb0d31581e14f2759e880b
|
4
|
+
data.tar.gz: '0784b3bd48e9fc25b23cb6ad63d9c83cd1f042c06efe2f18e9e60986de03a623'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2821a3cf50bbf74ecce2dba67611a05e7c43aadfc28c86a42a3206dd241573cbf452ec01b365bec0c0818779a340f51855b185e43517753a274d96d64b2bcd2
|
7
|
+
data.tar.gz: d71270b005d9a5dfdd2aed0d35148f06b0da1e01ab7603326f5f589c1b410c2a1fa3a43262b55e6d928a13b76be9c18d24ea9d39aefaeba2f3d42be82bd9260f
|
@@ -5,8 +5,8 @@ module SocialNet
|
|
5
5
|
attr_accessor :client_id, :client_secret
|
6
6
|
|
7
7
|
def initialize
|
8
|
-
@client_id =
|
9
|
-
@client_secret =
|
8
|
+
@client_id = '414097962262282'
|
9
|
+
@client_secret = '794997e3bd6a6797d1801f509ba84d5d'
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|
@@ -3,6 +3,7 @@ require 'social_net/facebook/errors/unknown_video'
|
|
3
3
|
require 'active_support'
|
4
4
|
require 'active_support/core_ext'
|
5
5
|
require 'nokogiri'
|
6
|
+
require 'net/http'
|
6
7
|
|
7
8
|
module SocialNet
|
8
9
|
module Facebook
|
@@ -51,7 +52,7 @@ module SocialNet
|
|
51
52
|
video['id'] = @video_id
|
52
53
|
video['video_url'] = data.at("meta[property='og:url']")['content']
|
53
54
|
video['link'] = m[1]
|
54
|
-
video['caption'] = data.at("meta[
|
55
|
+
video['caption'] = data.at("meta[name='description']")['content']
|
55
56
|
video['thumbnail_url'] = data.at("meta[property='og:image']")['content']
|
56
57
|
end
|
57
58
|
end
|
@@ -69,4 +70,4 @@ module SocialNet
|
|
69
70
|
end
|
70
71
|
end
|
71
72
|
end
|
72
|
-
end
|
73
|
+
end
|
data/lib/social_net/version.rb
CHANGED
data/social_net.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_dependency 'activesupport'
|
22
22
|
spec.add_dependency 'nokogiri'
|
23
|
-
spec.add_development_dependency "bundler", "~>
|
23
|
+
spec.add_development_dependency "bundler", "~> 2.0.2"
|
24
24
|
spec.add_development_dependency "rake", "~> 10.3"
|
25
25
|
spec.add_development_dependency "rspec", "~> 3.1"
|
26
26
|
spec.add_development_dependency "yard", "~> 0.8.7"
|
@@ -2,7 +2,7 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe SocialNet::Facebook::User, :vcr do
|
4
4
|
let(:unknown_username) { 'qeqwe09qlkmhkjh' }
|
5
|
-
let(:existing_username) { '
|
5
|
+
let(:existing_username) { 'james.collab.52' }
|
6
6
|
let(:existing_handle) { 'collabcreators' }
|
7
7
|
let(:existing_video) { '1596466537097289' }
|
8
8
|
let(:unknown_video) { '1596466537097288' }
|
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.24
|
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: 2020-
|
11
|
+
date: 2020-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 2.0.2
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 2.0.2
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -261,8 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
261
261
|
- !ruby/object:Gem::Version
|
262
262
|
version: '0'
|
263
263
|
requirements: []
|
264
|
-
|
265
|
-
rubygems_version: 2.7.6
|
264
|
+
rubygems_version: 3.0.6
|
266
265
|
signing_key:
|
267
266
|
specification_version: 4
|
268
267
|
summary: An API Client for social networks
|