social_rails 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/social_rails/apis/facebook.rb +1 -2
- data/lib/social_rails/helpers/tag.rb +1 -6
- data/lib/social_rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8f4db78d8719d5f5ca3e6377d1a0ad3b7aecb87
|
4
|
+
data.tar.gz: e752af16ddbd9534394839c02734a92ac6b71c9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfdbfc68dd8cde72aa535aab85e1e48d0974b5773857eaea16171763e2687d1fedfc813844a66c218180bada1e6208d6fca2165010a22bd0e2a7b1d057412c7f
|
7
|
+
data.tar.gz: 00cdac1bce4b15318fe5c37f5a8847d0bbed4b091365c8651d187f6f8f842c247331beab51011938b21adea9e700c105f4170bc2739b9daa8598f9cf695899a5
|
@@ -24,8 +24,7 @@ module SocialRails
|
|
24
24
|
client = Koala::Facebook::API.new(oAuth.get_app_access_token)
|
25
25
|
|
26
26
|
feed = client.get_connection(self.config.page_name, 'posts', {fields: ['link', 'message', 'full_picture'] })
|
27
|
-
|
28
|
-
return posts
|
27
|
+
self.find_posts(feed)
|
29
28
|
end
|
30
29
|
|
31
30
|
# Loop through Facebook feed to find posts with message
|
@@ -18,12 +18,7 @@ module SocialRails
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def truncate(the_content)
|
21
|
-
|
22
|
-
if content.length > max && max > 0
|
23
|
-
content = content[0..(max - 1)]
|
24
|
-
content << "..."
|
25
|
-
end
|
26
|
-
content
|
21
|
+
the_content.truncate(@config.public[:max_characters], separator: ' ')
|
27
22
|
end
|
28
23
|
|
29
24
|
end
|
data/lib/social_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: social_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francis G
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
version: '0'
|
139
139
|
requirements: []
|
140
140
|
rubyforge_project:
|
141
|
-
rubygems_version: 2.6.
|
141
|
+
rubygems_version: 2.6.12
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: Ease the pain of integrating social media posts in a Rails app.
|