user_engage 0.0.9 → 0.0.10

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: 8e2c0ee1d393b3458f636443eca6e4ac3f85db5ac12429b677c409b0f6b8e630
4
- data.tar.gz: aa4d2f9926dc708fe453b77e8f1f0ef54c3635ec8b10634b2bea64807c7918c6
3
+ metadata.gz: 4b7eba1a39876094fd967e9602a4dbe91ed00c385bc32b6b21bd52f6e673c103
4
+ data.tar.gz: d5c77367121381fadad389a08666a6eff6b8967af8389879b474509c4d80c077
5
5
  SHA512:
6
- metadata.gz: b053f46f6ee9ed8a30174fc90c4fa0d8fdd123d61e6c7c14ad31bc2a926953ce129ed8c10f109b902a7bcbc5155e09ff3146a788232d72ad52b17fa58e9d34e3
7
- data.tar.gz: 8984e3823df886fa18390ea03669e9baa65702384b50c11c6c3100b3f91be4fa0ca9b097e3b66135dfea429389add23b8f77ab38ef21027a4fb4e961bd3f552c
6
+ metadata.gz: e54cf55e913c3ebcfa6967d61069e71659d569a7fc40854a4421b9976f3fe76b35ddd518eb7ca40cea4369a2f9ecbf654c85a42731a94465e0953e095907c6c2
7
+ data.tar.gz: 66e31b560d2bbb2221029d54d56e59546ed08ec20468499a3310e3ee6169a02d95ef6bc9b4e5adf4a62c69431a70c348e2b1e16f39addcdfe40bfd6000498552
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- user_engage (0.0.9)
4
+ user_engage (0.0.10)
5
5
  dry-struct (~> 0.5)
6
6
  faraday (>= 0.12)
7
7
 
@@ -17,10 +17,10 @@ module UserEngage
17
17
  private
18
18
 
19
19
  def get_resource(params)
20
- response = if params.is_a?(Integer)
21
- get_by_id(params)
22
- else
20
+ response = if params.is_a?(Hash)
23
21
  get_by_hash(params)
22
+ else
23
+ get_by_id(params)
24
24
  end
25
25
 
26
26
  check_for_existing_resource!(response, params)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UserEngage
4
- VERSION = '0.0.9'
4
+ VERSION = '0.0.10'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: user_engage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schwed
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-30 00:00:00.000000000 Z
11
+ date: 2018-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct