diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f003772..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: ruby -cache: bundler -rvm: - - 2.3 - - 2.7 -before_install: - - gem update --system - - gem install bundler - - bundle install -script: - - bundle exec rake - - bundle exec bundler-audit -deploy: - provider: rubygems - api_key: - secure: nMU94SMZxC7NqnXcW3OO6e2m8MbiYg5QvM0j8HNmv78FS0vmjQBCmH/jY0SZIp6Fvn3gLMpJ9DF/EnASXQFJ/j9QpdqlI6L4/jC9B/1HkhPkC+mQ6lmZh2OUnJk82lKW7/iWrnNf3cFMBX/m3ygFItADSB5241klHRvSYWQWlHpRlC5qHiQsZ6UO1WWe4t0erR6iAa80z8GU8hiU/g2HbLHz51p7Jyl0qvWgEPQ8hauyd/3U0Q65QAk3jNF4A9ug5/DPpau4FvEfahA6Q7uZQPKILHjD1iOzaJndHHieGoqpLBadGLs5GDb50gKlKAmQWtJyXkE3do7RbV7fBCzxqwo8eZieZXyzLIg3iP8f5AgsFT6NSYJYUggO1DEh9JoTSv2+IZWVLrgyrNivONhM0rxKkeapoU0HqK+7056iSYlh+8Q7lJyuOlf63nhwtTa+lgziqKwFsEVDDcGsVJ5gBcF6xqQEq92AHoio8yU1BalMLsSw37Fh3BUqBQSIrzqChIsCHqGiargqRKPXZgDXZSA50GjbEI0YaXSyQ0aFtEBGpXuc1w34BdHs85dPSW4AGDaXhu6GwIpv/xp8m5ThemyVlvUgAhX4GsfPM3UI3aHzkMVPshRPNzz1QtxlpsagWTh6/UjPElMV5cxZNL7iJOyHZ2c+0nJK2eBnJyHI23M= - gem: html2text - on: - tags: true - repo: soundasleep/html2text_ruby diff --git a/CHANGELOG.md b/CHANGELOG.md index 1abbcb3..ce55e0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Gemfile.lock b/Gemfile.lock index e4c0cd9..031ed44 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - html2text (0.3.1) + html2text (0.4.0) nokogiri (>= 1.0, < 2.0) GEM diff --git a/README.md b/README.md index 42a1710..5fd0c8d 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ rendered by a browser - perfect for places where you need a quick text represent
Another div
A div
within a div
- A link + A link @@ -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). @@ -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 diff --git a/Rakefile b/Rakefile index cffdd09..e8a1339 100644 --- a/Rakefile +++ b/Rakefile @@ -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) diff --git a/lib/html2text/version.rb b/lib/html2text/version.rb index 3a6a6a4..8324de9 100644 --- a/lib/html2text/version.rb +++ b/lib/html2text/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true class Html2Text - VERSION = '0.3.1' + VERSION = '0.4.0' end