lib/universal-git-client/normalizers/base.rb in universal-git-client-1.2.4 vs lib/universal-git-client/normalizers/base.rb in universal-git-client-1.2.9

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require 'json' require 'fast_jsonapi' require 'deep_merge' require 'uri' require 'nitlink' @@ -47,13 +49,13 @@ self: current_page_index, first: first_page_index, prev: prev_page_index, next: next_page_index, last: last_page_index, - per_page: per_page_index, - }, - }, + per_page: per_page_index + } + } } end def current_page_index response.request.options[:query][:page].to_s @@ -84,10 +86,10 @@ end private def fetch_rel_value(rel) - Hash[URI::decode_www_form(links.by_rel(rel).target.query)]['page'] + Hash[URI.decode_www_form(links.by_rel(rel).target.query)]['page'] rescue StandardError nil end def links