onebox 1.5.25 → 1.5.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- it "includes link" do
14
- expect(html).to include("http://www.peers.org/action/peers-pledgea")
15
- end
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("39b969d32a10b2437563e246708c8f9d_normal.jpeg")
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/3518892092/39b969d32a10b2437563e246708c8f9d_normal.jpeg",
73
+ "http://pbs.twimg.com/profile_images/568244395007168512/qQVXa2Ql_normal.jpeg",
77
74
  profile_image_url_https:
78
- "https://pbs.twimg.com/profile_images/3518892092/39b969d32a10b2437563e246708c8f9d_normal.jpeg",
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 },
@@ -1,7 +1,8 @@
1
1
  <aside class="onebox {{subname}}">
2
2
  <header class="source">
3
3
  <a href="{{{link}}}">
4
- {{domain}}
4
+ {{#repository_path}}{{repository_path}}{{/repository_path}}
5
+ {{^repository_path}}{{domain}}{{/repository_path}}
5
6
  </a>
6
7
  </header>
7
8
  <article class="onebox-body">
@@ -22,7 +22,3 @@
22
22
  with <strong>{{stats.additions}} additions</strong>
23
23
  and <strong>{{stats.deletions}} deletions</strong>.
24
24
  </div>
25
-
26
- <div class="github-repository-path">
27
- <a href="{{repository_url}}" target="_blank">{{repository_path}}</a>
28
- </div>
@@ -17,10 +17,6 @@
17
17
  </div>
18
18
  </div>
19
19
 
20
- <div class="github-repository-path">
21
- <a href="{{repository_url}}" target="_blank">{{repository_path}}</a>
22
- </div>
23
-
24
20
  <pre class='content' style="white-space: pre-wrap;">{{content}}</pre>
25
21
 
26
22
  <div class='labels'>
@@ -19,7 +19,3 @@
19
19
  with <strong>{{additions}} additions</strong>
20
20
  and <strong>{{deletions}} deletions</strong>.
21
21
  </div>
22
-
23
- <div class="github-repository-path">
24
- <a href="{{repository_url}}" target="_blank">{{repository_path}}</a>
25
- </div>
@@ -5,7 +5,7 @@
5
5
  </a>
6
6
  </h4>
7
7
 
8
- <p>{{{tweet}}}</p>
8
+ <div class="tweet">{{{tweet}}}</div>
9
9
 
10
10
  <div class='date'>
11
11
  <a href="{{link}}" target="_blank">{{timestamp}}</a>
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.25
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-10 00:00:00.000000000 Z
13
+ date: 2015-09-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json