lib/trav3.rb in trav3-0.5.0 vs lib/trav3.rb in trav3-0.5.1

- old
+ new

@@ -725,15 +725,12 @@ # GET <code>/builds</code> # # Query Parameter Type Description # include [String] List of attributes to eager load. # limit Integer How many builds to include in the response. Used for pagination. - # limit Integer How many builds to include in the response. Used for pagination. # offset Integer How many builds to skip before the first entry in the response. Used for pagination. - # offset Integer How many builds to skip before the first entry in the response. Used for pagination. # sort_by [String] Attributes to sort builds by. Used for pagination. - # sort_by [String] Attributes to sort builds by. Used for pagination. # # Example: GET /builds?limit=5 # # **Sortable by:** <code>id</code>, <code>started_at</code>, <code>finished_at</code>, append <code>:desc</code> to any attribute to reverse order. # @@ -3683,12 +3680,13 @@ def get_path(url) get("#{without_repo}#{url}") end - def get_path_with_opts(url) + def get_path_with_opts(url, without_limit = true) url, opt = url.match(/^(.+)\?(.*)$/)&.captures || url opts.immutable do |o| + o.remove(:limit) if without_limit o.send(:update, opt) get_path("#{url}#{opts}") end end