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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e56496e45f91fb324125076d07c4fe3ec57fc9200246f78c78f9a13f3ca3b44
4
- data.tar.gz: b1d99e4a53edc27a27b95fd1326159861a1c548af103a5992a60ce7aa83c0d83
3
+ metadata.gz: fb83eff4cfb6b51b7b5ce520f9304919e121426e5b13ecd9805d82e770427217
4
+ data.tar.gz: 3d725995c3ebe4d846ea6058d4b2243587c456e442ccda042b50c353444f31b5
5
5
  SHA512:
6
- metadata.gz: d132efc517ca28ab5f6c857d5d9267005d1d74f3cbff29032c88b1a40ff60e6a49827f7479b486e8b8a2922cabab447e4370d70fbaa9db963b9a5a00fb1c91a1
7
- data.tar.gz: a6d9d08caca7314a1a2c595039a065a8e22ca8b37aecf60303973db4b8939baa0fb62011ae2be201c01b9247ac7c31b7486c6a37343c86836a4c30167d565dd0
6
+ metadata.gz: d33d403cfc4efdc65f14552c694a329434d39ba87cbc22dd91608d3d37d6ef97c9dcda429b01bb6d33790e00e8432ef69b7a6b0be1446fc09bfc4a0c00daa276
7
+ data.tar.gz: 779c953f33079f8a012288a34b5d1aa791cd22cd012b51b1e61d6f9f6e2bd93e433080388793e49f6908b48877b88af4eb492cca678b292b500bf3840ed18d3f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- title_grabber (0.5.0)
4
+ title_grabber (0.5.1)
5
5
  oga (~> 2.15)
6
6
 
7
7
  GEM
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.to_s.match?(TWITTER_STATUS_RE) ? nil : uri.to_s
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.to_s.match?(TWITTER_STATUS_RE)
197
+ !uri.path.match?(TWITTER_STATUS_RE)
198
198
  }
199
199
  tweet_urls.sort!
200
200
 
@@ -1,3 +1,3 @@
1
1
  module TitleGrabber
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
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.1
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-19 00:00:00.000000000 Z
11
+ date: 2019-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oga