zooniverse_social 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zooniverse_social/posts.rb +2 -1
- data/lib/zooniverse_social/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8a3dde0282c8e2f7bb7429b87aa1e8171a33db7
|
4
|
+
data.tar.gz: 073d5521c0dfed5f4435dc435981c73f8272a630
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8568352177dc7dc0efedf3ab01157f449cc7646f1689d96e80c9cc19eeb2fe8a6a3f3155c27357df4de57fe96f568acac3cf161350b4b80eff04c47ccc925581
|
7
|
+
data.tar.gz: f61676136c5ab9565b3cd71c26b0777447ec4d7667b061d4eb86a24c4b5bc618bba6c595b6e517f7044189a6271881f19218eb88570e4440a92e60e36fcd22fc
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'cgi'
|
1
2
|
require 'zooniverse_social/updater'
|
2
3
|
|
3
4
|
module ZooniverseSocial
|
@@ -30,7 +31,7 @@ module ZooniverseSocial
|
|
30
31
|
end
|
31
32
|
|
32
33
|
def clean_excerpt(text)
|
33
|
-
(text || '')
|
34
|
+
CGI.unescapeHTML (text || '')
|
34
35
|
.gsub(' ', '')
|
35
36
|
.gsub('[…]', '')
|
36
37
|
.gsub('<p>', '')
|