heroics 0.0.24 → 0.0.25

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2f72c4256e411c95711523e893c86092e1236309
4
- data.tar.gz: 1d2994c6094de91d0275d0bb31481e5aa279f198
2
+ SHA256:
3
+ metadata.gz: e68ba785351a943b6f0074745b8feda4a605e784b041fa5b1bfa6f6508737f94
4
+ data.tar.gz: 0215babfbc42434506a8ee778db394b0ed352b54dd7e56536a45ae9df2ab43f1
5
5
  SHA512:
6
- metadata.gz: 9bc9c386cef579d5a88351e2013ded4f8e5728f86153962e6fc5f6a72e592e025fad5e851ff46fa45246563c190e46351cbeaff1262002430eb6a200853d82af
7
- data.tar.gz: 64f5457d397b900cc3108808d2e6aa6784f77ffbecbc5b896ac2c0d2c21187a55b800268d2da8a2e4ab634f0beb845485ecd5d08c74fde0e271672a9642832d5
6
+ metadata.gz: 61535d6335adbf12786d56b27fa2b53dfc13b7f835fe7bba7040bcb4b9724391de3d6b0ae0254fff3ad1580b64e44f48dcc47a5f8ef7ac664f20f1260743be26
7
+ data.tar.gz: 905ea0ed8f1310471be27d7d50608cd4afdd0f393b82557a000c42c7b73ac002195ccdf4a400042d4a6ad0fa59e2585f30fd16280dbe4dcaabd670b2e0a28eed
@@ -4,6 +4,7 @@ require 'erubis'
4
4
  require 'excon'
5
5
  require 'multi_json'
6
6
  require 'uri'
7
+ require 'webrick'
7
8
  require 'zlib'
8
9
 
9
10
  # Heroics is an HTTP client for an API described by a JSON schema.
@@ -334,7 +334,7 @@ module Heroics
334
334
  # @return [String] The formatted parameter.
335
335
  def format_parameter(parameter)
336
336
  formatted_parameter = parameter.instance_of?(Time) ? iso_format(parameter) : parameter.to_s
337
- URI.escape formatted_parameter
337
+ WEBrick::HTTPUtils.escape formatted_parameter
338
338
  end
339
339
 
340
340
  # Convert a time to an ISO 8601 combined data and time format.
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Heroics
3
- VERSION = '0.0.24'
3
+ VERSION = '0.0.25'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.24
4
+ version: 0.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - geemus
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-05 00:00:00.000000000 Z
12
+ date: 2018-09-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -221,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
221
  version: '0'
222
222
  requirements: []
223
223
  rubyforge_project:
224
- rubygems_version: 2.6.13
224
+ rubygems_version: 2.7.6
225
225
  signing_key:
226
226
  specification_version: 4
227
227
  summary: A Ruby client generator for HTTP APIs described with a JSON schema