Skip to content

Commit

Permalink
save_stats added
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRuiz committed Apr 3, 2019
1 parent 7517367 commit 2af1e31
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/nice_http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ def self.save_stats(file_name = '')
File.open("#{file_name.gsub(/.json$/, "_stats_")}#{key}.json", "w") { |file| file.write(self.stats[key].to_json) }
end
else
puts file_name.gsub(/.\w+$/, "_stats_")
require 'yaml'
self.stats.keys.each do |key|
File.open("#{file_name.gsub(/.\w+$/, "_stats_")}#{key}.yaml", "w") { |file| file.write(self.stats[key].to_yaml) }
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.7'
s.version = '1.7.8'
s.summary = "NiceHttp -- simplest library for accessing and testing HTTP and REST resources."
s.description = "NiceHttp -- simplest library for accessing and testing HTTP and REST resources. Manage different hosts on the fly. Easily get the value you want from the JSON strings. Use hashes on your requests."
s.authors = ["Mario Ruiz"]
Expand Down

0 comments on commit 2af1e31

Please sign in to comment.