onebox 1.3.9 → 1.4.0

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: a7e63f64363e58311aad66504fd91ba7940eb2b3
4
- data.tar.gz: 18d611e2867fd927ffb4835d30845886ae938411
3
+ metadata.gz: f0dc0faa3bd78567b23b49b33550523cf5b5fe65
4
+ data.tar.gz: 39d1c601c8017617467f1defa511ef1437c3c8be
5
5
  SHA512:
6
- metadata.gz: 5140e35dcaefd82ae6a685ae9683095fbb5f4b674c03a4fa4d9c654c9cbe16dd68e9eab4848f0c293d6968c0f5626c20dad83fe6208071d96cde6cf946723186
7
- data.tar.gz: 3755590cec94084263a1a542d094d4fe60e980c3a4b78058edaf0c2d6fdd1cca5ce64b93acb181e0f948624f8188bd19a4a7c1eeb6b8faa777eeea4ff357ab35
6
+ metadata.gz: 4fbb87a7e1221145904ee46f54db1a728d341ff3d48a1f7b87b6bd87aa6f1d0bf9165d3623c7e2c6698447a1e7fe609ac76d8f9e206e269fa6d366c901f8ac8d
7
+ data.tar.gz: 7367e93f6e31d830220fb80a744a5e1e08d935f3abc7d279feb9d8aebb4db07028db39c4a556e1f2716a4a7db33975da9053bc94161dd3452f31e214c241e5b8
@@ -5,12 +5,12 @@ module Onebox
5
5
  include LayoutSupport
6
6
  include HTML
7
7
 
8
- matches_regexp Regexp.new("^http(?:s)?://(?:www\\.)?(?:(?:\\w)+\\.)?(twitter)\\.com(?:/)?(?:.)*/status/")
8
+ matches_regexp Regexp.new("^http(?:s)?://(?:www\\.)?(?:(?:\\w)+\\.)?(twitter)\\.com(?:/)?(?:.)*/status(es)?/")
9
9
 
10
10
  private
11
11
 
12
12
  def match
13
- @match ||= @url.match(%r{twitter\.com/.+?/status/(?<id>\d+)})
13
+ @match ||= @url.match(%r{twitter\.com/.+?/status(es)?/(?<id>\d+)})
14
14
  end
15
15
 
16
16
  def client
@@ -1,3 +1,3 @@
1
1
  module Onebox
2
- VERSION = "1.3.9"
2
+ VERSION = "1.4.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onebox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.9
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joanna Zeta
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-06-20 00:00:00.000000000 Z
13
+ date: 2014-06-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json