diff --git a/CHANGELOG.md b/CHANGELOG.md index 60f7a77ea9..0cf4396607 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ * [#2434](https://github.com/ruby-grape/grape/pull/2434): Implement nested `with` support in parameter dsl - [@numbata](https://github.com/numbata). * [#2438](https://github.com/ruby-grape/grape/pull/2438): Fix some Rack::Lint - [@ericproulx](https://github.com/ericproulx). * [#2437](https://github.com/ruby-grape/grape/pull/2437): Add length validator - [@dhruvCW](https://github.com/dhruvCW). +* [#2445](https://github.com/ruby-grape/grape/pull/2445): Remove builder as a dependency - [@ericproulx](https://github.com/ericproulx). * Your contribution here. #### Fixes diff --git a/Gemfile b/Gemfile index cf63280c51..120567b698 100644 --- a/Gemfile +++ b/Gemfile @@ -7,6 +7,7 @@ source('https://rubygems.org') gemspec group :development, :test do + gem 'builder', require: false gem 'bundler' gem 'rake' gem 'rubocop', '1.63.2', require: false diff --git a/UPGRADING.md b/UPGRADING.md index 776d50eb21..be2fb564de 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -3,6 +3,12 @@ Upgrading Grape ### Upgrading to >= 2.1.0 +#### Optional Builder + +The `builder` gem dependency has been made optional as it's only used when generating XML. If your code does, add `builder` to your `Gemfile`. + +See [#2445](https://github.com/ruby-grape/grape/pull/2445) for more information. + #### Deep Merging of Parameter Attributes Grape now uses `deep_merge` to combine parameter attributes within the `with` method. Previously, attributes defined at the parameter level would override those defined at the group level. diff --git a/grape.gemspec b/grape.gemspec index 92c2d7fd0c..e3383f9277 100644 --- a/grape.gemspec +++ b/grape.gemspec @@ -21,7 +21,6 @@ Gem::Specification.new do |s| } s.add_runtime_dependency 'activesupport', '>= 6' - s.add_runtime_dependency 'builder' s.add_runtime_dependency 'dry-types', '>= 1.1' s.add_runtime_dependency 'mustermann-grape', '~> 1.1.0' s.add_runtime_dependency 'rack', '>= 2'