Skip to content

Commit

Permalink
馃敄 Prepare 0.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
fbuys committed Mar 13, 2023
1 parent a58fff3 commit bffa96e
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 9 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.2.0] - 2023-03-13

### Added

- Add new initializer config, backward compatible with previous implementation.
- Add new initializer config, backwards compatible with previous env implementation.
- Add activesupport dependecy for help with changing letter cases.

### Fixed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ def self.generate(text)
end
end
end

Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ def self.generate(text)
end
end
end


Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ def self.generate(text)
end
end
end

5 changes: 4 additions & 1 deletion lib/bridgetown_notion/parsers/block_parser.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module BridgetownNotion
module Parsers
class BlockParser
Expand All @@ -12,7 +13,9 @@ def self.parse(block)

private_class_method def self.for_each_block_type
pattern = %r{(?<block_type>\w+)(?!.*/)_markdown_generator.rb}
markdown_generator_files = Dir["#{File.dirname(__FILE__)}/../markdown_generators/**/*_markdown_generator.rb"]
markdown_generator_files = Dir[
"#{File.dirname(__FILE__)}/../markdown_generators/**/*_markdown_generator.rb"
]
markdown_generator_files.each do |file|
yield file.match(pattern)[:block_type].to_s
end
Expand Down
2 changes: 1 addition & 1 deletion lib/bridgetown_notion/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module BridgetownNotion
VERSION = "0.1.0"
VERSION = "0.2.0"
end
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ class TestHeading5MarkdownGenerator < Bridgetown::TestCase
end
end
end

Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ class TestHeading6MarkdownGenerator < Bridgetown::TestCase
end
end
end

2 changes: 2 additions & 0 deletions test/bridgetown_notion/parsers/test_content_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require_relative "../../helper"

class TestContentParser < Bridgetown::TestCase
# rubocop:disable Metrics/BlockLength
describe BridgetownNotion::Parsers::ContentParser do
describe "#parse" do
it "returns markdown representation of blocks" do
Expand Down Expand Up @@ -63,4 +64,5 @@ class TestContentParser < Bridgetown::TestCase
end
end
end
# rubocop:enable Metrics/BlockLength
end

0 comments on commit bffa96e

Please sign in to comment.