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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8eaca17a99cbd1763331bfb09b21e84548590e3d
4
- data.tar.gz: 4296fc279955ccfcb4f7c82c681026bb550b792c
3
+ metadata.gz: b8f4db78d8719d5f5ca3e6377d1a0ad3b7aecb87
4
+ data.tar.gz: e752af16ddbd9534394839c02734a92ac6b71c9f
5
5
  SHA512:
6
- metadata.gz: fab702d002ca2b88f557d856d6c76c32f68eaf5f80b58069bc0d7f7ca052404195547d2f77f03d8f73943cfbd6b9092fa0e4e7ec154a6a858b0c6ead7d742503
7
- data.tar.gz: 1628bec42e661f3bf349515bd141a60126f40e9ceff37046ef5932ea0ede007074c4d9fb45250a73e470d0816812f78a1702bc21ee33daf5c89da09d0fd4f498
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
- posts = self.find_posts(feed)
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
- content, max = the_content, @config.public[:max_characters]
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
@@ -1,3 +1,3 @@
1
1
  module SocialRails
2
- VERSION = '2.1.2'
2
+ VERSION = '2.1.3'
3
3
  end
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.2
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: 2017-11-29 00:00:00.000000000 Z
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.14
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.