funky 0.2.8 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a45f6f9ca2ea16f6e55393ea12a96410798a6c8
4
- data.tar.gz: 23c725525d25e34bedde18eedc3dfa98b281b7ac
3
+ metadata.gz: 5e52fc48ae3d4a4d712fe456071ef223b18926ce
4
+ data.tar.gz: a17317615267e853f52b5ceb7c1d47b037838af1
5
5
  SHA512:
6
- metadata.gz: 78655beeacf97bc69351b7e4ae1bc13fb7af49e015e8334e715e74ade08458b1d64c0bcbc094a5dc23ca43ae11f934028cc9040cd70c7d3898b9d792bb048391
7
- data.tar.gz: 27175936eb000756f21ea5a3884bdb91d857da8ba94ed7442b248d4f06f09b7ac6d3d40a1e087f28c6d86f2a44f2b40f17c8046b402ec30eccd6e1b5ad48648f
6
+ metadata.gz: 48e7df27906e165de15d24075baf76bc4398194f5ad67e463f9732213ed23c27b5e507b3469e8393d4aa95d471db2a88ca96b433b68b8b46b3cba388ca55228f
7
+ data.tar.gz: ea95e3776cb2ce7e7cf08ef6d5dd4b32422ef9514b7f0d5b9fd8be4ddf94dc22378684de56d87bc81fcedd3dea6e1eaa84a4cc5dba525d8b7ace52a292d20452
data/CHANGELOG.md CHANGED
@@ -6,6 +6,11 @@ For more information about changelogs, check
6
6
  [Keep a Changelog](http://keepachangelog.com) and
7
7
  [Vandamme](http://tech-angels.github.io/vandamme).
8
8
 
9
+ ## 0.2.9 - 2016/12/13
10
+
11
+ * [BUGFIX] Allow a video ID to be parsed out of facebook video URLs with
12
+ trailing slashes.
13
+
9
14
  ## 0.2.8 - 2016/12/12
10
15
 
11
16
  * [BUGFIX] Change the way that "like counts" are parsed now that Facebook has changed the structure of the HTML and can include multiple "likecounts" elements in the same page.
data/lib/funky/url.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Funky
2
2
  class URL
3
3
  attr_reader :url
4
- VIDEO_ID_REGEXES = [/videos\/(\d*)/i, /v=(\d*)/i, /\/v.\..*\/(\d*)\b/i]
4
+ VIDEO_ID_REGEXES = [/videos\/(\d+)(\/|)/i, /v=(\d*)/i, /\/v.\..*\/(\d*)\b/i]
5
5
 
6
6
  def initialize(url)
7
7
  @url = url
data/lib/funky/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Funky
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: funky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-12 00:00:00.000000000 Z
11
+ date: 2016-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler