title_grabber 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/title_grabber.rb +2 -2
- data/lib/title_grabber/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb83eff4cfb6b51b7b5ce520f9304919e121426e5b13ecd9805d82e770427217
|
4
|
+
data.tar.gz: 3d725995c3ebe4d846ea6058d4b2243587c456e442ccda042b50c353444f31b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d33d403cfc4efdc65f14552c694a329434d39ba87cbc22dd91608d3d37d6ef97c9dcda429b01bb6d33790e00e8432ef69b7a6b0be1446fc09bfc4a0c00daa276
|
7
|
+
data.tar.gz: 779c953f33079f8a012288a34b5d1aa791cd22cd012b51b1e61d6f9f6e2bd93e433080388793e49f6908b48877b88af4eb492cca678b292b500bf3840ed18d3f
|
data/Gemfile.lock
CHANGED
data/lib/title_grabber.rb
CHANGED
@@ -180,7 +180,7 @@ module TitleGrabber
|
|
180
180
|
tweet_urls.map! do |url|
|
181
181
|
if url.match?(URL_RE) && (res = open_w_timeout(url, **http_opts))
|
182
182
|
uri = res.base_uri
|
183
|
-
uri.host == TWITTER_HOST && !uri.
|
183
|
+
uri.host == TWITTER_HOST && !uri.path.match?(TWITTER_STATUS_RE) ? nil : uri.to_s
|
184
184
|
else
|
185
185
|
url
|
186
186
|
end
|
@@ -194,7 +194,7 @@ module TitleGrabber
|
|
194
194
|
tweet_urls.delete_if { |url|
|
195
195
|
uri = URI(url)
|
196
196
|
uri.host == TWITTER_HOST && uri.path.count("/") > 1 &&
|
197
|
-
!uri.
|
197
|
+
!uri.path.match?(TWITTER_STATUS_RE)
|
198
198
|
}
|
199
199
|
tweet_urls.sort!
|
200
200
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: title_grabber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cristian Rasch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oga
|