open_graph_reader 0.7.2 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/open_graph_reader/base.rb +3 -3
- data/lib/open_graph_reader/builder.rb +2 -2
- data/lib/open_graph_reader/configuration.rb +8 -8
- data/lib/open_graph_reader/definitions.rb +21 -17
- data/lib/open_graph_reader/fetcher.rb +6 -3
- data/lib/open_graph_reader/object/dsl/types.rb +19 -25
- data/lib/open_graph_reader/object/dsl.rb +3 -3
- data/lib/open_graph_reader/object/registry.rb +1 -2
- data/lib/open_graph_reader/object.rb +1 -1
- data/lib/open_graph_reader/parser/graph.rb +9 -9
- data/lib/open_graph_reader/parser.rb +8 -3
- data/lib/open_graph_reader/version.rb +2 -2
- data/lib/open_graph_reader.rb +3 -3
- data/spec/fixtures/test_cases/image_alt_before_image.html +13 -0
- data/spec/integration/real_world_spec.rb +140 -140
- data/spec/integration/test_cases_spec.rb +17 -0
- data/spec/integration/valid_examples_spec.rb +5 -5
- data/spec/open_graph_reader/fetcher_spec.rb +1 -1
- data/spec/open_graph_reader_spec.rb +15 -15
- data/spec/spec_helper.rb +1 -1
- metadata +16 -88
metadata
CHANGED
@@ -1,43 +1,42 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: open_graph_reader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonne Haß
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-23 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
13
|
+
name: faraday
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
16
15
|
requirements:
|
17
|
-
- - "
|
16
|
+
- - ">="
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
18
|
+
version: 0.9.0
|
20
19
|
type: :runtime
|
21
20
|
prerelease: false
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
23
22
|
requirements:
|
24
|
-
- - "
|
23
|
+
- - ">="
|
25
24
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
25
|
+
version: 0.9.0
|
27
26
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
27
|
+
name: nokogiri
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
30
29
|
requirements:
|
31
|
-
- - "
|
30
|
+
- - "~>"
|
32
31
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
32
|
+
version: '1.6'
|
34
33
|
type: :runtime
|
35
34
|
prerelease: false
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
37
36
|
requirements:
|
38
|
-
- - "
|
37
|
+
- - "~>"
|
39
38
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
39
|
+
version: '1.6'
|
41
40
|
- !ruby/object:Gem::Dependency
|
42
41
|
name: bundler
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
@@ -185,8 +184,10 @@ files:
|
|
185
184
|
- spec/fixtures/real_world/unknown_namespace.html
|
186
185
|
- spec/fixtures/real_world/unknown_type.html
|
187
186
|
- spec/fixtures/real_world/url_path.html
|
187
|
+
- spec/fixtures/test_cases/image_alt_before_image.html
|
188
188
|
- spec/integration/invalid_examples_spec.rb
|
189
189
|
- spec/integration/real_world_spec.rb
|
190
|
+
- spec/integration/test_cases_spec.rb
|
190
191
|
- spec/integration/valid_examples_spec.rb
|
191
192
|
- spec/open_graph_reader/fetcher_spec.rb
|
192
193
|
- spec/open_graph_reader_spec.rb
|
@@ -195,7 +196,6 @@ homepage: https://github.com/jhass/open_graph_reader
|
|
195
196
|
licenses:
|
196
197
|
- MIT
|
197
198
|
metadata: {}
|
198
|
-
post_install_message:
|
199
199
|
rdoc_options: []
|
200
200
|
require_paths:
|
201
201
|
- lib
|
@@ -210,79 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
210
|
- !ruby/object:Gem::Version
|
211
211
|
version: '0'
|
212
212
|
requirements: []
|
213
|
-
rubygems_version: 3.2
|
214
|
-
signing_key:
|
213
|
+
rubygems_version: 3.6.2
|
215
214
|
specification_version: 4
|
216
215
|
summary: OpenGraph protocol parser
|
217
|
-
test_files:
|
218
|
-
- spec/fixtures/examples/apple-touch-icon-precomposed.png
|
219
|
-
- spec/fixtures/examples/apple-touch-icon.png
|
220
|
-
- spec/fixtures/examples/article-offset.html
|
221
|
-
- spec/fixtures/examples/article-utc.html
|
222
|
-
- spec/fixtures/examples/article.html
|
223
|
-
- spec/fixtures/examples/audio-array.html
|
224
|
-
- spec/fixtures/examples/audio-url.html
|
225
|
-
- spec/fixtures/examples/audio.html
|
226
|
-
- spec/fixtures/examples/book-isbn10.html
|
227
|
-
- spec/fixtures/examples/book.html
|
228
|
-
- spec/fixtures/examples/canadian.html
|
229
|
-
- spec/fixtures/examples/error.html
|
230
|
-
- spec/fixtures/examples/errors/article-date.html
|
231
|
-
- spec/fixtures/examples/errors/book-author.html
|
232
|
-
- spec/fixtures/examples/errors/book.html
|
233
|
-
- spec/fixtures/examples/errors/gender.html
|
234
|
-
- spec/fixtures/examples/errors/geo.html
|
235
|
-
- spec/fixtures/examples/errors/type.html
|
236
|
-
- spec/fixtures/examples/errors/video-duration.html
|
237
|
-
- spec/fixtures/examples/favicon.ico
|
238
|
-
- spec/fixtures/examples/filters/xss-image.html
|
239
|
-
- spec/fixtures/examples/image-array.html
|
240
|
-
- spec/fixtures/examples/image-toosmall.html
|
241
|
-
- spec/fixtures/examples/image-url.html
|
242
|
-
- spec/fixtures/examples/image.html
|
243
|
-
- spec/fixtures/examples/index.html
|
244
|
-
- spec/fixtures/examples/media/audio/1khz.mp3
|
245
|
-
- spec/fixtures/examples/media/audio/250hz.mp3
|
246
|
-
- spec/fixtures/examples/media/images/1.png
|
247
|
-
- spec/fixtures/examples/media/images/50.png
|
248
|
-
- spec/fixtures/examples/media/images/75.png
|
249
|
-
- spec/fixtures/examples/media/images/icon.png
|
250
|
-
- spec/fixtures/examples/media/images/logo.png
|
251
|
-
- spec/fixtures/examples/media/images/train.jpg
|
252
|
-
- spec/fixtures/examples/media/video/train.flv
|
253
|
-
- spec/fixtures/examples/media/video/train.mp4
|
254
|
-
- spec/fixtures/examples/media/video/train.webm
|
255
|
-
- spec/fixtures/examples/min.html
|
256
|
-
- spec/fixtures/examples/nomedia.html
|
257
|
-
- spec/fixtures/examples/plain.html
|
258
|
-
- spec/fixtures/examples/profile.html
|
259
|
-
- spec/fixtures/examples/required.html
|
260
|
-
- spec/fixtures/examples/robots.txt
|
261
|
-
- spec/fixtures/examples/sitemap.xml
|
262
|
-
- spec/fixtures/examples/video-array.html
|
263
|
-
- spec/fixtures/examples/video-movie.html
|
264
|
-
- spec/fixtures/examples/video.html
|
265
|
-
- spec/fixtures/real_world/image_path.html
|
266
|
-
- spec/fixtures/real_world/image_path_2.html
|
267
|
-
- spec/fixtures/real_world/invalid_article_author.html
|
268
|
-
- spec/fixtures/real_world/invalid_datetime.html
|
269
|
-
- spec/fixtures/real_world/just_other_prefix.html
|
270
|
-
- spec/fixtures/real_world/missing_content.html
|
271
|
-
- spec/fixtures/real_world/missing_image.html
|
272
|
-
- spec/fixtures/real_world/missing_title.html
|
273
|
-
- spec/fixtures/real_world/missing_url.html
|
274
|
-
- spec/fixtures/real_world/mixed_case_properties.html
|
275
|
-
- spec/fixtures/real_world/mixed_case_type.html
|
276
|
-
- spec/fixtures/real_world/not_a_reference.html
|
277
|
-
- spec/fixtures/real_world/twitter_profile.html
|
278
|
-
- spec/fixtures/real_world/undefined_property.html
|
279
|
-
- spec/fixtures/real_world/undefined_property_2.html
|
280
|
-
- spec/fixtures/real_world/unknown_namespace.html
|
281
|
-
- spec/fixtures/real_world/unknown_type.html
|
282
|
-
- spec/fixtures/real_world/url_path.html
|
283
|
-
- spec/integration/invalid_examples_spec.rb
|
284
|
-
- spec/integration/real_world_spec.rb
|
285
|
-
- spec/integration/valid_examples_spec.rb
|
286
|
-
- spec/open_graph_reader/fetcher_spec.rb
|
287
|
-
- spec/open_graph_reader_spec.rb
|
288
|
-
- spec/spec_helper.rb
|
216
|
+
test_files: []
|