distillery 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/distillery/document.rb +6 -2
- data/lib/distillery/version.rb +1 -1
- data/spec/acceptance_spec.rb +8 -0
- data/spec/fixtures/tofu_bowl.html +1517 -0
- metadata +23 -19
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: distillery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-08-22 00:00:00.000000000 -07:00
|
13
|
+
default_executable:
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: nokogiri
|
16
|
-
requirement: &
|
17
|
+
requirement: &2153704280 !ruby/object:Gem::Requirement
|
17
18
|
none: false
|
18
19
|
requirements:
|
19
20
|
- - ! '>'
|
@@ -21,10 +22,10 @@ dependencies:
|
|
21
22
|
version: '1.0'
|
22
23
|
type: :runtime
|
23
24
|
prerelease: false
|
24
|
-
version_requirements: *
|
25
|
+
version_requirements: *2153704280
|
25
26
|
- !ruby/object:Gem::Dependency
|
26
27
|
name: slop
|
27
|
-
requirement: &
|
28
|
+
requirement: &2153703700 !ruby/object:Gem::Requirement
|
28
29
|
none: false
|
29
30
|
requirements:
|
30
31
|
- - ! '>'
|
@@ -32,10 +33,10 @@ dependencies:
|
|
32
33
|
version: '1.0'
|
33
34
|
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
version_requirements: *
|
36
|
+
version_requirements: *2153703700
|
36
37
|
- !ruby/object:Gem::Dependency
|
37
38
|
name: rspec
|
38
|
-
requirement: &
|
39
|
+
requirement: &2153703020 !ruby/object:Gem::Requirement
|
39
40
|
none: false
|
40
41
|
requirements:
|
41
42
|
- - ! '>'
|
@@ -43,10 +44,10 @@ dependencies:
|
|
43
44
|
version: '2.0'
|
44
45
|
type: :development
|
45
46
|
prerelease: false
|
46
|
-
version_requirements: *
|
47
|
+
version_requirements: *2153703020
|
47
48
|
- !ruby/object:Gem::Dependency
|
48
49
|
name: guard
|
49
|
-
requirement: &
|
50
|
+
requirement: &2153702120 !ruby/object:Gem::Requirement
|
50
51
|
none: false
|
51
52
|
requirements:
|
52
53
|
- - ! '>='
|
@@ -54,10 +55,10 @@ dependencies:
|
|
54
55
|
version: '0'
|
55
56
|
type: :development
|
56
57
|
prerelease: false
|
57
|
-
version_requirements: *
|
58
|
+
version_requirements: *2153702120
|
58
59
|
- !ruby/object:Gem::Dependency
|
59
60
|
name: guard-rspec
|
60
|
-
requirement: &
|
61
|
+
requirement: &2153700920 !ruby/object:Gem::Requirement
|
61
62
|
none: false
|
62
63
|
requirements:
|
63
64
|
- - ! '>='
|
@@ -65,10 +66,10 @@ dependencies:
|
|
65
66
|
version: '0'
|
66
67
|
type: :development
|
67
68
|
prerelease: false
|
68
|
-
version_requirements: *
|
69
|
+
version_requirements: *2153700920
|
69
70
|
- !ruby/object:Gem::Dependency
|
70
71
|
name: ruby-debug19
|
71
|
-
requirement: &
|
72
|
+
requirement: &2153700460 !ruby/object:Gem::Requirement
|
72
73
|
none: false
|
73
74
|
requirements:
|
74
75
|
- - ! '>='
|
@@ -76,10 +77,10 @@ dependencies:
|
|
76
77
|
version: '0'
|
77
78
|
type: :development
|
78
79
|
prerelease: false
|
79
|
-
version_requirements: *
|
80
|
+
version_requirements: *2153700460
|
80
81
|
- !ruby/object:Gem::Dependency
|
81
82
|
name: rb-fsevent
|
82
|
-
requirement: &
|
83
|
+
requirement: &2153700020 !ruby/object:Gem::Requirement
|
83
84
|
none: false
|
84
85
|
requirements:
|
85
86
|
- - ! '>='
|
@@ -87,10 +88,10 @@ dependencies:
|
|
87
88
|
version: '0'
|
88
89
|
type: :development
|
89
90
|
prerelease: false
|
90
|
-
version_requirements: *
|
91
|
+
version_requirements: *2153700020
|
91
92
|
- !ruby/object:Gem::Dependency
|
92
93
|
name: growl
|
93
|
-
requirement: &
|
94
|
+
requirement: &2153699360 !ruby/object:Gem::Requirement
|
94
95
|
none: false
|
95
96
|
requirements:
|
96
97
|
- - ! '>='
|
@@ -98,7 +99,7 @@ dependencies:
|
|
98
99
|
version: '0'
|
99
100
|
type: :development
|
100
101
|
prerelease: false
|
101
|
-
version_requirements: *
|
102
|
+
version_requirements: *2153699360
|
102
103
|
description: Distillery extracts the "content" portion out of an HTML document. It
|
103
104
|
applies heuristics based on element type, location, class/id name and other attributes
|
104
105
|
to try and find the content part of the HTML document and return it.
|
@@ -137,10 +138,12 @@ files:
|
|
137
138
|
- spec/fixtures/nyt_social_media.html
|
138
139
|
- spec/fixtures/pina_collada_cupcakes.html
|
139
140
|
- spec/fixtures/rhubarb.html
|
141
|
+
- spec/fixtures/tofu_bowl.html
|
140
142
|
- spec/fixtures/vanilla_pound_cake.html
|
141
143
|
- spec/lib/distillery/document_spec.rb
|
142
144
|
- spec/lib/distillery_spec.rb
|
143
145
|
- spec/spec_helper.rb
|
146
|
+
has_rdoc: true
|
144
147
|
homepage: https://github.com/Fluxx/distillery
|
145
148
|
licenses: []
|
146
149
|
post_install_message:
|
@@ -161,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
164
|
version: '0'
|
162
165
|
requirements: []
|
163
166
|
rubyforge_project: distillery
|
164
|
-
rubygems_version: 1.
|
167
|
+
rubygems_version: 1.6.1
|
165
168
|
signing_key:
|
166
169
|
specification_version: 3
|
167
170
|
summary: Extract the content portion of an HTML document.
|
@@ -182,6 +185,7 @@ test_files:
|
|
182
185
|
- spec/fixtures/nyt_social_media.html
|
183
186
|
- spec/fixtures/pina_collada_cupcakes.html
|
184
187
|
- spec/fixtures/rhubarb.html
|
188
|
+
- spec/fixtures/tofu_bowl.html
|
185
189
|
- spec/fixtures/vanilla_pound_cake.html
|
186
190
|
- spec/lib/distillery/document_spec.rb
|
187
191
|
- spec/lib/distillery_spec.rb
|