link_thumbnailer 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/CHANGELOG.md +4 -0
- data/lib/link_thumbnailer/graders/link_density.rb +1 -0
- data/lib/link_thumbnailer/version.rb +1 -1
- data/spec/graders/link_density_spec.rb +28 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmM3OGI0YjdkNDE2NzI4NmQ3ZjdmMWQ2YzY5YTM5NmQxODE5NDIxYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjkyYzZhOGJlNzNiNzMwZTdmNGUwYjQ0Y2FkYTY1NTI3NzkwNWMzNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDg0YjFkMjRjYjg5YjE1NmMyZjVhYjAwMjY3OGYzNzdiN2Y2Yjk5ZGE5M2M0
|
10
|
+
OTAyZTY3NGU5ZjA3ZGIxYTNhZWI5MDcyMzIyOWE1YjhiOGVjZmU5ODIxNDM0
|
11
|
+
NmFlNTNkNDE0ZjBjZDFkNjdhZTdlYjE1ZmMxNTAyNzgwYmVhYTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
N2EzNGMwMzQ4ZTZlYzU4ZjA1ODc1OGYzNmRiNzIyNTNjNTMyOWVkNjVkOWI4
|
14
|
+
ZmQxNGE2M2U2MjhmN2E4MDNjYjdmMmJmZTFmNDA4NmE5NGI1YjBiNjEzZWYz
|
15
|
+
NDc3ODVhMGI2MzZlODk3NjJmMTdiZGU4Y2M2OTI2MmVlZThmMjU=
|
data/CHANGELOG.md
CHANGED
@@ -19,4 +19,32 @@ describe LinkThumbnailer::Graders::LinkDensity do
|
|
19
19
|
|
20
20
|
end
|
21
21
|
|
22
|
+
describe '#density' do
|
23
|
+
|
24
|
+
let(:links) { ['foo'] }
|
25
|
+
let(:action) { instance.send(:density) }
|
26
|
+
|
27
|
+
before do
|
28
|
+
instance.stub(:links).and_return(links)
|
29
|
+
instance.stub(:text).and_return(text)
|
30
|
+
end
|
31
|
+
|
32
|
+
context 'with text' do
|
33
|
+
|
34
|
+
let(:text) { 'abcd' }
|
35
|
+
|
36
|
+
it { expect(action).to eq(0.25) }
|
37
|
+
|
38
|
+
end
|
39
|
+
|
40
|
+
context 'without text' do
|
41
|
+
|
42
|
+
let(:text) { '' }
|
43
|
+
|
44
|
+
it { expect(action).to eq(0) }
|
45
|
+
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
|
22
50
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: link_thumbnailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pierre-Louis Gottfrois
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|