Skip to content

Commit

Permalink
Prepare 0.3.0 release
Browse files Browse the repository at this point in the history
In this third bigger release we **added support**:
- For exporting articles in the Facebook Instant Article format
- For exporting articles in a plain text format
- To all exporters for `caption` elements that are an empty array
- For `[no-caption]` text in _Google Documents_ below elements (like images or embed URLs), this now returns empty caption for element

**Improvements** were done regarding additional element placement:
- Rework algorithm to place additional elements to better support placing a single element
- Improve behavior of multiple calls to `Article#place_additional_elements`

One potentially **breaking change** was added:
- Remove deprecated `#register_html_element_exporter`, use `#register_element_exporters` instead

**Fixes**:
- Fix AMP export of Twitter tweets
  • Loading branch information
nicolas-fricke committed Nov 21, 2017
1 parent a9b4057 commit 7092e3b
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
21 changes: 14 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
# Changelog

## WIP
- Add an exporter for Facebook Instant Articles
- Add support to exporters for `caption` elements that are an empty array
- GDoc Importer: Support `[no-caption]` text, returns empty caption for element
- Fix AMP export of Twitter tweets
- Add a plain text exporter
## 0.3.0 - 2017/11/21
In this third bigger release we **added support**:
- For exporting articles in the Facebook Instant Article format
- For exporting articles in a plain text format
- To all exporters for `caption` elements that are an empty array
- For `[no-caption]` text in _Google Documents_ below elements (like images or embed URLs), this now returns empty caption for element

**Improvements** were done regarding additional element placement:
- Rework algorithm to place additional elements to better support placing a single element
- Improve behavior of multiple calls to `Article#place_additional_elements`

One potentially **breaking change** was added:
- Remove deprecated `#register_html_element_exporter`, use `#register_element_exporters` instead
- Rework algorithm to place additional elements to support better placement

**Fixes**:
- Fix AMP export of Twitter tweets

## 0.2.1 - 2017/11/08
**Fix**: Handle non-successful OEmbed responses by rendering message
Expand Down
2 changes: 1 addition & 1 deletion lib/article_json/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ArticleJSON
VERSION = '0.2.1'
VERSION = '0.3.0'
end
2 changes: 1 addition & 1 deletion spec/article_json/article_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
shared_context 'for a correctly parsed Hash' do
let(:example_hash) do
{
article_json_version: '0.2.1',
article_json_version: '0.3.0',
content: [
{
type: :paragraph,
Expand Down
4 changes: 2 additions & 2 deletions spec/article_json/import/google_doc/html/parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
let(:json) do
<<-json
{
"article_json_version": "0.1.0",
"article_json_version": "0.3.0",
"content": [
{
"type": "text_box",
Expand Down Expand Up @@ -55,7 +55,7 @@
let(:json) do
<<-json
{
"article_json_version": "0.1.0",
"article_json_version": "0.3.0",
"content": [
{
"type": "paragraph",
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/reference_document_parsed.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"article_json_version": "0.2.1",
"article_json_version": "0.3.0",
"content": [
{
"type": "paragraph",
Expand Down

0 comments on commit 7092e3b

Please sign in to comment.