Skip to content

Commit

Permalink
small bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRuiz committed Nov 20, 2019
1 parent ed3f039 commit 13616c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/nice_http/manage_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def manage_request(*arguments)
#todo: implement set_nested
data_arr = Array.new()
data.each_with_index { |row, indx|
if arguments[0].include?(:values_for)
if arguments[0].include?(:values_for) and (row.is_a?(Array) or row.is_a?(Hash))
if arguments[0][:values_for].is_a?(Array)
data_n = row.set_values(arguments[0][:values_for][indx])
elsif arguments[0][:values_for].is_a?(Hash)
Expand Down
2 changes: 1 addition & 1 deletion nice_http.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'nice_http'
s.version = '1.7.23'
s.version = '1.7.24'
s.summary = "NiceHttp -- simplest library for accessing and testing HTTP and REST resources. Get http logs and statistics automatically. Use hashes on your requests. Access JSON even easier."
s.description = "NiceHttp -- simplest library for accessing and testing HTTP and REST resources. Get http logs and statistics automatically. Use hashes on your requests. Access JSON even easier."
s.authors = ["Mario Ruiz"]
Expand Down

0 comments on commit 13616c3

Please sign in to comment.