Skip to content

Commit

Permalink
Prep for 0.40 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mscrivo committed Jun 8, 2024
1 parent b218ec5 commit fd9124a
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 25 deletions.
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.4.0] - 2024-06-08
### Added
- Switch from Travis to Github Actions for Build and Test
- Add rubocop for linting and cleanup existing violations ([#36](https://github.com/soundasleep/html2text_ruby/pull/36))

### Changed
- Add support for Ruby 3.x, removed support for Ruby < 3.0 since it is EOL
- Allow subclassing of `Html2Text` to override the default behaviour ([#30](https://github.com/soundasleep/html2text_ruby/pull/30))

### Fixed
- Loosen nokogiri dependency to allow for nokogiri < 2.0 ([#17](https://github.com/soundasleep/html2text_ruby/pull/17))

## [0.3.1] - 2019-06-12
### Security
- Bumped nokogiri requirement to ~> 1.10.3, resolving [CVE-2019-11068](https://nvd.nist.gov/vuln/detail/CVE-2019-11068)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
html2text (0.3.1)
html2text (0.4.0)
nokogiri (>= 1.0, < 2.0)

GEM
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ rendered by a browser - perfect for places where you need a quick text represent
<div>Another div</div>
<div>A div<div>within a div</div></div>

<a href="http://foo.com">A link</a>
<a href="https://foo.com">A link</a>

</body>
</html>
Expand All @@ -40,7 +40,7 @@ Another div
A div
within a div
[A link](http://foo.com)
[A link](https://foo.com)
```

See the [original blog post](http://journals.jevon.org/users/jevon-phd/entry/19818) or the related [StackOverflow answer](http://stackoverflow.com/a/2564472/39531).
Expand All @@ -63,7 +63,7 @@ text = Html2Text.convert(html)

## Tests

See all of the test cases defined in [spec/examples/](spec/examples/). These can be run with `bundle && rspec`.
See all of the test cases defined in [spec/examples/](spec/examples/). These can be run with `bundle exec rake`.

## License

Expand Down
9 changes: 9 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# frozen_string_literal: true

require 'rubygems'
require 'bundler'

Bundler.setup(:default, :development)

require 'rake'

Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)
Expand Down
2 changes: 1 addition & 1 deletion lib/html2text/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

class Html2Text
VERSION = '0.3.1'
VERSION = '0.4.0'
end

0 comments on commit fd9124a

Please sign in to comment.