article_json 0.3.8 → 0.4.0
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 +4 -4
- data/CHANGELOG.md +24 -0
- data/README.md +108 -72
- data/bin/article_json_export_amp.rb +1 -0
- data/bin/article_json_export_apple_news.rb +15 -0
- data/bin/article_json_export_facebook.rb +1 -0
- data/bin/article_json_export_html.rb +1 -0
- data/bin/article_json_export_plain_text.rb +1 -0
- data/bin/article_json_parse_google_doc.rb +1 -0
- data/bin/check_google_doc_export.rb +41 -0
- data/bin/update_oembed_request-stubs.sh +1 -3
- data/bin/update_reference_document.sh +4 -0
- data/lib/article_json/article.rb +22 -2
- data/lib/article_json/configuration.rb +2 -1
- data/lib/article_json/elements/base.rb +0 -1
- data/lib/article_json/export/amp/elements/embed.rb +1 -1
- data/lib/article_json/export/apple_news/elements/base.rb +53 -0
- data/lib/article_json/export/apple_news/elements/embed.rb +130 -0
- data/lib/article_json/export/apple_news/elements/heading.rb +32 -0
- data/lib/article_json/export/apple_news/elements/image.rb +58 -0
- data/lib/article_json/export/apple_news/elements/list.rb +67 -0
- data/lib/article_json/export/apple_news/elements/paragraph.rb +36 -0
- data/lib/article_json/export/apple_news/elements/quote.rb +60 -0
- data/lib/article_json/export/apple_news/elements/text.rb +42 -0
- data/lib/article_json/export/apple_news/elements/text_box.rb +51 -0
- data/lib/article_json/export/apple_news/exporter.rb +37 -0
- data/lib/article_json/import/google_doc/html/image_parser.rb +16 -2
- data/lib/article_json/import/google_doc/html/node_analyzer.rb +11 -1
- data/lib/article_json/import/google_doc/html/parser.rb +6 -1
- data/lib/article_json/utils/o_embed_resolver/facebook_video.rb +17 -1
- data/lib/article_json/utils/o_embed_resolver/youtube_video.rb +1 -1
- data/lib/article_json/version.rb +1 -1
- data/lib/article_json.rb +11 -0
- metadata +33 -15
metadata
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: article_json
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Sager
|
8
8
|
- Manu Campos
|
9
9
|
- Nicolas Fricke
|
10
|
-
|
10
|
+
- Damien Dillon
|
11
|
+
autorequire:
|
11
12
|
bindir: bin
|
12
13
|
cert_chain: []
|
13
|
-
date:
|
14
|
+
date: 2024-02-14 00:00:00.000000000 Z
|
14
15
|
dependencies:
|
15
16
|
- !ruby/object:Gem::Dependency
|
16
17
|
name: nokogiri
|
@@ -46,14 +47,14 @@ dependencies:
|
|
46
47
|
requirements:
|
47
48
|
- - "~>"
|
48
49
|
- !ruby/object:Gem::Version
|
49
|
-
version: '
|
50
|
+
version: '2.2'
|
50
51
|
type: :development
|
51
52
|
prerelease: false
|
52
53
|
version_requirements: !ruby/object:Gem::Requirement
|
53
54
|
requirements:
|
54
55
|
- - "~>"
|
55
56
|
- !ruby/object:Gem::Version
|
56
|
-
version: '
|
57
|
+
version: '2.2'
|
57
58
|
- !ruby/object:Gem::Dependency
|
58
59
|
name: rspec
|
59
60
|
requirement: !ruby/object:Gem::Requirement
|
@@ -96,12 +97,17 @@ dependencies:
|
|
96
97
|
- - "~>"
|
97
98
|
- !ruby/object:Gem::Version
|
98
99
|
version: '0.8'
|
99
|
-
description: |
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
100
|
+
description: |2
|
101
|
+
`article_json` is a format definition for news articles and a ruby gem that
|
102
|
+
offers conversions from and to different formats:
|
103
|
+
- Parser for Google Doc HTML exports
|
104
|
+
- Converter to:
|
105
|
+
- simple HTML format
|
106
|
+
- AMP format
|
107
|
+
- Apple News Format (ANF)
|
108
|
+
- Facebook Instant Article HTML
|
109
|
+
- plain text
|
110
|
+
- JSON
|
105
111
|
email: info@devex.com
|
106
112
|
executables: []
|
107
113
|
extensions: []
|
@@ -112,11 +118,13 @@ files:
|
|
112
118
|
- LICENSE
|
113
119
|
- README.md
|
114
120
|
- bin/article_json_export_amp.rb
|
121
|
+
- bin/article_json_export_apple_news.rb
|
115
122
|
- bin/article_json_export_facebook.rb
|
116
123
|
- bin/article_json_export_google_doc.rb
|
117
124
|
- bin/article_json_export_html.rb
|
118
125
|
- bin/article_json_export_plain_text.rb
|
119
126
|
- bin/article_json_parse_google_doc.rb
|
127
|
+
- bin/check_google_doc_export.rb
|
120
128
|
- bin/update_oembed_request-stubs.sh
|
121
129
|
- bin/update_reference_document.sh
|
122
130
|
- lib/article_json.rb
|
@@ -142,6 +150,16 @@ files:
|
|
142
150
|
- lib/article_json/export/amp/elements/text.rb
|
143
151
|
- lib/article_json/export/amp/elements/text_box.rb
|
144
152
|
- lib/article_json/export/amp/exporter.rb
|
153
|
+
- lib/article_json/export/apple_news/elements/base.rb
|
154
|
+
- lib/article_json/export/apple_news/elements/embed.rb
|
155
|
+
- lib/article_json/export/apple_news/elements/heading.rb
|
156
|
+
- lib/article_json/export/apple_news/elements/image.rb
|
157
|
+
- lib/article_json/export/apple_news/elements/list.rb
|
158
|
+
- lib/article_json/export/apple_news/elements/paragraph.rb
|
159
|
+
- lib/article_json/export/apple_news/elements/quote.rb
|
160
|
+
- lib/article_json/export/apple_news/elements/text.rb
|
161
|
+
- lib/article_json/export/apple_news/elements/text_box.rb
|
162
|
+
- lib/article_json/export/apple_news/exporter.rb
|
145
163
|
- lib/article_json/export/common/elements/base.rb
|
146
164
|
- lib/article_json/export/common/html/elements/base.rb
|
147
165
|
- lib/article_json/export/common/html/elements/embed.rb
|
@@ -218,7 +236,7 @@ homepage: https://github.com/Devex/article_json
|
|
218
236
|
licenses:
|
219
237
|
- MIT
|
220
238
|
metadata: {}
|
221
|
-
post_install_message:
|
239
|
+
post_install_message:
|
222
240
|
rdoc_options: []
|
223
241
|
require_paths:
|
224
242
|
- lib
|
@@ -226,15 +244,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
226
244
|
requirements:
|
227
245
|
- - ">="
|
228
246
|
- !ruby/object:Gem::Version
|
229
|
-
version: '2.
|
247
|
+
version: '2.5'
|
230
248
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
231
249
|
requirements:
|
232
250
|
- - ">="
|
233
251
|
- !ruby/object:Gem::Version
|
234
252
|
version: '0'
|
235
253
|
requirements: []
|
236
|
-
rubygems_version: 3.
|
237
|
-
signing_key:
|
254
|
+
rubygems_version: 3.4.10
|
255
|
+
signing_key:
|
238
256
|
specification_version: 4
|
239
257
|
summary: JSON Format for News Articles & Ruby Gem
|
240
258
|
test_files: []
|