onebox 1.5.25 → 1.5.26
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 +35 -31
- data/lib/onebox/layout.rb +5 -0
- data/lib/onebox/version.rb +1 -1
- data/spec/fixtures/twitterstatus.response +3486 -1483
- data/spec/lib/onebox/engine/twitter_status_onebox_spec.rb +11 -14
- data/templates/_layout.mustache +2 -1
- data/templates/githubcommit.mustache +0 -4
- data/templates/githubissue.mustache +0 -4
- data/templates/githubpullrequest.mustache +0 -4
- data/templates/twitterstatus.mustache +1 -1
- metadata +2 -2
@@ -10,29 +10,26 @@ describe Onebox::Engine::TwitterStatusOnebox do
|
|
10
10
|
expect(html).to include("I'm a sucker for pledges.")
|
11
11
|
end
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
# TODO: handle t.co links
|
14
|
+
# it "includes link" do
|
15
|
+
# expect(html).to include("http://www.peers.org/action/peers-pledgea")
|
16
|
+
# end
|
16
17
|
|
17
18
|
# TODO: weird spec..
|
18
19
|
# it "includes timestamp" do
|
19
20
|
# expect(html).to include("6:59 PM - 1 Aug 13")
|
20
21
|
# end
|
21
22
|
|
23
|
+
it "includes name" do
|
24
|
+
expect(html).to include("Vyki Englert")
|
25
|
+
end
|
26
|
+
|
22
27
|
it "includes username" do
|
23
28
|
expect(html).to include("vyki_e")
|
24
29
|
end
|
25
30
|
|
26
31
|
it "includes user avatar" do
|
27
|
-
expect(html).to include("
|
28
|
-
end
|
29
|
-
|
30
|
-
it "includes tweet favorite count" do
|
31
|
-
expect(html).to include("")
|
32
|
-
end
|
33
|
-
|
34
|
-
it "includes retweet count" do
|
35
|
-
expect(html).to include("")
|
32
|
+
expect(html).to include("568244395007168512/qQVXa2Ql_normal.jpeg")
|
36
33
|
end
|
37
34
|
end
|
38
35
|
|
@@ -73,9 +70,9 @@ describe Onebox::Engine::TwitterStatusOnebox do
|
|
73
70
|
contributors_enabled: false,
|
74
71
|
is_translator: false,
|
75
72
|
profile_image_url:
|
76
|
-
"http://pbs.twimg.com/profile_images/
|
73
|
+
"http://pbs.twimg.com/profile_images/568244395007168512/qQVXa2Ql_normal.jpeg",
|
77
74
|
profile_image_url_https:
|
78
|
-
"https://pbs.twimg.com/profile_images/
|
75
|
+
"https://pbs.twimg.com/profile_images/568244395007168512/qQVXa2Ql_normal.jpeg",
|
79
76
|
following: true,
|
80
77
|
follow_request_sent: false,
|
81
78
|
notifications: nil },
|
data/templates/_layout.mustache
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.5.
|
4
|
+
version: 1.5.26
|
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: 2015-09-
|
13
|
+
date: 2015-09-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: multi_json
|