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 +4 -4
- data/lib/onebox/engine/twitter_status_onebox.rb +2 -2
- data/lib/onebox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0dc0faa3bd78567b23b49b33550523cf5b5fe65
|
4
|
+
data.tar.gz: 39d1c601c8017617467f1defa511ef1437c3c8be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
13
|
+
@match ||= @url.match(%r{twitter\.com/.+?/status(es)?/(?<id>\d+)})
|
14
14
|
end
|
15
15
|
|
16
16
|
def client
|
data/lib/onebox/version.rb
CHANGED
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.
|
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-
|
13
|
+
date: 2014-06-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: multi_json
|