console_utils 0.10.0 → 0.10.1

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
2
  SHA256:
3
- metadata.gz: a398186f93724b6e079f8443d514f2e509c68cff8b2f30194538369007278818
4
- data.tar.gz: 73897b3d111dd2faaa0a53a20f89a2bff7ef7a7e14752ff46ce33bc942218f84
3
+ metadata.gz: 9fd306eed79667af72048f0d5e5ed12c1bd6c0859c260e8d6523af47f81c88b2
4
+ data.tar.gz: d0bd5a629c0711fbb44e2a71e113dc41e0fda5faa8d56af937b97c0eeb480c73
5
5
  SHA512:
6
- metadata.gz: 94d282e685e0cda6ca1ab63dad2a647f4b39b9ac26800caef074988315e6230626315c3b12c8a8e9be6245a598412bedd2d9fdfcf476e64d92c7711201219434
7
- data.tar.gz: 857a57629b1fd1ab6ab855f0b8dc3ac7a4349b1def0729359e9439efe9c1c75cb1d6f1156d41ea8eb19b36a4f0ae1eafa7e4ab886e4e7bedc72cc6ff0fa1e4b2
6
+ metadata.gz: 8abf3c1a57509b08e0cc61759ba3e5dc2c31b6cd88b90a751e86748e0b08a1ae8e6afa9cd46b1530c121b14ed9c40b62eebcf982090bebbdb19d4eca119b4184
7
+ data.tar.gz: f0000009774f5a91aa9ee63b5fff8127780f332d58c9b0aba6586056d56ad4bb0a3a9bb8e5a32f288c7fa1a67db9777a24d02cad9ea8349a5cecdf981fbac541
@@ -10,7 +10,8 @@ module ConsoleUtils::RequestUtils
10
10
 
11
11
  attr_accessor :uid
12
12
 
13
- def initialize(uid = true, params = nil, headers = nil)
13
+ def initialize(uid = true, *rest, params: nil, headers: nil)
14
+ params, headers = rest if params.nil? && headers.nil? && rest.size > 0
14
15
  params, headers, uid = [uid, params, nil] if uid.is_a?(Hash)
15
16
  @uid = AutoUid[uid] || uid
16
17
  super(params.to_h, headers.to_h)
@@ -1,3 +1,3 @@
1
1
  module ConsoleUtils
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: console_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-16 00:00:00.000000000 Z
11
+ date: 2020-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport