article_json 0.3.8 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +108 -72
  4. data/bin/article_json_export_amp.rb +1 -0
  5. data/bin/article_json_export_apple_news.rb +15 -0
  6. data/bin/article_json_export_facebook.rb +1 -0
  7. data/bin/article_json_export_html.rb +1 -0
  8. data/bin/article_json_export_plain_text.rb +1 -0
  9. data/bin/article_json_parse_google_doc.rb +1 -0
  10. data/bin/check_google_doc_export.rb +41 -0
  11. data/bin/update_oembed_request-stubs.sh +1 -3
  12. data/bin/update_reference_document.sh +4 -0
  13. data/lib/article_json/article.rb +22 -2
  14. data/lib/article_json/configuration.rb +2 -1
  15. data/lib/article_json/elements/base.rb +0 -1
  16. data/lib/article_json/export/amp/elements/embed.rb +1 -1
  17. data/lib/article_json/export/apple_news/elements/base.rb +53 -0
  18. data/lib/article_json/export/apple_news/elements/embed.rb +130 -0
  19. data/lib/article_json/export/apple_news/elements/heading.rb +32 -0
  20. data/lib/article_json/export/apple_news/elements/image.rb +58 -0
  21. data/lib/article_json/export/apple_news/elements/list.rb +67 -0
  22. data/lib/article_json/export/apple_news/elements/paragraph.rb +36 -0
  23. data/lib/article_json/export/apple_news/elements/quote.rb +60 -0
  24. data/lib/article_json/export/apple_news/elements/text.rb +42 -0
  25. data/lib/article_json/export/apple_news/elements/text_box.rb +51 -0
  26. data/lib/article_json/export/apple_news/exporter.rb +37 -0
  27. data/lib/article_json/import/google_doc/html/image_parser.rb +16 -2
  28. data/lib/article_json/import/google_doc/html/node_analyzer.rb +11 -1
  29. data/lib/article_json/import/google_doc/html/parser.rb +6 -1
  30. data/lib/article_json/utils/o_embed_resolver/facebook_video.rb +17 -1
  31. data/lib/article_json/utils/o_embed_resolver/youtube_video.rb +1 -1
  32. data/lib/article_json/version.rb +1 -1
  33. data/lib/article_json.rb +11 -0
  34. 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.3.8
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
- autorequire:
10
+ - Damien Dillon
11
+ autorequire:
11
12
  bindir: bin
12
13
  cert_chain: []
13
- date: 2020-07-31 00:00:00.000000000 Z
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: '1.15'
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: '1.15'
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
- `article_json` is a format definition for news articles and a ruby gem that
101
- offers conversions from and to different formats:
102
- - Parser for Google Doc HTML exports
103
- - Converter to simple HTML format
104
- - Converter to AMP format
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.3'
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.0.8
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: []