onebox 1.4.8 → 1.4.9

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: bb22a08c0e6d06d935f30b1b230f0efc15efac21
4
- data.tar.gz: f1c88f9839c7f81abf2dce07fc219a9ddedf020e
3
+ metadata.gz: acf0205db8c9ea7c0a4c0ded94674fae2c2a7647
4
+ data.tar.gz: fd639f567d646668041ae8c28a5af22d39512fe8
5
5
  SHA512:
6
- metadata.gz: 0eadd583d8f130ba3c797b00de73a3a12449c2d9631c5882da048938855b1e725d36feb45a12b90e7f92676894c9fd13ba8e3b145648182e37e9f6bf7f2f7a6e
7
- data.tar.gz: c0970b83fba1d5b7ea3357557228168df39cfa5119a43a66627e7bf5a1716aac9054c3b61ca08eefeb92f4905ac4a656c6661f1b5de3e8244ff58d037866b1d1
6
+ metadata.gz: 3f4fcf781c785773901b5507e06d746d76e3adc1975074524c8cbb3f687e4d836b7352c4618e4e55a24a42f70550df964bc507ac0d98957f84ffa41f00afacdd
7
+ data.tar.gz: 2972de535e55661b17473efb5df139d5d7ef2eae4993de8683897960a4edaeae470608b0715adb1496a8e52fa090b8531cbffe06c53cbf9aaececb305072db28
@@ -35,7 +35,7 @@ module Onebox
35
35
  if raw.html?
36
36
  raw.css(".tweet-text")[0].inner_text
37
37
  else
38
- access(:text)
38
+ client.prettify_tweet(raw)
39
39
  end
40
40
  end
41
41
 
@@ -1,3 +1,3 @@
1
1
  module Onebox
2
- VERSION = "1.4.8"
2
+ VERSION = "1.4.9"
3
3
  end
@@ -10,6 +10,10 @@ 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
16
+
13
17
  it "includes timestamp" do
14
18
  pending
15
19
  expect(html).to include("6:59 PM - 1 Aug 13")
@@ -89,6 +93,9 @@ describe Onebox::Engine::TwitterStatusOnebox do
89
93
  lang: "en"
90
94
  }
91
95
  end
96
+ @twitter_client.stub("prettify_tweet") do
97
+ "I'm a sucker for pledges. <a href='https://twitter.com/Peers' target='_blank'>@Peers</a> Pledge <a href='https://twitter.com/search?q=%23sharingeconomy' target='_blank'>#sharingeconomy</a> <a target='_blank' href='http://www.peers.org/action/peers-pledgea/'>peers.org/action/peers-p…</a>"
98
+ end
92
99
  Onebox.options = { twitter_client: @twitter_client }
93
100
  end
94
101
 
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.8
4
+ version: 1.4.9
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-08-28 00:00:00.000000000 Z
13
+ date: 2014-08-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json